From 190dcc3d5515f4108a945fb8b1b5427e9a2eb7c7 Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期三, 01 十二月 2021 17:50:05 +0800 Subject: [PATCH] 设备点检记录和保养记录选设备带出默认点检规程和默认保养规程数据 --- WebAPI/Controllers/BaseSet/Gy_MaterialController.cs | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs index 0dc8c6b..a5b9391 100644 --- a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs @@ -591,6 +591,10 @@ long HPrintQty = mainList[0].HPrintQty; string HMouldOWNER = mainList[0].HMouldOWNER; string HSaveLife = mainList[0].HSaveLife; + int HMouldDotCheckRuleInterID= mainList[0].HMouldDotCheckRuleInterID; + int HMouldMaintainRuleInterID= mainList[0].HMouldMaintainRuleInterID; + + //涓昏〃 oCN.RunProc("Insert Into Gy_MouldFileMain " + @@ -602,7 +606,7 @@ ",HOutComDate,HOutComNo,HDeptID,HSupID,HSupNumber" + ",HPrintQty,HMouldStatus,HWhID,HRoutingID" + ",HBomID,HVersion,HSPGroupID,HSPID,HDesignLife" + - ",HUseLife,HLeaveLife,HProdQty,HProdWeight,HMouldOWNER,HSaveLife" + + ",HUseLife,HLeaveLife,HProdQty,HProdWeight,HMouldOWNER,HSaveLife,HMouldDotCheckRuleInterID,HMouldMaintainRuleInterID" + ") " + " values('" + BillType + "','" + BillType + "'," + HInterID + ",'" + HBillNo + "','" + HDate + "'" + "," + HYear + "," + HPeriod + ",'" + HRemark + "','" + HMaker + "',getdate()" + @@ -612,7 +616,7 @@ ",'" + HOutComDate + "','" + HOutComNo + "'," + HDeptID + "," + HSupID + ",'" + HSupNumber + "'" + "," + HPrintQty + ",'" + HMouldStatus + "'," + HWHID + "," + HRoutingID + "," + HBOMID + ",'" + HVersion + "'," + HSPGroupID + "," + HSPID + ",'" + HDesignLife + "'" + - ",'" + HUseLife + "','" + HLeaveLife + "','" + HProdQty + "','" + HProdWeight + "','" + HMouldOWNER + "'," + "','" + HSaveLife + "'," + + ",'" + HUseLife + "','" + HLeaveLife + "','" + HProdQty + "','" + HProdWeight + "','" + HMouldOWNER + "','" + HSaveLife + "','" + HMouldDotCheckRuleInterID+"','"+ HMouldMaintainRuleInterID+"'"+ ") "); @@ -724,7 +728,8 @@ long HPrintQty = mainList[0].HPrintQty; string HMouldOWNER = mainList[0].HMouldOWNER; string HSaveLife = mainList[0].HSaveLife; - + int HMouldDotCheckRuleInterID = mainList[0].HMouldDotCheckRuleInterID; + int HMouldMaintainRuleInterID = mainList[0].HMouldMaintainRuleInterID; //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� @@ -770,6 +775,8 @@ ",HUseLife=" + HUseLife.ToString() + ",HLeaveLife=" + HLeaveLife.ToString() + ",HProdQty=" + HProdQty.ToString() + + ",HMouldDotCheckRuleInterID="+ HMouldDotCheckRuleInterID.ToString()+ + ",HMouldMaintainRuleInterID=" + HMouldMaintainRuleInterID.ToString() + ",HMouldOWNER='" + HMouldOWNER + "'" + ",HProdWeight=" + HProdWeight.ToString() + " where HInterID=" + HInterID.ToString()); @@ -905,7 +912,7 @@ ",HSupID,HSupTypeID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" + ",HKeeperID,HDeptID,HInnerBillNo,HRedBlueFlag" + ") " + - " values('3801','3801'," + HInterID + ",'" + HBillNo + "',' getdate()'" + + " values('3801','3801'," + HInterID + ",'" + HBillNo + "',getdate()" + ", '" + user + "',getdate()" + ", " + dr["HSupID"].ToString() + ", 1," + dr["HWhID"].ToString() + ",0,0,0,0" + ", 0," + dr["HDeptID"].ToString() + ",' ',0" + -- Gitblit v1.9.1