From 2bfc05eb4084e07f761d96e5657952eef8e9ce79 Mon Sep 17 00:00:00 2001
From: jhz <jinghz@oceic.com>
Date: 星期六, 09 七月 2022 23:23:33 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/基础资料/基础资料/Gy_StockCheckItemBillController.cs |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs"
index 175185b..33509ad 100644
--- "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs"
+++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs"
@@ -406,6 +406,7 @@
                 {
                     var HBarCode = item.HBarCode;
                     var HItemID = item.HItemID;
+                    string HDate = item.HMakeDate;
                     string HBillNo = "";
                     Int64 HInterID = 0;//鏄剧ず鐨勫瓧娈�
                     DataSet ds1 = new DataSet();
@@ -422,7 +423,7 @@
                     ",HSupID,HSupTypeID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" +
                     ",HKeeperID,HDeptID,HInnerBillNo,HRedBlueFlag" +
                     ") " +
-                    " values('3814','3814'," + HInterID + ",'" + HBillNo + "','2022-01-02'" +
+                    " values('3814','3814'," + HInterID + ",'" + HBillNo + "','" + HDate+"'"+
                     ", '" + user + "',getdate()" +
                     ", " + dr["HSupID"].ToString() + ", 1," + dr["HNowSupID"].ToString() + ",0,0,0,0" +
                     ", 0," + dr["HDeptID"].ToString() + ",' ',0" +
@@ -490,10 +491,11 @@
                     var HBarCode = item.HBarCode;
                     var HItemID = item.HItemID;
                     string HBillNo = "";
+                    string HDate = item.HMakeDate;
                     Int64 HInterID = 0;//鏄剧ず鐨勫瓧娈�
                     DataSet ds1 = new DataSet();
-                    ds = oCn.RunProcReturn("select * from Gy_MouldFileMain where HBarCode='W11201609050013'", "Gy_MouldFileMain");
-                    ds1 = oCn.RunProcReturn("select top 1 * from Sc_MouldStockBillMain_Temp where HBarCode='W11201609050013' and HItemID='38'", "Sc_MouldStockBillMain_Temp");
+                    ds = oCn.RunProcReturn("select * from Gy_MouldFileMain where HBarCode='" + HBarCode + "'", "Gy_MouldFileMain");
+                    ds1 = oCn.RunProcReturn("select top 1 * from Sc_MouldStockBillMain_Temp where HBarCode='" + HBarCode + "' and HItemID='" + HItemID + "'", "Sc_MouldStockBillMain_Temp");
                     DataRow dr = ds.Tables[0].Rows[0];
                     DataRow dr1 = ds1.Tables[0].Rows[0];
                     HInterID = DBUtility.ClsPub.CreateBillID("3827", ref DBUtility.ClsPub.sExeReturnInfo);
@@ -504,7 +506,7 @@
                     ",HSupID,HSupTypeID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" +
                     ",HKeeperID,HDeptID,HInnerBillNo,HRedBlueFlag" +
                     ") " +
-                    " values('3827','3827'," + HInterID + ",'" + HBillNo + "','2022-01-02'" +
+                    " values('3827','3827'," + HInterID + ",'" + HBillNo + "','" + HDate + "'" +
                     ", '" + user + "',getdate()" +
                     ", " + dr1["HCorrespondentID"].ToString() + "," + dr1["HCorrespondentTypeID"].ToString() + ",isnull('" + dr["HNowSupID"].ToString() + "',0),0,0,0,0" +
                     ", 0," + dr["HDeptID"].ToString() + ",'',0" +
@@ -572,6 +574,7 @@
                     var HBarCode = item.HBarCode;
                     var HItemID = item.HItemID;
                     string HBillNo = "";
+                    string HDate = item.HMakeDate;
                     Int64 HInterID = 0;//鏄剧ず鐨勫瓧娈�
                     DataSet ds1 = new DataSet();
                     ds = oCn.RunProcReturn("select * from Gy_MouldFileMain where HBarCode='" + HBarCode + "'", "Gy_MouldFileMain");
@@ -587,7 +590,7 @@
                     ",HSupID,HSupTypeID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" +
                     ",HKeeperID,HDeptID,HInnerBillNo,HRedBlueFlag" +
                     ") " +
-                    " values('3832','3832'," + HInterID + ",'" + HBillNo + "','2022-01-02'" +
+                    " values('3832','3832'," + HInterID + ",'" + HBillNo + "','" + HDate + "'" +
                     ", '" + user + "',getdate()" +
                     ", " + dr1["HCorrespondentID"].ToString() + "," + dr1["HCorrespondentTypeID"].ToString() + "," + dr["HNowSupID"].ToString() + ",0,0,0,0" +
                     ", 0," + dr["HDeptID"].ToString() + ",' ',0" +
@@ -653,6 +656,7 @@
                     var HBarCode = item.HBarCode;
                     var HItemID = item.HItemID;
                     string HBillNo = "";
+                    string HDate = item.HMakeDate;
                     Int64 HInterID = 0;//鏄剧ず鐨勫瓧娈�
                     DataSet ds1 = new DataSet();
                     ds = oCn.RunProcReturn("select * from Gy_MouldFileMain where HBarCode='" + HBarCode + "'", "Gy_MouldFileMain");
@@ -668,7 +672,7 @@
                     ",HSupID,HSupTypeID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" +
                     ",HKeeperID,HDeptID,HInnerBillNo,HRedBlueFlag" +
                     ") " +
-                    " values('3802','3802'," + HInterID + ",'" + HBillNo + "','2022-01-02'" +
+                    " values('3802','3802'," + HInterID + ",'" + HBillNo + "','" + HDate + "'" +
                     ", '" + user + "',getdate()" +
                     ", " + dr1["HCorrespondentID"].ToString() + "," + dr1["HCorrespondentTypeID"].ToString() + "," + dr["HNowSupID"].ToString() + ",0,0,0,0" +
                     ", 0," + dr["HDeptID"].ToString() + ",' ',0" +
@@ -733,6 +737,7 @@
                     var HBarCode = item.HBarCode;
                     var HItemID = item.HItemID;
                     string HBillNo = "";
+                    string HDate = item.HMakeDate;
                     Int64 HInterID = 0;//鏄剧ず鐨勫瓧娈�
                     DataSet ds1 = new DataSet();
                     ds = oCn.RunProcReturn("select * from Gy_MouldFileMain where HBarCode='" + HBarCode + "'", "Gy_MouldFileMain");
@@ -748,7 +753,7 @@
                     ",HSupID,HSupTypeID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" +
                     ",HKeeperID,HDeptID,HInnerBillNo,HRedBlueFlag" +
                     ") " +
-                    " values('3803','3803'," + HInterID + ",'" + HBillNo + "','2022-01-02'" +
+                    " values('3803','3803'," + HInterID + ",'" + HBillNo + "','" + HDate + "'" +
                     ", '" + user + "',getdate()" +
                     ", " + dr["HNowSupID"].ToString() + "," + dr["HNowSupTypeID"].ToString() + "," + dr["HNowSupID"].ToString() + ",0,0,0,0" +
                     ", 0," + dr["HDeptID"].ToString() + ",' ',0" +

--
Gitblit v1.9.1