From e69dfa27e62cf31380576ae275a812ece2cf20f9 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期五, 30 十二月 2022 10:36:35 +0800 Subject: [PATCH] 器具管理维护 --- WebAPI/Controllers/Sc_MouldRepairInBillListController.cs | 110 ++++++++++++++++++++++++++++--------------------------- 1 files changed, 56 insertions(+), 54 deletions(-) diff --git a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs index 0fcfe00..63e2e3d 100644 --- a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs +++ b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs @@ -3190,7 +3190,7 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); - string msg5 = sArray[3].ToString(); + //string msg5 = sArray[3].ToString(); string UserName = ""; ListModels oListModels = new ListModels(); @@ -3278,30 +3278,30 @@ } - //閰嶄欢椤硅〃浣撴暟鎹� - //鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� - msg5 = msg5.Substring(1, msg5.Length - 2); - msg5 = msg5.Replace("\\", ""); - msg5 = msg5.Replace("\n", ""); //\n - //msg2 = msg2.Replace("'", "鈥�"); - List<Model.ClsSc_MouldDotCheckBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckBillSub_Item>(); - ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckBillSub_Item(msg5); - int j = 0; - foreach (Model.ClsSc_MouldDotCheckBillSub_Item oItemSub in ls1) - { + ////閰嶄欢椤硅〃浣撴暟鎹� + ////鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� + //msg5 = msg5.Substring(1, msg5.Length - 2); + //msg5 = msg5.Replace("\\", ""); + //msg5 = msg5.Replace("\n", ""); //\n + // //msg2 = msg2.Replace("'", "鈥�"); + //List<Model.ClsSc_MouldDotCheckBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckBillSub_Item>(); + //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckBillSub_Item(msg5); + //int j = 0; + //foreach (Model.ClsSc_MouldDotCheckBillSub_Item oItemSub in ls1) + //{ - j++; - oItemSub.HEntryID = j; - //oItemSub.HCloseMan = ""; //琛屽叧闂� - oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); - oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + // j++; + // oItemSub.HEntryID = j; + // //oItemSub.HCloseMan = ""; //琛屽叧闂� + // oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + // oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 - oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� - oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + // oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + // oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� - oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 - oBill.DetailCol.Add(oItemSub); - } + // oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + // oBill.DetailCol.Add(oItemSub); + //} //淇濆瓨 //淇濆瓨瀹屾瘯鍚庡鐞� @@ -3525,7 +3525,7 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); - string msg5 = sArray[3].ToString(); + //string msg5 = sArray[3].ToString(); string UserName = ""; @@ -3613,30 +3613,30 @@ } - //閰嶄欢椤硅〃浣撴暟鎹� - //鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� - msg5 = msg5.Substring(1, msg5.Length - 2); - msg5 = msg5.Replace("\\", ""); - msg5 = msg5.Replace("\n", ""); //\n - //msg2 = msg2.Replace("'", "鈥�"); - List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); - ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckPlanBillSub_Item(msg5); - int j = 0; - foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oItemSub in ls1) - { + ////閰嶄欢椤硅〃浣撴暟鎹� + ////鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� + //msg5 = msg5.Substring(1, msg5.Length - 2); + //msg5 = msg5.Replace("\\", ""); + //msg5 = msg5.Replace("\n", ""); //\n + // //msg2 = msg2.Replace("'", "鈥�"); + //List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); + //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckPlanBillSub_Item(msg5); + //int j = 0; + //foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oItemSub in ls1) + //{ - j++; - oItemSub.HEntryID = j; - //oItemSub.HCloseMan = ""; //琛屽叧闂� - oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); - oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + // j++; + // oItemSub.HEntryID = j; + // //oItemSub.HCloseMan = ""; //琛屽叧闂� + // oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + // oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 - oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� - oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + // oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + // oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� - oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 - oBill.DetailCol.Add(oItemSub); - } + // oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + // oBill.DetailCol.Add(oItemSub); + //} //淇濆瓨 //淇濆瓨瀹屾瘯鍚庡鐞� @@ -3706,15 +3706,17 @@ { SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); //鑾峰彇鐐规椤圭洰缂栬緫鏁版嵁 - ds = oCN.RunProcReturn("select HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckPlanBillSub a left join Gy_Employee e on a.HManagerID=e.HItemID where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub"); - //鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 - ds1 = oCN.RunProcReturn(@"select b.HMaterID, mt.Hnumber HMaterNumber ,mt.HName HMaterName, b.HUnitID - ,u2.hnumber HUnitNumber,u2.HName HUnitName,b.HQty,b.HQtyMust,b.HRemark - from Sc_MouldDotCheckPlanBillSub_Item b - left join Gy_Material mt on b.HMaterID=mt.HItemID - left join h_v_IF_Unit u2 on b.HUnitID=u2.HItemID where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub_Item"); + ds = oCN.RunProcReturn(@"select a.HDotCheckItemID,HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckPlanBillSub a + left join Gy_Employee e on a.HManagerID=e.HItemID + where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub"); + ////鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 + //ds1 = oCN.RunProcReturn(@"select b.HMaterID, mt.Hnumber HMaterNumber ,mt.HName HMaterName, b.HUnitID + // ,u2.hnumber HUnitNumber,u2.HName HUnitName,b.HQty,b.HQtyMust,b.HRemark + // from Sc_MouldDotCheckPlanBillSub_Item b + // left join Gy_Material mt on b.HMaterID=mt.HItemID + // left join h_v_IF_Unit u2 on b.HUnitID=u2.HItemID where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub_Item"); list.Add(ds.Tables[0]); - list.Add(ds1.Tables[0]); + //list.Add(ds1.Tables[0]); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; @@ -3853,7 +3855,7 @@ ds = oCN.RunProcReturn(string.Format(@"SELECT HMaterID,妯″叿浠g爜 HMaterCode,妯″叿鍚嶇О HMaterName,瑙勬牸鍨嬪彿 HMaterSpec,HPropertyID,杈呭姪灞炴�т唬鐮� HPropertyCode,杈呭姪灞炴�у悕绉� HPropertyName, HSecUnitID, 杈呭姪璁¢噺鍗曚綅浠g爜 HSecUnitCode, 杈呭姪璁¢噺鍗曚綅鍚嶇О HSecUnitName, HUnitID, 璁¢噺鍗曚綅浠g爜 HUnitCode, 璁¢噺鍗曚綅鍚嶇О HUnitName, 鎵规 HBatchNo, 璁捐瀵垮懡 HDesignLife, 鍓╀綑瀵垮懡 HLeaveLife, 浣跨敤瀵垮懡 HUseLife, 瀹炴敹鏁伴噺 HQty, 鍗曚环 HPrice, 閲戦 HMoney, HWHID, 鏀舵枡浠撳簱浠g爜 HWHCode, 鏀舵枡浠撳簱鍚嶇О HWHName, - HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 澶囨敞 HRemark,HStockOrgID + HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 瀛愬娉� HRemark,HStockOrgID FROM h_v_Sc_MouldScrapInHouseBillList"), "h_v_Sc_MouldScrapInHouseBillList"); } @@ -3864,7 +3866,7 @@ string sql1 = string.Format(@"SELECT HMaterID,妯″叿浠g爜 HMaterCode,妯″叿鍚嶇О HMaterName,瑙勬牸鍨嬪彿 HMaterSpec,HPropertyID,杈呭姪灞炴�т唬鐮� HPropertyCode,杈呭姪灞炴�у悕绉� HPropertyName, HSecUnitID, 杈呭姪璁¢噺鍗曚綅浠g爜 HSecUnitCode, 杈呭姪璁¢噺鍗曚綅鍚嶇О HSecUnitName, HUnitID, 璁¢噺鍗曚綅浠g爜 HUnitCode, 璁¢噺鍗曚綅鍚嶇О HUnitName, 鎵规 HBatchNo, 璁捐瀵垮懡 HDesignLife, 鍓╀綑瀵垮懡 HLeaveLife, 浣跨敤瀵垮懡 HUseLife, 瀹炴敹鏁伴噺 HQty, 鍗曚环 HPrice, 閲戦 HMoney, HWHID, 鏀舵枡浠撳簱浠g爜 HWHCode, 鏀舵枡浠撳簱鍚嶇О HWHName, - HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 澶囨敞 HRemark,HStockOrgID + HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 瀛愬娉� HRemark,HStockOrgID FROM h_v_Sc_MouldScrapInHouseBillList where 1 = 1 "); string sql = sql1 + sqlWhere; ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldScrapInHouseBillList"); -- Gitblit v1.9.1