Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }