Browse Source

修改油泵类型到油罐上

dev
刘向辉 3 years ago
parent
commit
75edc311d1
  1. 4
      src/app/babylon/model/data/institution/building/export-data.ts
  2. 6
      src/app/babylon/model/data/institution/facility/property-data/in/property-data-jyj.ts
  3. 6
      src/app/babylon/model/data/institution/facility/property-data/in/property-data-yg.ts

4
src/app/babylon/model/data/institution/building/export-data.ts

@ -75,7 +75,6 @@ export class ExportData_JYJ {
油枪数量: string; 油枪数量: string;
油品品号: string; 油品品号: string;
油枪编号: string; 油枪编号: string;
油泵类型: string;
流量: string; 流量: string;
功率: string; 功率: string;
constructor(jyj_property: PropertyData_JYJ) { constructor(jyj_property: PropertyData_JYJ) {
@ -84,7 +83,6 @@ export class ExportData_JYJ {
this. = jyj_property.oilGunNum; this. = jyj_property.oilGunNum;
this. = jyj_property.oilProductNo; this. = jyj_property.oilProductNo;
this. = jyj_property.oilGunNo; this. = jyj_property.oilGunNo;
this. = jyj_property.oilPumpType;
this. = jyj_property.flow; this. = jyj_property.flow;
this. = jyj_property.power; this. = jyj_property.power;
} }
@ -103,6 +101,7 @@ export class ExportData_YG {
安全容积: string; 安全容积: string;
罐区: string; 罐区: string;
油罐类型: string; 油罐类型: string;
油泵类型: string;
constructor(yg_property: PropertyData_YG) { constructor(yg_property: PropertyData_YG) {
this. = yg_property.name; this. = yg_property.name;
@ -112,6 +111,7 @@ export class ExportData_YG {
this. = yg_property.safeVolume; this. = yg_property.safeVolume;
this. = yg_property.tankFarm; this. = yg_property.tankFarm;
this. = yg_property.oilTankType; this. = yg_property.oilTankType;
this. = yg_property.oilPumpType;
} }
} }

6
src/app/babylon/model/data/institution/facility/property-data/in/property-data-jyj.ts

@ -12,11 +12,10 @@ export class PropertyData_JYJ extends PropertyData_Base {
oilGunNum: string = ""; //油枪数量 oilGunNum: string = ""; //油枪数量
oilProductNo: string = ""; //油品品号 oilProductNo: string = ""; //油品品号
oilGunNo: string = ""; //油枪编号 oilGunNo: string = ""; //油枪编号
oilPumpType: string = ""; //油泵类型
flow: string = ""; //流量 flow: string = ""; //流量
power: string = ""; //功率 power: string = ""; //功率
constructor(key: string, brand: string, superBrand: string, oilGunNum: string, oilProductNo: string, oilGunNo: string, oilPumpType: string) { constructor(key: string, brand: string, superBrand: string, oilGunNum: string, oilProductNo: string, oilGunNo: string) {
super(key, FacilityType.JY_JYJ); super(key, FacilityType.JY_JYJ);
this.name = "未命名"; this.name = "未命名";
this.brand = brand this.brand = brand
@ -24,13 +23,12 @@ export class PropertyData_JYJ extends PropertyData_Base {
this.oilGunNum = oilGunNum this.oilGunNum = oilGunNum
this.oilProductNo = oilProductNo this.oilProductNo = oilProductNo
this.oilGunNo = oilGunNo this.oilGunNo = oilGunNo
this.oilPumpType = oilPumpType
this.flow = "0.5kg/s" this.flow = "0.5kg/s"
this.power = "1kw" this.power = "1kw"
} }
clone(key: string) { clone(key: string) {
let result = new PropertyData_JYJ(key, this.brand, this.superBrand, this.oilGunNum, this.oilProductNo, this.oilGunNo, this.oilPumpType); let result = new PropertyData_JYJ(key, this.brand, this.superBrand, this.oilGunNum, this.oilProductNo, this.oilGunNo);
result.name = this.name; result.name = this.name;
result.flow = this.flow; result.flow = this.flow;
result.power = this.power; result.power = this.power;

6
src/app/babylon/model/data/institution/facility/property-data/in/property-data-yg.ts

@ -14,8 +14,9 @@ export class PropertyData_YG extends PropertyData_Base {
quantity: string = ""; //数量 quantity: string = ""; //数量
tankFarm: string = ""; //罐区 tankFarm: string = ""; //罐区
oilTankType: string = ""; //油罐类型 oilTankType: string = ""; //油罐类型
oilPumpType: string = ""; //油泵类型
constructor(key: string,oilProductNo: string,oilGunNo: 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, oilPumpType: string) {
super(key, FacilityType.JY_YG); super(key, FacilityType.JY_YG);
this.name = "未命名"; this.name = "未命名";
this.oilProductNo = oilProductNo this.oilProductNo = oilProductNo
@ -25,10 +26,11 @@ export class PropertyData_YG extends PropertyData_Base {
this.quantity = quantity this.quantity = quantity
this.tankFarm = tankFarm this.tankFarm = tankFarm
this.oilTankType = oilTankType this.oilTankType = oilTankType
this.oilPumpType = oilPumpType
} }
clone(key: string) { clone(key: string) {
let result = new PropertyData_YG(key,this.oilProductNo,this.oilGunNo,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, this.oilPumpType);
result.name = this.name; result.name = this.name;
return result; return result;
} }

Loading…
Cancel
Save