Commit 3ec76937 authored by wansari's avatar wansari

W16IBAS007 updated source to properly format current date and indent date in...

W16IBAS007 updated source to properly format current date and indent date in wfValData() for VTLESSDATE validation issue.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105867 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7487a7ec
...@@ -135,6 +135,8 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -135,6 +135,8 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
Date currDate = new Date(); Date currDate = new Date();
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" )); loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
currDate = new java.sql.Timestamp(System.currentTimeMillis());
currDate = sdf.parse(currDate.toString());
System.out.println("xtraParam----->>["+xtraParams+"]"); System.out.println("xtraParam----->>["+xtraParams+"]");
System.out.println("editFlag ------------>>["+editFlag+"]"); System.out.println("editFlag ------------>>["+editFlag+"]");
...@@ -185,6 +187,8 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -185,6 +187,8 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
//Changed by wasim on 03-05-2017 for indent date validation as if selected previous date from current date [START] //Changed by wasim on 03-05-2017 for indent date validation as if selected previous date from current date [START]
//count = currDate.compareTo(ind_date); //count = currDate.compareTo(ind_date);
//if(count > 1 && "A".equalsIgnoreCase(editFlag)) //if(count > 1 && "A".equalsIgnoreCase(editFlag))
System.out.println("@@Ind_date["+ind_date+"] currDate["+currDate+"]");
if(ind_date.before(currDate) && "A".equalsIgnoreCase(editFlag)) if(ind_date.before(currDate) && "A".equalsIgnoreCase(editFlag))
{ {
//Changed by wasim on 03-05-2017 for indent date validation as if selected previous date from current date [END] //Changed by wasim on 03-05-2017 for indent date validation as if selected previous date from current date [END]
......
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