395 lines
7.3 KiB
PHP
395 lines
7.3 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use DateTime;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="cmb_legacy_job_order")
|
|
*/
|
|
class CMBLegacyJobOrder
|
|
{
|
|
// legacy internal id
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="datetime")
|
|
*/
|
|
protected $trans_date;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=30, nullable=true)
|
|
*/
|
|
protected $case_number;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=30, nullable=true)
|
|
*/
|
|
protected $insurer;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=20, nullable=true)
|
|
*/
|
|
protected $plate_number;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $trans_type;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=20, nullable=true)
|
|
*/
|
|
protected $car_brand;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $car_make;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=30, nullable=true)
|
|
*/
|
|
protected $nature_of_call;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=400, nullable=true)
|
|
*/
|
|
protected $address;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $driver;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=20, nullable=true)
|
|
*/
|
|
protected $truck;
|
|
|
|
/**
|
|
* @ORM\Column(type="integer", nullable=true)
|
|
*/
|
|
protected $workshop_arrival_time;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $status;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
protected $cust_name;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $cust_mobile;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=20, nullable=true)
|
|
*/
|
|
protected $reference;
|
|
|
|
/**
|
|
* @ORM\Column(type="integer", nullable=true)
|
|
*/
|
|
protected $odometer;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $batt_model;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $batt_size;
|
|
|
|
/**
|
|
* @ORM\Column(type="boolean", options={"default":false})
|
|
*/
|
|
protected $flag_trade_in;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $replaced_by;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=4000, nullable=true)
|
|
*/
|
|
protected $remarks;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=50, nullable=true)
|
|
*/
|
|
protected $satisfaction;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->trans_date = new DateTime();
|
|
}
|
|
|
|
public function setID($id)
|
|
{
|
|
$this->id = $id;
|
|
return $this;
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setTransDate(DateTime $trans_date)
|
|
{
|
|
$this->trans_date = $trans_date;
|
|
return $this;
|
|
}
|
|
|
|
public function getTransDate()
|
|
{
|
|
return $this->trans_date;
|
|
}
|
|
|
|
public function setTransType($trans_type)
|
|
{
|
|
$this->trans_type = $trans_type;
|
|
return $this;
|
|
}
|
|
|
|
public function getTransType()
|
|
{
|
|
return $this->trans_type;
|
|
}
|
|
|
|
public function setCaseNumber($case_number)
|
|
{
|
|
$this->case_number = $case_number;
|
|
return $this;
|
|
}
|
|
|
|
public function getCaseNumber()
|
|
{
|
|
return $this->case_number;
|
|
}
|
|
|
|
public function setInsurer($insurer)
|
|
{
|
|
$this->insurer = $insurer;
|
|
return $this;
|
|
}
|
|
|
|
public function getInsurer()
|
|
{
|
|
return $this->insurer;
|
|
}
|
|
|
|
public function setNatureOfCall($nature_of_call)
|
|
{
|
|
$this->nature_of_call = $nature_of_call;
|
|
return $this;
|
|
}
|
|
|
|
public function getNatureOfCall()
|
|
{
|
|
return $this->nature_of_call;
|
|
}
|
|
|
|
public function setPlateNumber($plate_number)
|
|
{
|
|
$this->plate_number = $plate_number;
|
|
return $this;
|
|
}
|
|
|
|
public function getPlateNumber()
|
|
{
|
|
return $this->plate_number;
|
|
}
|
|
|
|
public function setCarBrand($car_brand)
|
|
{
|
|
$this->car_brand = $car_brand;
|
|
return $this;
|
|
}
|
|
|
|
public function getCarBrand()
|
|
{
|
|
return $this->car_brand;
|
|
}
|
|
|
|
public function setCarMake($car_make)
|
|
{
|
|
$this->car_make = $car_make;
|
|
return $this;
|
|
}
|
|
|
|
public function getCarMake()
|
|
{
|
|
return $this->car_make;
|
|
}
|
|
|
|
public function setAddress($address)
|
|
{
|
|
$this->address = $address;
|
|
return $this;
|
|
}
|
|
|
|
public function getAddress()
|
|
{
|
|
return $this->address;
|
|
}
|
|
|
|
public function setDriver($driver)
|
|
{
|
|
$this->driver = $driver;
|
|
return $this;
|
|
}
|
|
|
|
public function getDriver()
|
|
{
|
|
return $this->driver;
|
|
}
|
|
|
|
public function setTruck($truck)
|
|
{
|
|
$this->truck = $truck;
|
|
return $this;
|
|
}
|
|
|
|
public function getTruck()
|
|
{
|
|
return $this->truck;
|
|
}
|
|
|
|
public function setWorkshopArrivalTime($workshop_arrival_time)
|
|
{
|
|
$this->workshop_arrival_time = $workshop_arrival_time;
|
|
return $this;
|
|
}
|
|
|
|
public function getWorkshopArrivalTime()
|
|
{
|
|
return $this->workshop_arrival_time;
|
|
}
|
|
|
|
public function setStatus($status)
|
|
{
|
|
$this->status = $status;
|
|
return $this;
|
|
}
|
|
|
|
public function getStatus()
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
public function setCustName($cust_name)
|
|
{
|
|
$this->cust_name = $cust_name;
|
|
return $this;
|
|
}
|
|
|
|
public function getCustName()
|
|
{
|
|
return $this->cust_name;
|
|
}
|
|
|
|
public function setCustMobile($cust_mobile)
|
|
{
|
|
$this->cust_mobile = $cust_mobile;
|
|
return $this;
|
|
}
|
|
|
|
public function getCustMobile()
|
|
{
|
|
return $this->cust_mobile;
|
|
}
|
|
|
|
public function setReference($reference)
|
|
{
|
|
$this->reference = $reference;
|
|
return $this;
|
|
}
|
|
|
|
public function getReference()
|
|
{
|
|
return $this->reference;
|
|
}
|
|
|
|
public function setOdometer($odometer)
|
|
{
|
|
$this->odometer = $odometer;
|
|
return $this;
|
|
}
|
|
|
|
public function getOdometer()
|
|
{
|
|
return $this->odometer;
|
|
}
|
|
|
|
public function setBatteryModel($batt_model)
|
|
{
|
|
$this->batt_model = $batt_model;
|
|
return $this;
|
|
}
|
|
|
|
public function getBatteryModel()
|
|
{
|
|
return $this->batt_model;
|
|
}
|
|
|
|
public function setBatterySize($batt_size)
|
|
{
|
|
$this->batt_size = $batt_size;
|
|
return $this;
|
|
}
|
|
|
|
public function getBatterySize()
|
|
{
|
|
return $this->batt_size;
|
|
}
|
|
|
|
public function setIsTradeIn($flag_trade_in = true)
|
|
{
|
|
$this->flag_trade_in = $flag_trade_in;
|
|
return $this;
|
|
}
|
|
|
|
public function isTradeIn()
|
|
{
|
|
return $this->flag_trade_in;
|
|
}
|
|
|
|
public function setReplacedBy($replaced_by)
|
|
{
|
|
$this->replaced_by = $replaced_by;
|
|
return $this;
|
|
}
|
|
|
|
public function getReplacedBy()
|
|
{
|
|
return $this->replaced_by;
|
|
}
|
|
|
|
public function setSatisfaction($satisfaction)
|
|
{
|
|
$this->satisfaction = $satisfaction;
|
|
return $this;
|
|
}
|
|
|
|
public function getSatisfaction()
|
|
{
|
|
return $this->satisfaction;
|
|
}
|
|
|
|
}
|