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 ...@@ -45,19 +45,20 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
Date dueDate = null; Date dueDate = null;
double lcAmt = 0.0; double lcAmt = 0.0;
double noOfDays = 0.0; double noOfDays = 0.0;
int status = 0; int updCnt = 0;
int cnt=0; int cnt=0;
String tranCode=""; String tranCode="";
String tranIdAmend=""; String tranIdAmend="";
Date lrDate = null; Date lrDate = null;
String loginEmpCode="",statusBef=""; String loginEmpCode="",statusBef="";
Timestamp sysDate = null; Timestamp sysDate = null;
String userId="",empCodeAprv="";
try try
{ {
genericUtility = GenericUtility.getInstance(); genericUtility = GenericUtility.getInstance();
System.out.println("In BankGauranteeAmdConf_1 Confirmation Process >>>>>>>>>>>>>> "); System.out.println("In BankGauranteeAmdConf_1 Confirmation Process >>>>>>>>>>>>>> ");
String userId="";
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
...@@ -67,6 +68,10 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -67,6 +68,10 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
userId = e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
System.out.println("--login code--"+userId); System.out.println("--login code--"+userId);
empCodeAprv = e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
System.out.println("empCodeAprv@@@@@@@"+empCodeAprv);
System.out.println("Getting Tran_ID=============="+tranId); System.out.println("Getting Tran_ID=============="+tranId);
if(tranId!=null && tranId.trim().length()>0) if(tranId!=null && tranId.trim().length()>0)
{ {
...@@ -162,18 +167,19 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -162,18 +167,19 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
pstmt.setDouble(5, lcAmt); pstmt.setDouble(5, lcAmt);
pstmt.setString(6, tranId); pstmt.setString(6, tranId);
pstmt.setString(7,tranIdAmend); pstmt.setString(7,tranIdAmend);
status = pstmt.executeUpdate(); updCnt = pstmt.executeUpdate();
System.out.println("nO OF ROWS UPADTE="+status); System.out.println("nO OF ROWS UPADTE="+updCnt);
//conn.commit(); //conn.commit();
pstmt.close(); pstmt.close();
pstmt = null; 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 = conn.prepareStatement(sql);
pstmt.setString(1,tranId); pstmt.setString(1, empCodeAprv);
pstmt.setString(2,tranId);
cnt=pstmt.executeUpdate(); cnt=pstmt.executeUpdate();
//System.out.println("nO OF transaction conf is ="+pstmt.executeUpdate()); //System.out.println("nO OF transaction conf is ="+pstmt.executeUpdate());
//conn.commit(); //conn.commit();
...@@ -200,7 +206,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -200,7 +206,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
} }
catch( Exception e ) catch( Exception e )
{ {
System.out.println("BankGauranteeAmdConf_1..."+e.getMessage()); System.out.println("BankGauranteeAmdConf..."+e.getMessage());
e.printStackTrace(); e.printStackTrace();
try try
{ {
...@@ -208,7 +214,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -208,7 +214,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
} }
catch(Exception e1) catch(Exception e1)
{ {
System.out.println("BankGauranteeAmdConf_1..."+e1.getMessage()); System.out.println("BankGauranteeAmdConf..."+e1.getMessage());
e1.printStackTrace(); 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