Esempio n. 1
0
    private Commands()
    {
        commands["login"]    = new LoginCommand();         //坐席CFG登录
        commands["logout"]   = new LogoutCommand();        //坐席CFG登出
        commands["ms"]       = new MonitorStartCommand();  //坐席登录CFG后,监听事件
        commands["mc"]       = new MakeCallCommand();      //外呼电话
        commands["download"] = new DownloadCommand();
        commands["alon"]     = new AgentLogOnCommand();    //坐席ACD登录
        commands["aloff"]    = new AgentLogOffCommand();   //坐席ACD登出
        commands["ags"]      = new AgentGetStateCommand(); //获取坐席当前状态(就绪3、置忙4、事后处理5)
        commands["ass"]      = new AgentSetStateCommand(); //设置坐席当前状态(就绪3、置忙4、事后处理5)
        commands["rc"]       = new ReleaseCallCommand();   //挂断电话
        commands["cc"]       = new ConsultCallCommand();   //电话转接
        commands["rnc"]      = new ReconnectCallCommand(); //电话恢复转接

        commands["ac"]  = new AnswerCallCommand();         //接电话  需要硬件接通
        commands["hc"]  = new HoldCallCommand();           //电话保持
        commands["rtc"] = new RetrieveCallCommand();       //电话恢复
    }
 private void MonitorChannelPageVM_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     MonitorStartCommand.RaiseCanExecuteChanged();
     PauseRecievingCommand.RaiseCanExecuteChanged();
 }