Commit ca9ef54b authored by pshinde's avatar pshinde

New changes in source code of Bank guarantee and bank guarantee amendment confirn


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98802 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dda4a035
...@@ -53,6 +53,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -53,6 +53,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
String loginEmpCode="",statusBef=""; String loginEmpCode="",statusBef="";
Timestamp sysDate = null; Timestamp sysDate = null;
String userId="",empCodeAprv=""; String userId="",empCodeAprv="";
String bankNamIss="";
try try
{ {
genericUtility = GenericUtility.getInstance(); genericUtility = GenericUtility.getInstance();
...@@ -115,7 +116,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -115,7 +116,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
System.out.println(">>>>>>>>loginEmpCode:"+loginEmpCode); System.out.println(">>>>>>>>loginEmpCode:"+loginEmpCode);
//selecting values //selecting values
System.out.println("Update"); System.out.println("Update");
sql = "select eff_date,no_days,due_date,bank_address,lc_amt from lc_voucher_amend where tran_id =?"; sql = "select eff_date,no_days,due_date,bank_name_iss,bank_address,lc_amt from lc_voucher_amend where tran_id =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId); pstmt.setString(1,tranId);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -125,6 +126,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -125,6 +126,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
effDate = rs.getDate("eff_date"); effDate = rs.getDate("eff_date");
noOfDays = rs.getDouble("no_days"); noOfDays = rs.getDouble("no_days");
dueDate = rs.getDate("due_date"); dueDate = rs.getDate("due_date");
bankNamIss = rs.getString("bank_name_iss");
bankAdd = rs.getString("bank_address"); bankAdd = rs.getString("bank_address");
lcAmt = rs.getDouble("lc_amt"); lcAmt = rs.getDouble("lc_amt");
...@@ -132,6 +134,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -132,6 +134,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
System.out.println("LrDate="+lrDate); System.out.println("LrDate="+lrDate);
System.out.println("noOfDays====="+noOfDays); System.out.println("noOfDays====="+noOfDays);
System.out.println("dueDate===="+dueDate); System.out.println("dueDate===="+dueDate);
System.out.println("bankNamIss===="+bankNamIss);
System.out.println("bankAdd===="+bankAdd); System.out.println("bankAdd===="+bankAdd);
System.out.println("lcAmt===="+lcAmt); System.out.println("lcAmt===="+lcAmt);
...@@ -143,7 +146,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -143,7 +146,7 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
//updating values //updating values
sql = "update lc_voucher set eff_date = ? ,no_days = ? ,due_date= ? ,bank_address= ?,lc_amt =?,amd_no__last=? WHERE TRAN_ID = ?"; sql = "update lc_voucher set eff_date = ? ,no_days = ? ,due_date= ? ,bank_name_iss= ?,bank_address= ?,lc_amt =?,amd_no__last=? WHERE TRAN_ID = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
if(effDate == null) if(effDate == null)
...@@ -163,10 +166,11 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura ...@@ -163,10 +166,11 @@ public class BankGauranteeAmdConf extends ActionHandlerEJB implements BankGaura
{ {
pstmt.setDate(3,new java.sql.Date(dueDate.getTime())); pstmt.setDate(3,new java.sql.Date(dueDate.getTime()));
} }
pstmt.setString(4, bankAdd); pstmt.setString(4, bankNamIss);//added
pstmt.setDouble(5, lcAmt); pstmt.setString(5, bankAdd);
pstmt.setString(6, tranId); pstmt.setDouble(6, lcAmt);
pstmt.setString(7,tranIdAmend); pstmt.setString(7, tranId);
pstmt.setString(8,tranIdAmend);
updCnt = pstmt.executeUpdate(); updCnt = pstmt.executeUpdate();
System.out.println("nO OF ROWS UPADTE="+updCnt); System.out.println("nO OF ROWS UPADTE="+updCnt);
//conn.commit(); //conn.commit();
......
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