From 076c536729efb1434705942fec302ea98db9d0f3 Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期一, 22 十一月 2021 17:40:43 +0800 Subject: [PATCH] 设备维修记录单,增加 选择 设备维修登记单 为源单的功能 --- DAL/生产管理/模具管理/ClsSb_MouldRepairWorkBill.cs | 7 +++++-- WebAPI/DLL/ClsSb_EquipRepairWorkBill.cs | 8 ++++++-- WebAPI/Models/ClsSb_EquipRepairWorkBillMain.cs | 2 +- 3 files changed, 12 insertions(+), 5 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/ClsSb_MouldRepairWorkBill.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/ClsSb_MouldRepairWorkBill.cs" index 03e3269..15d28be 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/ClsSb_MouldRepairWorkBill.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/ClsSb_MouldRepairWorkBill.cs" @@ -65,6 +65,9 @@ ",HSupID=" + omodel.HSupID.ToString() + ",HRepairType='" + omodel.HRepairType + "'" + ",HNewModel='" + omodel.HNewModel + "'" + + ",HMainSourceBillType='"+ omodel.HMainSourceBillType+"'"+ + ",HMainSourceInterID=" + omodel.HMainSourceInterID.ToString()+ + ",HMainSourceEntryID="+ omodel.HMainSourceEntryID.ToString()+ ",HNewDesignLife=" + omodel.HNewDesignLife.ToString() + " where HInterID=" + lngBillKey.ToString()); //鍒犻櫎鍏宠仈 @@ -124,14 +127,14 @@ ",HEquipID,HRepairID,HRepairBeginDate,HRepairEndDate,HRepairContent" + ",HCycleUnit,HPlanTimes,HTimes,HEmpID,HManagerID"+ ",HDeptID,HExplanation,HInnerBillNo,HMouldID" + - ",HSupID,HRepairType,HNewModel,HNewDesignLife" + + ",HSupID,HRepairType,HNewModel,HNewDesignLife,HMainSourceBillType,HMainSourceInterID,HMainSourceEntryID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HMaker + "',getdate()" + "," + omodel.HEquipID.ToString() + "," + omodel.HRepairID.ToString() + ",'" + omodel.HRepairBeginDate + "','" + omodel.HRepairEndDate + "','" + omodel.HRepairContent + "'" + ",'" + omodel.HCycleUnit + "'," + omodel.HPlanTimes.ToString() + "," + omodel.HTimes.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + omodel.HMouldID.ToString() + - ", " + omodel.HSupID.ToString() + ",'" + omodel.HRepairType + "','" + omodel.HNewModel + "'," + omodel.HNewDesignLife.ToString() + + ", " + omodel.HSupID.ToString() + ",'" + omodel.HRepairType + "','" + omodel.HNewModel + "'," + omodel.HNewDesignLife.ToString() +",'"+ omodel.HMainSourceBillType+"',"+ omodel.HMainSourceInterID.ToString()+","+ omodel.HMainSourceEntryID.ToString()+ ") "); //鎻掑叆瀛愯〃 foreach (Model.ClsSb_MouldRepairWorkBillSub oSub in DetailColl) diff --git a/WebAPI/DLL/ClsSb_EquipRepairWorkBill.cs b/WebAPI/DLL/ClsSb_EquipRepairWorkBill.cs index 70d9ca3..7d16ea0 100644 --- a/WebAPI/DLL/ClsSb_EquipRepairWorkBill.cs +++ b/WebAPI/DLL/ClsSb_EquipRepairWorkBill.cs @@ -61,6 +61,9 @@ ",HExplanation='" + omodel.HExplanation + "'" + ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + ",HRepairContent='" + omodel.HRepairContent + "'" + + ",HMainSourceBillType='"+ omodel.HMainSourceBillType+"'"+ + ",HMainSourceInterID="+ omodel.HMainSourceInterID.ToString()+ + ",HMainSourceEntryID="+ omodel.HMainSourceEntryID.ToString()+ ",HCycleUnit='" + omodel.HCycleUnit + "'" + " where HInterID=" + lngBillKey.ToString()); @@ -120,12 +123,13 @@ "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + ",HEquipID,HRepairID,HPlanTimes,HEmpID,HManagerID,HTimes" + - ",HDeptID,HExplanation,HInnerBillNo,HRepairBeginDate,HRepairEndDate,HRepairContent,HCycleUnit" + + ",HDeptID,HExplanation,HInnerBillNo,HRepairBeginDate,HRepairEndDate,HRepairContent,HCycleUnit,HMainSourceBillType,HMainSourceInterID,HMainSourceEntryID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HMaker + "',getdate()" + ", " + omodel.HEquipID.ToString() + "," + omodel.HRepairID.ToString() + "," + omodel.HPlanTimes.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HTimes.ToString() + - ", " + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "','" + omodel.HRepairBeginDate.ToShortDateString() + "','" + omodel.HRepairEndDate.ToShortDateString() + "','" + omodel.HRepairContent + "','" + omodel.HCycleUnit + "'" + + ", " + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "','" + omodel.HRepairBeginDate.ToShortDateString() + "','" + omodel.HRepairEndDate.ToShortDateString() + "','" + omodel.HRepairContent + "','" + omodel.HCycleUnit + "','" + + omodel.HMainSourceBillType+"',"+ omodel.HMainSourceInterID.ToString()+","+ omodel.HMainSourceEntryID.ToString() + ") "); //鎻掑叆瀛愯〃 foreach (Models.ClsSb_EquipRepairWorkBillSub oSub in DetailColl) diff --git a/WebAPI/Models/ClsSb_EquipRepairWorkBillMain.cs b/WebAPI/Models/ClsSb_EquipRepairWorkBillMain.cs index 9e4fc2f..9d2c6bc 100644 --- a/WebAPI/Models/ClsSb_EquipRepairWorkBillMain.cs +++ b/WebAPI/Models/ClsSb_EquipRepairWorkBillMain.cs @@ -23,6 +23,6 @@ public string HCycleUnit;//varchar(10) --时间单位(小时,天) public Single HPlanTimes;// money --计划维修工时 public Single HTimes;// money --实际维修工时 - + } } -- Gitblit v1.9.1