Compare commits

..
2 Commits
Author SHA1 Message Date
sc 701c3abf26 Merge branch 'master' of http://www.scserverddns.top:13000/sc/formula_manage 2024-04-18 16:13:17 +08:00
sc be7cfcdcaf 原料代码输入判定 2024-04-18 16:13:14 +08:00
+10 -3
View File
@@ -653,7 +653,7 @@ namespace formula_manage
if (grid_row == -1) grid_row = 0;
Code_ = curComboBox.Text.TrimEnd();
if (Code_ == "")
if ((Code_ == "") && (grid_row != 0))
{
if (Procedures_N.Text == Procedures_P.Text)
{
@@ -671,7 +671,6 @@ namespace formula_manage
PressKey.PressKeys(Keys.Tab, false);
PressKey.PressKeys(Keys.Tab, true);
return;
}
}
@@ -764,8 +763,16 @@ namespace formula_manage
System.Windows.Controls.TextBox curTextBox = sender as System.Windows.Controls.TextBox;
int grid_row = Grid_RRODUCT.SelectedIndex; //获取当前行
int ID_ = grid_row + 1;
if (e.Key == Key.Enter)
DataRow[] c = RRODUCTdataTable.Select("PRODUCT_CODE is null and ID = '" + ID_ + "'");//查询判断原料代码是否重复
if (c.Any())
{
System.Windows.MessageBox.Show("先选择原料");
return;
}
if (e.Key == Key.Enter)
{
if (!double.TryParse(curTextBox.Text, out ang))
{