82 lines
3.4 KiB
Plaintext
82 lines
3.4 KiB
Plaintext
<%@ page contentType="text/html; charset=UTF-8" %>
|
||
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
||
<%@ page import="weaver.general.Util" %>
|
||
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
|
||
<jsp:useBean id="rs1" class="weaver.conn.RecordSet" scope="page" />
|
||
<jsp:useBean id="rs2" class="weaver.conn.RecordSet" scope="page" />
|
||
<%
|
||
JSONObject jsonObject = new JSONObject();
|
||
int indexId = Util.getIntValue(request.getParameter("indexId"));
|
||
|
||
//评分规则,指标公式id
|
||
String indexFormulaId = "";
|
||
//完成值,指标公式id
|
||
String wczIndexFormulaId = "";
|
||
|
||
rs.executeQuery("select gsid,pfzbgsid from uf_jxkhzbk where id=?",indexId);
|
||
if(rs.next()){
|
||
indexFormulaId = Util.null2String(rs.getString("pfzbgsid"));
|
||
wczIndexFormulaId = Util.null2String(rs.getString("gsid"));
|
||
}
|
||
String zbgs = "";
|
||
String wczbgs = "";
|
||
rs1.executeQuery("select b.* from uf_zbgsb a,uf_zbgsmxb b where a.id=b.formula_id and a.id=? order by b.id",indexFormulaId);
|
||
while(rs1.next()) {
|
||
String field_id = Util.null2String(rs1.getString("field_id"));
|
||
if(!field_id.contains("mainBussinessDataCollectionProject")){
|
||
String zdmc = field_id.split("_")[1];
|
||
if(field_id.contains("examinationTableMainTable")){
|
||
zdmc = "main_"+zdmc;
|
||
}else if(field_id.contains("examinationTableBusinessIndicators")){
|
||
zdmc = "dt1_"+zdmc;
|
||
}else if(field_id.contains("examinationTableManagementIndicators")){
|
||
zdmc = "dt2_"+zdmc;
|
||
}else if(field_id.contains("examinationTableImportantWork")){
|
||
zdmc = "dt3_"+zdmc;
|
||
}else if(field_id.contains("examinationTableReservedTable1")){
|
||
zdmc = "dt5_"+zdmc;
|
||
}else if(field_id.contains("examinationTableReservedTable2")){
|
||
zdmc = "dt6_"+zdmc;
|
||
}
|
||
zbgs += zdmc + ",";
|
||
}else{
|
||
String zdmc = field_id.split("_")[1];
|
||
String zdmcc = "business_"+zdmc;
|
||
zbgs += zdmcc + ",";
|
||
}
|
||
}
|
||
if(zbgs.endsWith(",")){
|
||
zbgs = zbgs.substring(0,zbgs.length()-1);
|
||
}
|
||
|
||
rs2.executeQuery("select b.* from uf_zbgsb a,uf_zbgsmxb b where a.id=b.formula_id and a.id=? order by b.id",wczIndexFormulaId);
|
||
while(rs2.next()) {
|
||
String field_id = Util.null2String(rs2.getString("field_id"));
|
||
if(!field_id.contains("mainBussinessDataCollectionProject")){
|
||
String zdmc = field_id.split("_")[1];
|
||
if(field_id.contains("examinationTableMainTable")){
|
||
zdmc = "main_"+zdmc;
|
||
}else if(field_id.contains("examinationTableBusinessIndicators")){
|
||
zdmc = "dt1_"+zdmc;
|
||
}else if(field_id.contains("examinationTableManagementIndicators")){
|
||
zdmc = "dt2_"+zdmc;
|
||
}else if(field_id.contains("examinationTableImportantWork")){
|
||
zdmc = "dt3_"+zdmc;
|
||
}else if(field_id.contains("examinationTableReservedTable1")){
|
||
zdmc = "dt5_"+zdmc;
|
||
}else if(field_id.contains("examinationTableReservedTable2")){
|
||
zdmc = "dt6_"+zdmc;
|
||
}
|
||
wczbgs += zdmc + ",";
|
||
}
|
||
}
|
||
if(wczbgs.endsWith(",")){
|
||
wczbgs = wczbgs.substring(0,wczbgs.length()-1);
|
||
}
|
||
|
||
jsonObject.put("zbgs",zbgs);
|
||
jsonObject.put("wczbgs",wczbgs);
|
||
|
||
out.print(jsonObject.toJSONString());
|
||
%>
|