| | |
| | | *----------------------------------------------------------------*/ |
| | | #endregion << ç æ¬ 注 é >> |
| | | |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | using WIDESEA_Core.BaseServices; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_DTO.Inbound; |
| | | using WIDESEA_DTO.Stock; |
| | | using WIDESEA_DTO.Task; |
| | | using WIDESEA_Model.Models; |
| | |
| | | public interface ITaskService : IService<Dt_Task> |
| | | { |
| | | IRepository<Dt_Task> Repository { get; } |
| | | |
| | | WebResponseContent CESTEXT(); |
| | | |
| | | //ä»»å¡åé¦ |
| | | WebResponseContent TaskCompleted(WCSTaskDTO wCSTask); |
| | | //WCSå
¥åºè·å |
| | | WebResponseContent PalletInboundTask(WCSTaskDTO wCSTask); |
| | | |
| | | //ä¸ä¼ MESï¼æå¨å®æ |
| | | WebResponseContent MESManualUpload(SaveModel saveModel); |
| | | |
| | | //æ¢å¤ä»»å¡ |
| | | WebResponseContent WMSTaskRecovery(SaveModel saveModel); |
| | | |
| | | |
| | | |
| | | |
| | | #region WCS任塿¨¡å |
| | | |
| | | //ä¸åWCSè¾éçº¿ä»»å¡ |
| | | WCSginseng PLC_IssueTasks(int TaskId, int AreaNo, string TransNo, string ContainerNo, int ContainerType, string FromPoint, string ToPoint, string ToStation); |
| | | //ä¸åWCSå åæºä»»å¡ |
| | | WCSginseng SC_IssueTasks(int TaskId, int AreaNo, string TransNo, string ContainerNo, int ContainerType, string FromPoint, string ToPoint, string ToStation); |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region MES任塿¨¡å |
| | | //空çååºï¼å
¥åºä»»å¡ |
| | | ApiResponse AddInStoreDoc(MES_InTask mES_In); |
| | | |
| | | //åºåºæ¥å£ |
| | | ApiResponse AddOutStoreDoc(MES_InTask mES_In); |
| | | |
| | | //åºä½è°æ¨æ¥å£ |
| | | ApiResponse GetLocationByContainer(MES_InTask mES_In); |
| | | |
| | | //任塿¥è¯¢ |
| | | ApiResponse GetTaskInfo([FromBody] MES_InTask mES_In); |
| | | |
| | | //ä»»å¡åæ¶æ¥å£ |
| | | ApiResponse CancelTask([FromBody] MES_InTask mES_In); |
| | | |
| | | |
| | | |
| | | //å
¥åºä»»å¡å馿¥å£ |
| | | MES_parameter InStoreDocCallback(string TransNo, string Result, string ResultMsg, string ContainerNo, string LocationCode); |
| | | //åºåºä»»å¡å馿¥å£ |
| | | MES_parameter OutStoreDocCallback(string TransNo, string Result, string ResultMsg); |
| | | |
| | | //å¨ä½å¼å¨ç³è¯· |
| | | MES_parameter ApplicationChangeStorageLocation(string ContainerNo, string OriginalLocationCode, string NewLocationCode); |
| | | //å¨ä½å¼å¨ |
| | | MES_parameter AbnormalStorageLocation(string ContainerNo, string OriginalLocationCode, string NewLocationCode); |
| | | /// ä»»å¡å¼å¸¸ |
| | | MES_parameter ToMES_TaskException(string TransNo, string EquipmentType, string EquipmentNumber, string ErrorInfo); |
| | | #endregion |
| | | |
| | | |
| | | #region ä»»å¡éåï¼è·å任塿¨¡å |
| | | //è·åä»»å¡éå |
| | | List<Dt_Task> GetaskQueue(string deviceId); |
| | | |
| | | //æ ¹æ®è®¾å¤è·åæ¯å¦æå¨æ§è¡çä»»å¡ |
| | | bool CurrentTaskProgress(string deviceId); |
| | | |
| | | //è·åè¾é线éè¦ä¸åçä»»å¡ |
| | | List<Dt_Task> GetaskQueuePLC(); |
| | | |
| | | //è·åæ¯å¦æç§»åºä»»å¡ |
| | | Dt_Task GeRelocationTaskQueue(string LocationCode); |
| | | |
| | | //夿å½åå åæºæ¯å¦æç§»åºä»»å¡ |
| | | bool RelocationTaskProgress(string deviceId); |
| | | #endregion |
| | | } |
| | | } |