Ejemplo n.º 1
0
 public void AddCommand(string commandType, string command)
 {
     ECCommandData cmd = new ECCommandData();
     cmd.CommandType = commandType;
     cmd.Command = command;
     _commandQueue.Enqueue(cmd);
 }
        public void SendCommand(ECCommandData command)
        {
            Result = command.Result;
            if (command.CommandType == "LABEL_REQUEST" || command.CommandType == "LBOX_LABEL_REQUSET")
            {
                command.Result.Clear();
                ECData.Clear();
            }

            SendData(command.Command);
            Manager.LogManager.Instance.WriteECCommLog("[SEND], " + command.Command);
        }
Ejemplo n.º 3
0
        public void SendCommand(ECCommandData command)
        {
            Result = command.Result;

            command.Result.Clear();
            ECData.Clear();

            string msg = AppendHeader(command.Command.ToCommand());

            SendData(msg);
            Manager.LogManager.Instance.WriteECCommLog("[SEND], " + msg);
        }
        public void AddCommand(string commandType, string command, ECResult result)
        {
            if (result == null)
                result = new ECResult();

            ECCommandData cmd = new ECCommandData();
            cmd.CommandType = commandType;
            cmd.Command = command;
            cmd.Result = result;
            _commandQueue.Enqueue(cmd);
        }
Ejemplo n.º 5
0
        public void AddCommand(FAECInfo.ECCommand command, ECResult result)
        {
            if (result == null)
                result = new ECResult();

            if (command is FAECInfo.RetryableCommand)
            {
                ((FAECInfo.RetryableCommand)command).IsRetry = false;
                ((FAECInfo.RetryableCommand)command).RetryCount = 0;
            }

            result.LastAlarmNo = 0;
            ECCommandData cmd = new ECCommandData();
            cmd.Command = command;
            cmd.Result = result;
            _commandQueue.Enqueue(cmd);
        }