|
|
|
@ -8,16 +8,18 @@ import { PropertyData_Base } from "../property-data-base";
|
|
|
|
|
export class PropertyData_YG extends PropertyData_Base { |
|
|
|
|
|
|
|
|
|
oilProductNo: string = ""; //油品品号
|
|
|
|
|
oilGunNo: string = ""; //油枪编号
|
|
|
|
|
oilTankVolume: string = ""; //油罐容积
|
|
|
|
|
safeVolume: string = ""; //安全容积
|
|
|
|
|
quantity: string = ""; //数量
|
|
|
|
|
tankFarm: string = ""; //罐区
|
|
|
|
|
oilTankType: string = ""; //油罐类型
|
|
|
|
|
|
|
|
|
|
constructor(key: string,oilProductNo: string,oilTankVolume: string,safeVolume: string,quantity: string,tankFarm: string,oilTankType: string) { |
|
|
|
|
constructor(key: string,oilProductNo: string,oilGunNo: string,oilTankVolume: string,safeVolume: string,quantity: string,tankFarm: string,oilTankType: string) { |
|
|
|
|
super(key, FacilityType.JY_YG); |
|
|
|
|
this.name = "未命名"; |
|
|
|
|
this.oilProductNo = oilProductNo |
|
|
|
|
this.oilGunNo = oilGunNo |
|
|
|
|
this.oilTankVolume = oilTankVolume |
|
|
|
|
this.safeVolume = safeVolume |
|
|
|
|
this.quantity = quantity |
|
|
|
@ -26,7 +28,7 @@ export class PropertyData_YG extends PropertyData_Base {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clone(key: string) { |
|
|
|
|
let result = new PropertyData_YG(key,this.oilProductNo,this.oilTankVolume,this.safeVolume,this.quantity,this.tankFarm,this.oilTankType); |
|
|
|
|
let result = new PropertyData_YG(key,this.oilProductNo,this.oilGunNo,this.oilTankVolume,this.safeVolume,this.quantity,this.tankFarm,this.oilTankType); |
|
|
|
|
result.name = this.name; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|