Ejemplo n.º 1
0
  public void fromDTO(GsmVehicleDataDTO gsmVehicleDataDTO) {

    this.set_id(gsmVehicleDataDTO.getId());
    this.setUuid(gsmVehicleDataDTO.getUuid());
    this.setImei(gsmVehicleDataDTO.getImei());
    this.setAppUserNo(gsmVehicleDataDTO.getAppUserNo());
    this.setUserType(gsmVehicleDataDTO.getUserType());
    this.setDoor(gsmVehicleDataDTO.getDoor());
    this.setCurMil(gsmVehicleDataDTO.getCurMil());
    this.setMile(gsmVehicleDataDTO.getMile());
    this.setUploadTime(new XNumberLong(gsmVehicleDataDTO.getUploadTime()));
    this.setUploadServerTime(new XNumberLong(gsmVehicleDataDTO.getUploadServerTime()));
    this.setDttpe(gsmVehicleDataDTO.getDttpe());
    this.setSpwr(gsmVehicleDataDTO.getSpwr());
    this.setRpf(gsmVehicleDataDTO.getRpf());
    this.setRpm(gsmVehicleDataDTO.getRpm());
    this.setVss(gsmVehicleDataDTO.getVss());
    this.setLon(gsmVehicleDataDTO.getLon());
    this.setLonDir(gsmVehicleDataDTO.getLonDir());
    this.setLat(gsmVehicleDataDTO.getLat());
    this.setLatDir(gsmVehicleDataDTO.getLatDir());
    this.setGpsSpeed(gsmVehicleDataDTO.getGpsSpeed());
    this.setGpsHeading(gsmVehicleDataDTO.getGpsHeading());
    this.setGpsDataValidity(gsmVehicleDataDTO.getGpsDataValidity());
    this.setaOilWear(gsmVehicleDataDTO.getaOilWear());
    this.setbOilWear(gsmVehicleDataDTO.getbOilWear());
    this.setmOilWear(gsmVehicleDataDTO.getmOilWear());
    this.setrOilMass(gsmVehicleDataDTO.getrOilMass());
    this.setVehicleStatus(gsmVehicleDataDTO.getVehicleStatus());
    this.setRdtc(gsmVehicleDataDTO.getRdtc());
    this.setGsmVehicleStatus(gsmVehicleDataDTO.getGsmVehicleStatus());
    this.setVoltageForOxygenSensor(gsmVehicleDataDTO.getVoltageForOxygenSensor());
    this.setThrottlePosition(gsmVehicleDataDTO.getThrottlePosition());
    this.setGx(gsmVehicleDataDTO.getGx());
    this.setGy(gsmVehicleDataDTO.getGy());
    this.setGz(gsmVehicleDataDTO.getGz());
    this.setWbtm(gsmVehicleDataDTO.getWbtm());
    this.setGpsCityStatus(GsmVehicleStatus.UN_HANDLE);
    this.setrOilMassType(gsmVehicleDataDTO.getrOilMassType());
    this.setCountry(gsmVehicleDataDTO.getCountry());
    this.setSupplier(gsmVehicleDataDTO.getSupplier());
    this.setBase_station(gsmVehicleDataDTO.getBase_station());
    this.setDist_id(gsmVehicleDataDTO.getDist_id());
  }
Ejemplo n.º 2
0
 public GsmVehicleDataDTO toDTO() {
   GsmVehicleDataDTO gsmVehicleDataDTO = new GsmVehicleDataDTO();
   gsmVehicleDataDTO.setId(this.get_id().get$oid().toString());
   gsmVehicleDataDTO.setUuid(this.getUuid());
   gsmVehicleDataDTO.setImei(this.getImei());
   gsmVehicleDataDTO.setAppUserNo(this.getAppUserNo());
   gsmVehicleDataDTO.setUserType(getUserType());
   gsmVehicleDataDTO.setDoor(this.getDoor());
   gsmVehicleDataDTO.setCurMil(this.getCurMil());
   gsmVehicleDataDTO.setMile(this.getMile());
   gsmVehicleDataDTO.setUploadTime(NumberUtil.longValue((this.getUploadTime().get$numberLong())));
   gsmVehicleDataDTO.setUploadServerTime(
       NumberUtil.longValue(this.getUploadServerTime().get$numberLong()));
   gsmVehicleDataDTO.setDttpe(this.getDttpe());
   gsmVehicleDataDTO.setSpwr(String.valueOf(NumberUtil.round(this.getSpwr())));
   gsmVehicleDataDTO.setVoltageForOxygenSensor(
       String.valueOf(NumberUtil.round(this.getVoltageForOxygenSensor())));
   gsmVehicleDataDTO.setRpf(getRpf());
   gsmVehicleDataDTO.setRpm(this.getRpm());
   gsmVehicleDataDTO.setVss(this.getVss());
   gsmVehicleDataDTO.setLon(this.getLon());
   gsmVehicleDataDTO.setLonDir(this.getLonDir());
   gsmVehicleDataDTO.setLat(this.getLat());
   gsmVehicleDataDTO.setLatDir(this.getLatDir());
   gsmVehicleDataDTO.setGpsSpeed(this.getGpsSpeed());
   gsmVehicleDataDTO.setGpsHeading(this.getGpsHeading());
   gsmVehicleDataDTO.setGpsDataValidity(this.getGpsDataValidity());
   gsmVehicleDataDTO.setaOilWear(this.getaOilWear());
   gsmVehicleDataDTO.setrOilMass(this.getrOilMass());
   gsmVehicleDataDTO.setbOilWear(this.getbOilWear());
   gsmVehicleDataDTO.setmOilWear(this.getmOilWear());
   gsmVehicleDataDTO.setVehicleStatus(this.getVehicleStatus());
   gsmVehicleDataDTO.setRdtc(this.getRdtc());
   gsmVehicleDataDTO.setGsmVehicleStatus(this.getGsmVehicleStatus());
   gsmVehicleDataDTO.setThrottlePosition(this.getThrottlePosition());
   gsmVehicleDataDTO.setGx(this.getGx());
   gsmVehicleDataDTO.setGy(this.getGy());
   gsmVehicleDataDTO.setGz(this.getGz());
   gsmVehicleDataDTO.setWbtm(this.getWbtm());
   gsmVehicleDataDTO.setrOilMassType(this.getrOilMassType());
   gsmVehicleDataDTO.setCountry(this.getCountry());
   gsmVehicleDataDTO.setSupplier(this.getSupplier());
   gsmVehicleDataDTO.setBase_station(this.getBase_station());
   gsmVehicleDataDTO.setDist_id(this.getDist_id());
   return gsmVehicleDataDTO;
 }