瀏覽代碼

更新序列号抽检批次

章政 8 年之前
父節點
當前提交
9e81a2b690
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      UAS-MES/FunctionCode/OQC/OQC_CheckNoSplit.cs

+ 1 - 0
UAS-MES/FunctionCode/OQC/OQC_CheckNoSplit.cs

@@ -112,6 +112,7 @@ namespace UAS_MES.OQC
                         dh.BatchInsert("delete from oqcbatchdetail where obd_checkno='" + ob_checkno.Text + "' and obd_sncode =:obd_sncode ", new string[] { "obd_sncode" }, DeleteSn.ToArray());
                         dh.BatchInsert("update package set pa_checkno='" + new_checkno.Text + "' where pa_outboxcode in (select distinct obd_outboxcode from oqcbatchdetail where obd_sncode=:obd_sncode)", new string[] { "obd_sncode" }, DeleteSn.ToArray());
                         //删除之前的明细
+                        dh.BatchInsert("update makeserial set ms_checkno=='" + new_checkno.Text + "' where ms_makecode='" + ob_makecode.Text + "' and ms_sncode=:obd_sncode ", new string[] { "obd_sncode" }, DeleteSn.ToArray());
                         dh.BatchInsert("delete from oqcbatchdetail where obd_checkno='" + ob_checkno.Text + "' and obd_sncode =:obd_sncode ", new string[] { "obd_sncode" }, DeleteSn.ToArray());
                         //插入新批次的从表,更新两个批次
                         sqls.Add("update OQCBatch set ob_nowcheckqty=(select count(1) from oqcbatchdetail where obd_checkno='" + new_checkno.Text + "') where ob_checkno='" + new_checkno.Text + "'");