From c7cfb07c1d5941a2023431c4b41519dcb2b0f872 Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期四, 01 九月 2022 08:49:54 +0800
Subject: [PATCH] 新增了出站汇报单显示流转卡信息  批量汇报功能

---
 PayM/bin/x86/Debug/SQLHelper.dll                             |    0 
 PayM/obj/x86/Debug/PayM.csproj.GenerateResource.cache        |    0 
 WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user  |   74 +++++-----
 PayM/bin/x86/Debug/DAL.dll                                   |    0 
 PayM/obj/x86/Debug/PayM.csproj.ResolveComReference.cache     |    0 
 PayM/bin/x86/Debug/DBUtility.pdb                             |    0 
 PayM/bin/x86/Debug/Pub_Control.pdb                           |    0 
 PayM/obj/x86/Debug/PayM.csproj.CoreCompileInputs.cache       |    2 
 WorkM/流转卡管理/MES_StationOutBill.cs                            |   55 +++++++
 PayM/obj/x86/Debug/PayM.csprojAssemblyReference.cache        |    0 
 PayM/bin/x86/Debug/Pub_Class.pdb                             |    0 
 PayM/obj/x86/Debug/PayM.pdb                                  |    0 
 PayM/bin/x86/Debug/Pub_Control.dll                           |    0 
 WebAPI/Web.config                                            |    6 
 WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs |   37 +++++
 PayM/obj/x86/Debug/PayM.dll                                  |    0 
 PayM/bin/x86/Debug/Model.dll                                 |    0 
 PayM/bin/x86/Debug/Pub_Class.dll                             |    0 
 PayM/bin/x86/Debug/SQLHelper.pdb                             |    0 
 PayM/bin/x86/Debug/Interop.gregn6Lib.dll                     |    0 
 PayM/bin/x86/Debug/Model.pdb                                 |    0 
 PayM/bin/x86/Debug/BLL.dll                                   |    0 
 WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs       |  223 +++++++++++++++++++++++++++++++
 PayM/bin/x86/Debug/BLL.pdb                                   |    0 
 PayM/bin/x86/Debug/DAL.pdb                                   |    0 
 WebAPI/ListModels.cs                                         |   12 +
 PayM/bin/x86/Debug/PayM.dll                                  |    0 
 PayM/bin/x86/Debug/PayM.pdb                                  |    0 
 BLL/公用模块/FrmLogin.cs                                         |    1 
 PayM/bin/x86/Debug/DBUtility.dll                             |    0 
 30 files changed, 363 insertions(+), 47 deletions(-)

