| | |
| | | oMain.HPeriod = sPeriod; |
| | | |
| | | DataSet Ds; |
| | | DataSet Ds2; |
| | | //DataSet Ds2; |
| | | // 判断生产订单状态 是否为 完工 或结案 |
| | | //Ds2 = oCn.RunProcReturn("exec h_p_Sc_LoadICMOReportStatusCheck " + oMain.HInterID.ToString(), "h_p_Sc_LoadICMOReportStatusCheck"); |
| | | //if (Ds2 == null || Ds2.Tables[0].Rows.Count == 0) |
| | |
| | | ") "); |
| | | //更新关联数量 |
| | | oCn.RunProc("exec h_p_Sc_UpDateRelation_ICMOToICMOReport_Add " + oMain.HInterID.ToString()); |
| | | |
| | | |
| | | //更新生产状态临时状态表数量 |
| | | oCn.RunProc("exec h_p_Sc_UpDateRelation_ICMOToICMOReport_Qty " + oMain.HMainSourceInterID.ToString() + "," + oMain.HMainSourceEntryID.ToString() + ""); |
| | | if (oSystemParameterMain.Sc_ICMOReportBill_AutoCheck == "Y") //系统参数 自动审核 |
| | | { |
| | | //审核单据 |
| | |
| | | Ds = oCn.RunProcReturn("exec h_p_Kf_GetICMOReportBill_ICMO_CLD_WorkQty " + oMain.HInterID.ToString() + ",'" + oMain.HBillNo + "'", "h_p_Kf_GetICMOReportBill_ICMO_CLD_WorkQty"); |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0 || Ds.Tables[1].Rows.Count == 0) |
| | | { |
| | | sErrMsg = "获取子表信息失败!"; |
| | | sErrMsg = "获取json子表信息失败!"; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | |
| | | //生成 生产汇报单 |
| | | string HReturn; |
| | | string HReturn2 = ""; |
| | | |
| | | ApiClient client = new ApiClient(Pub_Class.ClsPub.sCLOUDUrl); |
| | | string dbId = Pub_Class.ClsPub.sCLOUDAcc; //AotuTest117 |
| | | bool bLogin = client.Login(dbId, sCLOUDUseName, sCLOUDPsd, 2052); |