Beispiel #1
0
 }                                             //客户名称
 public Order()                                //构造函数
 {
     Order.orderCount++;                       //每有一单就加1
     MyOrderDateTime = new OrderDateTime();    //初始化订单日期
     ClientName      = "";                     //初始化客户名称
     OrderNum        = "";                     //生成订单流水号
     AllPrice        = 0;                      //初始化订单明细
 }
Beispiel #2
0
 public Order(string clientName)                        //构造函数
 {
     Order.orderCount++;                                //每有一单就加1
     MyOrderDateTime = new OrderDateTime(DateTime.Now); //初始化订单日期
     ClientName      = clientName;                      //初始化客户名称
     //生成订单流水号
     OrderNum = MyOrderDateTime.Year.ToString() + "-" + MyOrderDateTime.Month.ToString() + "-" + MyOrderDateTime.Day.ToString() + "-" + orderCount.ToString();
     //初始化订单明细
     AllPrice = 0;
 }