From cbb4d47b6f79fa8663697862a975ed94acfb76be Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期一, 19 十二月 2022 17:46:36 +0800 Subject: [PATCH] 维修验收单 选维修记录单 带出数据 --- Model/生产管理/模具管理/ClsSc_MouldMaintainPlanBillMain.cs | 2 +- WebAPI/Controllers/Sc_MouldRepairInBillListController.cs | 2 +- Model/生产管理/模具管理/ClsSc_MouldRepairCheckBillMain.cs | 2 +- DAL/生产管理/模具管理/ClsSc_MouldMaintainPlanBill.cs | 6 +++--- WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" index 266ffc0..ae91b89 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" @@ -57,7 +57,7 @@ //",HGroupID=" + omodel.HGroupID.ToString() + //",HWHID=" + omodel.HWHID.ToString() + //",HSCWHID=" + omodel.HSCWHID.ToString() + - ",HEquipDotCheckRuleInterID='" + omodel.HEquipDotCheckRuleInterID + "'" + + ",HMouldMaintainRuleID='" + omodel.HMouldMaintainRuleID + "'" + ",HCycleUnit='" + omodel.HCycleUnit + "'" + ",HCheckCycle=" + omodel.HCheckCycle.ToString() + ",HBeginDate='" + omodel.HBeginDate + "'" + @@ -143,12 +143,12 @@ "(HBillType,HBillSubType,HInterID,HBillNo,HDate,HMaker,HMakeDate" + ",HYear,HPeriod,HRemark" + ",HCycleUnit,HCheckCycle,HBeginDate,HEndDate"+ - ",HInnerBillNo,HExplanation,HEquipDotCheckRuleInterID" + + ",HInnerBillNo,HExplanation,HMouldMaintainRuleID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'"+ ",'" + omodel.HCycleUnit + "'," + omodel.HCheckCycle.ToString() + ",'" + omodel.HBeginDate + "','" + omodel.HEndDate + "'" + - ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + "','" + omodel.HEquipDotCheckRuleInterID + "'" + + ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + "','" + omodel.HMouldMaintainRuleID + "'" + ") "); //鎻掑叆瀛愯〃閰嶄欢淇℃伅 foreach (Model.ClsSc_MouldMaintainPlanBillSub oSub in DetailColl) diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" index f26ed86..3bcc61c 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" @@ -14,6 +14,6 @@ public string HEndDate;// datetime --计划结束日期 public string HExplanation;// varchar(500) --摘要 public string HInnerBillNo;// varchar(50) --内部单据号 - public int HEquipDotCheckRuleInterID; //器具保养规程id + public int HMouldMaintainRuleID; //器具保养规程id } } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" index 8ab34b9..c5ce510 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" @@ -15,6 +15,6 @@ public long HDeptID;// int --验收部门 public string HExplanation;// varchar(500) --摘要 public string HInnerBillNo;// varchar(50) --内部单据号 - + public int HMouldRepairWorkID;//维修记录id } } diff --git a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs index 2234e35..44b4b93 100644 --- a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs +++ b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs @@ -2689,7 +2689,7 @@ { SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); //鑾峰彇淇濆吇椤圭洰缂栬緫鏁版嵁 - string sql = "select 淇濆吇椤圭洰ID HMaintainItemID, 淇濆吇椤圭洰浠g爜 HMaintainItemNumber,淇濆吇椤圭洰 HMaintainItem,淇濆吇閮ㄤ綅 HMaintainPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜哄悕绉� HManagerName,瀛愬娉�2 HRemark,HEquipDotCheckRuleInterID,HEquipDotCheckNo from h_v_Sc_MouldMaintainPlanBillSub_Item where 1 = 1 " + sqlWhere + ""; + string sql = "select 淇濆吇椤圭洰ID HMaintainItemID, 淇濆吇椤圭洰浠g爜 HMaintainItemNumber,淇濆吇椤圭洰 HMaintainItem,淇濆吇閮ㄤ綅 HMaintainPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜哄悕绉� HManagerName,瀛愬娉�2 HRemark,HMouldMaintainRuleID,HEquipDotCheckNo from h_v_Sc_MouldMaintainPlanBillSub_Item where 1 = 1 " + sqlWhere + ""; ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldMaintainPlanBillSub_Item"); //鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 diff --git a/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs b/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs index 0744322..82866f8 100644 --- a/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs +++ b/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs @@ -55,7 +55,7 @@ ",HEmpID=" + omodel.HEmpID.ToString() + ",HManagerID=" + omodel.HManagerID.ToString() + ",HDeptID=" + omodel.HDeptID.ToString() + - + ",HMouldRepairWorkID=" + omodel.HMouldRepairWorkID.ToString() + ",HExplanation='" + omodel.HExplanation + "'" + ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + @@ -127,13 +127,13 @@ ",HYear,HPeriod,HRemark" + ",HMouldID,HCheckBeginDate,HCheckResult" + ",HEmpID,HManagerID,HDeptID"+ - ",HInnerBillNo,HExplanation" + + ",HInnerBillNo,HExplanation,HMouldRepairWorkID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'"+ "," + omodel.HMouldID.ToString() + ",'" + omodel.HCheckBeginDate + "','" + omodel.HCheckResult + "'" + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + - ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + + ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + "," + omodel.HMouldRepairWorkID + ") "); //鎻掑叆瀛愯〃 foreach (Model.ClsSc_MouldRepairCheckBillSub oSub in DetailColl) -- Gitblit v1.9.1