Commit 429c560d authored by smanohar's avatar smanohar

CreateRCPXML domID set in xml

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214673 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c9a2cd6c
...@@ -187,7 +187,7 @@ public class CreateRCPXML ...@@ -187,7 +187,7 @@ public class CreateRCPXML
String colXml = null; String colXml = null;
String detTag = null; String detTag = null;
String detEndTag = null; String detEndTag = null;
int rowcount = 0;
for( int formSqlIdx = 0; formSqlIdx < formSQLs.length ; formSqlIdx++ ) for( int formSqlIdx = 0; formSqlIdx < formSQLs.length ; formSqlIdx++ )
{ {
pstmt = conn.prepareStatement( formSQLs[ formSqlIdx ] ); pstmt = conn.prepareStatement( formSQLs[ formSqlIdx ] );
...@@ -197,12 +197,14 @@ public class CreateRCPXML ...@@ -197,12 +197,14 @@ public class CreateRCPXML
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
ResultSetMetaData rsmd = rs.getMetaData(); ResultSetMetaData rsmd = rs.getMetaData();
int numberOfColumns = rsmd.getColumnCount(); int numberOfColumns = rsmd.getColumnCount();
detTag = "<Detail" + ( formSqlIdx + 1 ) + " dbID =\""+tranId+"\">"; detTag = "<Detail" + ( formSqlIdx + 1 ) + " dbID =\""+tranId+"\"";
detEndTag = "</Detail" + ( formSqlIdx + 1 ) + ">"; detEndTag = "</Detail" + ( formSqlIdx + 1 ) + ">";
rowcount = 0;
while( rs.next() ) while( rs.next() )
{ {
tranXmlBuff.append( "\n\t" + detTag ); rowcount++;
//detTag = detTag + " domID =\""+rowcount+"\">";
tranXmlBuff.append( "\n\t" + detTag + " domID =\""+rowcount+"\">");
for( int rsIdx = 1; rsIdx < numberOfColumns ; rsIdx++ ) for( int rsIdx = 1; rsIdx < numberOfColumns ; rsIdx++ )
{ {
colName = rsmd.getColumnName( rsIdx ); colName = rsmd.getColumnName( rsIdx );
......
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