Commit de6ace69 authored by pbhosale's avatar pbhosale

misc_rcp_loan_reco21.xml

LoanRecoConf.java
MiscRcpLoanAdjIC.java
MiscRcpLoanAdjICLocal.java
MiscRcpLoanAdjICRemote.java
MiscRcpLoanAdjPrc.java
MiscRcpLoanAdjPrcLocal.java
MiscRcpLoanAdjPrcRemote.java
misc_rcp_loan_adj21.xml
misc_rcp_loan_adj.sql
misc_rcp_loan_reco.sql
d_misc_rcp_loan_adj11.srd
d_misc_rcp_loan_adj12.srd
d_misc_rcp_loan_reco11.srd
d_misc_rcp_loan_reco21.srd

* changes done by [Poonam B] on [23-sep-2019]

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@208098 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a02dbcfc
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
$PBExportHeader$d_misc_rcp_loan_adj11.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=342 color="536870912" )
table(column=(type=char(6) updatewhereclause=no name=tran_ser dbname="tran_ser" )
column=(type=date updatewhereclause=no name=tran_date dbname="tran_date" )
column=(type=char(20) updatewhereclause=no name=ref_no dbname="ref_no" )
column=(type=char(10) updatewhereclause=no name=emp_code dbname="emp_code" )
column=(type=char(20) updatewhereclause=no name=emp_fname dbname="emp_fname" )
column=(type=char(20) updatewhereclause=no name=emp_lname dbname="emp_lname" )
column=(type=char(50) updatewhereclause=no name=remarks dbname="remarks" )
column=(type=decimal(2) updatewhereclause=no name=net_amt dbname="net_amt" )
column=(type=decimal(2) updatewhereclause=no name=adj_amt dbname="adj_amt" )
column=(type=char(5) updatewhereclause=no name=pay_site dbname="pay_site" )
)
groupbox(band=detail text="Basic"border="5" color="33554432" x="17" y="9" height="218" width="499" name=gb_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="33554432" x="136" y="68" height="19" width="75" format="[general]" html.valueishtml="0" name=emp_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="33554432" x="136" y="94" height="16" width="75" format="[general]" html.valueishtml="0" name=net_amt visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="136" y="45" height="16" width="75" format="[general]" html.valueishtml="0" name=ref_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Reference No :" border="5" color="33554432" x="33" y="45" height="16" width="97" html.valueishtml="0" name=ref_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="33554432" x="216" y="69" height="16" width="110" format="[general]" html.valueishtml="0" name=emp_fname visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=10 border="5" color="33554432" x="352" y="45" height="16" width="88" format="[general]" html.valueishtml="0" name=tran_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="33554432" x="330" y="69" height="16" width="110" format="[general]" html.valueishtml="0" name=emp_lname visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="33554432" x="352" y="94" height="16" width="88" format="[general]" html.valueishtml="0" name=adj_amt visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Employee :" border="5" color="33554432" x="33" y="69" height="16" width="97" html.valueishtml="0" name=emp_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Net Amount :" border="5" color="33554432" x="33" y="94" height="16" width="97" html.valueishtml="0" name=net_amt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Tran Date:" border="5" color="33554432" x="271" y="45" height="16" width="75" html.valueishtml="0" name=tran_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Balance Amount :" border="5" color="33554432" x="233" y="94" height="16" width="113" html.valueishtml="0" name=adj_amt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="102" y="138" height="16" width="75" format="[general]" html.valueishtml="0" name=tran_ser visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="33554432" x="189" y="138" height="16" width="75" format="[general]" html.valueishtml="0" name=remarks visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="33554432" x="277" y="138" height="16" width="75" format="[general]" html.valueishtml="0" name=pay_site visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_misc_rcp_loan_adj12.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=19 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(40) updatewhereclause=yes name=scheme_descr dbname="loan_scheme.descr" )
column=(type=datetime updatewhereclause=yes name=start_reco dbname="loans.start_reco" )
column=(type=decimal(3) updatewhereclause=yes name=balance_amt dbname="loans.balance_amt" )
column=(type=number updatewhereclause=yes name=reco_amt dbname="reco_amt" )
column=(type=decimal(3) updatewhereclause=yes name=loan_amt dbname="loans.loan_amt" )
column=(type=char(15) update=yes updatewhereclause=yes name=loan_no dbname="loans.loan_no" )
column=(type=char(10) updatewhereclause=yes name=scheme_no dbname="loans.scheme_no" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"loan_scheme~" ) TABLE(NAME=~"loans~" ) COLUMN(NAME=~"loan_scheme.descr~") COLUMN(NAME=~"loans.start_reco~") COLUMN(NAME=~"loans.balance_amt~") COMPUTE(NAME=~"0.00 as reco_amt~") COLUMN(NAME=~"loans.loan_amt~") COLUMN(NAME=~"loans.loan_no~") COLUMN(NAME=~"loans.scheme_no~") JOIN (LEFT=~"loans.scheme_no~" OP =~"=~"RIGHT=~"loan_scheme.scheme_no~" )WHERE( EXP1 =~"( loans.emp_code~" OP =~"=~" EXP2 =~":as_emp_code )~" LOGIC =~"And~" ) WHERE( EXP1 =~"( loans.status~" OP =~"=~" EXP2 =~"'A')~" LOGIC =~"And~" ) WHERE( EXP1 =~"( loans.start_dedn~" OP =~"=~" EXP2 =~"'Y')~" LOGIC =~"And~" ) WHERE( EXP1 =~"( loans.balance_amt~" OP =~">~" EXP2 =~"0 )~" ) ) ARG(NAME = ~"as_emp_code~" TYPE = string) " arguments=(("as_emp_code", string)) )
text(band=header alignment="2" text="Loan No" border="0" color="33554432" x="685" y="2" height="16" width="96" html.valueishtml="0" name=loan_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Scheme No" border="0" color="33554432" x="783" y="2" height="16" width="80" html.valueishtml="0" name=scheme_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Start Reco" border="0" color="33554432" x="187" y="2" height="16" width="132" html.valueishtml="0" name=start_reco_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Loan Amount" border="0" color="33554432" x="576" y="2" height="16" width="107" html.valueishtml="0" name=loan_amt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Scheme Description " border="0" color="33554432" x="2" y="2" height="16" width="183" html.valueishtml="0" name=scheme_descr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Balance Amount" border="0" color="33554432" x="321" y="1" height="19" width="132" html.valueishtml="0" name=balance_amt_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="1" text="Recover Amount" border="0" color="33554432" x="455" y="1" height="19" width="119" html.valueishtml="0" name=reco_amt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="33554432" x="685" y="2" height="19" width="96" format="[general]" html.valueishtml="0" name=loan_no visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="0" color="33554432" x="783" y="2" height="19" width="80" format="[general]" html.valueishtml="0" name=scheme_no visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="33554432" x="187" y="2" height="19" width="132" format="[shortdate] [time]" html.valueishtml="0" name=start_reco visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=5 alignment="1" tabsequence=32766 border="0" color="33554432" x="577" y="2" height="19" width="106" format="[general]" html.valueishtml="0" name=loan_amt visible="1" editmask.mask="###,###,###.00" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="33554432" x="2" y="2" height="19" width="183" format="[general]" html.valueishtml="0" name=scheme_descr visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="1" tabsequence=10 border="0" color="33554432" x="456" y="2" height="19" width="118" format="[general]" html.valueishtml="0" name=reco_amt visible="1" editmask.mask="###,###,##0.00" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="1" tabsequence=32766 border="0" color="33554432" x="322" y="2" height="19" width="131" format="[general]" html.valueishtml="0" name=balance_amt visible="1" editmask.mask="###,###,###.00" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Local;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import java.util.*;
import java.sql.*;
import java.io.File;
@Local
import org.w3c.dom.Document;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
public interface MiscRcpLoanAdjICLocal extends ValidatorLocal
{
......
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Remote;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import java.util.*;
import java.sql.*;
import java.io.File;
@Remote
import org.w3c.dom.Document;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
public interface MiscRcpLoanAdjICRemote extends ValidatorRemote
{
......
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Local;
import org.w3c.dom.*;
import javax.xml.parsers.*;
@Local
import org.w3c.dom.Document;
import ibase.webitm.utility.ITMException;
public interface MiscRcpLoanAdjPrcLocal extends ibase.webitm.ejb.ProcessLocal
{
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
......
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Remote;
import org.w3c.dom.*;
import javax.xml.parsers.*;
@Remote
import org.w3c.dom.Document;
import ibase.webitm.utility.ITMException;
public interface MiscRcpLoanAdjPrcRemote extends ibase.webitm.ejb.ProcessRemote
{
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
......
......@@ -4,7 +4,9 @@ import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Map;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
......@@ -28,7 +30,7 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
System.out.println("Conn==>[" + conn + "]");
retString = gbfPostLogic(tranId, tranId,xtraParams,forcedFlag,conn);
System.out.println("returning String from EmployeeSepConfirm :confirm():==>[" + retString + "]");
if(retString == null || retString.trim().length() == 0)
{
conn.commit();
......@@ -45,7 +47,7 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
......@@ -118,7 +120,7 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
}
else
{
errString = gbfLoanRecoRetrieve(lsRecono,lsRecono,conn);
errString = gbfLoanRecoRetrieve(lsRecono,lsRecono,userId, chgTerm, conn);
}
}
if(errString != null && errString.trim().length() > 0)
......@@ -156,7 +158,7 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
}
return errString;
}
public String gbfLoanRecoRetrieve(String lsReconoFr,String lsReconoTo,Connection conn) throws ITMException
public String gbfLoanRecoRetrieve(String lsReconoFr,String lsReconoTo, String userId, String chgTerm ,Connection conn) throws ITMException
{
PreparedStatement pstmt = null;
ResultSet rs = null;
......@@ -182,8 +184,8 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
pstmt.setString(3, lsRecono);
cntRows = pstmt.executeUpdate();
System.out.println("row update into loan_reco ="+cntRows);
errString = gbfPostLoanReco(lsRecono , conn);
errString = gbfPostLoanReco(lsRecono ,userId, chgTerm,conn);
}
if( pstmt != null )
{
......@@ -227,7 +229,7 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
return errString;
}
public String gbfPostLoanReco(String lsRecono,Connection conn) throws ITMException
public String gbfPostLoanReco(String lsRecono,String userId ,String chgTerm , Connection conn) throws ITMException
{
String errString = "";
PreparedStatement pstmt = null;
......@@ -433,7 +435,7 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
pstmt.setTimestamp(2, ldRecodate);
pstmt.setString(3, lsLoanno);
cntRows = pstmt.executeUpdate();
System.out.println("row update into loans::::::else ="+cntRows);
System.out.println("row update into loans::::::else =" +cntRows);
}
if(cntRows == 0)
{
......@@ -503,6 +505,96 @@ public class LoanRecoConf extends ActionHandlerEJB implements LoanRecoConfLocal,
}
return errString;
}
// Added By Poonam B[11-09-2019][START]
public String gbfInsertReco(Map lstrReco ,String asToconfirm , int aiCommit,Connection conn) throws ITMException, SQLException
{
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
String errString = "";
String sql = "";
int cnt = 0;
PreparedStatement pstmt = null;
try
{
do
{
sql = "insert into loan_reco (reco_no ,reco_date ,loan_no ,scheme_no ,emp_code ,start_date,"+
"loan_amt ,loan_interest ,mon_inst ,ad_code ,reco_amt ,remarks ,chg_date ,chg_user ,"+
"chg_term ,confirmed ,tran_id__rcp ,conf_date ,emp_code__aprv ,tran_ser__pay ,ref_no__pay ,int_calculated)"+
"values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,(String)lstrReco.get("reco_no"));
pstmt.setTimestamp(2,(Timestamp)lstrReco.get("reco_date"));
pstmt.setString(3,(String)lstrReco.get("loan_no"));
pstmt.setString(4,(String)lstrReco.get("SCHEME_NO"));
pstmt.setString(5,(String)lstrReco.get("emp_code"));
pstmt.setTimestamp(6,(Timestamp)lstrReco.get("start_date"));
pstmt.setDouble(7,(Double)lstrReco.get("loan_amt"));
pstmt.setDouble(8,(Double)lstrReco.get("loan_interest"));
pstmt.setDouble(9,(Double)lstrReco.get("mon_inst"));
pstmt.setString(10,(String)lstrReco.get("ad_code"));
pstmt.setDouble(11,(Double)lstrReco.get("reco_amt"));
pstmt.setString(12,(String)lstrReco.get("remarks"));
pstmt.setTimestamp(13,(Timestamp)lstrReco.get("chg_date"));
pstmt.setString(14,(String)lstrReco.get("chg_user"));
pstmt.setString(15,(String)lstrReco.get("chg_term"));
pstmt.setString(16,(String)lstrReco.get("confirmed"));
pstmt.setString(17,(String)lstrReco.get("tran_id__rcp"));
pstmt.setTimestamp(18,(Timestamp)lstrReco.get("conf_date"));
pstmt.setString(19,(String)lstrReco.get("emp_code__aprv"));
pstmt.setString(20,(String)lstrReco.get("tran_ser__pay"));
pstmt.setString(21,(String)lstrReco.get("ref_no__pay"));
pstmt.setString(22,(String)lstrReco.get("int_calculated"));
cnt = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("cnt of gbfInsertReco() ===>" +cnt);
if(cnt < 0)
{
errString = itmDBAccessEJB.getErrorString("", "DS000", userId, "", conn);
conn.rollback();
break;
}
else if(cnt == 0)
{
errString = itmDBAccessEJB.getErrorString("", "DS000NR", userId, "", conn);
break;
}
if("Y".equalsIgnoreCase(asToconfirm))
{
errString = gbfLoanRecoRetrieve((String)lstrReco.get("reco_no"),(String)lstrReco.get("reco_no") , (String)lstrReco.get("chg_user"), (String)lstrReco.get("chg_term") ,conn );
}
break;
}while(true);
System.out.println("Successfully Inserted row by gbfInsertReco()::::::" +cnt);
}catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
if(errString != null && errString.trim().length() >0)
{
conn.rollback();
}
else if(aiCommit == 2)
{
conn.commit();
}
System.out.println("errString in gbfInsertReco:: "+errString);
return errString;
}
// Added By Poonam B[11-09-2019][END]
private String checkNull(String input)
{
if (input == 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