|  |  |  | 
|---|
|  |  |  | return content; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// CTUåæ¶ä»»å¡ | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public WebResponseContent AgvBoxApplyPass(AgvCTUCancelDTO applyPassDTO, APIEnum SecureReply = APIEnum.AGV_CTUCancelTask) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | WebResponseContent content = new WebResponseContent(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | string? apiAddress = apiInfos.FirstOrDefault(x => x.ApiCode == SecureReply.ToString())?.ApiAddress; | 
|---|
|  |  |  | if (string.IsNullOrEmpty(apiAddress)) | 
|---|
|  |  |  | return WebResponseContent.Instance.Error($"æªæ¾å°AGV忶任塿¥å£,è¯·æ£æ¥æ¥å£é
ç½®"); | 
|---|
|  |  |  | string response = HttpHelper.Post(apiAddress, applyPassDTO.Serialize()); | 
|---|
|  |  |  | AgvResponseContent agvContent = response.DeserializeObject<AgvResponseContent>(); | 
|---|
|  |  |  | if (agvContent.Code == "0") | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.OK(agvContent.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.Error(agvContent.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | catch (Exception ex) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.Error(ex.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return content; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// AGVæååæ¾è´§éç¥ | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public WebResponseContent AgvBoxApplyPass(AGVBoxApplyPassDTO applyPassDTO, APIEnum SecureReply = APIEnum.AGV_CPBoxApplyPass) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | WebResponseContent content = new WebResponseContent(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | string? apiAddress = apiInfos.FirstOrDefault(x => x.ApiCode == SecureReply.ToString())?.ApiAddress; | 
|---|
|  |  |  | if (string.IsNullOrEmpty(apiAddress)) | 
|---|
|  |  |  | return WebResponseContent.Instance.Error($"æªæ¾å°åéAGV任塿¥å£,è¯·æ£æ¥æ¥å£é
ç½®"); | 
|---|
|  |  |  | string response = HttpHelper.Post(apiAddress, applyPassDTO.Serialize()); | 
|---|
|  |  |  | AgvResponseContent agvContent = response.DeserializeObject<AgvResponseContent>(); | 
|---|
|  |  |  | if (agvContent.Code == "0") | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.OK(agvContent.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.Error(agvContent.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | catch (Exception ex) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.Error(ex.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return content; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public WebResponseContent AgvPreScheduleTask(AgvScheduleTaskDTO scheduleTaskDTO, APIEnum ScheduleTask = APIEnum.AGV_CTUScheduleTaskTask) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | WebResponseContent content = new WebResponseContent(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | string? apiAddress = apiInfos.FirstOrDefault(x => x.ApiCode == ScheduleTask.ToString())?.ApiAddress; | 
|---|
|  |  |  | if (string.IsNullOrEmpty(apiAddress)) | 
|---|
|  |  |  | return WebResponseContent.Instance.Error($"æªæ¾å°åéAGV任塿¥å£,è¯·æ£æ¥æ¥å£é
ç½®"); | 
|---|
|  |  |  | string response = HttpHelper.Post(apiAddress, scheduleTaskDTO.Serialize()); | 
|---|
|  |  |  | AgvResponseContent agvContent = response.DeserializeObject<AgvResponseContent>(); | 
|---|
|  |  |  | if (agvContent.Code == "0") | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.OK(agvContent.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.Error(agvContent.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | catch (Exception ex) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | content.Error(ex.Message); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return content; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// AGVä»»å¡ç¶æå·æ°/AGVä»»å¡å®æ | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | /// <param name="agvUpdateModel"></param> | 
|---|