Commit 63d55e89 authored by arane's avatar arane

Issues In Bank Related Transactions

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214831 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7f7b105f
...@@ -87,9 +87,9 @@ public class SupplierBankIC extends ValidatorEJB implements SupplierBankICLocal, ...@@ -87,9 +87,9 @@ public class SupplierBankIC extends ValidatorEJB implements SupplierBankICLocal,
try try
{ {
//Changes and Commented By Bhushan on 06-06-2016 :START //Changes and Commented By Bhushan on 06-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection(); conn = getConnection();
//Changes and Commented By Bhushan on 06-06-2016 :END //Changes and Commented By Bhushan on 06-06-2016 :END
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
timestamp = new Timestamp(System.currentTimeMillis()); timestamp = new Timestamp(System.currentTimeMillis());
...@@ -117,6 +117,10 @@ conn = getConnection(); ...@@ -117,6 +117,10 @@ conn = getConnection();
{ {
suppCode= checkNull(genericUtility.getColumnValue("supp_code", dom)).trim(); suppCode= checkNull(genericUtility.getColumnValue("supp_code", dom)).trim();
System.out.println("Supplier Code>>>>"+suppCode); System.out.println("Supplier Code>>>>"+suppCode);
//changed by Anagha Rane 09-01-2020 Start
bankCodeBen= checkNull(genericUtility.getColumnValue("bank_code__ben", dom)).trim();
System.out.println("Bank Code Ben>>>>"+bankCodeBen);
//changed by Anagha Rane 09-01-2020 End
if(suppCode == null || (suppCode.trim().length() == 0)) if(suppCode == null || (suppCode.trim().length() == 0))
{ {
...@@ -181,11 +185,20 @@ conn = getConnection(); ...@@ -181,11 +185,20 @@ conn = getConnection();
if(editFlag.equalsIgnoreCase("A")) if(editFlag.equalsIgnoreCase("A"))
{ {
System.out.println("Edit Flag"+editFlag); System.out.println("Edit Flag"+editFlag);
sql = " select count(1) from supplier_bank where trim(supp_code)= ? and trim(eff_from) = ? and trim(valid_upto)= ?"; //Changed By Anagha Rane 09-01-20 Start [added bank_code_ben in sql query]
//sql = " select count(1) from supplier_bank where trim(supp_code)= ? and trim(eff_from) = ? and trim(valid_upto)= ?";
sql = " select count(1) from supplier_bank where trim(supp_code)= ? and trim(bank_code__ben) = ? and trim(eff_from) = ?";
//Changed By Anagha Rane 09-01-20 End
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,suppCode); pstmt.setString(1,suppCode);
pstmt.setTimestamp(2, effFromDt); //Changed By Anagha Rane 09-01-20 Start
pstmt.setString(2, bankCodeBen);
pstmt.setTimestamp(3, effFromDt);
/*pstmt.setTimestamp(2, effFromDt);
pstmt.setTimestamp(3, validUptoDt); pstmt.setTimestamp(3, validUptoDt);
*/
//Changed By Anagha Rane 09-01-20 End
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
...@@ -628,16 +641,16 @@ conn = getConnection(); ...@@ -628,16 +641,16 @@ conn = getConnection();
System.out.println("Effective Date>>>>>"+currDate); System.out.println("Effective Date>>>>>"+currDate);
valueXmlString.append("<eff_from>").append("<![CDATA[" + currDate + "]]>").append("</eff_from>"); valueXmlString.append("<eff_from>").append("<![CDATA[" + currDate + "]]>").append("</eff_from>");
// siteCode = (genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); // siteCode = (genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteDescr = findValue(conn, "descr" ,"site", "site_code", siteCode); // siteDescr = findValue(conn, "descr" ,"site", "site_code", siteCode);
// suppCode = genericUtility.getColumnValue("supp_code", dom); // suppCode = genericUtility.getColumnValue("supp_code", dom);
// suppName = findValue(conn, "supp_name" ,"supplier", "supp_code", suppCode); // suppName = findValue(conn, "supp_name" ,"supplier", "supp_code", suppCode);
// System.out.println("Supplier Code>>>>>>>["+suppCode+"]::::::Supplier Name["+suppName+"]"); // System.out.println("Supplier Code>>>>>>>["+suppCode+"]::::::Supplier Name["+suppName+"]");
// //
// valueXmlString.append("<supp_code>").append("<![CDATA[" + suppCode + "]]>").append("</supp_code>"); // valueXmlString.append("<supp_code>").append("<![CDATA[" + suppCode + "]]>").append("</supp_code>");
// valueXmlString.append("<supp_name>").append("<![CDATA[" + suppName + "]]>").append("</supp_name>"); // valueXmlString.append("<supp_name>").append("<![CDATA[" + suppName + "]]>").append("</supp_name>");
valueXmlString.append("<chg_user>").append("<![CDATA[" +userId+ "]]>").append("</chg_user>"); valueXmlString.append("<chg_user>").append("<![CDATA[" +userId+ "]]>").append("</chg_user>");
valueXmlString.append("<wf_status>").append("<![CDATA[]]>").append("</wf_status>"); valueXmlString.append("<wf_status>").append("<![CDATA[]]>").append("</wf_status>");
}//end of if }//end of if
...@@ -648,7 +661,7 @@ conn = getConnection(); ...@@ -648,7 +661,7 @@ conn = getConnection();
suppCode = genericUtility.getColumnValue("supp_code", dom); suppCode = genericUtility.getColumnValue("supp_code", dom);
// valueXmlString.append("<supp_code protect = \"1\">").append("<![CDATA[" + suppCode + "]]>").append("</supp_code>"); // valueXmlString.append("<supp_code protect = \"1\">").append("<![CDATA[" + suppCode + "]]>").append("</supp_code>");
valueXmlString.append("<supp_code>").append("<![CDATA[" + suppCode + "]]>").append("</supp_code>"); valueXmlString.append("<supp_code>").append("<![CDATA[" + suppCode + "]]>").append("</supp_code>");
} }
......
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