/// <summary>
        /// 执行所有任务
        /// </summary>
        void ExecuteAllTask()
        {
            DataHandlerDAO dataHandlerDAO = DataHandlerDAO.GetInstance();

            //taskSimpleScheduler.StartNewTask("同步入厂煤运输记录", () =>
            //{
            //	dataHandlerDAO.SyncBuyFulTransportFromQCH(this.rTxtOutputer.Output);

            //}, 10000, OutputError);

            taskSimpleScheduler.StartNewTask("同步批次明细", () =>
            {
                dataHandlerDAO.SyncToBatch(this.rTxtOutputer.Output);
            }, 60000, OutputError);

            //taskSimpleScheduler.StartNewTask("处理事件", () =>
            //{
            //	dataHandlerDAO.SyncHandleEvent(this.rTxtOutputer.Output);

            //}, 60000, OutputError);

            //AccessDapperDber doorDapperDber = new AccessDapperDber("Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info =true;Data Source=\\\\10.36.0.71\\ZKAccess3.5\\ZKAccess.mdb;");
            //taskSimpleScheduler.StartNewTask("同步门禁数据", () =>
            //{
            //    dataHandlerDAO.SyncDoorData(this.rTxtOutputer.Output, doorDapperDber);

            //}, 60000, OutputError);
        }
Beispiel #2
0
        /// <summary>
        /// 执行所有任务
        /// </summary>
        void ExecuteAllTask()
        {
            taskSimpleScheduler.StartNewTask("综合事件处理", () =>
            {
                DataHandlerDAO dataHandlerDAO = DataHandlerDAO.GetInstance();

                dataHandlerDAO.Start(this.rTxtOutputer.Output);
            }, 60000, OutputError);
        }
Beispiel #3
0
        /// <summary>
        /// 执行所有任务
        /// </summary>
        void ExecuteAllTask()
        {
            DataHandlerDAO dataHandlerDAO = DataHandlerDAO.GetInstance();
            string         outNetWebApi   = commonDAO.GetAppletConfigString(CommonAppConfig.GetInstance().AppIdentifier, "外网Api请求地址");

            taskSimpleScheduler.StartNewTask("同步外网矿发运输记录信息", () =>
            {
                dataHandlerDAO.SyncOutNetTransport(this.rTxtOutputer.Output, outNetWebApi);
            }, 10000, OutputError);

            taskSimpleScheduler.StartNewTask("同步更新外网矿发运输记录节点状态", () =>
            {
                dataHandlerDAO.SyncUpdateTransportStepName(this.rTxtOutputer.Output, outNetWebApi);
            }, 2000, OutputError);

            taskSimpleScheduler.StartNewTask("同步运输记录到批次明细", () =>
            {
                dataHandlerDAO.SyncToBatch(this.rTxtOutputer.Output);
            }, 2000, OutputError);
        }
Beispiel #4
0
        /// <summary>
        /// 执行所有任务
        /// </summary>
        void ExecuteAllTask()
        {
            DataHandlerDAO dataHandlerDAO = DataHandlerDAO.GetInstance();

            taskSimpleScheduler.StartNewTask("同步批次明细", () =>
            {
                dataHandlerDAO.SyncToBatch(this.rTxtOutputer.Output);
            }, 60000, OutputError);

            taskSimpleScheduler.StartNewTask("同步集控信号", () =>
            {
                dataHandlerDAO.SyncHomePageSignalData(this.rTxtOutputer.Output);
            }, 60000, OutputError);

            AccessDapperDber doorDapperDber = new AccessDapperDber("Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info =true;Data Source=\\\\10.36.0.71\\ZKAccess3.5\\ZKAccess.mdb;");

            taskSimpleScheduler.StartNewTask("同步门禁数据", () =>
            {
                //dataHandlerDAO.SyncDoorData(this.rTxtOutputer.Output, doorDapperDber);
            }, 60000, OutputError);
        }
Beispiel #5
0
        /// <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);
        }