From d6502baa8e5610c04127fbee92ff6111e40956f8 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期二, 13 六月 2023 09:50:02 +0800
Subject: [PATCH] 生产入库、采购入库接口提交

---
 VueWebApi/DLL/BLL/ProductionManagementBLL.cs |   99 ++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 80 insertions(+), 19 deletions(-)

diff --git a/VueWebApi/DLL/BLL/ProductionManagementBLL.cs b/VueWebApi/DLL/BLL/ProductionManagementBLL.cs
index 3c37535..8a9ad15 100644
--- a/VueWebApi/DLL/BLL/ProductionManagementBLL.cs
+++ b/VueWebApi/DLL/BLL/ProductionManagementBLL.cs
@@ -1,4 +1,5 @@
-锘縰sing System;
+锘縰sing Newtonsoft.Json.Linq;
+using System;
 using System.Collections.Generic;
 using System.Data;
 using System.Linq;
@@ -80,6 +81,13 @@
         public static ToMessage SelectRouteOrWkshop(string partcode, string routecode, string wkshopcode)
         {
             return ProductionManagementDAL.SelectRouteOrWkshop(partcode,routecode,wkshopcode);
+        }
+        #endregion
+
+        #region[MES宸ュ崟鏂板銆佽幏鍙栧伐鍗曞彿]
+        public static ToMessage AddMesOrderCodeSearch()
+        {
+            return ProductionManagementDAL.AddMesOrderCodeSearch();
         }
         #endregion
 
@@ -212,9 +220,9 @@
         #endregion
 
         #region[鐢熶骇寮�鎶ュ伐,鎶ュ伐鎻愪氦]
-        public static ToMessage SavaMesOrderStepReport(string mesordercode, string partcode, string stepseq, string stepcode, string eqpcode,string reckway, string usergroupcode, string reportuser, string taskqty,string startqty, string reportqty,string ngqty, string badcode,string remarks, string username)
+        public static ToMessage SavaMesOrderStepReport(string mesordercode, string partcode, string stepseq, string stepcode, string eqpcode,string inbarcode, string reckway, string usergroupcode, string reportuser, string taskqty,string startqty, string reportqty,string ngqty, string badcode,string remarks, string username)
         {
-            return ProductionManagementDAL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, ngqty, badcode, remarks, username);
+            return ProductionManagementDAL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, inbarcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, ngqty, badcode, remarks, username);
         }
         #endregion
 
@@ -226,9 +234,9 @@
         #endregion
 
         #region[鐢熶骇寮�鎶ュ伐, 鏀舵枡鎻愪氦]
-        public static ToMessage SavaMesOrderStepIn(string mesordercode, string partcode, string stepseq, string stepcode, string wxcode, string inuser, string taskqty, string sqty, string ngqty, string badcode,string remarks, string username)
+        public static ToMessage SavaMesOrderStepIn(string mesordercode, string partcode, string stepseq, string stepcode, string wxcode,string inbarcode, string inuser, string taskqty, string sqty, string ngqty, string badcode,string remarks, string username)
         {
-            return ProductionManagementDAL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inuser, taskqty, sqty, ngqty, badcode, remarks, username);
+            return ProductionManagementDAL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inbarcode, inuser, taskqty, sqty, ngqty, badcode, remarks, username);
         }
         #endregion
 
@@ -239,33 +247,28 @@
         }
         #endregion
 
-        #region[鐢熶骇寮�鎶ュ伐,宸ュ簭妫�楠屾壂鐮佽幏鍙栦换鍔′俊鎭痌
-        public static ToMessage MesOrderStepCheckSearch(string orderstepqrcode)
+
+        #region[宸ュ簭妫�楠屾壂鐮佽幏鍙栦换鍔′俊鎭痌
+        public static ToMessage MesOrderStepCheckSearch(string orderstepqrcode,string checktype)
         {
-            return ProductionManagementDAL.MesOrderStepCheckSearch(orderstepqrcode);
+            return ProductionManagementDAL.MesOrderStepCheckSearch(orderstepqrcode, checktype);
         }
         #endregion
 
-        #region[鐢熶骇寮�鎶ュ伐,宸ュ簭妫�楠岃幏鍙栨楠屾爣鍑嗕笅鎷夋鏁版嵁]
-        public static ToMessage MesOrderStepCheckSelect()
-        {
-            return ProductionManagementDAL.MesOrderStepCheckSelect();
-        }
-        #endregion
-
-        #region[鐢熶骇寮�鎶ュ伐,宸ュ簭妫�楠屾牴鎹楠屾爣鍑嗚幏鍙栨楠岄」鐩垪琛╙
+        #region[宸ュ簭妫�楠屾牴鎹�夋嫨鐨勬楠屾柟妗堟煡鎵炬楠岄」鐩甝
         public static ToMessage MesOrderStepCheckItemList(string checkstandcode)
         {
             return ProductionManagementDAL.MesOrderStepCheckItemList(checkstandcode);
         }
         #endregion
 
-        #region[鐢熶骇寮�鎶ュ伐,宸ュ簭妫�楠屾彁浜や繚瀛榏
-        public static ToMessage SaveMesOrderStepCheckItem(string mesordercode, string partcode, string stepcode, string checkstanedcode, string checkusercode, string checktypecode, string checkresult, string checkdescr,string checkqty, string username, List<StepCheck> json)
+        #region[宸ュ簭妫�楠�,鎻愪氦]
+        public static ToMessage SaveMesOrderStepCheckItem(string wocode, string partcode, string stepcode, string checkstandcode, string check_type, string sampmethod, string qualitystatus, string labqty, string sampleqty, string goodqty, string ngqty, string checkitemcont, string username)
         {
-            return ProductionManagementDAL.SaveMesOrderStepCheckItem(mesordercode, partcode, stepcode, checkstanedcode, checkusercode, checktypecode, checkresult, checkdescr, checkqty, username, json);
+            return ProductionManagementDAL.SaveMesOrderStepCheckItem(wocode, partcode, stepcode, checkstandcode, check_type, sampmethod, qualitystatus, labqty, sampleqty, goodqty, ngqty, checkitemcont, username);
         }
         #endregion
+
 
 
         #region[MES宸ュ崟鎵归噺鍏抽棴鏌ヨ]
@@ -369,6 +372,20 @@
         }
         #endregion
 
+        #region[NEW鎺掍骇璁惧淇℃伅]
+        public static List<AdvancedSchedulingDevice> NewOnclickAdvancedSchedulingDevice(List<ApsOrderSerch> json, ref ToMessage mes)
+        {
+            return ProductionManagementDAL.NewOnclickAdvancedSchedulingDevice(json, ref mes);
+        }
+        #endregion
+
+        #region[NEW璁惧宸叉帓绋嬩俊鎭痌
+        public static List<DataTable> NewAlreadyScheduling(List<ApsOrderSerch> json)
+        {
+            return ProductionManagementDAL.NewAlreadyScheduling(json);
+        }
+        #endregion
+
         #region[鎺掔▼鏁版嵁鎻愪氦]
         public static ToMessage SubmitAlreadyScheduling(string username, string wocode, string botprocecode, List<AlreadyScheduling> objs)
         {
@@ -376,5 +393,49 @@
         }
         #endregion
 
+
+        #region[鐢熶骇鍏ュ簱鏉$爜琛ユ墦]
+        public static ToMessage ProductInHouseLabCode(string ordercode)
+        {
+            return ProductionManagementDAL.ProductInHouseLabCode(ordercode);
+        }
+        #endregion
+
+        #region[鐢熶骇鍏ュ簱閫氳繃杞﹂棿鏌ユ壘鐢熶骇璁㈠崟]
+        public static ToMessage ProductInHouseWkshopOrder(string ordertype, string wkshopcode)
+        {
+            return ProductionManagementDAL.ProductInHouseWkshopOrder(ordertype, wkshopcode);
+        }
+        #endregion
+
+        #region[鐢熶骇鍏ュ簱淇℃伅鏌ヨ]
+        public static ToMessage ProductInHouseOrderSearch(string wkshopcode,string erpordercode, string mesordercode, string partcode, string partname, string partspec, string startorderdate, string endorderdate)
+        {
+            return ProductionManagementDAL.ProductInHouseOrderSearch(wkshopcode,erpordercode, mesordercode, partcode, partname, partspec, startorderdate, endorderdate);
+        }
+        #endregion
+
+        #region[鐢熶骇鍏ュ簱鑾峰彇鍗曟嵁鍙穄
+        public static ToMessage ProductInHouseOrderCodeSearch(string rightcode)
+        {
+            return ProductionManagementDAL.ProductInHouseOrderCodeSearch(rightcode);
+        }
+        #endregion
+
+        #region[鐢熶骇鍏ュ簱鎻愪氦]
+        public static ToMessage ProductInHouseOrderSeave(string username, JObject obj)
+        {
+            return ProductionManagementDAL.ProductInHouseOrderSeave(username, obj);
+        }
+        #endregion
+
+
+        #region[App鐢熶骇鍏ュ簱鎵弿鏉$爜]
+        public static ToMessage MesAppProductInHouseOrderBarCodeSearch(string labcode)
+        {
+            return ProductionManagementDAL.MesAppProductInHouseOrderBarCodeSearch(labcode);
+        }
+        #endregion
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3