Commit 14f58ea8 authored by pshinde's avatar pshinde

Source Code OF BANK GAURANTEE AMENDMENT Confirmation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98542 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 63bbdfda
......@@ -45,19 +45,20 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
Date dueDate = null;
double lcAmt = 0.0;
double noOfDays = 0.0;
int status = 0;
int updCnt = 0;
int cnt=0;
String tranCode="";
String tranIdAmend="";
Date lrDate = null;
String loginEmpCode="",statusBef="";
Timestamp sysDate = null;
String userId="",empCodeAprv="";
try
{
genericUtility = GenericUtility.getInstance();
System.out.println("In BankGauranteeAmdConf_1 Confirmation Process >>>>>>>>>>>>>> ");
String userId="";
ConnDriver connDriver = null;
connDriver = new ConnDriver();
......@@ -67,6 +68,10 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
userId = e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
System.out.println("--login code--"+userId);
empCodeAprv = e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
System.out.println("empCodeAprv@@@@@@@"+empCodeAprv);
System.out.println("Getting Tran_ID=============="+tranId);
if(tranId!=null && tranId.trim().length()>0)
{
......@@ -162,18 +167,19 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
pstmt.setDouble(5, lcAmt);
pstmt.setString(6, tranId);
pstmt.setString(7,tranIdAmend);
status = pstmt.executeUpdate();
System.out.println("nO OF ROWS UPADTE="+status);
updCnt = pstmt.executeUpdate();
System.out.println("nO OF ROWS UPADTE="+updCnt);
//conn.commit();
pstmt.close();
pstmt = null;
if(status >0)
if(updCnt >0)
{
sql = "update lc_voucher_amend set confirmed = 'Y',conf_date = sysdate where tran_id = ?";
sql = "update lc_voucher_amend set confirmed = 'Y',conf_date = sysdate,emp_code__aprv = ? where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
pstmt.setString(1, empCodeAprv);
pstmt.setString(2,tranId);
cnt=pstmt.executeUpdate();
//System.out.println("nO OF transaction conf is ="+pstmt.executeUpdate());
//conn.commit();
......@@ -200,7 +206,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
}
catch( Exception e )
{
System.out.println("BankGauranteeAmdConf_1..."+e.getMessage());
System.out.println("BankGauranteeAmdConf..."+e.getMessage());
e.printStackTrace();
try
{
......@@ -208,7 +214,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
}
catch(Exception e1)
{
System.out.println("BankGauranteeAmdConf_1..."+e1.getMessage());
System.out.println("BankGauranteeAmdConf..."+e1.getMessage());
e1.printStackTrace();
}
......
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