示例#1
0
 public BO.Autobus DOtoBOadapter(couche_DL.DLAPI.DO.Autobus bus)
 {
     BO.Autobus x = new BO.Autobus();
     x.fromDate   = bus.fromDate;
     x.fuelremain = bus.fuelremain;
     x.licenseNum = bus.licenseNum;
     x.Status     = (BO.BusStatus)((int)bus.Status);
     x.totalTrip  = bus.totalTrip;
     return(x);
 }
示例#2
0
 public bool CreateAutobus(BO.Autobus bus)
 {
     couche_DL.DLAPI.DO.Autobus x = BOtoDOadapter(bus);
     return(DL.CreateAutobus(x));
 }
示例#3
0
 public bool UpdateAutobus(BO.Autobus adjacent)
 {
     return(DL.UpdateAutobus(BOtoDOadapter(adjacent)));
 }