|
@@ -126,11 +126,11 @@ public class JkxlController extends BaseController {
|
|
|
|
|
|
|
|
|
|
public List<JkxlData> getData(MultipartFile file,double[] rate,String id,double sl) throws IOException, InvalidFormatException {
|
|
public List<JkxlData> getData(MultipartFile file,double[] rate,String id,double sl) throws IOException, InvalidFormatException {
|
|
- ImportExcel importExcel = new ImportExcel(file,1,BashInfo.SHEET_FBFXJJ);
|
|
|
|
- ImportExcel csqd = new ImportExcel(file,1,BashInfo.SHEET_CSB);
|
|
|
|
- ImportExcel gf = new ImportExcel(file,1,BashInfo.SHEET_GFQD);
|
|
|
|
- ImportExcel qt = new ImportExcel(file,1,BashInfo.SHEET_QTFY);
|
|
|
|
- ImportExcel total = new ImportExcel(file,1,BashInfo.SHEET_HZB );
|
|
|
|
|
|
+ ImportExcel importExcel = new ImportExcel(file,1,BashInfo.SHEET_FBFXJJ); //分部分项工程量清单计价表
|
|
|
|
+ ImportExcel csqd = new ImportExcel(file,1,BashInfo.SHEET_CSB); // 措施项目清单计价表(一)
|
|
|
|
+ ImportExcel gf = new ImportExcel(file,1,BashInfo.SHEET_GFQD); //规费项目清单计价表
|
|
|
|
+ ImportExcel qt = new ImportExcel(file,1,BashInfo.SHEET_QTFY); //其他项目清单计价表
|
|
|
|
+ ImportExcel total = new ImportExcel(file,1,BashInfo.SHEET_HZB ); //工程项目竣工结算汇总表
|
|
double[] csRate = getCsRate(csqd);
|
|
double[] csRate = getCsRate(csqd);
|
|
double[] gfRate = getGfRate(gf);
|
|
double[] gfRate = getGfRate(gf);
|
|
double[] qtFees = getQtFees(qt);
|
|
double[] qtFees = getQtFees(qt);
|
|
@@ -190,7 +190,7 @@ public class JkxlController extends BaseController {
|
|
double measuresFee2 = rgCost*csRate[1]; //措施费2
|
|
double measuresFee2 = rgCost*csRate[1]; //措施费2
|
|
double fees = rgCost*gfRate[1]*1.12+rgCost*gfRate[0]; //规费
|
|
double fees = rgCost*gfRate[1]*1.12+rgCost*gfRate[0]; //规费
|
|
double tax = (originalTotalCost+measuresFee1+measuresFee2+fees+otherFee)*0.09; //税金
|
|
double tax = (originalTotalCost+measuresFee1+measuresFee2+fees+otherFee)*0.09; //税金
|
|
- double totalfee = originalTotalCost+measuresFee1+measuresFee2+fees+otherFee+tax-originalFbrCost; //合计
|
|
|
|
|
|
+ double totalfee = rgCost+cbrCost+fbrCost+jxCost+measuresFee1+measuresFee2+fees+otherFee+tax-fbrCost; //合计
|
|
jkxlData.setOriginalTotalCost(originalTotalCost);
|
|
jkxlData.setOriginalTotalCost(originalTotalCost);
|
|
jkxlData.setOriginalRate(orRate);
|
|
jkxlData.setOriginalRate(orRate);
|
|
jkxlData.setOriginalRgCost(originalRgCost);
|
|
jkxlData.setOriginalRgCost(originalRgCost);
|
|
@@ -339,12 +339,16 @@ public class JkxlController extends BaseController {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
public double[] getTzFee(MultipartFile file) throws IOException, InvalidFormatException {
|
|
public double[] getTzFee(MultipartFile file) throws IOException, InvalidFormatException {
|
|
ImportExcel total = new ImportExcel(file,1,BashInfo.SHEET_HZB );
|
|
ImportExcel total = new ImportExcel(file,1,BashInfo.SHEET_HZB );
|
|
double[] wsb = getFees(total);
|
|
double[] wsb = getFees(total);
|
|
return wsb;
|
|
return wsb;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 创建项目ID
|
|
|
|
+ */
|
|
public String getId() {
|
|
public String getId() {
|
|
SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
|
|
SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
|
|
String newDate=sdf.format(new Date());
|
|
String newDate=sdf.format(new Date());
|