From f3f778dc992cde6451139f647dff99c89ef96063 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期四, 16 三月 2023 14:01:58 +0800
Subject: [PATCH] 直接调拨单扫码上传生成金蝶云单据调用方法,屏蔽安瑞的上传前判断

---
 WebAPI/Controllers/MoveStockBillController.cs |   54 +++++++++++++++++++++++++++---------------------------
 WebAPI/WebAPI.csproj                          |    2 +-
 2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/WebAPI/Controllers/MoveStockBillController.cs b/WebAPI/Controllers/MoveStockBillController.cs
index fa54883..e2e8af1 100644
--- a/WebAPI/Controllers/MoveStockBillController.cs
+++ b/WebAPI/Controllers/MoveStockBillController.cs
@@ -614,7 +614,7 @@
                 websLsmain.HBillerID = 0;
                 websLsmain.HExplanation = "";
                 websLsmain.HInnerBillNo = "";
-                websLsmain.HRedBlueFlag = true;
+                websLsmain.HRedBlueFlag = false;
                 websLsmain.HMainSourceBillType = "-1";
                 websLsmain.HStockStyle = "";
                 websLsmain.HBillType = "1207";
@@ -622,34 +622,34 @@
                 websLsmain.HSupID = 0;
                 //websLsmain.HGroupID = lsmain[0].HGroupID;
                 string sErrMsg = "";
-                //涓婁紶鍓嶅垽鏂�
-                SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
-                DataSet Ds = oCn.RunProcReturn("exec h_p_WMS_BeforeUpload_MoveStockBill_AR " + websLsmain.HInterID.ToString() + ",'" + websLsmain.HBillNo + "','" + websLsmain.HBillType + "'", "h_p_WMS_BeforeUpload_MoveStockBill_AR");
-                if (Ds == null || Ds.Tables[0].Rows.Count == 0)
-                {
-                    sErrMsg = "鏍¢獙涓婁紶鍓嶅垽鏂紝鍙戠敓閿欒锛�"; 
-                    //return false;
+                ////涓婁紶鍓嶅垽鏂�
+                //SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+                //DataSet Ds = oCn.RunProcReturn("exec h_p_WMS_BeforeUpload_MoveStockBill_AR " + websLsmain.HInterID.ToString() + ",'" + websLsmain.HBillNo + "','" + websLsmain.HBillType + "'", "h_p_WMS_BeforeUpload_MoveStockBill_AR");
+                //if (Ds == null || Ds.Tables[0].Rows.Count == 0)
+                //{
+                //    sErrMsg = "鏍¢獙涓婁紶鍓嶅垽鏂紝鍙戠敓閿欒锛�"; 
+                //    //return false;
 
-                    objJsonResult.code = "99";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = "涓婁紶澶辫触锛�" + sErrMsg;
-                    objJsonResult.data = null;
-                    return objJsonResult;
-                }
-                else
-                {
-                    if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0][0]) == 1)
-                    {
-                        sErrMsg = "鍗曟嵁鍙凤細" + websLsmain.HBillNo + "锛屽崟鎹甀D锛�" + websLsmain.HInterID + "锛�" + DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]);
-                        //return false;
-                        objJsonResult.code = "99";
-                        objJsonResult.count = 0;
-                        objJsonResult.Message = "涓婁紶澶辫触锛�" + sErrMsg;
-                        objJsonResult.data = null;
-                        return objJsonResult;
+                //    objJsonResult.code = "99";
+                //    objJsonResult.count = 0;
+                //    objJsonResult.Message = "涓婁紶澶辫触锛�" + sErrMsg;
+                //    objJsonResult.data = null;
+                //    return objJsonResult;
+                //}
+                //else
+                //{
+                //    if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0][0]) == 1)
+                //    {
+                //        sErrMsg = "鍗曟嵁鍙凤細" + websLsmain.HBillNo + "锛屽崟鎹甀D锛�" + websLsmain.HInterID + "锛�" + DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]);
+                //        //return false;
+                //        objJsonResult.code = "99";
+                //        objJsonResult.count = 0;
+                //        objJsonResult.Message = "涓婁紶澶辫触锛�" + sErrMsg;
+                //        objJsonResult.data = null;
+                //        return objJsonResult;
 
-                    }
-                }
+                //    }
+                //}
 
 
 
diff --git a/WebAPI/WebAPI.csproj b/WebAPI/WebAPI.csproj
index ac244ed..66146ee 100644
--- a/WebAPI/WebAPI.csproj
+++ b/WebAPI/WebAPI.csproj
@@ -998,8 +998,8 @@
     <Folder Include="Views\Sc_MouldScrapRequestBill\" />
     <Folder Include="Views\Sc_MouldStatusChangeBill\" />
     <Folder Include="Views\Sc_ProcessExchangeIssueBill\" />
-    <Folder Include="Views\Sc_ProcExchRecordBackBill\" />
     <Folder Include="Views\Sc_ProcessSendWork\" />
+    <Folder Include="Views\Sc_ProcExchRecordBackBill\" />
     <Folder Include="Views\Sc_WorkBillAutoSortBillMain\" />
     <Folder Include="Views\Sc_WorkBillSortBill\" />
     <Folder Include="Views\Sc_WorkDemandPlanBill\" />

--
Gitblit v1.9.1