asn模板修改

asn导出界面优化
This commit is contained in:
duandongmei
2018-10-25 18:22:27 +08:00
parent f2d013ec70
commit aac4967049
6 changed files with 32 additions and 21 deletions

View File

@@ -14,6 +14,7 @@ public class AsnIpTemplate {
*/
private String cfgDesc;
private String asnNo;
private String destIpAddress;
@ExcelField(title="config_describe",align=2,sort=1)
@@ -23,6 +24,13 @@ public class AsnIpTemplate {
public void setCfgDesc(String cfgDesc) {
this.cfgDesc = cfgDesc;
}
@ExcelField(title="asn_no",align=2,sort=11)
public String getAsnNo() {
return asnNo;
}
public void setAsnNo(String asnNo) {
this.asnNo = asnNo;
}
@ExcelField(title="server_ip",align=2,sort=12)
public String getDestIpAddress() {
return destIpAddress;

View File

@@ -74,7 +74,6 @@ public class ExportExcel {
private static Logger log = LoggerFactory.getLogger(ExportExcel.class);
private static DnsResStrategyDao dnsResStrategyDao = SpringContextHolder.getBean(DnsResStrategyDao.class);
private static PolicyGroupInfoDao policyGroupInfoDao = SpringContextHolder.getBean(PolicyGroupInfoDao.class);
/**
* 工作薄对象
@@ -240,6 +239,10 @@ public class ExportExcel {
}
}
if("asn_no".equals(headerStr)){
commentStr=msgProp.getProperty("input_integer")+":\n"+commentStr;
index++;
}
if("policy_name".equals(headerStr)){
List<DnsResStrategy> resStrategys=dnsResStrategyDao.findList(null, 1,1);
@@ -1320,7 +1323,7 @@ public class ExportExcel {
if (!StringUtil.isEmpty(commentStr)){
cell.setCellValue(headerList.get(i));
Comment comment = this.sheet.createDrawingPatriarch().createCellComment(
new XSSFClientAnchor(0, 0, 0, 0, (short) i, 0, (short) i+3, commentRow));
new XSSFClientAnchor(0, 0, 0, 0, (short) i, 0, (short) i+4, commentRow));
comment.setString(new XSSFRichTextString(commentStr));
cell.setCellComment(comment);
}else{