/// <summary> /// 执行所有任务 /// </summary> void ExecuteAllTask() { DataHandlerDAO dataHandlerDAO = DataHandlerDAO.GetInstance(); SqlServerDapperDber qgcDapperDber = new SqlServerDapperDber(commonDAO.GetCommonAppletConfigString("全过程接口连接字符串")); taskSimpleScheduler.StartNewTask("同步全过程基础信息", () => { dataHandlerDAO.SyncBaseInfoForCHLGL(this.rTxtOutputer.Output, qgcDapperDber); //dataHandlerDAO.SyncBaseInfoForDYJH(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForGYS(this.rTxtOutputer.Output, qgcDapperDber); //dataHandlerDAO.SyncBaseInfoForCHYSH(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForKB(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForMZ(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForDYJHK(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForYAPFK(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForQCLMYGP(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForWZJHCL(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForJLMZ(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForJLPZ(this.rTxtOutputer.Output, qgcDapperDber); dataHandlerDAO.SyncBaseInfoForcCLGLLSPZ(this.rTxtOutputer.Output, qgcDapperDber); }, 10000, OutputError); taskSimpleScheduler.StartNewTask("处理集控首页数据", () => { dataHandlerDAO.HandleHomePageData(this.rTxtOutputer.Output); }, 10000, OutputError); //初始化Api string ip = commonDAO.GetCommonAppletConfigString("海康平台地址"); int port = commonDAO.GetCommonAppletConfigInt32("海康协议端口号"); string Appkey = commonDAO.GetCommonAppletConfigString("海康Appkey"); string Secret = commonDAO.GetCommonAppletConfigString("海康Secret"); HttpUtillib.SetPlatformInfo(Appkey, Secret, ip, port, false); taskSimpleScheduler.StartNewTask("同步门禁数据", () => { dataHandlerDAO.SyncDoorEventData(this.rTxtOutputer.Output); }, 60000, OutputError); }