浏览代码

采集成功后清除暂存数据

章政 8 年之前
父节点
当前提交
02bb4fe8ba
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      UAS-MES/FunctionCode/Make/Make_FeedingCollection.cs

+ 3 - 0
UAS-MES/FunctionCode/Make/Make_FeedingCollection.cs

@@ -443,6 +443,8 @@ namespace UAS_MES.Make
                 sql.Append("and sp_craftcode=ma_craftcode and sp_mothercode = ma_prodcode left join makeserial on ms_makecode=ma_code ");
                 sql.Append("where ma_code='" + make_code + "'and sp_id=" + sp_id + " and mcd_stepcode = '" + User.CurrentStepCode + "' and ms_sncode='" + ms_sncode + "'");
                 dh.BatchInsert(sql.GetString(), new string[] { "soncode", "barcode" }, CollectDataSonCode.ToArray(), CollectData.ToArray());
+                CollectData.Clear();
+                CollectDataSonCode.Clear();
                 //采集成功,设置序列号栏目为空
                 RemainIndex = 0;
                 OperateResult.AppendText(">>上料采集完成!\n", Color.Green);
@@ -464,6 +466,7 @@ namespace UAS_MES.Make
         {
             sn_code.Clear();
             CollectData.Clear();
+            CollectDataSonCode.Clear();
             dt1.Clear();
             RemainIndex = 0;
         }