Exemplo n.º 1
0
 public Booking(int tid, int oid, DateTime createtime, Client customer, int state, IEnumerable<Trip> orders)
 {
     this.CreateFromDB(tid, false);
     InitializationObjcet(-1, DateTime.MinValue, null, BookingStateType_Ready);
     bookingorder.AddRange(orders);
 }
Exemplo n.º 2
0
 private void InitializationObjcet(int oid, DateTime createtime, Client customer, int state)
 {
     ObjID = new ComboValue<int>(BookingOID, oid);
     CreateTime = new ComboValue<DateTime>(BookingCreateTime, createtime);
     Customer = new ComboValue<Modle.Client>(BookingCustomer, customer);
     State = new ComboValue<int>(BookingState, state);
     bookingorder = new List<Trip>();
 }