From aca99f3c22afc557d5628a4ce89b653418636405 Mon Sep 17 00:00:00 2001 From: YL <YL@LAPTOP-SE03PLUR> Date: 星期二, 21 十二月 2021 13:44:54 +0800 Subject: [PATCH] 雅琪诺报工台开班单、完工单、产量汇报列表接口参数及加工序 --- WebAPI/Controllers/SBGL/Gy_EquipFileMainController.cs | 33 ++++++++++++++------------------- 1 files changed, 14 insertions(+), 19 deletions(-) diff --git a/WebAPI/Controllers/SBGL/Gy_EquipFileMainController.cs b/WebAPI/Controllers/SBGL/Gy_EquipFileMainController.cs index 6d4099f..44ddf03 100644 --- a/WebAPI/Controllers/SBGL/Gy_EquipFileMainController.cs +++ b/WebAPI/Controllers/SBGL/Gy_EquipFileMainController.cs @@ -93,23 +93,12 @@ DLL.ClsGy_EquipFileMain oBill = new DLL.ClsGy_EquipFileMain(); if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) { - bool IsDete = oBill.DeleteBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo); - if (IsDete) - { - objJsonResult.code = "1"; - objJsonResult.count = 1; - objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; - objJsonResult.data = null; - return objJsonResult; - } - else - { - objJsonResult.code = "0"; - objJsonResult.count = 0; - objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; - objJsonResult.data = null; - return objJsonResult; - } + oCN.RunProc("Delete From Gy_EquipFileBillMain where HInterID=" + lngBillKey); + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍒犻櫎鎴愬姛"; + objJsonResult.data = null; + return objJsonResult; } else { @@ -202,6 +191,8 @@ int HMakeSupID = list[0].HMakeSupID; // int //鍒堕�犲晢 (Gy_Supplier) string HMaker = msg4; string HMakeDate = DateTime.Now.Date.ToString(); + int HEquipDotCheckRuleInterID = list[0].HEquipDotCheckRuleInterID; + int HEquipMaintainRuleInterID = list[0].HEquipMaintainRuleInterID; if (!DBUtility.ClsPub.AllowNumber(HEquipFileNumber)) { @@ -217,11 +208,11 @@ oCN.RunProc("Insert into Gy_EquipFileBillMain " + " (hbillno,HEquipFileNumber,HEquipFileNo,HName,HModel,HModel2,HMaterID,HUnitID,HOutComDate" + ",HOutComNo,HDeptID,HUseEmpID,HRepairEmpID,HAddress,HSetupDate,HStartupDate,HStatus," + - "HEquipFileTypeID,HProNum,HBarCode,HWorkArea,HLogo,HSellSupID,HMakeSupID,hbilltype,HDate,HYear,HMaker,HMakeDate) " + + "HEquipFileTypeID,HProNum,HBarCode,HWorkArea,HLogo,HSellSupID,HMakeSupID,hbilltype,HDate,HYear,HMaker,HMakeDate,HEquipMaintainRuleInterID,HEquipDotCheckRuleInterID) " + " Values('" + hbillno + "','" + HEquipFileNumber + "','" + HEquipFileNo + "','" + HName + "','" + HModel + "','" + HModel2 + "'," + HMaterID + "," + HUnitID + ",'" + HOutComDate + "','" + HOutComNo + "'," + HDeptID + "," + HUseEmpID + "," + HRepairEmpID + ",'" + HAddress + "','" + HSetupDate + "','" + HStartupDate + "','" + HStatus + "'," + HEquipFileTypeID + ",'" + HProNum + - "','" + HBarCode + "','" + HWorkArea + "','" + HLogo + "'," + HSellSupID + "," + HMakeSupID +",'3308','" + HDate +"','"+ HYear+ "','" + HMaker + "','" + HMakeDate + + "','" + HBarCode + "','" + HWorkArea + "','" + HLogo + "'," + HSellSupID + "," + HMakeSupID +",'3308','" + HDate +"','"+ HYear+ "','" + HMaker + "','" + HMakeDate +"','"+ HEquipMaintainRuleInterID+"','"+ HEquipDotCheckRuleInterID+ "')", ref DBUtility.ClsPub.sExeReturnInfo); //淇敼涓婄骇涓洪潪鏈骇浠g爜 oCN.Commit(); @@ -289,6 +280,8 @@ int HMakeSupID = list[0].HMakeSupID; // int //鍒堕�犲晢 (Gy_Supplier) string HUpDater = msg4; string HUpDateDate = DateTime.Now.Date.ToString(); + int HEquipDotCheckRuleInterID = list[0].HEquipDotCheckRuleInterID; + int HEquipMaintainRuleInterID = list[0].HEquipMaintainRuleInterID; if (!DBUtility.ClsPub.AllowNumber(HEquipFileNumber)) { @@ -340,6 +333,8 @@ ",HMakeSupID= " + HMakeSupID + ",HUpDater= '" + HUpDater + "'" + ",HUpDateDate= '" + HUpDateDate + "'" + + ",HEquipDotCheckRuleInterID='"+ HEquipDotCheckRuleInterID+"'"+ + ",HEquipMaintainRuleInterID='"+ HEquipMaintainRuleInterID+"'"+ " Where HInterID=" + HInterID, ref DBUtility.ClsPub.sExeReturnInfo); //淇敼瀛愰」鐩唬鐮� //oCN.RunProc("exec h_p_Gy_UpdateNumber Gy_RepairCheck,'" + HNumber + ".','" + this.HOldNumber + ".'", ref DBUtility.ClsPub.sExeReturnInfo); -- Gitblit v1.9.1