Commit a84f96b8 authored by kmandhre's avatar kmandhre

change in template code itemchange


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93548 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7f2df055
...@@ -806,25 +806,25 @@ public class ProcRouteInstrIc extends ValidatorEJB implements ProcRouteInstrIcLo ...@@ -806,25 +806,25 @@ public class ProcRouteInstrIc extends ValidatorEJB implements ProcRouteInstrIcLo
} }
if ( currentColumn.trim().equals( "template_code" ) ) //change done by kunal on 23/11/12 if ( currentColumn.trim().equals( "template_code" ) ) //change done by kunal on 23/11/12
{ {
String templatenoDescr = ""; String templatenoDescr = "",templateName = "";
String templateCode = genericUtility.getColumnValue( "template_code", dom ); String templateCode = genericUtility.getColumnValue( "template_code", dom );
if( templateCode != null )
{ sql = " select descr ,template_name from bmr_template where template_code = ? ";
sql = " select descr from bmr_template where template_code = ? "; pStmt = conn.prepareStatement( sql );
pStmt.setString(1, templateCode );
pStmt = conn.prepareStatement( sql ); rs = pStmt.executeQuery();
pStmt.setString(1, templateCode ); if( rs.next() )
rs = pStmt.executeQuery(); {
if( rs.next() ) templatenoDescr = rs.getString( "descr" );
{ templateName = rs.getString( "template_name" );
templatenoDescr = rs.getString( "descr" );
}
rs.close();
rs = null;
pStmt.close();
pStmt = null;
} }
rs.close();
rs = null;
pStmt.close();
pStmt = null;
valueXmlString.append("<bmr_template_descr>").append("<![CDATA[" + templatenoDescr + "]]>").append("</bmr_template_descr>"); valueXmlString.append("<bmr_template_descr>").append("<![CDATA[" + templatenoDescr + "]]>").append("</bmr_template_descr>");
valueXmlString.append("<template_name>").append("<![CDATA[" + templateName + "]]>").append("</template_name>");//added by kunal on 27/AUG/13
} }
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
......
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