From a2dc4c688ed5e98dcaae0768d20d4ba0e5730a84 Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期二, 03 六月 2025 15:52:10 +0800
Subject: [PATCH] 调拨出库测试
---
StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs | 88 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 88 insertions(+), 0 deletions(-)
diff --git a/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs b/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs
index 0510f0f..7713f50 100644
--- a/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs
+++ b/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs
@@ -31,6 +31,7 @@
entity.Data = JsonConvert.SerializeObject(barcode);
entity.Status = 1;
entity.CreateBy = "PL017";
+ entity.Route= barcode.DeliveryNo;
try
{
dynamic resultInfos = new ExpandoObject();
@@ -120,6 +121,7 @@
entity.Data = JsonConvert.SerializeObject(barcode);
entity.Status = 1;
entity.CreateBy = "PL017";
+ entity.Route = barcode.SmallBarcode;
try
{
dynamic resultInfos = new ExpandoObject();
@@ -198,5 +200,91 @@
}
}
+ [HttpPost("DeleteByNo")]
+ public ResponseResult DeleteByNo(ErpDelivery delivery)
+ {
+ var entity = new MessageCenter();
+ entity.TableName = TableName;
+ entity.Url = URL + "DeleteByNo";
+ entity.Method = METHOD;
+ entity.Data = JsonConvert.SerializeObject(delivery);
+ entity.Status = 1;
+ entity.CreateBy = "PL017";
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ var save = m.DeleteByNo(delivery);
+ resultInfos = save;
+
+ entity.Result = 0;
+ if (save) entity.Result = 1;
+
+ entity.DealWith = 1;
+ _manager.save(entity);
+
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = resultInfos
+ };
+ }
+ catch (Exception ex)
+ {
+ entity.Result = 0;
+
+ entity.DealWith = 0;
+
+ entity.ResultData = ex.Message;
+
+ _manager.save(entity);
+
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+ [HttpPost("DeleteListByNo")]
+ public ResponseResult DeleteListByNo(List<ErpDelivery> delivery)
+ {
+ var entity = new MessageCenter();
+ entity.TableName = TableName;
+ entity.Url = URL + "DeleteListByNo";
+ entity.Method = METHOD;
+ entity.Data = JsonConvert.SerializeObject(delivery);
+ entity.Status = 1;
+ entity.CreateBy = "PL017";
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ var save = m.DeleteListByNo(delivery);
+ resultInfos= save;
+
+ entity.Result = 0;
+ if (save) entity.Result = 1;
+
+ entity.DealWith = 1;
+ _manager.save(entity);
+
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = resultInfos
+ };
+ }
+ catch (Exception ex)
+ {
+ entity.Result = 0;
+
+ entity.DealWith = 0;
+
+ entity.ResultData = ex.Message;
+
+ _manager.save(entity);
+
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
}
--
Gitblit v1.9.3