Exemple #1
0
        static void Main(string[] args)
        {
            Program biz = new Program();

            if (string.Compare(DA.GetSys_Configuration_NewPointSwitch(), "Y") == 0)
            {
                Biz newBiz = new Biz();
                newBiz.SendExpireEmailEmail(biz.context);
            }
            else
            {
                biz.DoJob();
            }
        }
Exemple #2
0
 public void Run(JobContext context)
 {
     this.context = context;
     PrintMessage("Job运行开始!");
     if (string.Compare(DA.GetSys_Configuration_NewPointSwitch(), "Y") == 0)
     {
         Biz newBiz = new Biz();
         newBiz.SendExpireEmailEmail(context);
     }
     else
     {
         DoJob();
     }
     PrintMessage("Job运行完成!");
 }