Commit a044af88 authored by vvengurlekar's avatar vvengurlekar

MiscRcpConf.java- changed as per jdk 1.6


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192512 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a0fcf00d
......@@ -236,7 +236,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
tranIdArray = new ArrayList<String>();
hdrValues = new HashMap();
detValues = new HashMap();
detailRows = new HashMap<>();
detailRows = new HashMap();
dataBaseName = checkNull( CommonConstants.DB_NAME);
System.out.println("dataBaseName--["+dataBaseName+"]");
......@@ -420,7 +420,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
rs2 = pstmt2.executeQuery();
while(rs2.next())
{
detValues = new HashMap<>();
detValues = new HashMap();
key++;
detValues.put("tran_id", checkNull(rs2.getString("tran_id")));
detValues.put("line_no",checkNull( rs2.getString("line_no")));
......@@ -635,7 +635,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
do
{
glTrace.put("dr_amt", tranHdrMap.get("net_amt"));
drAmt = (double) glTrace.get("dr_amt");
drAmt = (Double) glTrace.get("dr_amt");
System.out.println("drAmt--["+drAmt+"]");
if( drAmt < 0)
{
......@@ -681,7 +681,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
// update currency fluctuation to gltrace
//glTrace = new HashMap(); //Changed By PriyankaC on 30OCt2018
diffAmtExch = (double) tranHdrMap.get("diff_amt__exch");
diffAmtExch = (Double) tranHdrMap.get("diff_amt__exch");
if(diffAmtExch != 0)
{
glTrace = new HashMap(); //Changed By PriyankaC on 30OCt2018
......@@ -693,7 +693,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
glTrace.put("sundry_code"," ");
glTrace.put("acct_code", tranHdrMap.get("acct_code__cf"));
glTrace.put("acct_code", tranHdrMap.get("acct_code__cf"));
cctrCodeCf = (double) tranHdrMap.get("cctr_code__cf");
cctrCodeCf = (Double) tranHdrMap.get("cctr_code__cf");
glTrace.put("cctr_code", cctrCodeCf);
glTrace.put("emp_code", null);
glTrace.put("anal_code", null);
......@@ -1005,10 +1005,10 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
headerMap = hdrData;
detailMap = detData;
detailRow = new HashMap<>();
glTrace = new HashMap<>();
sundryBal = new HashMap<>();
bankTranLog = new HashMap<>();
detailRow = new HashMap();
glTrace = new HashMap();
sundryBal = new HashMap();
bankTranLog = new HashMap();
System.out.println("Inside try block");
......@@ -1025,7 +1025,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
System.out.println("detailRow---["+detailRow+"]");
headerTranId = (String) headerMap.get("tran_id");
amount = (double) headerMap.get("amount");
amount = (Double) headerMap.get("amount");
System.out.println("headerTranId--["+headerTranId+"]amount--["+amount+"]");
......@@ -1088,7 +1088,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
}
if(totAdjAmt != amount)
{
glTrace = new HashMap<>();
glTrace = new HashMap();
if((amount - totAdjAmt) > 0)
{
......@@ -1140,8 +1140,8 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
else
{
System.out.println("Inside else condition");
glTrace = new HashMap<>();
if((double)detailRow.get("amount") > 0)
glTrace = new HashMap();
if((Double)detailRow.get("amount") > 0)
{
glTrace.put("dr_amt", 0.0);
glTrace.put("cr_amt",detailRow.get("amount"));
......@@ -1150,7 +1150,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
{
//Changed By PriyankaC on 30OCt2018 [START]
//glTrace.put("dr_amt", 0 - (Integer)detailRow.get("amount") );
glTrace.put("dr_amt", 0 - (double)detailRow.get("amount") );
glTrace.put("dr_amt", 0 - (Double)detailRow.get("amount") );
//Changed By PriyankaC on 30OCt2018 [END]
glTrace.put("cr_amt", 0.0);
}
......@@ -1196,7 +1196,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
if(!("O".equalsIgnoreCase(sundryType)))
{
System.out.println("Inside !(\"O\".equalsIgnoreCase(sundryType))");
sundryBal = new HashMap<>();
sundryBal = new HashMap();
sundryBal.put("tran_date", headerMap.get("tran_date"));
sundryBal.put("eff_date", headerMap.get("eff_date"));
sundryBal.put("fin_entity", headerMap.get("fin_entity"));
......@@ -1209,7 +1209,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
sundryBal.put("exch_rate", headerMap.get("exch_rate"));
amount = 0.0;
amount = (double) detailRow.get("amount");
amount = (Double) detailRow.get("amount");
if(amount > 0.0)
{
sundryBal.put("dr_amt", 0.0);
......@@ -1268,7 +1268,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
cctrCode = (String) detailRow.get("cctrCode");
}
glTrace = new HashMap<>();
glTrace = new HashMap();
glTrace.put("tran_date", headerMap.get("tran_date"));
glTrace.put("eff_date", headerMap.get("eff_date"));
glTrace.put("fin_entity", headerMap.get("fin_entity"));
......@@ -1347,7 +1347,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
cctrCodeReco = "";
}
glTrace = new HashMap<>();
glTrace = new HashMap();
glTrace.put("tran_date", headerMap.get("tran_date"));
glTrace.put("eff_date", headerMap.get("eff_date"));
glTrace.put("fin_entity", headerMap.get("fin_entity"));
......@@ -1540,7 +1540,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
PreparedStatement pstmt = null;
ResultSet rs = null;
HashMap hdrMap = new HashMap<>();
HashMap hdrMap = new HashMap();
try
{
genericUtility = new E12GenericUtility();
......@@ -1713,7 +1713,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
genericUtility = new E12GenericUtility();
utilMethods = new UtilMethods();
headerMap = new HashMap<>();
headerMap = new HashMap();
databaseName = CommonConstants.DB_NAME;
do
......@@ -1721,7 +1721,7 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
tranSer = (String) headerMap.get("tran_ser__pay");
refNo = (String) headerMap.get("ref_no__pay");
tranId = (String) headerMap.get("tran_id__rcp");
adjAmt = (double) headerMap.get("adj_amt");
adjAmt = (Double) headerMap.get("adj_amt");
if("db2".equalsIgnoreCase(databaseName) || "mysql".equalsIgnoreCase(databaseName))
{
......
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