예제 #1
0
파일: Program.cs 프로젝트: sanlonezhang/ql
        static void Main(string[] args)
        {
            JobContext context = new JobContext();

            context.Properties = new Dictionary <string, string>();
            context.Properties.Add("BizLog", BIZLOG);
            context.Properties.Add("RejectionPercent", "30");

            context.Properties.Add("ISInitialHavaSaledRecord", "1");
            context.Properties.Add("ISInitialHavaNotSaledRecord", "1");

            Console.WriteLine("Please select a item to run:");
            Console.WriteLine("1: AVGDailySalesSAP");
            string x = Console.ReadLine();

            while (x != "x")
            {
                switch (x)
                {
                case "1":
                    Console.WriteLine("同步日均销售表结束: " + AVGDailySalesToSAPBP.Process(context));
                    break;
                }
                x = Console.ReadLine();
            }
            Console.Read();
        }
 public void Run(JobContext context)
 {
     AVGDailySalesToSAPBP.Process(context);
 }