From 716b29fea5945ca7dc4419d9f1f980c379312b32 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期四, 24 十月 2024 18:46:48 +0800
Subject: [PATCH] 修改问题

---
 Wms/Wms/Controllers/PdaAsnController.cs |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 92 insertions(+), 0 deletions(-)

diff --git a/Wms/Wms/Controllers/PdaAsnController.cs b/Wms/Wms/Controllers/PdaAsnController.cs
index f1067ab..44647ca 100644
--- a/Wms/Wms/Controllers/PdaAsnController.cs
+++ b/Wms/Wms/Controllers/PdaAsnController.cs
@@ -24,6 +24,30 @@
         }
         #endregion
 
+        #region MyRegion
+
+        /// <summary>
+        /// 鑾峰彇鍗曟嵁鏄庣粏鏄剧ず鐨勭墿鏂�
+        /// </summary>
+        /// <param name="model">Type:鍗曟嵁绫诲瀷</param>
+        /// <returns></returns>
+        [HttpPost]
+        public IActionResult GetArrivalNoticesInfo(ArrivalNoticeVm model)
+        {
+            try
+            {
+                var models = _PdaAsnSvc.GetArrivalNoticesInfo(model);
+
+                return Ok(new { code = 0, msg = "鍏ュ簱鍗曚俊鎭�", data = models });
+            }
+            catch (Exception e)
+            {
+                return Ok(new { code = 1, msg = e.Message });
+            }
+        }
+
+        #endregion
+
         #region 鍏敤鏂规硶
         /// <summary>
         /// 鑾峰彇鍗曟嵁鍒楄〃
@@ -38,6 +62,33 @@
                 var models = _PdaAsnSvc.GetArrivalNotices(model);
 
                 return Ok(new { code = 0, msg = "鍏ュ簱鍗曚俊鎭�", data = models });
+            }
+            catch (Exception e)
+            {
+                return Ok(new { code = 1, msg = e.Message });
+            }
+        }
+
+        /// <summary>
+        /// 鏍规嵁鍏ュ簱鍗曡幏鍙栧叆搴撴�诲崟淇℃伅
+        /// </summary>
+        /// <param name="model">ASNNo:鍏ュ簱鍗曞彿</param>
+        /// <returns></returns>
+        [HttpPost]
+        public IActionResult GetArrivalNotice(ArrivalNoticeVm model)
+        {
+            try
+            {
+                var models = _PdaAsnSvc.GetArrivalNotice(model);
+
+                if (models == null)
+                {
+                    return Ok(new { code = 1, msg = "鍏ュ簱鍗曚俊鎭�", data = models });
+                }
+                else
+                {
+                    return Ok(new { code = 0, msg = "鍏ュ簱鍗曚俊鎭�", data = models });
+                }
             }
             catch (Exception e)
             {
@@ -383,6 +434,26 @@
                 return Ok(new { code = 1, msg = e.Message });
             }
         }
+
+        /// <summary>
+        /// 楠岃瘉鍌ㄤ綅(鍦扮爜)鏄惁鍙敤
+        /// </summary>
+        /// <param name="model">LocatNo鍌ㄤ綅鍦板潃</param>
+        /// <returns></returns>
+        [HttpPost]
+        public IActionResult CheckLocatNo(PalletBindVm model) 
+        {
+            try
+            {
+                var result = _PdaAsnSvc.CheckLocatNo(model.LocatNo);
+
+                return Ok(new { code = 0, msg = "楠岃瘉鎴愬姛!", data = result });
+            }
+            catch (Exception e)
+            {
+                return Ok(new { code = 1, msg = e.Message });
+            }
+        }
         #endregion
 
         #region 闆剁鍏ュ簱
@@ -462,6 +533,27 @@
                 return Ok(new { code = 1, msg = e.Message });
             }
         }
+
+        /// <summary>
+        /// 鏍规嵁绠辩爜鑾峰彇鏍囩鏈�灏忚拷婧爜淇℃伅
+        /// </summary>
+        /// <param name="model">BoxNo:绠卞彿</param>
+        /// <returns></returns>
+        [HttpPost]
+        public IActionResult GetBindBoxInfo2s(BoxInfoVm model)
+        {
+            try
+            {
+                var models = _PdaAsnSvc.GetBindBoxInfo2s(model);
+
+                return Ok(new { code = 0, msg = "鏍囩绠辩爜淇℃伅", data = models });
+            }
+            catch (Exception e)
+            {
+                return Ok(new { code = 1, msg = e.Message });
+            }
+        }
+
         [HttpPost]
         public IActionResult GetBindArrivalNoticeDetails(ArrivalNoticeVm model)
         {

--
Gitblit v1.8.0