parent
971e71b59b
commit
d22bd9ecdd
@ -0,0 +1,33 @@
|
|||||||
|
package com.dsic.gj_erp.pc.dto.gx;
|
||||||
|
|
||||||
|
import com.dsic.gj_erp.pc.Constant;
|
||||||
|
import com.dsic.gj_erp.pc.dto.工序产能;
|
||||||
|
import com.dsic.gj_erp.pc.dto.设备;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class 工序21自由边处理 extends 工序产能 {
|
||||||
|
public 工序21自由边处理(Map<String, 设备> _设备) {
|
||||||
|
super(Constant.工序.自由边处理,_设备);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void 计算工作量() {
|
||||||
|
this.产能=0;
|
||||||
|
if (this.白班时长>0){
|
||||||
|
this.产能+=this.白班时长*Constant.设备产能.型材01.get白班设备产能()/7.0;
|
||||||
|
}
|
||||||
|
if (this.二班时长>0){
|
||||||
|
this.产能+=this.二班时长*Constant.设备产能.型材01.get二班设备产能()/7.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void 占用资源(double 所需产能) {
|
||||||
|
super.占用资源(所需产能);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.dsic.gj_erp.pc.dto.sb;
|
||||||
|
|
||||||
|
import com.dsic.gj_erp.pc.Constant;
|
||||||
|
import com.dsic.gj_erp.pc.dto.设备;
|
||||||
|
|
||||||
|
public class 设备21自由边处理 extends 设备 {
|
||||||
|
|
||||||
|
public 设备21自由边处理(Constant.设备产能 _设备产能) {
|
||||||
|
super(_设备产能);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue