parent
b3047daef2
commit
9bb2ae7c76
@ -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 工序31光电 extends 工序产能 {
|
||||
public 工序31光电(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 设备31光电 extends 设备 {
|
||||
|
||||
public 设备31光电(Constant.设备产能 _设备产能) {
|
||||
super(_设备产能);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue