Commit 67dd593a authored by spawar's avatar spawar

Added changes for set post_type to xml


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99102 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4a23f756
...@@ -2298,6 +2298,32 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -2298,6 +2298,32 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
exchRate = finCommon.getDailyExchRateSellBuy(currCode.trim(),"",loginSite.trim(),currDateStr.trim(),"B", conn); exchRate = finCommon.getDailyExchRateSellBuy(currCode.trim(),"",loginSite.trim(),currDateStr.trim(),"B", conn);
System.out.println("exchRate..>>>>>>>>>>>>>["+exchRate+"]"); System.out.println("exchRate..>>>>>>>>>>>>>["+exchRate+"]");
//Changed By samadhan[D15AKAT001] on 03/11/2015 for bug reported post_type not set Start
sql = "select post_type from itemser where item_ser in (select item_ser from porder where purc_order = ? )";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1,purcOrder );
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
postType = rs1.getString("post_type");
}
if(postType == null || postType.equals(""))
{
postType="A";
}
if (rs1 != null)
{
rs1.close();
rs1 = null;
}
if (pstmt1 != null)
{
pstmt1.close();
pstmt1 = null;
}
System.out.println("@@@@@ post_type Add Mode :["+postType+"]");
//Changed By samadhan[D15AKAT001] on 03/11/2015 for bug reported post_type not set End
//valueXmlString.append( "<Detail2 domID='1'>\r\n" ); //valueXmlString.append( "<Detail2 domID='1'>\r\n" );
//Added by Manoj dtd 20/08/2012 //Added by Manoj dtd 20/08/2012
valueXmlString.append("<Detail2 domID='1' selected=\"N\">"); valueXmlString.append("<Detail2 domID='1' selected=\"N\">");
...@@ -2388,6 +2414,8 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -2388,6 +2414,8 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
valueXmlString.append( "<reciept_type><![CDATA[" ).append( "F" ).append( "]]></reciept_type>\r\n" ); valueXmlString.append( "<reciept_type><![CDATA[" ).append( "F" ).append( "]]></reciept_type>\r\n" );
/* Added By Ashish Sonawane on 28/08/12 as per manoharan Sir [END] */ /* Added By Ashish Sonawane on 28/08/12 as per manoharan Sir [END] */
valueXmlString.append("<add><![CDATA[").append("A").append("]]></add>\r\n"); //added by Dhanraj for check add and edit code on 22-SEP-14 valueXmlString.append("<add><![CDATA[").append("A").append("]]></add>\r\n"); //added by Dhanraj for check add and edit code on 22-SEP-14
//Changed By samadhan[D15AKAT001] on 03/11/2015 for bug reported post_type not set
valueXmlString.append( "<post_type><![CDATA[" ).append( postType ).append( "]]></post_type>\r\n" );
valueXmlString.append("</Detail2>\r\n"); valueXmlString.append("</Detail2>\r\n");
} }
if (rs != null) if (rs != null)
......
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