Browse Source

取消采集时释放导入和维护的SN

章政 7 years ago
parent
commit
cf2267df61
1 changed files with 4 additions and 0 deletions
  1. 4 0
      UAS-MES/FunctionCode/Special/Special_CancelCollection.cs

+ 4 - 0
UAS-MES/FunctionCode/Special/Special_CancelCollection.cs

@@ -88,6 +88,10 @@ namespace UAS_MES.Special
                     sqls.Add("delete from labelprintlog where lpl_value='" + sn_code.Text + "' and lpl_makecode='" + ms_makecode + "'");
                     //删除老化记录
                     sqls.Add("delete from AGINGRECORD where ar_sncode='" + sn_code.Text + "' and ar_macode='" + ms_makecode + "'");
+                    //初始化导入数据状态
+                    sqls.Add("update makesnlist set msl_status=0 where msl_sncode='" + sn_code.Text + "' and msl_makecode='" + ms_makecode + "' and msl_type='before'");
+                    ////初始化号段状态
+                    sqls.Add("update MAKESNRULEDETAIL set msd_status=0 where msd_sncode='" + sn_code.Text + "' and msd_makecode='" + ms_makecode + "'  and msd_type='before'");
                     //解除前一工单板的使用
                     sqls.Add("update makeserial set ms_nextmacode='' where ms_sncode='" + sn_code.Text + "' and ms_nextmacode='" + ms_makecode + "'");
                     //清除操作日志