using iWareSda_QQJF.SRM.SrmModel; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace iWareSda_QQJF.SRM.SrmService { // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“ISrmService”。 [ServiceContract, XmlSerializerFormat(Style = OperationFormatStyle.Rpc)] public interface ISrmService { /// 读取堆垛机信息 /// /// /// /// [OperationContract] string GetSrmInfo(int srmId); /// 堆垛机删除任务 /// /// /// [OperationContract] int SendSrmDelete(int srmId); /// 堆垛机任务完成确认信号发送 /// /// /// /// [OperationContract] int SendSrmTaskFinishConfirm(int srmId); /// 堆垛机急停 /// /// /// [OperationContract] int SendSrmEStop(int srmId); /// 发送堆垛机单放和移动任务 /// /// /// 堆垛机号 /// 任务id /// 目的地址 /// 2是单放,3是移动 /// /// [OperationContract] int SendSrmMove(int srmId, int taskId, string toPlace, int command, int palletType,int taskFather); /// 发送堆垛机搬运任务 /// /// /// 堆垛机号 /// 任务ID /// 起始位 /// 货物放置目的地 /// 托盘类型 1-6暂定 /// [OperationContract] int SendSrmTask(int srmId, int taskId, string sourcePlace, string toPlace, int pallet,int taskFather); /// 堆垛机解警 /// /// /// [OperationContract] void SrmRlsAlert(int srmId); /// 任务是否完成 /// /// /// /// /// /// [OperationContract] int IsTaskFinish(int srmId); /// 堆垛机是否准备好 /// /// /// /// [OperationContract] bool IsReady(int srmId); /// /// 获取完成任务号 /// /// /// [OperationContract] int FinishTask(int srmId); /// /// 获取主任务是否完成 /// /// /// //[OperationContract] //iWareSda_QQJF.WCS.TaskFinishClass TaskFinish(int taskId); /// /// 下发主任务 /// /// /// /// /// /// /// //[OperationContract] //iWareSda_QQJF.WCS.SendTaskClass SendTask(int palletType, string sourcePlace, string toPlace, int taskId, int taskType, int outType); ///// ///// 关联删除 ///// ///// ///// //[OperationContract] //int SendSrmDeleteAll(int srmID); /// /// 根据任务号删除任务 /// /// /// /// /// [OperationContract] bool DeleteMainTask(int id, out List tranDoingId, out List rgvDoingId, out List srmDoingId, out List placeList, out int dir); /// /// 根据托盘号删除任务 /// /// /// /// /// [OperationContract] bool DeleteMainTaskByContainerName(string containerName, out List tranDoingId, out List rgvDoingId, out List srmDoingId, out List placeList, out int dir); /// /// 是否故障 /// /// [OperationContract] bool IsNotAlarm(int srmId); /// /// 切花优化 /// /// [OperationContract] bool UseAutoMove(int srmId); } }