From 95b599d249b07f05d9ee041aa65c4a1e5c791d1c Mon Sep 17 00:00:00 2001
From: lan <lan@DESKTOP-MG88OFJ>
Date: 星期四, 30 五月 2024 10:38:17 +0800
Subject: [PATCH] 采购报表数据回显

---
 WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs b/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
index ff159be..70a60b5 100644
--- a/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
+++ b/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
@@ -327,6 +327,17 @@
                     oBill.DetailColl.Add(oItemSub);
                 }
 
+                //杩涜 浼氳鏈熼棿 缁撹处 鐨勫垽鏂拰鎺у埗
+                string s = "";
+                int sYear = 0;
+                int sPeriod = 0;
+                DateTime HDate = DateTime.Now;
+                if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false)
+                {
+                    objJsonResult.Message = s;
+                    return objJsonResult;
+                }
+
                 //淇濆瓨
                 //淇濆瓨瀹屾瘯鍚庡鐞�
                 bool bResult;
@@ -339,7 +350,6 @@
                 }
                 else                                                                    //缂栬緫淇濆瓨
                 {
-                    string s = "";
                     if (BillOld.ShowBill(lsmain[0].HInterID, ref s) == false)
                     {
                         objJsonResult.code = "0";
@@ -531,7 +541,16 @@
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
-
+                //杩涜 浼氳鏈熼棿 缁撹处 鐨勫垽鏂拰鎺у埗
+                string s = "";
+                int sYear = 0;
+                int sPeriod = 0;
+                DateTime HDate = DateTime.Now;
+                if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false)
+                {
+                    objJsonResult.Message = s;
+                    return objJsonResult;
+                }
 
                 //杩涜闇�瑕佽繘琛岀殑瀹℃牳/鍙嶅鏍告搷浣�
                 if (IsAudit == 0) //瀹℃牳鎻愪氦
@@ -567,7 +586,6 @@
                         return objJsonResult;
                     }
                     //==================================================================================      
-
 
                     //瀹℃牳鎻愪氦
                     oCN.BeginTran();

--
Gitblit v1.9.1