master
nodyang 1 year ago
parent 8afe01f752
commit 1c86b66fd1

@ -119,12 +119,14 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetageFormula
} }
var difference = txtDifference.Text.Trim(); var difference = txtDifference.Text.Trim();
if (!float.TryParse(weight, out var deff)) if (!float.TryParse(difference, out var deff))
{ {
txtDifference.Focus(); txtDifference.Focus();
MessageBox.Show("请输入正确的比重"); MessageBox.Show("请输入正确的比重");
return; return;
} }
if (view.MtypeId == 0) if (view.MtypeId == 0)
{ {
@ -199,6 +201,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetageFormula
} }
StockMaterialDb.AddOrUpdate(view); StockMaterialDb.AddOrUpdate(view);
this.DialogResult = System.Windows.Forms.DialogResult.OK;
} }
} }
} }
Loading…
Cancel
Save