From 1ee93c7186ca809c8c5c2ac0f02dde4b1762969f Mon Sep 17 00:00:00 2001
From: cwjbxqmz <1134865194@qq.com>
Date: 星期二, 14 十一月 2023 11:05:13 +0800
Subject: [PATCH] 生产订单增加订单包装备注字段,物料表增加单件最大上限字段,并完善界面。、 生产订单列表 增加 包装备注 字段,选择 某个生产订单, 点击按钮,弹出一个 小框, 输入 订单包装备注 信息,保存 数据到 生产订单 子表里,UPDATE这个字段;

---
 WebAPI/Controllers/XSGL/YS_ReceiveBillController.cs |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/XSGL/YS_ReceiveBillController.cs b/WebAPI/Controllers/XSGL/YS_ReceiveBillController.cs
index 77bab9f..3cba858 100644
--- a/WebAPI/Controllers/XSGL/YS_ReceiveBillController.cs
+++ b/WebAPI/Controllers/XSGL/YS_ReceiveBillController.cs
@@ -312,6 +312,8 @@
         {
             try
             {
+                string s = "";
+
                 //鏌ョ湅鏉冮檺
                 if (!DBUtility.ClsPub.Security_Log("YS_ReceiveBill_Drop", 1, false, user))
                 {
@@ -328,6 +330,24 @@
                     objJsonResult.count = 0;
                     objJsonResult.Message = "HInterID涓嶈兘涓虹┖锛�";
                     objJsonResult.data = null;
+                    return objJsonResult;
+                }
+
+                if (BillOld.ShowBill(long.Parse(HInterID), ref s) == false)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "姝ゅ崟鎹湁璇紒";
+                    objJsonResult.data = 1;
+                    return objJsonResult;
+                }
+                //鍒ゆ柇鏄惁鍙紪杈�
+                if (BillOld.omodel.HChecker != "" && BillOld.omodel.HChecker != null)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "姝ゅ崟鎹凡缁忚瀹℃牳锛屼笉鍏佽鍒犻櫎锛�";
+                    objJsonResult.data = 1;
                     return objJsonResult;
                 }
 
@@ -782,7 +802,7 @@
         }
         #endregion
 
-        #region 鏀舵鍗� 鏍规嵁瀹㈡埛鑾峰彇甯佸埆銆佹眹鐜囥�佺粨绠楁柟寮忋�侀摱琛屻�侀摱琛岃处鎴�
+        #region 鏀舵鍗� 鏍规嵁瀹㈡埛鑾峰彇甯佸埆銆佹眹鐜囥�佺粨绠楁柟寮忋�侀摱琛屻�侀摱琛岃处鎴枫�佸鎴蜂俊鐢ㄩ搴�
         [Route("YS_ReceiveBill/getCustomerByCusID")]
         [HttpGet]
         public object getCustomerByCusID(long HCusID)
@@ -802,10 +822,12 @@
                             ,ISNULL(b.HItemID,0) HBankID
 							,b.HName HBankName
                             ,c.HBankAccount
+                            ,ISNULL(cre.HCreditRating_Now,0) HCreditRating_Now
                             from Gy_Customer as c 
                             left join Gy_SettleStyle as s on c.HSSID = s.HItemID
                             left join Gy_Currency as cur on c.HCurID = cur.HItemID
 							left join Gy_Bank as b on c.HBank = b.HName
+                            left join Gy_Customer_Credit as cre on c.HItemID = cre.HCusID
                             where c.HItemID = " + HCusID;
                 ds = oCN.RunProcReturn(sql, "Gy_Customer");
 

--
Gitblit v1.9.1