Commit 7d996590 authored by smanohar's avatar smanohar

Returned xml instead of tab delimited text

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211609 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 98a18b7b
......@@ -414,7 +414,14 @@ public class QuotationApprvPrc extends ProcessEJB implements QuotationApprvPrcLo
ResultSet rs = null,rs1 = null;
PreparedStatement pstmt = null,pstmt1 = null;
Statement st = null;
StringBuffer retTabSepStrBuff = new StringBuffer();
//StringBuffer retTabSepStrBuff = new StringBuffer();
StringBuffer retTabSepStrBuff = new StringBuffer("<?xml version = \"1.0\"?>");
retTabSepStrBuff.append("<DocumentRoot>");
retTabSepStrBuff.append("<description>").append("Datawindow Root").append("</description>");
retTabSepStrBuff.append("<group0>");
retTabSepStrBuff.append("<description>").append("Group0 description").append("</description>");
retTabSepStrBuff.append("<Header0>");
//String siteCode=null;
String saleOrderFrom ="",saleOrderTo = "",sOrderDateFrom = "",sOrderDateTo ="";
String lineNo = "",itemCode = "",enqNo = "",status = "",quotNo = "";
......@@ -449,17 +456,29 @@ public class QuotationApprvPrc extends ProcessEJB implements QuotationApprvPrcLo
enqNo = rs.getString("enq_no");
status = rs.getString("status");
//procDate = genericUtility.getValidDateString( procDateStr,genericUtility.getDBDateFormat(),genericUtility.getApplDateFormat());
retTabSepStrBuff.append(quotNo).append("\t");
retTabSepStrBuff.append(lineNo).append("\t");
retTabSepStrBuff.append(itemCode).append("\t");
retTabSepStrBuff.append(enqNo).append("\t");
retTabSepStrBuff.append(status).append("\t");
retTabSepStrBuff.append("\n");
//retTabSepStrBuff.append(quotNo).append("\t");
//retTabSepStrBuff.append(lineNo).append("\t");
//retTabSepStrBuff.append(itemCode).append("\t");
//retTabSepStrBuff.append(enqNo).append("\t");
//retTabSepStrBuff.append(status).append("\t");
//retTabSepStrBuff.append("\n");
retTabSepStrBuff.append("<Detail2>");
retTabSepStrBuff.append("<quot_no>").append("<![CDATA[" + rs.getString("quot_no") + "]]>").append("</quot_no>");
retTabSepStrBuff.append("<line_no>").append("<![CDATA[" + rs.getString("line_no") + "]]>").append("</line_no>");
retTabSepStrBuff.append("<item_code>").append("<![CDATA[" + rs.getString("item_code") + "]]>").append("</item_code>");
retTabSepStrBuff.append("<enq_no>").append("<![CDATA[" + rs.getString("enq_no") + "]]>").append("</enq_no>");
retTabSepStrBuff.append("<status>").append("<![CDATA[" + rs.getString("status") + "]]>").append("</status>");
retTabSepStrBuff.append("</Detail2>");
}
rs.close();
rs = null;
stmt.close();
stmt = null;
retTabSepStrBuff.append("</Header0>");
retTabSepStrBuff.append("</group0>");
retTabSepStrBuff.append("</DocumentRoot>");
resultString = retTabSepStrBuff.toString();
System.out.println("ResultString....." + resultString);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment