Commit 932eb748 authored by pchavan's avatar pchavan

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202773 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 602865ea
......@@ -202,7 +202,8 @@ public class InsuranceButtionIC extends ValidatorEJB implements BankLimitChkICLo
int childNodeListLength = 0;
int ctr = 0;
String loginSite = null,currDateTs=null;
String policyNo = "" ,agentName ="";
String policyNo = "" ,agentName ="",insCertNo= "",tranId = "";
double coverPerc = 0;
try
{
conn = getConnection();
......@@ -252,14 +253,15 @@ public class InsuranceButtionIC extends ValidatorEJB implements BankLimitChkICLo
System.out.println("Policy Number====="+policyNo);
if(policyNo!=null && policyNo.trim().length()>0)
{
sql = "select agent_code from insurance where policy_no= ? ";
sql = "select agent_code,cover_perc from insurance where policy_no = ? ";
pstmt = conn.prepareStatement( sql );
pstmt = conn.prepareStatement( sql);
pstmt.setString(1,policyNo);
rs = pstmt.executeQuery();
if( rs.next() )
{
agentName = rs.getString("agent_code");
coverPerc = rs.getDouble("cover_perc");
}
if(pstmt != null)
{
......@@ -271,7 +273,11 @@ public class InsuranceButtionIC extends ValidatorEJB implements BankLimitChkICLo
rs.close();
rs = null;
}
valueXmlString.append("<agent_code>").append("<![CDATA[" + agentName+ "]]>").append("</agent_code>");
valueXmlString.append("<cover_perc>").append("<![CDATA[" + coverPerc+ "]]>").append("</cover_perc>");
valueXmlString.append("<ins_cert_no>").append("<![CDATA[" + policyNo+ "]]>").append("</ins_cert_no>");
}
}
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