diff --git "a/BLL/\345\205\254\347\224\250\346\250\241\345\235\227/FrmLogin.cs" "b/BLL/\345\205\254\347\224\250\346\250\241\345\235\227/FrmLogin.cs"
index 03207e5..c435ebc 100644
--- "a/BLL/\345\205\254\347\224\250\346\250\241\345\235\227/FrmLogin.cs"
+++ "b/BLL/\345\205\254\347\224\250\346\250\241\345\235\227/FrmLogin.cs"
@@ -100,6 +100,7 @@
 
         private void btnOK_Click(object sender, EventArgs e)  //Lock
         {
+
             if (AllowLogin() != true)
                 return;
             DataSet ds = null;
diff --git a/PayM/bin/x86/Debug/BLL.dll b/PayM/bin/x86/Debug/BLL.dll
index 64a76e8..c8902b4 100644
--- a/PayM/bin/x86/Debug/BLL.dll
+++ b/PayM/bin/x86/Debug/BLL.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/BLL.pdb b/PayM/bin/x86/Debug/BLL.pdb
index 922db76..18936cf 100644
--- a/PayM/bin/x86/Debug/BLL.pdb
+++ b/PayM/bin/x86/Debug/BLL.pdb
Binary files differ
diff --git a/PayM/bin/x86/Debug/DAL.dll b/PayM/bin/x86/Debug/DAL.dll
index 2d17cd9..f79b2e7 100644
--- a/PayM/bin/x86/Debug/DAL.dll
+++ b/PayM/bin/x86/Debug/DAL.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/DAL.pdb b/PayM/bin/x86/Debug/DAL.pdb
index b5a7cd8..d72d3d4 100644
--- a/PayM/bin/x86/Debug/DAL.pdb
+++ b/PayM/bin/x86/Debug/DAL.pdb
Binary files differ
diff --git a/PayM/bin/x86/Debug/DBUtility.dll b/PayM/bin/x86/Debug/DBUtility.dll
index ff6de1f..415d43e 100644
--- a/PayM/bin/x86/Debug/DBUtility.dll
+++ b/PayM/bin/x86/Debug/DBUtility.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/DBUtility.pdb b/PayM/bin/x86/Debug/DBUtility.pdb
index 920bd36..d607c32 100644
--- a/PayM/bin/x86/Debug/DBUtility.pdb
+++ b/PayM/bin/x86/Debug/DBUtility.pdb
Binary files differ
diff --git a/PayM/bin/x86/Debug/Interop.gregn6Lib.dll b/PayM/bin/x86/Debug/Interop.gregn6Lib.dll
index c68526f..5dda2ef 100644
--- a/PayM/bin/x86/Debug/Interop.gregn6Lib.dll
+++ b/PayM/bin/x86/Debug/Interop.gregn6Lib.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/Model.dll b/PayM/bin/x86/Debug/Model.dll
index c54333a..6a07c31 100644
--- a/PayM/bin/x86/Debug/Model.dll
+++ b/PayM/bin/x86/Debug/Model.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/Model.pdb b/PayM/bin/x86/Debug/Model.pdb
index 8dd2d26..5588396 100644
--- a/PayM/bin/x86/Debug/Model.pdb
+++ b/PayM/bin/x86/Debug/Model.pdb
Binary files differ
diff --git a/PayM/bin/x86/Debug/PayM.dll b/PayM/bin/x86/Debug/PayM.dll
index 7a5fcf7..5702770 100644
--- a/PayM/bin/x86/Debug/PayM.dll
+++ b/PayM/bin/x86/Debug/PayM.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/PayM.pdb b/PayM/bin/x86/Debug/PayM.pdb
index 2222b51..9848466 100644
--- a/PayM/bin/x86/Debug/PayM.pdb
+++ b/PayM/bin/x86/Debug/PayM.pdb
Binary files differ
diff --git a/PayM/bin/x86/Debug/Pub_Class.dll b/PayM/bin/x86/Debug/Pub_Class.dll
index a3a5497..5b88c64 100644
--- a/PayM/bin/x86/Debug/Pub_Class.dll
+++ b/PayM/bin/x86/Debug/Pub_Class.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/Pub_Class.pdb b/PayM/bin/x86/Debug/Pub_Class.pdb
index bdc1cef..7c06f92 100644
--- a/PayM/bin/x86/Debug/Pub_Class.pdb
+++ b/PayM/bin/x86/Debug/Pub_Class.pdb
Binary files differ
diff --git a/PayM/bin/x86/Debug/Pub_Control.dll b/PayM/bin/x86/Debug/Pub_Control.dll
index 8833e58..5632691 100644
--- a/PayM/bin/x86/Debug/Pub_Control.dll
+++ b/PayM/bin/x86/Debug/Pub_Control.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/Pub_Control.pdb b/PayM/bin/x86/Debug/Pub_Control.pdb
index d706f35..4a3fd70 100644
--- a/PayM/bin/x86/Debug/Pub_Control.pdb
+++ b/PayM/bin/x86/Debug/Pub_Control.pdb
Binary files differ
diff --git a/PayM/bin/x86/Debug/SQLHelper.dll b/PayM/bin/x86/Debug/SQLHelper.dll
index 431638e..5906c58 100644
--- a/PayM/bin/x86/Debug/SQLHelper.dll
+++ b/PayM/bin/x86/Debug/SQLHelper.dll
Binary files differ
diff --git a/PayM/bin/x86/Debug/SQLHelper.pdb b/PayM/bin/x86/Debug/SQLHelper.pdb
index 22ab86f..1094be7 100644
--- a/PayM/bin/x86/Debug/SQLHelper.pdb
+++ b/PayM/bin/x86/Debug/SQLHelper.pdb
Binary files differ
diff --git a/PayM/obj/x86/Debug/PayM.csproj.CoreCompileInputs.cache b/PayM/obj/x86/Debug/PayM.csproj.CoreCompileInputs.cache
index eb2086c..ead15dd 100644
--- a/PayM/obj/x86/Debug/PayM.csproj.CoreCompileInputs.cache
+++ b/PayM/obj/x86/Debug/PayM.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-08bc7f9ad52dac46a486d601aad75ab55bfbf42b
+b14f4fcc24537f5a4b1d1021595a00930f37f5f5
diff --git a/PayM/obj/x86/Debug/PayM.csproj.GenerateResource.cache b/PayM/obj/x86/Debug/PayM.csproj.GenerateResource.cache
index b13d27f..911a3e6 100644
--- a/PayM/obj/x86/Debug/PayM.csproj.GenerateResource.cache
+++ b/PayM/obj/x86/Debug/PayM.csproj.GenerateResource.cache
Binary files differ
diff --git a/PayM/obj/x86/Debug/PayM.csproj.ResolveComReference.cache b/PayM/obj/x86/Debug/PayM.csproj.ResolveComReference.cache
index f604818..2fcf564 100644
--- a/PayM/obj/x86/Debug/PayM.csproj.ResolveComReference.cache
+++ b/PayM/obj/x86/Debug/PayM.csproj.ResolveComReference.cache
Binary files differ
diff --git a/PayM/obj/x86/Debug/PayM.csprojAssemblyReference.cache b/PayM/obj/x86/Debug/PayM.csprojAssemblyReference.cache
index 0bc5bb9..f80c4d5 100644
--- a/PayM/obj/x86/Debug/PayM.csprojAssemblyReference.cache
+++ b/PayM/obj/x86/Debug/PayM.csprojAssemblyReference.cache
Binary files differ
diff --git a/PayM/obj/x86/Debug/PayM.dll b/PayM/obj/x86/Debug/PayM.dll
index 7a5fcf7..5702770 100644
--- a/PayM/obj/x86/Debug/PayM.dll
+++ b/PayM/obj/x86/Debug/PayM.dll
Binary files differ
diff --git a/PayM/obj/x86/Debug/PayM.pdb b/PayM/obj/x86/Debug/PayM.pdb
index 2222b51..9848466 100644
--- a/PayM/obj/x86/Debug/PayM.pdb
+++ b/PayM/obj/x86/Debug/PayM.pdb
Binary files differ
diff --git a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs
index 93d2b2e..9e4bb2c 100644
--- a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs
@@ -129,6 +129,43 @@
         }
         #endregion
 
