Commit f17e6a88 authored by dsawant's avatar dsawant

updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92981 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0b3ff591
...@@ -433,15 +433,15 @@ public class SiteLoanParty extends ValidatorEJB implements SiteLoanPartyLocal,Si ...@@ -433,15 +433,15 @@ public class SiteLoanParty extends ValidatorEJB implements SiteLoanPartyLocal,Si
Node parentNode = null; Node parentNode = null;
Node childNode = null; Node childNode = null;
Connection conn = null; Connection conn = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null,pstmt1 = null;
ResultSet rs = null ; ResultSet rs = null,rs1 = null ;
String childNodeName = null; String childNodeName = null;
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
String sql=""; String sql="",sql1="";
int currentFormNo =0; int currentFormNo =0;
String columnValue="",siteCode="",salesPerson="",chgTerm="",chgUser="",siteCodePay="",siteCodeDescr=""; String columnValue="",siteCode="",salesPerson="",chgTerm="",chgUser="",siteCodePay="",siteCodeDescr="";
String siteCodePayDescr="",salesPersonName="",PartyCode="",PartyName=""; String siteCodePayDescr="",salesPersonName="",PartyCode="",PartyName="",currcode="";
int ctr=0; int ctr=0;
try try
...@@ -573,19 +573,61 @@ public class SiteLoanParty extends ValidatorEJB implements SiteLoanPartyLocal,Si ...@@ -573,19 +573,61 @@ public class SiteLoanParty extends ValidatorEJB implements SiteLoanPartyLocal,Si
{ {
siteCodePayDescr = rs.getString(1) == null ? "" : rs.getString(1); siteCodePayDescr = rs.getString(1) == null ? "" : rs.getString(1);
} }
// changes by deepak
String cnt2 = null;
String sql2 = "select fin_entity from site where site_code ='"+ siteCodePay +"'";
System.out.println("deepak sitecodepay"+siteCodePay);
Statement st2 = conn.createStatement();
ResultSet rs2 = st2.executeQuery(sql2);
System.out.println("two2");
if(rs2.next())
{
cnt2 = rs2.getString(1);
System.out.println(cnt2);
System.out.println("four4");
}
sql1 = "SELECT CURR_CODE FROM FINENT WHERE FIN_ENTITY = '"+ cnt2 +"'" ;
System.out.println("deepak cnt"+cnt2);
Statement st3 = conn.createStatement();
rs1 = st3.executeQuery(sql1);
while(rs1.next())
{
currcode = rs1.getString(1) == null ? "" : rs1.getString(1);
System.out.println("deepak currcode"+currcode);
}
// changes by deepak
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
rs1.close();
rs1 = null;
st3.close();
st3 = null;
valueXmlString.append("<site_descr_pay>").append("<![CDATA[" + siteCodePayDescr + "]]>").append("</site_descr_pay>"); valueXmlString.append("<site_descr_pay>").append("<![CDATA[" + siteCodePayDescr + "]]>").append("</site_descr_pay>");
valueXmlString.append("<curr_code>").append("<![CDATA[" + currcode + "]]>").append("</curr_code>");
System.out.println("siteCodePayDescr---------- >> : "+siteCodePayDescr); System.out.println("siteCodePayDescr---------- >> : "+siteCodePayDescr);
System.out.println("currcode---------- >> : "+currcode);
} }
else else
{ {
valueXmlString.append("<site_descr_pay>").append("<![CDATA[]]>").append("</site_descr_pay>"); valueXmlString.append("<site_descr_pay>").append("<![CDATA[]]>").append("</site_descr_pay>");
valueXmlString.append("<curr_code>").append("<![CDATA[]]>").append("</curr_code>");
} }
} }
......
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