Пример #1
0
 public void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxSpe.wlst_spe_zc_sim,
         UpdateSimAck,
         typeof(SimManageViewModel), this);
 }
Пример #2
0
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxSpe.wlst_request_or_update_group_class_info,       //ProtocolCnt.ClientPart.wlst_RecordEvent_server_ans_clinet_request_data,
         Request,
         typeof(TreeTabRtuSetvM), this, true);
 }
        /// <summary>
        /// 事件过滤
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        //private bool FundOrderFilter(PublishEventArgs args)
        //{
        //    return _isfilter;

        //}
        //public bool FundOrderFilters(PublishEventArgs args) //接收终端选中变更事件
        //{
        //    try
        //    {
        //    }
        //    catch (Exception ex)
        //    {
        //        Wlst.Cr.Core.UtilityFunction.WriteLog.WriteLogError("Error:" + ex);
        //    }
        //    return false;
        //}

        private void InitAction()
        {
            ProtocolServer.RegistProtocol(Sr.ProtocolPhone.LxRtu.wst_rtu_orders, //.wlst_svr_ans_cnt_request_snd_rtu_time,
                                                                                 //.ClientPart.wlst_asyntime_server_ans_clinet_order_sendweeksetk1k3,
                                          ResponseSndWeekSetK1K3, typeof(UserOperateMsgViewModel), this, true);


            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxRtu.wst_svr_ans_cnt_order_rtu_open_close_light,// .wlst_svr_ans_cnt_wj3090_order_open_close_light ,//.ClientPart.wlst_OpenCloseLight_server_ans_clinet_order_opencloseLight ,
                ExExecuteOpenLight,
                typeof(UserOperateMsgViewModel), this, true);


            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSlu.wst_svr_ans_slu_right_operator,// .wst_slu_right_operator,
                // .wlst_svr_ans_cnt_wj2090_order_right_operator ,//.ClientPart.wlst_Wj2090svr_ans_clinet_right_operator_slu,
                SluMeasureBack,
                typeof(UserOperateMsgViewModel), this, true);

            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSlu.wst_svr_ans_slu_ctrl_measure,
                // .wlst_svr_ans_cnt_wj2090_order_auto_fe ,//.ClientPart.wlst_Wj2090_svr_to_clinet_slu_auto_fe,
                SluCtrlMeasure,
                typeof(UserOperateMsgViewModel), this, true);

            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSlu.wst_svr_ans_read_ctrl_args,
                CtrlArgsMeasure,
                typeof(UserOperateMsgViewModel), this, true);
        }
Пример #4
0
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Sr.ProtocolPhone.LxFault.wlst_fault_pre,
         OnRequestFault,
         typeof(CurrentEquipmentFaultViewModel), this);
 }
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxFault.wlst_user_define_fault_alarms,     //.ProtocolCnt.ClientPart.wlst_EquipemntLightFault_server_ans_clinet_request_UserIndividuationFault,
         RequestOrUpdateUserIndividuationFault,
         typeof(UserDisplayErrorSelfSetInfoHold), this);
 }
Пример #6
0
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Sr.ProtocolPhone.LxRtu.wst_rtu_sd_reply,
         OnRtuSDReplay,
         typeof(SDCardQueryViewModel), this);
 }
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxSys.wst_sys_rep_sh,
         RequestSystemInfo,
         typeof(SystemInformationViewModel), this, true);
 }
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(Sr.ProtocolPhone.LxRtu.wst_rtu_user_oc_info,
                                   //.wlst_svr_ans_cnt_request_snd_rtu_time,
                                   //.ClientPart.wlst_asyntime_server_ans_clinet_order_sendweeksetk1k3,
                                   ResponseUserOcInfo, typeof(UserOcInfoViewModel), this);
 }
Пример #9
0
 public void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxAls.wst_svr_ans_lux_orders,   // .wlst_svr_ans_cnt_lux_measure ,//.ClientPart.wlst_Wj1080_server_ans_clinet_order_Measure,
         LuxDataMeasureEvent,
         typeof(LuxOnTabViewModel), this);
 }
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Sr.ProtocolCnt.ClientPart.wlst_Wj1090_server_ans_clinet_order_ClearBrightLightBase,
         GetRecClearBrightLightData,
         typeof(NavWj1090ClearBrightLightBase), this);
 }
Пример #11
0
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxRtu.wst_ldl_sxx_avg_set,// .wlst_svr_ans_cnt_wj3090_request_ldl_loop_current_avg,//.ClientPart.wlst_Measures_server_ans_clinet_rqup_loop_sxx,
         RequestOrUpdateFaultTypeInfo,
         typeof(RapidSetRtuAmp), this, true);
 }
 public void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxRtu.wst_rtu_elec_stats_data, // .wlst_svr_ans_cnt_request_wj3090_measure_data ,
         RecordDataRequest,
         typeof(ElectricityStatisticsViewModel), this);
 }
