|
@@ -8,7 +8,8 @@ public enum MeterType {
|
|
|
/**开工预付款*/
|
|
|
START(2,"动员预付款报表"),
|
|
|
/***/
|
|
|
- INTERIM_JL(3,"监理计量报表");
|
|
|
+ INTERIM_JL(3,"监理计量报表"),
|
|
|
+ START_JL(5,"监理动员预付款报表");
|
|
|
private final int index;
|
|
|
private final String name;
|
|
|
MeterType(int index, String name) {
|
|
@@ -23,8 +24,8 @@ public enum MeterType {
|
|
|
}
|
|
|
public static MeterType getByIndex(int index,int contractType) {
|
|
|
MeterType[] values = MeterType.values();
|
|
|
- if(contractType==2&&index==0){
|
|
|
- index=3;
|
|
|
+ if(contractType==2&&(index==0||index==2)){
|
|
|
+ index*=2;
|
|
|
}
|
|
|
if (index >= 0 && index < values.length) {
|
|
|
return values[index];
|