YL
2021-12-06 04ef83a36a24e309c8d5240eee6ac93fc2bb156d
WebAPI/DLL/ClsSc_MESBeginWorkBill.cs
@@ -448,7 +448,7 @@
                oCn.BeginTran();
                oCn.RunProc(" Update " + MvarItemKey + " set HBillStatus='2',HChecker='" + HChecker + "',HCheckDate='" + HCheckDate + "' Where HInterID=" + lngBillKey.ToString());
                //根据开工单内码 设置 生产状态表 开工状态(先把 本资源全部工单 设置为非开工状态,再设置本单对应得源单 为开工状态)
                oCn.RunProc("exec h_p_JIT_MESBeginWorkBill_SaveCtrl @HInterId=" + lngBillKey + ",@flag='开工'");
                oCn.RunProc("exec h_p_JIT_MESBeginWorkBill_BeginWork @HInterId=" + lngBillKey + ",@flag='开工'");
                oCn.Commit();
                //生成调拨单
                //得到调拨单 mainid 单据号