From f2fec16d773b8a933d9fc7fdd212f6080fd225e5 Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期二, 07 四月 2026 15:42:02 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/CGGL/Kf_POStockInBillController.cs |  182 ---------------------------------------------
 1 files changed, 0 insertions(+), 182 deletions(-)

diff --git a/WebAPI/Controllers/CGGL/Kf_POStockInBillController.cs b/WebAPI/Controllers/CGGL/Kf_POStockInBillController.cs
index 3e0b57d..57900c6 100644
--- a/WebAPI/Controllers/CGGL/Kf_POStockInBillController.cs
+++ b/WebAPI/Controllers/CGGL/Kf_POStockInBillController.cs
@@ -148,188 +148,6 @@
         #endregion
 
 
-        #region 閲囪喘鍏ュ簱淇濆瓨
-        /// <summary>
-        /// 淇濆瓨閿�鍞嚭搴撳崟
-        /// </summary>
-        /// <param name="msg"></param>
-        /// <returns></returns>
-        [Route("Kf_POStockInBill/SaveSellOutBillList")]
-        [HttpPost]
-        public object SaveSellOutBillList([FromBody] JObject msg)
-        {
-            var _value = msg["msg"].ToString();
-            string msg1 = _value.ToString();
-            string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
-            string msg2 = sArray[0].ToString();
-            string msg3 = sArray[1].ToString();
-            string user = sArray[2].ToString();
-            string OperationType = sArray[3].ToString();
-
-            ListModels oListModels = new ListModels();
-            try
-            {
-                //鍒ゆ柇鏉冮檺
-                //if (!DBUtility.ClsPub.Security_Log("Kf_SellOutBill_Edit", 1, false, user))
-                //{
-                //    objJsonResult.code = "0";
-                //    objJsonResult.count = 0;
-                //    objJsonResult.Message = "鏃犱繚瀛樻潈闄�";
-                //    objJsonResult.data = null;
-                //    return objJsonResult;
-                //}
-                DAL.ClsKf_POStockInBill1 oBill = new DAL.ClsKf_POStockInBill1();
-                List<Model.ClsKf_SellOutBillMain> lsmain = new List<Model.ClsKf_SellOutBillMain>();
-                msg2 = msg2.Replace("\\", "");
-                msg2 = msg2.Replace("\n", "");  //\n
-                lsmain = oListModels.getSellOutBillMainByJson(msg2);
-                foreach (Model.ClsKf_SellOutBillMain oItem in lsmain)
-                {
-                    oItem.HMaker = user;
-                    oItem.HUpDater = user;
-
-                    if (DBUtility.ClsPub.isStrNull(oItem.HDate) == "")
-                    {
-                        objJsonResult.code = "0";
-                        objJsonResult.count = 0;
-                        objJsonResult.Message = "淇濆瓨澶辫触锛佹病鏈夊崟鎹棩鏈燂紝鏃犳硶淇濆瓨锛�";
-                        objJsonResult.data = 1;
-                        return objJsonResult;
-                    }
-                    oBill.omodel = oItem;
-                }
-                //琛ㄤ綋鏁版嵁
-                //鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆�
-                msg3 = msg3.Substring(1, msg3.Length - 2);
-                msg3 = msg3.Replace("\\", "");
-                msg3 = msg3.Replace("\n", "");  //\n
-                List<Model.ClsKf_SellOutBillSub> ls = new List<Model.ClsKf_SellOutBillSub>();
-                ls = oListModels.getSellOutBillSubByJson(msg3);
-                int i = 0;
-                foreach (Model.ClsKf_SellOutBillSub oItemSub in ls)
-                {
-                    i++;
-                    oItemSub.HEntryID = i;
-                    oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now);
-                    oItemSub.HCloseType = false;
-                    oItemSub.HCloseMan = "";
-                    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;
-                if (Convert.ToInt32(OperationType) == 1)                                //鏂板淇濆瓨
-                {
-                    bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
-                }
-                else if (Convert.ToInt32(OperationType) == 4)                          //涓嬫帹淇濆瓨
-                {
-                    bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
-                }
-                else                                                                    //缂栬緫淇濆瓨
-                {
-                    if (BillOld.ShowBill(lsmain[0].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;
-                    }
-                    if (BillOld.omodel.HBillStatus > 1)
-                    {
-                        objJsonResult.code = "0";
-                        objJsonResult.count = 0;
-                        objJsonResult.Message = "姝ゅ崟鎹浜庝笉鍙紪杈戠姸鎬侊紝涓嶅厑璁镐慨鏀癸紒";
-                        objJsonResult.data = 1;
-                        return objJsonResult;
-                    }
-                    if (!DBUtility.Xt_BaseBillFun.Fun_AllowEditBill(BillOld, ref s))
-                    {
-                        objJsonResult.code = "0";
-                        objJsonResult.count = 0;
-                        objJsonResult.Message = s + "锛屼笉鍏佽淇敼";
-                        objJsonResult.data = 1;
-                        return objJsonResult;
-                    }
-
-                    bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
-                }
-
-                //鑷姩瀹℃牳璁剧疆
-                if (Convert.ToInt32(OperationType) == 1 || Convert.ToInt32(OperationType) == 4)
-                {
-                    objJsonResult.HInterID = oBill.omodel.HInterID.ToString(); //杩斿洖涓籌D
-                    //绯荤粺鍙傛暟  鑷姩瀹℃牳
-                    string sReturn = "";
-                    if (oSystemParameter.ShowBill(ref sReturn) == true)
-                    {
-                        if (oSystemParameter.omodel.Kf_SellOutBill_AutoCheck == "Y") //绯荤粺鍙傛暟  鑷姩瀹℃牳 
-                        {
-                            objJsonResult.Verify = "Y";
-                        }
-                        else
-                        {
-                            objJsonResult.Verify = "N";
-                        }
-                    }
-                }
-                else
-                {
-                    objJsonResult.HInterID = oBill.omodel.HInterID.ToString(); //杩斿洖涓籌D
-                    objJsonResult.Verify = "N";
-                }
-
-                if (bResult)
-                {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 1;
-                    objJsonResult.Message = "淇濆瓨鎴愬姛锛�";
-                    objJsonResult.data = 1;
-                    return objJsonResult;
-                }
-                else
-                {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = "淇濆瓨澶辫触锛�" + DBUtility.ClsPub.sExeReturnInfo;
-                    objJsonResult.data = 1;
-                    return objJsonResult;
-                }
-            }
-            catch (Exception e)
-            {
-                objJsonResult.code = "0";
-                objJsonResult.count = 0;
-                objJsonResult.Message = "淇濆瓨澶辫触锛�" + e.ToString();
-                objJsonResult.data = 1;
-                return objJsonResult;
-            }
-        }
-        #endregion
-
-
         #region 閲囪喘鍏ュ簱鍗� 淇濆瓨/缂栬緫鍔熻兘
         [Route("Kf_POStockInBill/POStockInBillEdit")]
         [HttpPost]

--
Gitblit v1.9.1