Пример #13
0
 public void InitAction()
 {
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxFault.wlst_fault_occu_data,
         OnRcvSvrFaultHappenData,
         typeof(FaultDataShow), this);
 }
Пример #14
0
 private void InitAction()
 {
     //todo
     ProtocolServer.RegistProtocol(
         Wlst.Sr.ProtocolPhone.LxFault.wst_fault_hlbph_level,//.ClientPart.wlst_server_ans_clinet_request_sys_title,
         ActionRcvLnSetting,
         typeof(EquipmentFaultManageSettingViewModel), this);
 }
Пример #15
0
        public void InitAction()
        {
            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxRtu.wst_svr_ans_cnt_order_rtu_open_close_light,   // .wlst_svr_ans_cnt_wj3090_order_open_close_light ,//.ClientPart.wlst_OpenCloseLight_server_ans_clinet_order_opencloseLight ,
                ExExecuteOpenLight,
                typeof(OpenCloseLightDataDispatch), this);

            //ProtocolServer.RegistProtocol(
            //    Wlst.Sr.ProtocolCnt.ClientPart.wlst_OpenCloseLight_server_ans_clinet_order_closeLight,
            //    ExExecuteCloseLight,
            //    typeof(OpenCloseLightDataDispatch), this);

            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxRtu.wst_rtu_orders,   // .wlst_svr_ans_cnt_request_asyn_rtu_time ,//.ClientPart.wlst_asyntime_server_ans_client_order_asynrtutime,
                ExAsynTime,
                typeof(OpenCloseLightDataDispatch), this);
        }
Пример #16
0
        private void InitAction()
        {
            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxFault.wlst_fault_curr,
                RequestOrUpdateTmlExistFaultsData,
                typeof(TmlExistFaultsInfo), this);

            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSpe.wst_spe_special_rtus,
                RequestOrUpdateTmlExistFaultsData1,
                typeof(TmlExistFaultsInfo), this);
            //lvf 2018年6月28日13:26:35  处理火零不平衡
            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxFault.wst_fault_curr_update,
                RequestTmlExistFaultsLnData,
                typeof(TmlExistFaultsInfo), this);
        }
Пример #17
0
        public void InitAciotn()
        {
            if (_init)
            {
                return;
            }
            _init = true;
            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSys.wst_sys_file_lst,
                OnReqFileLst,
                typeof(FileSyncWithSvr), this);


            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSys.wst_sys_file_brief_info,
                OnReqFileBriefInfo,
                typeof(FileSyncWithSvr), this);

            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSys.wst_sys_request_file,
                OnReqFileInfo
                ,
                typeof(FileSyncWithSvr), this);

            ProtocolServer.RegistProtocol(
                Wlst.Sr.ProtocolPhone.LxSys.wst_sys_request_file_back,
                OnReqFileInfoBack
                ,
                typeof(FileSyncWithSvr), this);

            //注册调度函数
            Wlst.Cr.Coreb.AsyncTask.Qtz.AddQtz("nt", 0, DateTime.Now.AddMinutes(5).Ticks, 24 * 60 * 60,
                                               OnInit);
            Wlst.Cr.Coreb.AsyncTask.Qtz.AddQtz("nt", 0, DateTime.Now.AddMinutes(5).Ticks, 5,
                                               OnOnReqFileInfoBackWrInThrd);

            //if (DirFileNeed.Contains(@"D:\CETC50\FileSync\SingleLamp") == false)
            //    DirFileNeed.Add(@"D:\CETC50\FileSync\SingleLamp");
            SetNeedShareFileDir(@"D:\CETC50\FileSync\SingleLamp");
        }
Пример #18
0
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(Sr.ProtocolPhone.LxRtuTime.wst_timetable_set,
                                   ExSaveWeek, typeof(TopDataViewModel), this, true);
 }
Пример #19
0
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(Sr.ProtocolPhone.LxRtu.wst_rtu_orders, //.wlst_svr_ans_cnt_request_snd_rtu_time,
                                                                          //.ClientPart.wlst_asyntime_server_ans_clinet_order_sendweeksetk1k3,
                                   ResponseStopRunning, typeof(BatchStopRunning), this);
 }
Пример #20
0
 private void InitAction()
 {
     ProtocolServer.RegistProtocol(Wlst.Sr.ProtocolPhone.LxSys.wlst_sys_svr_to_cnt_info,    //.ClientPart.wlst_Infrastructure_server_to_clinet_msginfo,
                                   MsgAction, typeof(NewSvrMsgViewModel), this, true);
     Wlst.Cr.CoreMims.ShowMsgInfo.ShowNewMsg.ActionAddShowInfo += AddNewRecordItem;
 }