From 53dcf90a8fd45c769e419f82ea561aaeb8d1bbef Mon Sep 17 00:00:00 2001 From: yusijie <ysj@hz-kingdee.com> Date: 星期五, 31 五月 2024 13:13:13 +0800 Subject: [PATCH] 工序:新增/编辑 时,选着检验方案后,保存失败; 检验方案:回显分析方法、缺陷等级 、破坏性检验、重点检查; 工序检验单:选择抽样方案后关闭弹框; 产品器具清单:增加工序字段; 维修记录单维护:初始化日期; 维修验收单维护:列表 显示 验收项目 显示不对,编辑 时,子表 验收项目 回显 数据不对 --- WebAPI/Controllers/OtherInStockController.cs | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/WebAPI/Controllers/OtherInStockController.cs b/WebAPI/Controllers/OtherInStockController.cs index f66269e..5b9d435 100644 --- a/WebAPI/Controllers/OtherInStockController.cs +++ b/WebAPI/Controllers/OtherInStockController.cs @@ -167,6 +167,7 @@ { try { + string sErrMsg = ""; bool sBool = false; oView = webserver.get_InfoByBarCode_Source(sBarCode, sInterID, ref sBool, ref sErrMsg); @@ -233,6 +234,8 @@ string msg1 = _value.ToString(); try { + + List<Model.ClsKf_ICStockBillMain> lsmain = new List<Model.ClsKf_ICStockBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getICStockBillMainByJson(msg1); @@ -336,8 +339,8 @@ List<Model.ClsKf_OtherInBillMain> lsmain = new List<Model.ClsKf_OtherInBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getOtherInBillMainByJson(msg1); - lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); - lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); + //lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); + //lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); string sSourceBillType = lsmain[0].HBillType; WebAPI.WebS.ClsKf_OtherInBillMain websLsmain = new WebS.ClsKf_OtherInBillMain(); @@ -351,7 +354,10 @@ websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; websLsmain.HKeeperID = lsmain[0].HKeeperID; + websLsmain.HSecManagerID = lsmain[0].HSecManagerID; + websLsmain.HBillerID = lsmain[0].HBillerID; websLsmain.HBillType = "1203";//鍥哄畾鍊� + websLsmain.HBillSubType = lsmain[0].HBillSubType; WebS.WebService1 oWebs = new WebS.WebService1(); WebS.ClsXt_SystemParameterMain oSystemParameterMain = new WebS.ClsXt_SystemParameterMain(); @@ -359,7 +365,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 1; - objJsonResult.Message = DBUtility.ClsPub.sErrInfo; + objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //鎴愬姛锛� objJsonResult.data = null; return objJsonResult; } @@ -367,7 +373,8 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "涓婁紶澶辫触锛�" + DBUtility.ClsPub.sErrInfo; + objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //澶辫触锛� + //objJsonResult.Message = "涓婁紶澶辫触锛�" + DBUtility.ClsPub.sErrInfo; objJsonResult.data = null; return objJsonResult; } -- Gitblit v1.9.1