Exemple #1
0
        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");
            Console.WriteLine("Please select a item to run:");
            Console.WriteLine("1: InventoryAging");

            string x = Console.ReadLine();

            while (x != "x")
            {
                switch (x)
                {
                case "1":
                    InventoryAgeBP.SolveInventoryAge(context);
                    break;
                }
                x = Console.ReadLine();
            }

            Console.WriteLine(string.Format("结束 {0}", DateTime.Now));
            Console.Read();
        }
 public void Run(JobContext context)
 {
     InventoryAgeBP.SolveInventoryAge(context);
 }