From ec9c9add38591d7c7a2708ac43ed6b3fce1a4063 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期三, 06 八月 2025 16:12:09 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs" index 328e0b2..9777dbf 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs" @@ -22,8 +22,10 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Security.Claims; using System.Text; using System.Threading.Tasks; +using WIDESEA_Common.Log; using WIDESEAWCS_BasicInfoRepository; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseRepository; @@ -73,6 +75,7 @@ public WebResponseContent StackerHandTask(HandTask stackerhand) { + WriteLog.GetLog("鍫嗗灈鏈烘墜鍔ㄤ换鍔�").Write(JsonConvert.SerializeObject(stackerhand), "鍫嗗灈鏈烘墜鍔ㄤ换鍔�"); WebResponseContent content = new WebResponseContent(); try { @@ -218,6 +221,7 @@ public WebResponseContent StackerReset(string DeviceCode) { + WriteLog.GetLog("鍫嗗灈鏈烘墜鍔ㄤ换鍔�").Write($"銆愬浣嶅懡浠ゃ�憑JsonConvert.SerializeObject(DeviceCode)}", "鍫嗗灈鏈烘墜鍔ㄤ换鍔�"); WebResponseContent content = new WebResponseContent(); try { @@ -243,6 +247,7 @@ public WebResponseContent StackerEmergencyStop(string DeviceCode) { + WriteLog.GetLog("鍫嗗灈鏈烘墜鍔ㄤ换鍔�").Write($"銆愭�ュ仠鍛戒护銆憑JsonConvert.SerializeObject(DeviceCode)}", "鍫嗗灈鏈烘墜鍔ㄤ换鍔�"); WebResponseContent content = new WebResponseContent(); try { @@ -542,6 +547,7 @@ public WebResponseContent ConveyorLineHandTask(HandTask ConveyorLinehand) { + WriteLog.GetLog("杈撻�佺嚎鎵嬪姩浠诲姟").Write(JsonConvert.SerializeObject(ConveyorLinehand), "杈撻�佺嚎鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -598,6 +604,7 @@ public WebResponseContent ConveyorLineReset(string DeviceChildCode) { + WriteLog.GetLog("杈撻�佺嚎鎵嬪姩浠诲姟").Write($"銆愬浣嶅懡浠ゃ�憑JsonConvert.SerializeObject(DeviceChildCode)}", "杈撻�佺嚎鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -622,6 +629,7 @@ public WebResponseContent ConveyorLineEmergencyStop(string DeviceChildCode) { + WriteLog.GetLog("杈撻�佺嚎鎵嬪姩浠诲姟").Write($"銆愭�ュ仠鍛戒护銆憑JsonConvert.SerializeObject(DeviceChildCode)}", "杈撻�佺嚎鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -645,6 +653,7 @@ } public WebResponseContent ConveyorLineReturn(string DeviceChildCode) { + WriteLog.GetLog("杈撻�佺嚎鎵嬪姩浠诲姟").Write($"銆愰��鍥炲懡浠ゃ�憑JsonConvert.SerializeObject(DeviceChildCode)}", "杈撻�佺嚎鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -668,6 +677,7 @@ } public WebResponseContent ConveyorLineCancel(string DeviceChildCode) { + WriteLog.GetLog("杈撻�佺嚎鎵嬪姩浠诲姟").Write($"銆愬彇娑堝懡浠ゃ�憑JsonConvert.SerializeObject(DeviceChildCode)}", "杈撻�佺嚎鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -691,6 +701,7 @@ } public WebResponseContent ConveyorLineInitialize(string DeviceChildCode) { + WriteLog.GetLog("杈撻�佺嚎鎵嬪姩浠诲姟").Write($"銆愬垵濮嬪寲鍛戒护銆憑JsonConvert.SerializeObject(DeviceChildCode)}", "杈撻�佺嚎鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -731,6 +742,7 @@ 13 => "棰勭暀4", 14 => "棰勭暀5", 15 => "棰勭暀6", + _ => $"鏈煡鎶ヨ({Alarm})" }; public enum ConveyorLineDBName @@ -758,6 +770,7 @@ #region RGV鎵嬪姩鍛戒护 public WebResponseContent RGVHandTask(HandTask RGVhand) { + WriteLog.GetLog("RGV鎵嬪姩浠诲姟").Write(JsonConvert.SerializeObject(RGVhand), "RGV鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -1017,6 +1030,7 @@ public WebResponseContent RGVReset(string DeviceCode) { + WriteLog.GetLog("RGV鎵嬪姩浠诲姟").Write($"銆愬浣嶅懡浠ゃ�憑JsonConvert.SerializeObject(DeviceCode)}", "RGV鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -1045,6 +1059,7 @@ public WebResponseContent RGVEmergencyStop(string DeviceCode) { + WriteLog.GetLog("RGV鎵嬪姩浠诲姟").Write($"銆愭�ュ仠鍛戒护銆憑JsonConvert.SerializeObject(DeviceCode)}", "RGV鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -1072,6 +1087,7 @@ } public WebResponseContent RGVCancel(string DeviceCode) { + WriteLog.GetLog("RGV鎵嬪姩浠诲姟").Write($"銆愬彇娑堜换鍔″懡浠ゃ�憑JsonConvert.SerializeObject(DeviceCode)}", "RGV鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -1099,6 +1115,7 @@ } public WebResponseContent RGVInitialize(string DeviceCode) { + WriteLog.GetLog("RGV鎵嬪姩浠诲姟").Write($"銆愬垵濮嬪寲鍛戒护銆憑JsonConvert.SerializeObject(DeviceCode)}", "RGV鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { @@ -1138,6 +1155,7 @@ public WebResponseContent RGVPause(string DeviceCode) { + WriteLog.GetLog("RGV鎵嬪姩浠诲姟").Write($"銆愬仠姝㈠懡浠ゃ�憑JsonConvert.SerializeObject(DeviceCode)}", "RGV鎵嬪姩浠诲姟"); WebResponseContent content = new WebResponseContent(); try { -- Gitblit v1.9.3