From 8328aed1bca2a30c3105b19f41d324acb59437c9 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期四, 18 十二月 2025 14:11:42 +0800
Subject: [PATCH] 采购订单:添加组合键、添加单别。生产订单:添加整单删除、主表id生产改为序列化

---
 MESApplication/Controllers/BasicData/MesRohInController.cs |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/MESApplication/Controllers/BasicData/MesRohInController.cs b/MESApplication/Controllers/BasicData/MesRohInController.cs
index f68d757..3300631 100644
--- a/MESApplication/Controllers/BasicData/MesRohInController.cs
+++ b/MESApplication/Controllers/BasicData/MesRohInController.cs
@@ -255,4 +255,56 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+
+    /// <summary>
+    ///     鏁村崟鍒犻櫎
+    /// </summary>
+    /// <returns></returns>
+    [HttpPost("Delete")]
+    public ResponseResult Delete([FromBody] DeleteRequestDto data)
+    {
+        var entity = new MessageCenter();
+        entity.TableName = TableName;
+        entity.Url = URL + "Delete";
+        entity.Method = METHOD;
+        entity.Data = JsonConvert.SerializeObject(data);
+        entity.Status = 1;
+        entity.CreateBy = "PL017";
+        entity.Route = data.FBillNo;
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            // 璋冪敤鍒犻櫎锛岃幏鍙栧瓨鍌ㄨ繃绋嬭繑鍥炵殑鐘舵�佸拰娑堟伅
+            var (outSum, outMsg) = m.Delete(data.FBillNo,data.FBillTypeID);
+            resultInfos.OutSum = outSum;
+            resultInfos.OutMsg = outMsg;
+
+            entity.Result = 0;
+            if (resultInfos.OutSum==1) entity.Result = 1;
+
+            entity.DealWith = 1;
+            _manager.save(entity);
+
+            entity.ResultData = outMsg;
+            return new ResponseResult
+            {
+                //status = outSum,
+                status = 0,
+                message = outMsg,
+            };
+        }
+        catch (Exception ex)
+        {
+            entity.Result = 0;
+
+            entity.DealWith = 0;
+
+            entity.ResultData = ex.Message;
+
+            _manager.save(entity);
+
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.9.3