/// <summary>
        /// 执行所有任务
        /// </summary>
        void ExecuteAllTask()
        {
            #region #1皮带采样机

            EquBeltSamplerDAO beltSamplerDAO1 = new EquBeltSamplerDAO(GlobalVars.MachineCode_PDCYJ_1);

            taskSimpleScheduler.StartNewTask("#1皮带采样机-快速同步", () =>
            {
                beltSamplerDAO1.SyncSignal(this.rTxtOutputer.Output);
                //beltSamplerDAO1.SyncSamplePlan(this.rTxtOutputer.Output);
                beltSamplerDAO1.SyncBarrel(this.rTxtOutputer.Output);
                //beltSamplerDAO1.SyncTurn(this.rTxtOutputer.Output);
                beltSamplerDAO1.SyncSampleCmd(this.rTxtOutputer.Output);
                beltSamplerDAO1.SyncSamplePlan_KY(this.rTxtOutputer.Output);
                beltSamplerDAO1.SyncError(this.rTxtOutputer.Output);
                beltSamplerDAO1.SyncUnloadResult(this.rTxtOutputer.Output);
            }, 2000, OutputError);

            #endregion

            #region #2皮带采样机

            EquBeltSamplerDAO beltSamplerDAO2 = new EquBeltSamplerDAO(GlobalVars.MachineCode_PDCYJ_2);

            taskSimpleScheduler.StartNewTask("#2皮带采样机-快速同步", () =>
            {
                beltSamplerDAO2.SyncSignal(this.rTxtOutputer.Output);
                //beltSamplerDAO2.SyncSamplePlan(this.rTxtOutputer.Output);
                beltSamplerDAO2.SyncBarrel(this.rTxtOutputer.Output);
            }, 2000, OutputError);

            #endregion


            taskSimpleScheduler.StartNewTask("同步皮带采样机OPC", () =>
            {
                EquBeltSamplerOPC.GetInstance().SyncOPCTags(this.rTxtOutputer.Output);
            }, 0, OutputError);
        }
        /// <summary>
        /// 执行所有任务
        /// </summary>
        void ExecuteAllTask()
        {
            SqlServerDapperDber BeltSampler_Dber_Out = null;
            EquBeltSamplerDAO   beltSamplerDAO_Out   = null;

            taskSimpleScheduler.StartNewTask("出场皮带采样机快速同步", () =>
            {
                BeltSampler_Dber_Out = new SqlServerDapperDber(CommonDAO.GetInstance().GetCommonAppletConfigString("出场皮带采样机接口连接字符串"));
                beltSamplerDAO_Out   = new EquBeltSamplerDAO("出场", BeltSampler_Dber_Out);
                if (CommonDAO.GetInstance().TestPing(BeltSampler_Dber_Out.Connection.DataSource))
                {
                    beltSamplerDAO_Out.SyncSignal(this.rTxtOutputer.Output);
                    beltSamplerDAO_Out.SyncError(this.rTxtOutputer.Output);
                    beltSamplerDAO_Out.SyncBarrel(this.rTxtOutputer.Output);
                    beltSamplerDAO_Out.SyncPlan(this.rTxtOutputer.Output);
                    beltSamplerDAO_Out.SyncUnloadCmd(this.rTxtOutputer.Output);
                    beltSamplerDAO_Out.SyncCmd(this.rTxtOutputer.Output);
                    beltSamplerDAO_Out.SyncUnloadResult(this.rTxtOutputer.Output);
                }
                else
                {
                    rTxtOutputer.Output("出场皮带采样机网络不通");
                }
            }, 3000, OutputError);

            this.taskSimpleScheduler.StartNewTask("出场皮带采样机运行状态-心跳", () =>
            {
                if (CommonDAO.GetInstance().TestPing(BeltSampler_Dber_Out.Connection.DataSource))
                {
                    beltSamplerDAO_Out.SyncHeartbeatSignal();
                }
                else
                {
                    rTxtOutputer.Output("出场皮带采样机网络不通");
                }
            }, 30000, OutputError);

            #region 入场
            SqlServerDapperDber BeltSampler_Dber_In = null;
            EquBeltSamplerDAO   beltSamplerDAO_In   = null;

            taskSimpleScheduler.StartNewTask("入场皮带采样机快速同步", () =>
            {
                BeltSampler_Dber_In = new SqlServerDapperDber(CommonDAO.GetInstance().GetCommonAppletConfigString("入场皮带采样机接口连接字符串"));
                beltSamplerDAO_In   = new EquBeltSamplerDAO("入场", BeltSampler_Dber_In);
                if (CommonDAO.GetInstance().TestPing(BeltSampler_Dber_In.Connection.DataSource))
                {
                    beltSamplerDAO_In.SyncSignal(this.rTxtOutputer.Output);
                    beltSamplerDAO_In.SyncError(this.rTxtOutputer.Output);
                    beltSamplerDAO_In.SyncBarrel(this.rTxtOutputer.Output);
                    beltSamplerDAO_In.SyncPlan(this.rTxtOutputer.Output);
                    beltSamplerDAO_In.SyncUnloadCmd(this.rTxtOutputer.Output);
                    beltSamplerDAO_In.SyncCmd(this.rTxtOutputer.Output);
                    beltSamplerDAO_In.SyncUnloadResult(this.rTxtOutputer.Output);
                }
                else
                {
                    rTxtOutputer.Output("入场皮带采样机网络不通");
                }
            }, 3000, OutputError);

            this.taskSimpleScheduler.StartNewTask("入场皮带采样机运行状态-心跳", () =>
            {
                if (CommonDAO.GetInstance().TestPing(BeltSampler_Dber_In.Connection.DataSource))
                {
                    beltSamplerDAO_In.SyncHeartbeatSignal();
                }
                else
                {
                    rTxtOutputer.Output("入场皮带采样机网络不通");
                }
            }, 30000, OutputError);
            #endregion
        }