From 493dfaba94f3234df9bb975d87533ff2fe611b3c Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期四, 24 六月 2021 16:27:24 +0800
Subject: [PATCH] 新增扫描源单调用方法

---
 DLL/Model.dll                |    0 
 CLOUDWEB/WebService1.asmx.cs |  165 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+), 1 deletions(-)

diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index e3837b7..bcdde53 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -30662,9 +30662,172 @@
         #endregion
 
 
+
+        #region 鎵弿婧愬崟鏉$爜
+
+        [WebMethod]
+        public Model.ClsKf_ICStockBill_WMS get_CheckTypeBySource_New(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, bool HRedBlueflag, string HHMaker, Int64 HOWNERID, ref string sErrMsg)
+        {
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+            Model.ClsKf_ICStockBill_WMS oBar = new Model.ClsKf_ICStockBill_WMS();
+            Int64 HAccessFlag = 0;   //鏄惁鐗╂枡鏉$爜甯﹀嚭婧愬崟淇℃伅鏍囧織锛�0涓虹洿鎺ユ壂婧愬崟鏉$爜锛�1涓虹墿鏂欐潯鐮佸甫鍑烘簮鍗曚俊鎭級
+
+            //鑾峰彇绯荤粺鍙傛暟
+            Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
+            if (oSystemParameter.ShowBill(ref sErrMsg) == false)
+            {
+                sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛涙壂鎻忔簮鍗曟椂鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg;
+                return null;
+            }
+            oBar = getSourceBillList_New(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HRedBlueflag, HHMaker, HOWNERID, HAccessFlag, oSystemParameter.omodel, ref sErrMsg);
+            if (oBar == null)
+            {
+                sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛涙壂鎻忔簮鍗曞け璐ワ紒" + sErrMsg;
+                return null;
+            }
+            else
+            {
+                return oBar;
+            }
+        }
+
+        #endregion
+
+
+        #region 灏嗘簮鍗曚俊鎭瓨鍏ユ潯鐮佸嚭鍏ュ簱涓存椂琛�
+
+        [WebMethod]
+        public Model.ClsKf_ICStockBill_WMS getSourceBillList_New(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, bool HRedBlueflag, string HHMaker, Int64 HOWNERID, Int64 HAccessFlag, Pub_Class.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg)
+        {
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+            Model.ClsKf_ICStockBill_WMS oBar = new Model.ClsKf_ICStockBill_WMS();
+            Int64 sMulSourceFlag = 0;   //澶氭簮鍗曟爣蹇楋紙0涓洪潪澶氭簮鍗曟ā寮忥紝1涓哄婧愬崟妯″紡锛�
+            string sRedBlue = "钃濆瓧";
+            if (HRedBlueflag)
+            {
+                sRedBlue = "绾㈠瓧";
+            }
+            else
+            {
+                sRedBlue = "钃濆瓧";
+            }
+            //澶氭簮鍗曟ā寮忔椂锛宻MulSourceFlag = 1
+            if (HBillType == "1202" && oSystemParameterMain.Kf_ProductInBill_MulSourceBill == "Y")
+            {
+                //鐢熶骇鍏ュ簱鍗�
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1201" && oSystemParameterMain.Kf_POStockInBill_MulSourceBill == "Y")
+            {
+                //閲囪喘鍏ュ簱鍗�
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1210" && oSystemParameterMain.Kf_EntrustInBill_MulSourceBill == "Y")
+            {
+                //濮斿鍏ュ簱鍗�
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1204" && oSystemParameterMain.Kf_MateOutBill_MulSourceBill == "Y")
+            {
+                //鐢熶骇棰嗘枡鍗�
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1205" && oSystemParameterMain.Kf_SellOutBill_MulSourceBill == "Y")
+            {
+                //閿�鍞嚭搴撳崟
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1211" && oSystemParameterMain.Kf_EntrustOutBill_MulSourceBill == "Y")
+            {
+                //濮斿鍑哄簱鍗�
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "3711" && oSystemParameterMain.Sc_ICMOReportBill_MulSourceBill == "Y")
+            {
+                //鐢熶骇姹囨姤鍗�
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1207" && oSystemParameterMain.Kf_MoveStockBill_MulSourceBill == "Y")
+            {
+                //鐩存帴璋冩嫧鍗�
+                sMulSourceFlag = 1;
+            }
+            //else if (HBillType == "1250" && oSystemParameterMain.Kf_MoveStockStepOutBill_MulSourceBill == "Y")
+            //{
+            //    //鍒嗘寮忚皟鍑哄崟
+            //    sMulSourceFlag = 1;
+            //}
+            //else if (HBillType == "1251" && oSystemParameterMain.Kf_MoveStockStepInBill_MulSourceBill == "Y")
+            //{
+            //    //鍒嗘寮忚皟鍏ュ崟
+            //    sMulSourceFlag = 1;
+            //}
+            else if (HBillType == "1245" && oSystemParameterMain.Kf_ProductInBackBill_MulSourceBill == "Y")
+            {
+                //鐢熶骇閫�搴撳崟
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1239" && oSystemParameterMain.Kf_POStockInBackBill_MulSourceBill == "Y")
+            {
+                //閲囪喘閫�鏂欏崟
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1246" && oSystemParameterMain.Kf_EntrustInBackBill_MulSourceBill == "Y")
+            {
+                //濮斿閫�搴撳崟
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1244" && oSystemParameterMain.Kf_MateOutBackBill_MulSourceBill == "Y")
+            {
+                //鐢熶骇閫�鏂欏崟
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1247" && oSystemParameterMain.Kf_SellOutBackBill_MulSourceBill == "Y")
+            {
+                //閿�鍞��璐у崟
+                sMulSourceFlag = 1;
+            }
+            else if (HBillType == "1238" && oSystemParameterMain.Kf_EntrustOutBackBill_MulSourceBill == "Y")
+            {
+                //濮斿閫�鏂欏崟
+                sMulSourceFlag = 1;
+            }
+
+            DataSet ds1 = oCn.RunProcReturn("exec h_p_KF_PonderationBillMain_Temp_AddSource_New " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HSourceBillNo + "','" + HSourceBillType + "','" + sRedBlue + "'," + sMulSourceFlag.ToString() + ",'" + HHMaker + "'," + HOWNERID.ToString() + "," + HAccessFlag.ToString(), "h_p_KF_PonderationBillMain_Temp_AddSource_New");
+            if (ds1 == null || ds1.Tables[0].Rows.Count == 0)
+            {
+                sErrMsg = "灏嗘簮鍗曚俊鎭瓨鍏ユ潯鐮佸嚭鍏ュ簱涓存椂琛ㄥけ璐ワ紒";
+                return null;
+            }
+            else
+            {
+                if (DBUtility.ClsPub.isLong(ds1.Tables[0].Rows[0][0]) == 0)
+                {
+                    oBar.HBarType = "婧愬崟鏉$爜";
+                    oBar.HMulSourceFlag = sMulSourceFlag;
+                    oBar.HSourceBillType = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[0]["HSourceBillType"]);
+                    oBar.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[0]["HSourceBillNo"]);
+                    oBar.HSupID = DBUtility.ClsPub.isLong(ds1.Tables[0].Rows[0]["HSupID"]);
+                    oBar.HSupName = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[0]["HSupName"]);
+                    oBar.HDeptID = DBUtility.ClsPub.isLong(ds1.Tables[0].Rows[0]["HDeptID"]);
+                    oBar.HDeptName = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[0]["HDeptName"]);
+                    oBar.HCustom = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[0]["HCustom"]);
+                    return oBar;
+                }
+                else
+                {
+                    sErrMsg = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[0]["HRemark"]);
+                    return null;
+                }
+            }
+        }
+
+        #endregion
+
+
         #region 杩斿洖婧愬崟淇℃伅
 
-        //鏍规嵁鎵�杈撴簮鍗曞彿妯$硦鏌ヨ婧愬崟淇℃伅锛屽苟杩斿洖鏁版嵁
+        //鏍规嵁鎵�杈撴簮鍗曞彿妯$硦鏌ヨ婧愬崟淇℃伅锛屽苟杩斿洖鏁版嵁锛堟寜婧愬崟閫夋嫨鎸夐挳鏃惰皟鐢級
         [WebMethod]
         public DataSet GetSourceBillList(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, Int64 HOWNERID, ref string sErrMsg)
         {
diff --git a/DLL/Model.dll b/DLL/Model.dll
index 9534ff6..329e4c1 100644
--- a/DLL/Model.dll
+++ b/DLL/Model.dll
Binary files differ

--
Gitblit v1.9.1