Beispiel #1
0
 static void Exorder(OrderService orderService)
 {
     try
     {
         IEnumerable <Order> p = Searchorder(orderService);
         foreach (Order o in p)
         {
             Console.WriteLine("当前订单信息:");
             Console.WriteLine(o.ToString());
             Console.WriteLine("输入订单号:");
             string order_num = Console.ReadLine();
             Console.WriteLine("输入用户名:");
             string customer = Console.ReadLine();
             Console.WriteLine("输入总商品种类数:");
             int a;
             Int32.TryParse(Console.ReadLine(), out a);
             int total_num = a;
             orderService.ExOrder(o, order_num, customer, total_num);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }