From a72d939b5cafd1d02b3cae75975f1959fd0f814a Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期三, 27 七月 2022 08:46:55 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API

---
 WebAPI/Controllers/BaseSet/Gy_MaterialController.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs
index e6a56cf..126b7e9 100644
--- a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs
@@ -1217,7 +1217,7 @@
                 DataSet ds = new DataSet();
                 ds = oCN.RunProcReturn("select * from Gy_MouldFileMain where HInterID=" + HInterID, "Gy_MouldFileMain");
                 DataRow dr = ds.Tables[0].Rows[0];
-                string Num = dr["HBillNo"].ToString();
+                string Num = dr["HBarCode"].ToString();
                 string Num1 = Num.Substring(0,(Num.Length)-5);
                 oCN.BeginTran();
                 for (int i = StarNum1; i <= EndNum1; i++)
@@ -1246,6 +1246,7 @@
                     if (ds1.Tables[0].Rows.Count == 0 || ds1 == null)
                     {
                         long HItemID = DBUtility.ClsPub.CreateBillID("3899", ref DBUtility.ClsPub.sExeReturnInfo);
+                        //string HBillNo = DBUtility.ClsPub.CreateBillCode("3899", ref DBUtility.ClsPub.sExeReturnInfo, true);
                         string sql = string.Format(@"Insert Into Gy_MouldFileMain   " +
                         "(HBillType,HBillSubType,HInterID,HBillNo,HDate" +
                         ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HBarCode" +

--
Gitblit v1.9.1