+
+        #region 鍑虹珯姹囨姤鍗曟樉绀鸿〃浣撴槑缁�
+        [Route("Cj_StationEntrustInBill/DisBillEntryList")]
+        [HttpGet]
+        public object DisBillEntryList(Int64 HProcExchHinteID)
+        {
+            try
+            {
+
+                //寰楀埌淇℃伅
+                ds = oCN.RunProcReturn("exec h_p_Sc_ProcExchBilltransRelationQty " + HProcExchHinteID + "", "h_p_Sc_ProcExchBilltransRelationQty");
+                //鍐欏叆淇℃伅
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏈煡璇㈠埌鍑虹珯鍗曟槑缁嗕俊鎭紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                objJsonResult.code = "0";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "Sucess锛�";
+                objJsonResult.data = ds.Tables[0];
+                return objJsonResult;
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "Exception锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+        #endregion
+
         #region 鏂板鍗曟嵁-淇濆瓨鎸夐挳
         [Route("Cj_StationEntrustInBill/AddBill")]
         [HttpPost]
diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs
index dd4cfe1..40e2f6f 100644
--- a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs
@@ -400,6 +400,229 @@
             }
         }
 
+
+
+
+
+
+
+        /// <summary>
+        /// 鏂板鍗曟嵁-鎵归噺鍑虹珯鍗曚繚瀛樻寜閽�
+        ///鍙傛暟锛歴tring sql銆�
+        ///杩斿洖鍊硷細object銆�
+        /// </summary>
+        [Route("Cj_StationOutBill/AddBill_Mul")]
+        [HttpPost]
+        public object AddBill_Mul([FromBody] JObject oMain)
+        {
+           
+
+            string UserName = "";
+            
+
+            try
+            {
+                var _value = oMain["oMain"].ToString();
+                string msg1 = _value.ToString();
+
+                string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
+                string msg2 = sArray[0].ToString();
+                string msg3 = sArray[1].ToString();
+                DAL.ClsSc_StationOutBill oBill = new DAL.ClsSc_StationOutBill();
+                List<Model.ClsSc_StationOutBillMain> list = new List<Model.ClsSc_StationOutBillMain>();
+                
+                msg1 = msg1.Replace("\\", "");
+                msg1 = msg1.Replace("\n", "");  //\n
+                ListModels oListModels = new ListModels();
+                list = oListModels.getObjectByJson_Sc_StationOutBillMain(msg2);
+                int i = 0;
+                foreach (Model.ClsSc_StationOutBillMain oItemSub in list)
+                {
+
+                    i++;
+                    long HMainInterID = 0;
+                    HMainInterID = list[0].HInterID;
+                    string eventType = "";
+                    string BillType = "3791";
+                    string HBillSubType = "3791";
+                    long HInterID = list[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D
+                    string HBillNo = msg3 + "- " + i;//閫掑叆type寰楀埌鐨勫崟鎹彿
+                    int HBillStatus = 0;
+                    string HMaker = list[0].HMaker;//鍒跺崟浜�
+                    string HMouldNum = list[0].HMouldNum;//妯$┐鍙�
+                    int HYear = 2021;
+                    double HPeriod = 1;
+                    string HRemark = list[0].HRemark;//澶囨敞
+                    string HSourceName = list[0].HSourceName;//鐢熶骇璧勬簮鍚嶇О
+                    double HPieceQty = list[0].HPieceQty;//杩涚珯PCS鏁�
+                    double HWasterQty = list[0].HWasterQty;//鎶ュ簾鏁伴噺
+                    double HPlanPieceQty = list[0].HPlanPieceQty;//杩涚珯PNL鏁�
+                    double HBadPNL = list[0].HBadPNL;//鎶ュ簾PNL鏁�
+                    long HICMOInterID = list[0].HICMOInterID;//浠诲姟鍗旾D
+                    string HICMOBillNo = list[0].HICMOBillNo;//浠诲姟鍗�
+                    int HProcPlanInterID = 0;
+                    int HProcPlanEntryID = 0;
+                    string HProcPlanBillNo = "";
+                    long HProcExchInterID = list[0].HProcExchInterID;
+                    long HProcExchEntryID = list[0].HProcExchEntryID;
+                    string HProcExchBillNo = list[0].HProcExchBillNo;//娴佽浆鍗�
+                    long HMaterID = list[0].HMaterID;//浜у搧ID
+                    long HProcID = list[0].HProcID;//褰撳墠宸ュ簭ID
+                    double HICMOQty = list[0].HICMOQty;//浠诲姟鍗曟暟閲�
+                    double HPlanQty = list[0].HPlanQty;//绉讳氦PNL鏁�
+                    DateTime HStationOutTime = list[0].HStationOutTime;//姹囨姤鏃堕棿
+                    long HSourceID = list[0].HSourceID;//鐢熶骇璧勬簮ID
+                    long HPayProcID = list[0].HPayProcID;//鏍哥畻宸ュ簭ID
+                    long HGroupID = list[0].HGroupID;//鐝粍ID
+                    long HDeptID = 0;
+                    long HEmpID = list[0].HEmpID;//鎿嶄綔鍛業D
+                    string HBarCode = list[0].HBarCode;//鏉″舰鐮�
+                    string HAddr = "";
+                    string HBarCodeMaker = "";
+                    long HSourceID2 = list[0].HSourceID2;//鐢熶骇璧勬簮2ID
+                    long HSourceID3 = list[0].HSourceID3;//鐢熶骇璧勬簮3ID
+                    long HSourceID4 = list[0].HSourceID4;//鐢熶骇璧勬簮4ID
+                    long HSourceID5 = list[0].HSourceID5;//鐢熶骇璧勬簮5ID
+                    long HSupID = 0;
+                    double HQty = list[0].HQty;//鍚堟牸鏁伴噺
+                    double HPrice = 0;
+                    double HMoney = 0;
+                    double HBadCount = list[0].HBadCount;//涓嶈壇鏁伴噺
+                    long HCenterID = list[0].HCenterID;//宸ヤ綔涓績ID
+                    long HProcNo = list[0].HProcNo;//娴佹按鍙�
+                    string HOrderProcNO = list[0].HOrderProcNO;//璁㈠崟璺熻釜鍙�
+                    string HSourceNameList = list[0].HSourceNameList;//璁惧娓呭崟
+                    long HMainSourceInterID = list[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D
+                    string HMainSourceBillNo = list[0].HBillNo;//閫掑叆type寰楀埌鐨勫崟鎹彿
+                    string HMainSourceBillType = "3790";
+                    bool HLastSubProc = list[0].HLastSubProc;//杞笅宸ュ簭
+                    long HEmpID2 = list[0].HEmpID2;//鎿嶄綔鍛�2ID
+                    long HEmpID3 = list[0].HEmpID3;//鎿嶄綔鍛�3ID
+                    long HEmpID4 = list[0].HEmpID4;//鎿嶄綔鍛�4ID
+                    long HEmpID5 = list[0].HEmpID5;//鎿嶄綔鍛�5ID
+                    double HDSQty = list[0].HDSQty;//鎶樺集鍒�鏁�
+                    double HChongQty = list[0].HChongQty;//NCT鍐叉鏁�
+                    double HPriceRate = list[0].HPriceRate;//绯绘暟
+                    double HWorkTimes = list[0].HWorkTimes;//宸ユ椂
+                    long HQCCheckID = list[0].HQCCheckID;//妫�楠屽憳ID
+
+                    //淇濆瓨
+                    //淇濆瓨瀹屾瘯鍚庡鐞�
+                    bool bResult;
+                    // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
+                    bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
+                    if (bResult)
+                    {
+                        objJsonResult.code = "0";
+                        objJsonResult.count = 1;
+                        objJsonResult.Message = "淇濆瓨鎴愬姛锛�";
+                        //WebAPIController.Add_Log("閫佽揣鍗曚笅鎺�", UserName, "鐢熸垚閫佽揣鍗�");
+                        objJsonResult.data = 1;
+                        return objJsonResult;
+                    }
+                    else
+                    {
+                        objJsonResult.code = "0";
+                        objJsonResult.count = 0;
+                        objJsonResult.Message = "淇濆瓨澶辫触锛�" + DBUtility.ClsPub.sExeReturnInfo;
+                        objJsonResult.data = 1;
+                        return objJsonResult;
+                    }
+
+                }
+                return objJsonResult;
+
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "淇濆瓨澶辫触锛�" + e.ToString();
+                objJsonResult.data = 1;
+                return objJsonResult;
+            }
+        }
+
+        //閫掑叆鐗╂枡淇℃伅 杩斿洖鏈畬鍏ㄦ眹鎶ョ殑娴佽浆鍗�
+        [Route("LEMS/Sc_StationOutBill_Mul_RYQ")]
+        [HttpGet]
+        public object Sc_StationOutBill_Mul_RYQ(String HMaterName, Int64 HOrgID)
+        {
+            try
+            {
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                DataSet ds = oCN.RunProcReturn("exec h_p_CJGXPLHB_Query '" + HMaterName + "'," + HOrgID + "", "h_p_CJGXPLHB_Query");
+               
+                if (ds == null || ds.Tables[0].Rows.Count <= 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                    //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning);
+                }
+                else
+                {
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+        //閫変腑缃戞牸閲岄潰鐨勬煇涓�琛屾祦杞崱  杩斿洖璇ユ祦杞崱鐨勮繘鍑虹珯鎯呭喌
+        [Route("LEMS/Mul_RYQ_DisPlayBillList")]
+        [HttpGet]
+        public object Mul_RYQ_DisPlayBillList(String HBillNo,String HProcName)
+        {
+            try
+            {
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                DataSet ds = oCN.RunProcReturn("exec h_P_Mul_RYQ_DisPlayBillList '" + HBillNo + "','" + HProcName + "'", "h_P_Mul_RYQ_DisPlayBillList");
+
+                if (ds == null || ds.Tables[0].Rows.Count <= 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                    //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning);
+                }
+                else
+                {
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+
+
         private bool AllowbillNo(string HBillNo)
         {
             ds = oCN.RunProcReturn("select HBillNo from Sc_StationOutBillMain where  HBillNo = '" + HBillNo + "'", "Sc_StationOutBillMain");
diff --git a/WebAPI/ListModels.cs b/WebAPI/ListModels.cs
index cbb9302..ac4ee08 100644
--- a/WebAPI/ListModels.cs
+++ b/WebAPI/ListModels.cs
@@ -570,6 +570,18 @@
         }
 
         /// <summary>
+        /// 澶勭悊鏂板鍑虹珯姹囨姤鍗曚富琛ㄧ殑json
+        /// </summary>
+        /// <param name="jsonString"></param>
+        /// <returns></returns>
+        public List<Model.ClsSc_StationOutBillMain> getObjectByJson_Sc_StationOutBillMain(string jsonString)
+        {
+            //jsonString = "[" + jsonString.ToString() + "]";
+            List<Model.ClsSc_StationOutBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_StationOutBillMain>>(jsonString);
+            return list;
+        }
+
+        /// <summary>
         /// 澶勭悊鏂板妯″叿淇濆吇璁″垝鍗曞瓙琛ㄧ殑json
         /// </summary>
         /// <param name="jsonString"></param>
diff --git a/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user b/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user
index f12989a..a18c0f0 100644
--- a/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user
+++ b/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user
@@ -18,28 +18,28 @@
       <publishTime>02/22/2013 16:43:40</publishTime>
     </File>
     <File Include="bin/BLL.dll">
-      <publishTime>08/08/2022 14:58:19</publishTime>
+      <publishTime>08/31/2022 22:29:38</publishTime>
     </File>
     <File Include="bin/BLL.pdb">
-      <publishTime>08/08/2022 14:58:19</publishTime>
+      <publishTime>08/31/2022 22:29:38</publishTime>
     </File>
     <File Include="bin/BouncyCastle.Crypto.dll">
       <publishTime>12/18/2020 05:32:28</publishTime>
     </File>
     <File Include="bin/DAL.dll">
-      <publishTime>08/08/2022 14:58:18</publishTime>
+      <publishTime>08/31/2022 22:29:36</publishTime>
     </File>
     <File Include="bin/DAL.pdb">
-      <publishTime>08/08/2022 14:58:18</publishTime>
+      <publishTime>08/31/2022 22:29:36</publishTime>
     </File>
     <File Include="bin/Dapper.dll">
       <publishTime>07/22/2016 22:52:40</publishTime>
     </File>
     <File Include="bin/DBUtility.dll">
-      <publishTime>08/08/2022 14:58:16</publishTime>
+      <publishTime>08/31/2022 22:29:35</publishTime>
     </File>
     <File Include="bin/DBUtility.pdb">
-      <publishTime>08/08/2022 14:58:16</publishTime>
+      <publishTime>08/31/2022 22:29:35</publishTime>
     </File>
     <File Include="bin/Grpc.Core.Api.dll">
       <publishTime>03/22/2022 13:17:26</publishTime>
@@ -93,10 +93,10 @@
       <publishTime>07/25/2012 19:48:56</publishTime>
     </File>
     <File Include="bin/Model.dll">
-      <publishTime>08/08/2022 14:58:17</publishTime>
+      <publishTime>08/31/2022 22:29:35</publishTime>
     </File>
     <File Include="bin/Model.pdb">
-      <publishTime>08/08/2022 14:58:17</publishTime>
+      <publishTime>08/31/2022 22:29:35</publishTime>
     </File>
     <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs">
       <publishTime>03/15/2022 10:06:42</publishTime>
@@ -129,22 +129,22 @@
       <publishTime>10/23/2021 17:07:54</publishTime>
     </File>
     <File Include="bin/Pub_Class.dll">
-      <publishTime>08/08/2022 14:58:15</publishTime>
+      <publishTime>08/31/2022 22:29:34</publishTime>
     </File>
     <File Include="bin/Pub_Class.pdb">
-      <publishTime>08/08/2022 14:58:15</publishTime>
+      <publishTime>08/31/2022 22:29:34</publishTime>
     </File>
     <File Include="bin/Pub_Control.dll">
-      <publishTime>08/08/2022 14:58:15</publishTime>
+      <publishTime>08/31/2022 22:29:34</publishTime>
     </File>
     <File Include="bin/Pub_Control.pdb">
-      <publishTime>08/08/2022 14:58:15</publishTime>
+      <publishTime>08/31/2022 22:29:34</publishTime>
     </File>
     <File Include="bin/SQLHelper.dll">
-      <publishTime>08/08/2022 14:58:15</publishTime>
+      <publishTime>08/31/2022 22:29:34</publishTime>
     </File>
     <File Include="bin/SQLHelper.pdb">
-      <publishTime>08/08/2022 14:58:15</publishTime>
+      <publishTime>08/31/2022 22:29:34</publishTime>
     </File>
     <File Include="bin/stdole.dll">
       <publishTime>05/09/2021 13:35:37</publishTime>
@@ -255,13 +255,13 @@
       <publishTime>11/24/2014 19:18:48</publishTime>
     </File>
     <File Include="bin/WebAPI.dll">
-      <publishTime>08/08/2022 14:58:22</publishTime>
+      <publishTime>08/31/2022 22:29:40</publishTime>
     </File>
     <File Include="bin/WebAPI.dll.config">
       <publishTime>12/15/2021 17:59:43</publishTime>
     </File>
     <File Include="bin/WebAPI.pdb">
-      <publishTime>08/08/2022 14:58:22</publishTime>
+      <publishTime>08/31/2022 22:29:40</publishTime>
     </File>
     <File Include="bin/WebGrease.dll">
       <publishTime>07/18/2013 01:03:52</publishTime>
@@ -273,7 +273,7 @@
       <publishTime>11/29/2018 21:26:30</publishTime>
     </File>
     <File Include="Config/kdapi.config">
-      <publishTime>07/27/2022 08:46:55</publishTime>
+      <publishTime>08/16/2022 22:31:46</publishTime>
     </File>
     <File Include="Content/bootstrap.css">
       <publishTime>03/15/2022 10:06:42</publishTime>
@@ -390,61 +390,61 @@
       <publishTime>03/15/2022 10:06:42</publishTime>
     </File>
     <File Include="Web References/WebS/ClsCLD_Customer_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsCLD_Department_Model.datasource">
-      <publishTime>06/12/2022 16:45:50</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsCLD_Employee_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsCLD_StockPlace_Model.datasource">
-      <publishTime>06/12/2022 16:45:50</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsCLD_Supplier_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsCLD_Warehouse_Model.datasource">
-      <publishTime>06/12/2022 16:45:50</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_BadReason_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model_View.datasource">
-      <publishTime>06/12/2022 16:45:52</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Customer_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Department_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Employee_Model.datasource">
-      <publishTime>06/12/2022 16:45:52</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Group_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Item30JiTai_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Source_Model.datasource">
-      <publishTime>06/12/2022 16:45:52</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_StockPlace_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Supplier_Model.datasource">
-      <publishTime>06/12/2022 16:45:52</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsGy_Warehouse_Model.datasource">
-      <publishTime>06/12/2022 16:45:51</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsKf_ICStockBill_Mould.datasource">
-      <publishTime>06/12/2022 16:45:52</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/ClsKf_ICStockBill_WMS.datasource">
-      <publishTime>06/12/2022 16:45:50</publishTime>
+      <publishTime>08/26/2022 16:04:31</publishTime>
     </File>
     <File Include="Web References/WebS/Reference.cs">
       <publishTime>12/20/2021 13:19:56</publishTime>
@@ -459,7 +459,7 @@
       <publishTime>12/20/2021 13:19:56</publishTime>
     </File>
     <File Include="Web.config">
-      <publishTime>08/08/2022 14:58:31</publishTime>
+      <publishTime>08/31/2022 22:29:47</publishTime>
     </File>
   </ItemGroup>
 </Project>
\ No newline at end of file
diff --git a/WebAPI/Web.config b/WebAPI/Web.config
index 14da35d..e99d9b0 100644
--- a/WebAPI/Web.config
+++ b/WebAPI/Web.config
@@ -22,7 +22,7 @@
 	  <!--<add key="sUrl" value="http://183.129.128.86:9090/WEBS-WMSTest/WebService1.asmx"/>    -->
 	  <!--<add key="sUrl" value="http://192.168.63.195/WEBS-WMS/WebService1.asmx"/> 棰滃彴寮忔満-->
 	  <!--<add key="sUrl" value="http://60.190.4.42:9003/WebService/WebService1.asmx" /> 澶忓疂-->
-	  <add key="sUrl" value="http://60.190.4.42:9003/WebService/WebService1.asmx" /> 
+	  <add key="sUrl" value="http://47.96.97.237/WEBS-WMS/WebService1.asmx" /> 
 	  <!--<add key="sUrl" value="http://10.10.130.181/WEBS-WMS/WebService1.asmx"/>    鍗氭棩绉戞妧-->
 	  <!--<add key="sUrl" value="http://192.168.0.214/WEBS-WMS/WebService1.asmx"/>    鐟炰笌绁�-->
 	  <!--<add key="sUrl" value="http://60.191.27.141:8090/WEBS-WMS/WebService1.asmx"/>    妫シ-->
@@ -92,7 +92,7 @@
       </basicHttpBinding>
     </bindings>
     <client>
-      <endpoint address="http://60.190.4.42:9003/WebService/WebService1.asmx" binding="basicHttpBinding"
+      <endpoint address="http://47.96.97.237/WEBS-WMS/WebService1.asmx" binding="basicHttpBinding"
         bindingConfiguration="WebService1Soap" contract="Webs1.WebService1Soap"
         name="WebService1Soap" />
     </client>
@@ -100,7 +100,7 @@
   <applicationSettings>
     <WebAPI.Properties.Settings>
       <setting name="WebAPI_WebS_WebService1" serializeAs="String">
-        <value>http://60.190.4.42:9003/WebService/WebService1.asmx</value>
+        <value>http://47.96.97.237/WEBS-WMS/WebService1.asmx</value>
       </setting>
     </WebAPI.Properties.Settings>
   </applicationSettings>
diff --git "a/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationOutBill.cs" "b/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationOutBill.cs"
index 7d741e9..1a351f6 100644
--- "a/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationOutBill.cs"
+++ "b/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationOutBill.cs"
@@ -473,7 +473,7 @@
 
         //鍗曟嵁瀹屾暣鎬у垽鏂�          鏈畬鎴�
         private bool Sub_AllowSave()
-        {         
+        {
             //鍒ゆ柇璇ョ敤鎴峰悕鏄惁鏈夎宸ョ珯鏉冮檺
             //if (BillNew.CheckCenterIDByUser(DBUtility.ClsPub.isLong(txtHCenterID.Tag)) == false)
             //{
@@ -523,6 +523,49 @@
             //        return false;
             //    }
             //}
+
+
+            //妯$┐鍙锋帶鍒�
+            //if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "13000001197")
+            //{
+            //    string HMXH = "";
+            //    string HZM = "";
+            //    HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text);
+            //    HZM = HMXH.Substring(0, 1);
+            //    if (HZM != "G")
+            //    {
+            //        MessageBox.Show("妯$┐鍙烽敊璇涓�浣嶈閲嶆柊杈撳叆G");
+            //        return false;
+            //    }
+            //}
+
+
+            if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "3.01.0207" && DBUtility.ClsPub.isStrNull(txtHProcID.Text) == "鎴愬搧妫�楠�")
+            {
+                string HMXH = "";
+                string HZM = "";
+                HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text);
+                HZM = HMXH.Substring(0, 1);
+                if (HZM != "G")
+                {
+                    MessageBox.Show("妯$┐鍙烽敊璇涓�浣嶈閲嶆柊杈撳叆G");
+                    return false;
+                }
+            }
+            if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "3.01.0268" && DBUtility.ClsPub.isStrNull(txtHProcID.Text) == "鎴愬搧妫�楠�")
+            {
+                string HMXH = "";
+                string HZM = "";
+                HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text);
+                HZM = HMXH.Substring(0, 1);
+                if (HZM != "X")
+                {
+                    MessageBox.Show("妯$┐鍙烽敊璇涓�浣嶈閲嶆柊杈撳叆X");
+                    return false;
+                }
+            }
+
+
             //蹇呰緭椤圭洰鏄惁涓虹┖
 
             if (DBUtility.ClsPub.isLong(lngBillKey) <= 0)
@@ -576,11 +619,11 @@
                 MessageBox.Show("鎿嶄綔鍛樻病鏈夐�夋嫨锛�", "鎻愮ず");
                 return false;
             }
-            if (DBUtility.ClsPub.isLong(txtHQCCheckID.Tag) == 0)
-            {
-                MessageBox.Show("妫�楠屽憳娌℃湁閫夋嫨锛�", "鎻愮ず");
-                return false;
-            }
+            //if (DBUtility.ClsPub.isLong(txtHQCCheckID.Tag) == 0)
+            //{
+            //    MessageBox.Show("妫�楠屽憳娌℃湁閫夋嫨锛�", "鎻愮ず");
+            //    return false;
+            //}
             if (DBUtility.ClsPub.isLong(txtHSourceID.Tag) == 0)
             {
                 MessageBox.Show("鐢熶骇璧勬簮娌℃湁閫夋嫨锛�", "鎻愮ず");

--
Gitblit v1.9.1