Browse Source

索引BUG调整

章政 6 years ago
parent
commit
2dfacc2ff2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      UAS-出货标签管理(贸易版)/UAS_出货标签管理.cs

+ 2 - 1
UAS-出货标签管理(贸易版)/UAS_出货标签管理.cs

@@ -1126,6 +1126,8 @@ namespace UAS_LabelMachine
                         string[] param = new string[] { PI_ID, "" };
                         string[] param = new string[] { PI_ID, "" };
                         dh.CallProcedure("GetCustBarcode", ref param);
                         dh.CallProcedure("GetCustBarcode", ref param);
                     }
                     }
+                    CurrentItemIndex = 0;
+                    CurrentRowIndex = 0;
                     LoadGridData(sender, e);
                     LoadGridData(sender, e);
                     //重新输入单号后清除缓存
                     //重新输入单号后清除缓存
                     MidBoxArgument.Clear();
                     MidBoxArgument.Clear();
@@ -1151,7 +1153,6 @@ namespace UAS_LabelMachine
                     BaseUtil.SetFormCenter(stw);
                     BaseUtil.SetFormCenter(stw);
                     stw.ShowDialog();
                     stw.ShowDialog();
                     //重置采集项次
                     //重置采集项次
-                    CurrentItemIndex = 0;
                     LogManager.DoLog("输入单号【" + pi_inoutno.Text + "】");
                     LogManager.DoLog("输入单号【" + pi_inoutno.Text + "】");
                 }
                 }
                 else
                 else