示例#1
0
        private void InitializationObjcet(int oid, Booking bookingoid, DateTime pickupitem, Vehicle car, Driver driver, string mainpassager, Address starting, Address destination, string flight, int paystate, float quote, int settlement, Flow state)
        {
            ObjID = new ComboValue<int>(TripOid, oid);
            Booking = new ComboValue<Booking>(TripBookingOID, bookingoid);

            this.PickUpTime = new ComboValue<DateTime>(TripPickUpTime, pickupitem);
            this.Car = new ComboValue<Vehicle>(TripCar, car);
            this.Driver = new ComboValue<Driver>(TripDriver, driver);
            this.MainPassager = new ComboValue<string>(TripMainPassager, mainpassager);
            this.StartingAddress = new ComboValue<Address>(TripStartingAddress, starting);
            this.DestinationAddress = new ComboValue<Address>(TripDestinationAddress, destination);
            this.Settlement = new ComboValue<int>(TripSettlement, settlement);
            this.Quote = new ComboValue<float>(TripQuote, quote);
            this.PayState = new ComboValue<int>(TripPayState, paystate);
            this.State = new ComboValue<Flow>(TripState, state);
            this.Flight = new ComboValue<string>(TripFlightMsg, flight);
        }
示例#2
0
 public Trip(int tid, int oid, Booking bookingoid, DateTime pickupitem, Vehicle car, Driver driver, string mainpassager, Address starting, Address destination, string flight, int paystate, float quote, int settlement, Flow state, bool iscover)
 {
     this.CreateFromDB(tid, iscover);
     InitializationObjcet(oid, bookingoid, pickupitem, car, driver, mainpassager, starting, destination, flight, paystate, quote, settlement, state);
 }
示例#3
0
 public void TestInit()
 {
     viewvehicle = new Vehicle();
     dbvehicle = new Vehicle("粤Z 123456", "RB 1234", "TOYOTA", "FK", 1, 7, 23, false);
 }