Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
| | |
| | | string HCheckDate = DBUtility.ClsPub.GetServerDate(-1); |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HBillStatus='2',HChecker='" + HChecker + "',HCheckDate='" + HCheckDate + "' Where HInterID=" + lngBillKey.ToString()); |
| | | //根据开工单内码 设置 生产状态表 开工状态(先把 本资源全部工单 设置为非开工状态,再设置本单对应得源单 为开工状态) |
| | | //根据开工单内码 取到生产状态临时表主内码,然后更新生产状态临时表状态为:待生产 任务单状态(0待生产,1生产中,2挂起,3已完工) |
| | | oCn.RunProc("exec h_p_JIT_MESBeginWorkBill_BeginWork @HInterId=" + lngBillKey + ",@flag='完工'"); |
| | | oCn.Commit(); |
| | | |
| | |
| | | ") "); |
| | | } |
| | | //更新关联数量 |
| | | AddNewRelation(ref sReturn, omodel.HInterID); |
| | | //AddNewRelation(ref sReturn, omodel.HInterID); |
| | | //更新关联数量 |
| | | //oCn.RunProc("exec h_p_Sc_UpDateICMOBillStepStatusRelation_Add " + omodel.HInterID); |
| | | oCn.RunProc("exec h_p_Sc_UpDateICMOBillStepStatusRelation_Add " + omodel.HInterID); |
| | | //回填 生产状态表 日计划 为 已完工 状态 |
| | | oCn.RunProc("exec h_p_Sc_UpDateICMOBillQualityStatus " + omodel.HICMOStatusInterID.ToString() + ",3"); |
| | | //oCn.RunProc("exec h_p_Sc_UpDateICMOBillQualityStatus " + omodel.HICMOStatusInterID.ToString() + ",3"); |
| | | //默认变为 申请检验状态 |
| | | oCn.RunProc("exec h_p_Sc_UpDateProcessReportStatus " + omodel.HInterID.ToString() + ",15"); |
| | | // |