nodeInfo.setDeleteable(nodeParam.isDeleteable());
nodeInfo.initializeAttributes(nodeParam.getNodeAttributes());
- //if (nodeCollection.getNode(nodeInfo.getNodeID()+""+nodeInfo.getNodeType()) == null) {
nodeCollection.addNode(nodeInfo);
nodeIDSet.add(nodeParam.getNodeID());
-/* }
- else {
- return nodeCollection.getNode(nodeType);
- }
-*/
return nodeInfo;
}
-
- /**
- *
- */
-/* public void updateNumberT1(String currentYearMonth) {
- ArrayList<NodeInfo> nodeCollection = this.nodeCollection.getNodeCollection();
-
- for (NodeInfo nodeInfo : nodeCollection) {
- nodeInfo.setAttribute(NodeInfo.NUMBER_OF_T1_KEY, nodeInfo.getAttribute(currentYearMonth));
- }
- }
-*/
-/* public Set<Integer> getUniqueNumberT1(String currentYearMonth) {
- ArrayList<NodeInfo> nodeCollection = this.nodeCollection.getNodeCollection();
- Set<Integer> numberT1Set = new TreeSet<Integer>();
- for (NodeInfo nodeInfo : nodeCollection) {
- numberT1Set.add(Integer.parseInt(nodeInfo.getAttribute(currentYearMonth).toString()));
- }
-
- return numberT1Set;
- }
-*/
public void updateNumberT1(String currentYearMonth) {
HashMap<String,NodeInfo> hashMap = this.nodeCollection.getNodeCollection();
Set set = hashMap.entrySet();
int nodeSize = map.getShapeWidth();
HashMap<String,NodeInfo> hashMap = nodeCollection.getNodeCollection();
Set set = hashMap.entrySet();
- //ArrayList<NodeInfo> list = nodeCollection.getNodeCollection();
for (Iterator iterator = set.iterator(); iterator.hasNext();) {
Map.Entry entry = (Map.Entry) iterator.next();
if (nvl(fmt.getFontSize()).length() > 0) {
try {
- // cellFont.setFontHeight((short) (Integer.parseInt(fmt.getFontSize()) / 0.05));
cellFont.setFontHeight((short) (FONT_SIZE / 0.05));
} catch (NumberFormatException e) {
cellFont.setFontHeight((short) (FONT_SIZE / 0.05));// 10
styleValue.setBorderTop(BorderStyle.THIN);
styleValue.setBorderLeft(BorderStyle.THIN);
styleValue.setBorderRight(BorderStyle.THIN);
- // styleValue.setFillForegroundColor(HSSFColor.YELLOW.index);
styleValue.setFillPattern(fillPattern.NO_FILL);
styleValue.setFont(fontDefault);
XSSFCell cell = null;
rowNum += 2;
paintExcelFooter(wb, rowNum, col, sheet);
}
- // response.setContentType("application/vnd.ms-excel");
- // response.setHeader("Content-disposition", "attachment;filename=download_all_"
- // + user_id + ".xls");
wb.write(xlsOut);
xlsOut.flush();
}
sheetRef = sheet.getPackagePart().getPartName().getName();
wb.write(os);
os.flush();
- // wb = null;
}
} else {
sheet.getPrintSetup().setLandscape(false);
else
sheet.getPrintSetup().setLandscape(true);
- // sheet = wb.getSheet(getSheetName());
sheetRef = sheet.getPackagePart().getPartName().getName();
wb.write(os);
os.flush();
- // wb = null;
}
}
}
if (requestFlag == 2 && !rDisplayContent) {
- // System.out.println("In Request Flag ");
request.getSession().setAttribute(AppConstants.SI_REPORT_RUNTIME, rr);
rr.setParamValues(request, false, false);
} else if (requestFlag == 1) {
styleDefault.setBorderTop(BorderStyle.THIN);
styleDefault.setBorderLeft(BorderStyle.THIN);
styleDefault.setBorderRight(BorderStyle.THIN);
- // styleDefault.setFillForegroundColor(HSSFColor.YELLOW.index);
styleDefault.setFillPattern(fillPattern.NO_FILL);
styleDefault.setFont(fontDefault);
ArrayList semColumnList = new ArrayList();
.getIndex());
}
} else {
- // styleDefault.setDataFormat(HSSFDataFormat.getBuiltinFormat("#,##0.00"));
String tempStr = value.trim();
if ((tempStr.indexOf(",")) != -1) {
tempStr = tempStr.replaceAll(",", "");
styles.get(nvl(/* dv.getFormatId() */"", "date")).getIndex());
} else {
- /* cell.getCellStyle().setDataFormat((short)0); */
if (styleRowCell != null)
sw.createCell(cellNum, Utils.excelEncode(value), styleRowCell.getIndex());
else if (styleCell != null)
if (!Globals.customizeFormFieldInfo() || customizedParamInfo.length() <= 0) {
for (Iterator iter = paramsList.iterator(); iter.hasNext();) {
IdNameValue value = (IdNameValue) iter.next();
- // System.out.println("\"" + value.getId() + " = " + value.getName() + "\"");
if (nvl(value.getId()).trim().length() > 0 && (!nvl(value.getId()).trim().equals("BLANK"))) {
paramSeq += 1;
if (paramSeq <= 1) {
for (int k = 0; k < p.size(); ++k) {
if (p.get(k) instanceof Paragraph)
s = ((Paragraph) p.get(k)).toString();
- else { /* if ((p.get(k) instanceof PdfPTable)) */
+ else {
pdfTable = ((PdfPTable) p.get(k));
}
// todo: Logic for parsing pdfTable should be added after upgrading to iText 5.0.0
s = s.replaceAll(",", "|");
s = s.replaceAll("~", ",");
if (s.indexOf(":") != -1) {
- // System.out.println("|"+s+"|");
row = sheet.createRow(++rowNum);
cell = row.createCell((short) 0);
sheet.addMergedRegion(new CellRangeAddress(rowNum, rowNum, s1, s2));
value = st.nextToken();
if (nvl(value).endsWith("]"))
value = nvl(value).substring(0, nvl(value).length() - 1);
- } /*
- * else if(name != null && name.length() > 0) { value = st.nextToken();
- * if(value.endsWith("]]"))value = value.substring(0, value.length()-1); }
- */
+ }
if (name != null && name.trim().length() > 0) {
row = sheet.createRow((short) ++rowNum);
cellNum = 0;
cell = row.createCell((short) cellNum);
cell.setCellValue(value.trim());
cell.setCellStyle(styleValue);
- // strBuf.append(name.trim()+": "+ value.trim()+"\n");
}
/*
* if(token.endsWith(":") && (value!=null && value.trim().length()<=0) && (name!=null &&
*/ }
int cw = 0;
cw = name.trim().length() + 12;
- // if(i!=cellWidth.size()-1)
if (sheet.getColumnWidth((short) 0) < (short) name.trim().length())
sheet.setColumnWidth((short) 0, (short) name.trim().length());
if (sheet.getColumnWidth((short) 1) < (short) value.trim().length())
logger.error(EELFLoggerDelegate.errorLogger, "SQLException occured", ex);
}
}
- // csvOut.flush();
} else {
boolean firstPass = true;
int numberOfColumns = 0;
numberOfColumns++;
csvOut.print("<TD bgColor=\"8F9381\">" + rhc.getColumnTitle() + "</TD>");
}
- // csvOut.print(",");
} // for
for (chr.resetNext(); chr.hasNext();) {
if (firstPass)
numberOfColumns++;
csvOut.print("<TD bgColor=\"8F9381\">" + ch.getColumnTitle() + "</TD>");
- // for (int i = 1; i < ch.getColSpan(); i++)
- // csvOut.print(",");
}
} // for
firstPass = false;
csvOut.println("</TR>");
} // for
- // csvOut.flush();
} else {
csvOut.println("<TR><TD COLSPAN=\"" + numberOfColumns + "\">No Data Found</TD></TR>");
}