Commit 5fa73804 authored by dhirajchavan's avatar dhirajchavan

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100420 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e63d7693
...@@ -79,8 +79,7 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo ...@@ -79,8 +79,7 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo
String eff_from=""; String eff_from="";
String valid_upto=""; String valid_upto="";
String reasCode=""; String reasCode="";
String description="";
String dateFormat = "";
int currentFormNo = 0; int currentFormNo = 0;
int childNodeListLength; int childNodeListLength;
Connection conn = null; Connection conn = null;
...@@ -90,8 +89,7 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo ...@@ -90,8 +89,7 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo
Timestamp effDate=null; Timestamp effDate=null;
Timestamp validDate=null; Timestamp validDate=null;
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
//Timestamp eff_from1=null, valid_upto1=null; //Timestamp eff_from1=null, valid_upto1=null;
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
try { try {
...@@ -119,14 +117,8 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo ...@@ -119,14 +117,8 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo
eff_from=checkNull(genericUtility.getColumnValue("eff_from", dom)); eff_from=checkNull(genericUtility.getColumnValue("eff_from", dom));
valid_upto=checkNull(genericUtility.getColumnValue("valid_upto", dom)); valid_upto=checkNull(genericUtility.getColumnValue("valid_upto", dom));
reasCode=genericUtility.getColumnValue("reas_code", dom); reasCode=genericUtility.getColumnValue("reas_code", dom);
String sDateFrom = "";
String sDateTo = "";
String dbDateFrom = "";
String dbDateTo = "";
String dateFromString = "";
String dateToString = "";
java.sql.Timestamp dateFrom = null;
java.sql.Timestamp dateTo = null;
if(eff_from !=null && eff_from.trim().length()>0 ) if(eff_from !=null && eff_from.trim().length()>0 )
{ {
effDate = Timestamp.valueOf(genericUtility.getValidDateString(eff_from, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0"); effDate = Timestamp.valueOf(genericUtility.getValidDateString(eff_from, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
...@@ -138,24 +130,7 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo ...@@ -138,24 +130,7 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo
System.out.println("siteCode"+siteCode+"custcode"+custcode+"eff_from"+eff_from+"valid_upto"+valid_upto); System.out.println("siteCode"+siteCode+"custcode"+custcode+"eff_from"+eff_from+"valid_upto"+valid_upto);
System.out.println("effDate@@@"+effDate+"validDate@@@"+validDate); System.out.println("effDate@@@"+effDate+"validDate@@@"+validDate);
/* //String col2 = genericUtility.getColumnValue("tax_chap",dom);
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getDBDateFormat());
dbDateFrom = sDateFrom;
dbDateTo = sDateTo;
sDateFrom = genericUtility.getValidDateString(eff_from, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
dbDateFrom = genericUtility.getValidDateString(valid_upto, genericUtility.getApplDateFormat(), "dd-MMM-yy");
//cpatil-25/08/14-System.out.println("sDateFrom : " + sDateFrom);
// //cpatil-25/08/14-System.out.println();
dateFrom = java.sql.Timestamp.valueOf(sDateFrom + " 00:00:00");
sDateTo = genericUtility.getValidDateString(eff_from, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
dbDateTo = genericUtility.getValidDateString(valid_upto, genericUtility.getApplDateFormat(), "dd-MMM-yy");
dateTo = java.sql.Timestamp.valueOf(sDateTo + " 00:00:00");
//cpatil-25/08/14-System.out.println("Db Date from :" + dbDateFrom);
//cpatil-25/08/14-System.out.println("Db Date to :" + dbDateTo);
//SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getDBDateFormat());
dateFromString = simpleDateFormat.format(dateFrom);
dateToString = simpleDateFormat.format(dateTo);*/
String Sql = "SELECT COUNT(1) AS COUNT FROM cust_bypass_crchk WHERE site_code=? AND cust_code=? and eff_from=? and valid_upto=?"; String Sql = "SELECT COUNT(1) AS COUNT FROM cust_bypass_crchk WHERE site_code=? AND cust_code=? and eff_from=? and valid_upto=?";
pstmt = conn.prepareStatement(Sql); pstmt = conn.prepareStatement(Sql);
pstmt.setString(1,siteCode); pstmt.setString(1,siteCode);
......
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