dytyqx
9 天以前 9f7b0ecace9c80ff2a1d95f4343058b3b031bd22
WebAPI/Controllers/Sc_ProcessMangementController.cs
@@ -1777,9 +1777,11 @@
                        FentityModel.Add("FSrcInterId0", HSLInterID.ToString());      //收料通知单主ID
                        FentityModel.Add("FSrcEntryId0", HSLEntryID.ToString());
                        FentityModel.Add("FSrcEntrySeq0", HSLSeQ.ToString());    //源单行号
                        DataSet BfDs = oCN.RunProcReturn("exec h_p_QC_POStockInCheckBill_getDefineFieldFromSourceBill " + HSLInterID.ToString() + "," + HSLEntryID.ToString() , "h_p_QC_POStockInCheckBill_getDefineFieldFromSourceBill");
                        FentityModel.Add("F_WPVT_Text_uky", HSourceBillNo.ToString());    //源单行号
                        FentityModel.Add("F_WPVT_Integer_fg2", HSeQ.ToString());  //订单行号
                        FentityModel.Add("F_WPVT_Text_uky", BfDs.Tables[0].Rows[0]["订单号"].ToString());    //采购订单行号
                        FentityModel.Add("F_WPVT_Integer_fg2", BfDs.Tables[0].Rows[0]["需求单据行号"].ToString());  //订单行号
                    }
                }
                FentityModel.Add("FBaseUnitId", new JObject() { ["Fnumber"] = HUnitNumber.ToString() });//基本单位
@@ -1861,7 +1863,7 @@
                JArray Fentity4 = new JArray();
                JObject FentityModel4 = new JObject();
                FentityModel4.Add("FEntity_Link_FRuleId", "QM_PURReceive2Inspect");   //单据转换规则
                FentityModel4.Add("FEntity_Link_FSTableName", "T_PUR_RECEIVEENTRY");    //收料通知单子表
                FentityModel4.Add("FEntity_Link_FSTableName", "T_PUR_ReceiveEntry");    //收料通知单子表
                FentityModel4.Add("FEntity_Link_FSBillId", HSLInterID.ToString());      //收料通知单主内码
                FentityModel4.Add("FEntity_Link_FSId", HSLEntryID.ToString());    //收料通知单子内码
                FentityModel4.Add("FEntity_Link_FBaseAcceptQty", HRightQty.ToString());    //
@@ -1915,13 +1917,13 @@
                K3CloudApiClient client = new K3CloudApiClient("http://47.96.97.237/k3cloud");
                //        K3CloudApiClient client = new K3CloudApiClient("http://192.168.80.90/k3cloud/");
                if (oSystemParameter.ShowBill(ref sErr))
                {
                    if (string.Equals(oSystemParameter.omodel.WMS_CampanyName, "锦隆"))
                    {
                        result0 = InvokeHelper.Save("QM_InspectBill", JsonConvert.SerializeObject(json));//保存
                    }
                }
                //if (oSystemParameter.ShowBill(ref sErr))
                //{
                //    if (string.Equals(oSystemParameter.omodel.WMS_CampanyName, "锦隆"))
                //    {
                //        result0 = InvokeHelper.Save("QM_InspectBill", JsonConvert.SerializeObject(json));//保存
                //    }
                //}
                result1 = InvokeHelper.Submit("QM_InspectBill", JsonConvert.SerializeObject(json));//提交
                result2 = InvokeHelper.Audit("QM_InspectBill", JsonConvert.SerializeObject(json));//审核
                if (JObject.Parse(result1)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE")