From d06419e422678bf86e2f6c87d4261c3d21197a13 Mon Sep 17 00:00:00 2001
From: 杨乐 <yang.le.192@qq.com>
Date: 星期二, 04 一月 2022 09:39:03 +0800
Subject: [PATCH] 分步式调出 查询

---
 WebAPI/Controllers/仓存管理/领料发货/Kf_StepFoldOutBillController.cs |   67 +++++++++++++++++++++++++++++++++
 WebAPI/Controllers/仓存管理/领料发货/apiController.cs                |    6 +++
 WebAPI/WebAPI.csproj                                         |    3 +
 WebAPI/Controllers/仓存管理/验收入库/Kf_StepFoldinBillController.cs  |    2 
 4 files changed, 77 insertions(+), 1 deletions(-)

diff --git "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\242\206\346\226\231\345\217\221\350\264\247/Kf_StepFoldOutBillController.cs" "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\242\206\346\226\231\345\217\221\350\264\247/Kf_StepFoldOutBillController.cs"
new file mode 100644
index 0000000..ef62aca
--- /dev/null
+++ "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\242\206\346\226\231\345\217\221\350\264\247/Kf_StepFoldOutBillController.cs"
@@ -0,0 +1,67 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Http;
+using WebAPI.Models;
+
+namespace WebAPI.Controllers.浠撳瓨绠$悊.棰嗘枡鍙戣揣
+{
+    public class Kf_StepFoldOutBillController : ApiController
+    {
+        public DBUtility.ClsPub.Enum_BillStatus BillStatus;//鍗曟嵁鐘舵�侊紙鏂板锛屼慨鏀癸紝娴忚锛屾洿鏂板崟浠凤紝鍙樻洿锛�
+        private json objJsonResult = new json();
+        public DataSet ds = new DataSet();
+        public SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+
+        #region 鍒嗘寮忚皟鍑哄崟 鏌ヨ
+
+        [Route("Kf_StepFoldOutBill/GetStepFoldOutBillList")]
+        [HttpGet]
+        public object GetStepFoldinBillList(string sWhere, string user, string Organization)
+        {
+            try
+            {
+                //鍒ゆ柇鏉冮檺(鐣�)
+
+                string sql1 = string.Format("select * from h_v_Kf_MoveStockStepOutBillList where (璋冨叆缁勭粐='" + Organization + "')");
+                if (sWhere == null || sWhere.Equals(""))
+                {
+                    ds = oCn.RunProcReturn(sql1 + " order by 鏃ユ湡 desc", "h_v_Kf_MoveStockStepOutBillList");
+                }
+                else
+                {
+                    string sql = sql1 + sWhere + " order by 鏃ユ湡 desc";
+                    ds = oCn.RunProcReturn(sql, "h_v_Kf_MoveStockStepOutBillList");
+                }
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "Sucess锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception ex)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+        #endregion
+    }
+}
\ No newline at end of file
diff --git "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\242\206\346\226\231\345\217\221\350\264\247/apiController.cs" "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\242\206\346\226\231\345\217\221\350\264\247/apiController.cs"
new file mode 100644
index 0000000..c71c79b
--- /dev/null
+++ "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\242\206\346\226\231\345\217\221\350\264\247/apiController.cs"
@@ -0,0 +1,6 @@
+锘縩amespace WebAPI.Controllers.浠撳瓨绠$悊.棰嗘枡鍙戣揣
+{
+    public class apiController
+    {
+    }
+}
\ No newline at end of file
diff --git "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\252\214\346\224\266\345\205\245\345\272\223/Kf_StepFoldinBillController.cs" "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\252\214\346\224\266\345\205\245\345\272\223/Kf_StepFoldinBillController.cs"
index b1faa0d..34892ea 100644
--- "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\252\214\346\224\266\345\205\245\345\272\223/Kf_StepFoldinBillController.cs"
+++ "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\351\252\214\346\224\266\345\205\245\345\272\223/Kf_StepFoldinBillController.cs"
@@ -15,7 +15,7 @@
         public DataSet ds = new DataSet();
         public SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
 
-        #region 濮斿鍔犲伐鍑哄簱鍗�
+        #region 鍒嗘寮忚皟鍏ュ崟 鏌ヨ
 
         [Route("Kf_StepFoldinBill/GetStepFoldinBillList")]
         [HttpGet]
diff --git a/WebAPI/WebAPI.csproj b/WebAPI/WebAPI.csproj
index 0700d5d..af89c52 100644
--- a/WebAPI/WebAPI.csproj
+++ b/WebAPI/WebAPI.csproj
@@ -351,6 +351,8 @@
     <Compile Include="Controllers\SCGL\Sc_ProductionReturnBillController.cs" />
     <Compile Include="Controllers\SCGL\Sc_PackUnionBillController.cs" />
     <Compile Include="Controllers\Sc_ProcessMangementController.cs" />
+    <Compile Include="Controllers\浠撳瓨绠$悊\棰嗘枡鍙戣揣\apiController.cs" />
+    <Compile Include="Controllers\浠撳瓨绠$悊\棰嗘枡鍙戣揣\Kf_StepFoldOutBillController.cs" />
     <Compile Include="Controllers\浠撳瓨绠$悊\楠屾敹鍏ュ簱\Kf_StepFoldinBillController.cs" />
     <Compile Include="Controllers\鍗氭棩鑷姩鎵爜绾縗ScanlineAPIController.cs" />
     <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_StockCheckItemBillController.cs" />
@@ -720,6 +722,7 @@
     <Folder Include="Views\Gy_EquipType\" />
     <Folder Include="Views\Kf_ICStockBillMain\" />
     <Folder Include="Views\kf_StepFoldinBill\" />
+    <Folder Include="Views\Kf_StepFoldOutBill\" />
     <Folder Include="Views\MoveStockBill\" />
     <Folder Include="Views\ProductionReturnBill\" />
     <Folder Include="Views\QC_Management\" />

--
Gitblit v1.9.1