Exemplo n.º 1
0
        public static Trip NewTrip(Booking prebooking)
        {
            Trip Trip = new Trip(prebooking);

            //Trip.Booking.Value = prebooking;
            return Trip;
        }
Exemplo n.º 2
0
 public Flow(Booking booking, Trip trip)
 {
     this.CreateFromView();
     InitializationObjcet(booking, trip, FlowStateType_BeBooking, DateTime.Now);
 }
Exemplo n.º 3
0
        public Flow(int tid, Booking orderid, Trip trip, int flow, DateTime timemark, bool IsCover)
        {
            this.CreateFromDB(tid, IsCover);

            InitializationObjcet(orderid, trip, flow, timemark);
        }
Exemplo n.º 4
0
        private void InitializationObjcet(Booking booking, Trip belongtrip, int flow, DateTime timemark)
        {
            BelongBooking = new ComboValue<Booking>(FlowBelongTripOId, booking);
            BelongTrip = new ComboValue<Trip>(FlowBelongTripOId, belongtrip);

            State = new ComboValue<int>(FlowState, flow);

            TimeMark = new ComboValue<DateTime>(FlowTimeMark, timemark);
        }