| | |
| | | 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; |
| | |
| | | |
| | | public WebResponseContent StackerHandTask(HandTask stackerhand) |
| | | { |
| | | WriteLog.GetLog("å åæºæå¨ä»»å¡").Write(JsonConvert.SerializeObject(stackerhand), "å åæºæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent StackerReset(string DeviceCode) |
| | | { |
| | | WriteLog.GetLog("å åæºæå¨ä»»å¡").Write($"ãå¤ä½å½ä»¤ã{JsonConvert.SerializeObject(DeviceCode)}", "å åæºæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent StackerEmergencyStop(string DeviceCode) |
| | | { |
| | | WriteLog.GetLog("å åæºæå¨ä»»å¡").Write($"ãæ¥åå½ä»¤ã{JsonConvert.SerializeObject(DeviceCode)}", "å åæºæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent ConveyorLineHandTask(HandTask ConveyorLinehand) |
| | | { |
| | | WriteLog.GetLog("è¾é线æå¨ä»»å¡").Write(JsonConvert.SerializeObject(ConveyorLinehand), "è¾é线æå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent ConveyorLineReset(string DeviceChildCode) |
| | | { |
| | | WriteLog.GetLog("è¾é线æå¨ä»»å¡").Write($"ãå¤ä½å½ä»¤ã{JsonConvert.SerializeObject(DeviceChildCode)}", "è¾é线æå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent ConveyorLineEmergencyStop(string DeviceChildCode) |
| | | { |
| | | WriteLog.GetLog("è¾é线æå¨ä»»å¡").Write($"ãæ¥åå½ä»¤ã{JsonConvert.SerializeObject(DeviceChildCode)}", "è¾é线æå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | } |
| | | public WebResponseContent ConveyorLineReturn(string DeviceChildCode) |
| | | { |
| | | WriteLog.GetLog("è¾é线æå¨ä»»å¡").Write($"ãéåå½ä»¤ã{JsonConvert.SerializeObject(DeviceChildCode)}", "è¾é线æå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | } |
| | | public WebResponseContent ConveyorLineCancel(string DeviceChildCode) |
| | | { |
| | | WriteLog.GetLog("è¾é线æå¨ä»»å¡").Write($"ãåæ¶å½ä»¤ã{JsonConvert.SerializeObject(DeviceChildCode)}", "è¾é线æå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | } |
| | | public WebResponseContent ConveyorLineInitialize(string DeviceChildCode) |
| | | { |
| | | WriteLog.GetLog("è¾é线æå¨ä»»å¡").Write($"ãåå§åå½ä»¤ã{JsonConvert.SerializeObject(DeviceChildCode)}", "è¾é线æå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | 13 => "é¢ç4", |
| | | 14 => "é¢ç5", |
| | | 15 => "é¢ç6", |
| | | _ => $"æªç¥æ¥è¦({Alarm})" |
| | | }; |
| | | |
| | | public enum ConveyorLineDBName |
| | |
| | | #region RGVæå¨å½ä»¤ |
| | | public WebResponseContent RGVHandTask(HandTask RGVhand) |
| | | { |
| | | WriteLog.GetLog("RGVæå¨ä»»å¡").Write(JsonConvert.SerializeObject(RGVhand), "RGVæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent RGVReset(string DeviceCode) |
| | | { |
| | | WriteLog.GetLog("RGVæå¨ä»»å¡").Write($"ãå¤ä½å½ä»¤ã{JsonConvert.SerializeObject(DeviceCode)}", "RGVæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent RGVEmergencyStop(string DeviceCode) |
| | | { |
| | | WriteLog.GetLog("RGVæå¨ä»»å¡").Write($"ãæ¥åå½ä»¤ã{JsonConvert.SerializeObject(DeviceCode)}", "RGVæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | } |
| | | public WebResponseContent RGVCancel(string DeviceCode) |
| | | { |
| | | WriteLog.GetLog("RGVæå¨ä»»å¡").Write($"ãåæ¶ä»»å¡å½ä»¤ã{JsonConvert.SerializeObject(DeviceCode)}", "RGVæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | } |
| | | public WebResponseContent RGVInitialize(string DeviceCode) |
| | | { |
| | | WriteLog.GetLog("RGVæå¨ä»»å¡").Write($"ãåå§åå½ä»¤ã{JsonConvert.SerializeObject(DeviceCode)}", "RGVæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | |
| | | |
| | | public WebResponseContent RGVPause(string DeviceCode) |
| | | { |
| | | WriteLog.GetLog("RGVæå¨ä»»å¡").Write($"ã忢å½ä»¤ã{JsonConvert.SerializeObject(DeviceCode)}", "RGVæå¨ä»»å¡"); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |