From a52bdc2aed17ba07d5ce0f1cc4adf64d5cd21ad2 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期六, 06 五月 2023 15:07:10 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/基础资料/基础资料/Gy_MaterTypeBillController.cs |    4 ++--
 WebAPI/Controllers/BaseSet/Gy_ICBomBillController.cs       |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/WebAPI/Controllers/BaseSet/Gy_ICBomBillController.cs b/WebAPI/Controllers/BaseSet/Gy_ICBomBillController.cs
index a70b248..8089cf5 100644
--- a/WebAPI/Controllers/BaseSet/Gy_ICBomBillController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_ICBomBillController.cs
@@ -35,6 +35,7 @@
                 oCN.RunProc(sql);
                 sql = $"delete Gy_ICBomBillSub where HinterID = {mainList[0].HInterID}";
                 oCN.RunProc(sql);
+                mainList[0].HBillNo =  DBUtility.ClsPub.CreateBillCode("3302", ref DBUtility.ClsPub.sExeReturnInfo,true);
                 oCN.RunProc("Insert Into Gy_ICBomBillMain   " +
                 "(HBillType,HInterID,HBillNo,HDate" +
                 ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HMaterTypeID,HStatus" +
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_MaterTypeBillController.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_MaterTypeBillController.cs"
index b290f2b..a40aca1 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_MaterTypeBillController.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_MaterTypeBillController.cs"
@@ -477,11 +477,11 @@
 
                 foreach (DataRow row in ds.Tables[0].Rows)
                 {
-                    var strLen = row["hnumber"].ToString().Split('.');
+                    var strLen = row["hitemid"].ToString().Split('.');
                     if (strLen.Length == 1)
                     {
                         TreeModel tree = new TreeModel();
-                        tree.id = row["hnumber"].ToString();
+                        tree.id = row["hitemid"].ToString();
                         tree.title = row["hname"].ToString();
                         treeModels[0].children.Add(tree);
                     }

--
Gitblit v1.9.1