From 7086c88c6c080aa9ff15664c5c97aee7bbcdc55b Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期三, 05 三月 2025 16:56:11 +0800 Subject: [PATCH] 阻焊仓堆垛机对接 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/MesResponseContent.cs | 59 +++++++++++++++++++++++++++++++---------------------------- 1 files changed, 31 insertions(+), 28 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/MesResponseContent.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/MesResponseContent.cs" index ceeccfa..14adbe8 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/MesResponseContent.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/MesResponseContent.cs" @@ -28,7 +28,36 @@ /// <summary> /// /// </summary> - public DateTime DataTime { get; set; } + public string DataTime { get; set; } + + public static MesResponseContent Instance + { + get { return new MesResponseContent(); } + } + + public MesResponseContent OK(string message = null) + { + BSucc = true; + StrCode = "0000"; + StrMsg = message == null ? "鎵ц鎴愬姛" : message; + DataTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); + return this; + } + + public MesResponseContent Error(string message = null) + { + BSucc = false; + StrCode = "404"; + StrMsg = message == null ? "鎵ц澶辫触" : message; + DataTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); + return this; + } + public object Content { get; set; } + } + + public class Contents + { + public string Contacts { get; set; } /// <summary> /// 鐗╂枡缂栫爜 /// </summary> @@ -61,38 +90,12 @@ /// 鐗╂枡鎵规 /// </summary> public string MaterialLot { get; set; } - - public static MesResponseContent Instance - { - get { return new MesResponseContent(); } - } - - public MesResponseContent OK(string message = null) - { - BSucc = true; - StrCode = "0000"; - StrMsg = message == null ? "鎵ц鎴愬姛" : message; - return this; - } - - public MesResponseContent Error(string message = null) - { - BSucc = false; - StrCode = "404"; - StrMsg = message == null ? "鎵ц澶辫触" : message; - return this; - } - public ContentMes Content { get; set; } - } - public class ContentMes: Content - { - public string Contacts { get; set; } } /// <summary> /// PP搴撳瓨鏌ヨ锛屽洖澶峂ES /// </summary> public class QueryPpByWidthModelCount { - + } } -- Gitblit v1.9.3