|
@@ -115,6 +115,14 @@ public class SettementUtil {
|
|
public static final String RESON_GCJS2=" 补增值税税率调整差额为<span style='font-weight: bold;'>xxx</span>元,";
|
|
public static final String RESON_GCJS2=" 补增值税税率调整差额为<span style='font-weight: bold;'>xxx</span>元,";
|
|
public static final String RESON_GCJS3=" 扣减甲供材超供材料费为<span style='font-weight: bold;'>xxx</span>元,";
|
|
public static final String RESON_GCJS3=" 扣减甲供材超供材料费为<span style='font-weight: bold;'>xxx</span>元,";
|
|
public static final String RESON_GCJS4=" 汇总金额为<span style='font-weight: bold;'>xxx</span>元,";
|
|
public static final String RESON_GCJS4=" 汇总金额为<span style='font-weight: bold;'>xxx</span>元,";
|
|
|
|
+ //工程投标 拼接数组
|
|
|
|
+ public static final String[] TOP2 = {BDZ_TBBJ,RESON_JGJS1,BDZ_TBBJ1,RESON_JGJS3, RESON_JGJS4,RESON_JGJS5,RESON_JGJS6,BDZ_TBBJ2,RESON_JGJS8};
|
|
|
|
+ //工程竣工 拼接数组
|
|
|
|
+ public static final String[] TOP1 = {RESON_JGJS,RESON_JGJS1,RESON_JGJS2,RESON_JGJS3,RESON_JGJS4,RESON_JGJS5,RESON_JGJS6,RESON_JGJS7,RESON_JGJS8};
|
|
|
|
+// //分部分项 架空 电缆
|
|
|
|
+// String[] FBFXTOP1={RESON_FBFX1,RESON_JZFBFX,RESON_AZFBFX,RESON_GCJS4,RESON_FBFX1,RESON_JZFBFX3,RESON_AZFBFX3,RESON_GCJS4};
|
|
|
|
+// //分部分项 变电站
|
|
|
|
+// String[] FBFXTOPS2= {BDZ_FXFX,BDZ_FBFX1,BDZ_FBFX2,RESON_GCJS4,BDZ_FXFX,RESON_JZFBFX3,RESON_AZFBFX3,RESON_GCJS4};
|
|
/*
|
|
/*
|
|
设置转换参数
|
|
设置转换参数
|
|
*/
|
|
*/
|
|
@@ -540,7 +548,7 @@ public class SettementUtil {
|
|
settlement.setReason(reason);
|
|
settlement.setReason(reason);
|
|
break;
|
|
break;
|
|
case BashInfo.JS_JGJS:
|
|
case BashInfo.JS_JGJS:
|
|
- reason = getJgJoint(settlement,booleans);
|
|
|
|
|
|
+ reason = getJgJoint(TOP1,settlement,booleans);
|
|
settlement.setReason(reason);
|
|
settlement.setReason(reason);
|
|
break;
|
|
break;
|
|
case BashInfo.JS_BZZS:
|
|
case BashInfo.JS_BZZS:
|
|
@@ -600,7 +608,7 @@ public class SettementUtil {
|
|
settlement.setReason(reason);
|
|
settlement.setReason(reason);
|
|
break;
|
|
break;
|
|
case BashInfo.JS_JGJS:
|
|
case BashInfo.JS_JGJS:
|
|
- reason = getJgJoint(settlement,booleans);
|
|
|
|
|
|
+ reason = getJgJoint(TOP1,settlement,booleans);
|
|
settlement.setReason(reason);
|
|
settlement.setReason(reason);
|
|
break;
|
|
break;
|
|
case BashInfo.JS_BZZS:
|
|
case BashInfo.JS_BZZS:
|
|
@@ -688,10 +696,9 @@ public class SettementUtil {
|
|
case SettementUtil.BDZ_TBNAME:
|
|
case SettementUtil.BDZ_TBNAME:
|
|
if(flag){
|
|
if(flag){
|
|
settlement.setEntryName(BashInfo.JS_JGJS);
|
|
settlement.setEntryName(BashInfo.JS_JGJS);
|
|
- reason = getJgJoint(settlement,booleans);
|
|
|
|
-
|
|
|
|
|
|
+ reason = getJgJoint(TOP1,settlement,booleans);
|
|
}else {
|
|
}else {
|
|
- reason = getBDZJoint(settlement,booleans);
|
|
|
|
|
|
+ reason = getJgJoint(TOP2,settlement,booleans);
|
|
}
|
|
}
|
|
settlement.setReason(reason);
|
|
settlement.setReason(reason);
|
|
break;
|
|
break;
|
|
@@ -876,76 +883,37 @@ public class SettementUtil {
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 工程竣工 常量匹配
|
|
* 工程竣工 常量匹配
|
|
|
|
+ * @param tops //常量拼接
|
|
* @param settlement bean
|
|
* @param settlement bean
|
|
* @param booleans 判断《工程竣工结算表》字段 是否存在
|
|
* @param booleans 判断《工程竣工结算表》字段 是否存在
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- public static String getJgJoint(Settlement settlement,boolean[] booleans){
|
|
|
|
- String reason="";
|
|
|
|
- String[] amout=settlement.getTheAmount().split(",");
|
|
|
|
- reason+=RESON_JGJS.replace("xxx",String.valueOf(nf.format(settlement.getMoney())));
|
|
|
|
- if (booleans[1]){
|
|
|
|
- reason+="<br>"+RESON_JGJS1.replace("xxx",amout[1]);
|
|
|
|
- }
|
|
|
|
- if (booleans[2]){
|
|
|
|
- reason+="<br>"+RESON_JGJS2.replace("xxx",amout[2]);
|
|
|
|
- }
|
|
|
|
- if (booleans[3]){
|
|
|
|
- reason+="<br>"+RESON_JGJS3.replace("xxx",amout[3]);
|
|
|
|
- }
|
|
|
|
- if (booleans[4]){
|
|
|
|
- reason+="<br>"+RESON_JGJS4.replace("xxx",amout[4]);
|
|
|
|
- }
|
|
|
|
- if (booleans[5]){
|
|
|
|
- reason+="<br>"+RESON_JGJS5.replace("xxx",amout[5]);
|
|
|
|
- }
|
|
|
|
- if (booleans[6]){
|
|
|
|
- reason+="<br>"+RESON_JGJS6.replace("xxx",amout[6]);
|
|
|
|
- }
|
|
|
|
- if (booleans[7]){
|
|
|
|
- reason+="<br>"+RESON_JGJS7.replace("xxx",amout[7]);
|
|
|
|
- }
|
|
|
|
- reason+="<br>"+RESON_JGJS8.replace("xxx",amout[0]);
|
|
|
|
- if (settlement.getStatus().equals("0")){
|
|
|
|
- reason+="<br>"+SettementUtil.RESON_TRUE;
|
|
|
|
- }else {
|
|
|
|
- reason+="<br>"+SettementUtil.RESON_FLASE;
|
|
|
|
- }
|
|
|
|
- return reason;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 工程投标价格匹配方法
|
|
|
|
- * @param settlement bean
|
|
|
|
- * @param booleans 判断 匹配字段 是否存在
|
|
|
|
- * @return reason
|
|
|
|
|
|
+ * @return string
|
|
*/
|
|
*/
|
|
- public static String getBDZJoint(Settlement settlement,boolean[] booleans){
|
|
|
|
|
|
+ public static String getJgJoint(String[] tops,Settlement settlement,boolean[] booleans){
|
|
String reason="";
|
|
String reason="";
|
|
String[] amout=settlement.getTheAmount().split(",");
|
|
String[] amout=settlement.getTheAmount().split(",");
|
|
- reason+=BDZ_TBBJ.replace("xxx",String.valueOf(nf.format(settlement.getMoney())));
|
|
|
|
|
|
+ reason+=tops[0].replace("xxx",String.valueOf(nf.format(settlement.getMoney())));
|
|
if (booleans[1]){
|
|
if (booleans[1]){
|
|
- reason+="<br>"+RESON_JGJS1.replace("xxx",amout[1]);
|
|
|
|
|
|
+ reason+="<br>"+tops[1].replace("xxx",amout[1]);
|
|
}
|
|
}
|
|
if (booleans[2]){
|
|
if (booleans[2]){
|
|
- reason+="<br>"+BDZ_TBBJ1.replace("xxx",amout[2]);
|
|
|
|
|
|
+ reason+="<br>"+tops[2].replace("xxx",amout[2]);
|
|
}
|
|
}
|
|
if (booleans[3]){
|
|
if (booleans[3]){
|
|
- reason+="<br>"+RESON_JGJS3.replace("xxx",amout[3]);
|
|
|
|
|
|
+ reason+="<br>"+tops[3].replace("xxx",amout[3]);
|
|
}
|
|
}
|
|
if (booleans[4]){
|
|
if (booleans[4]){
|
|
- reason+="<br>"+RESON_JGJS4.replace("xxx",amout[4]);
|
|
|
|
|
|
+ reason+="<br>"+tops[4].replace("xxx",amout[4]);
|
|
}
|
|
}
|
|
if (booleans[5]){
|
|
if (booleans[5]){
|
|
- reason+="<br>"+RESON_JGJS5.replace("xxx",amout[5]);
|
|
|
|
|
|
+ reason+="<br>"+tops[5].replace("xxx",amout[5]);
|
|
}
|
|
}
|
|
if (booleans[6]){
|
|
if (booleans[6]){
|
|
- reason+="<br>"+RESON_JGJS6.replace("xxx",amout[6]);
|
|
|
|
|
|
+ reason+="<br>"+tops[6].replace("xxx",amout[6]);
|
|
}
|
|
}
|
|
if (booleans[7]){
|
|
if (booleans[7]){
|
|
- reason+="<br>"+BDZ_TBBJ2.replace("xxx",amout[7]);
|
|
|
|
|
|
+ reason+="<br>"+tops[7].replace("xxx",amout[7]);
|
|
}
|
|
}
|
|
- reason+="<br>"+RESON_JGJS8.replace("xxx",amout[0]);
|
|
|
|
|
|
+ reason+="<br>"+tops[8].replace("xxx",amout[0]);
|
|
if (settlement.getStatus().equals("0")){
|
|
if (settlement.getStatus().equals("0")){
|
|
reason+="<br>"+SettementUtil.RESON_TRUE;
|
|
reason+="<br>"+SettementUtil.RESON_TRUE;
|
|
}else {
|
|
}else {
|