Commit a38e0954 authored by ngadkari's avatar ngadkari

changes in IC of indentReqIC


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182807 ce508802-f39f-4f6c-b175-0d175dae99d5
parent be973362
...@@ -92,7 +92,7 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -92,7 +92,7 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
* @param editFlag represents the mode of transaction(A-Add or E-Edit) * @param editFlag represents the mode of transaction(A-Add or E-Edit)
* @param xtraParams contains additional information such as loginEmpCode,loginCode,chgTerm etc * @param xtraParams contains additional information such as loginEmpCode,loginCode,chgTerm etc
*/ */
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams)throws ITMException
{ {
System.out.println("wfValData inside ----->>"); System.out.println("wfValData inside ----->>");
NodeList parentNodeList = null; NodeList parentNodeList = null;
...@@ -134,9 +134,13 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -134,9 +134,13 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
Date currDate = new Date(); Date currDate = new Date();
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" )); loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
//Changes by nandkumar gadkari on 29/03/18 change in date format -----start----------
/*currDate = new java.sql.Timestamp(System.currentTimeMillis());
currDate = sdf.parse(currDate.toString());*/
Timestamp currDate1 = new java.sql.Timestamp(System.currentTimeMillis());
currDate = sdf.parse(sdf.format(currDate1));
//Changes by nandkumar gadkari on 29/03/18 change in date format -----end----------
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+"]");
...@@ -1737,12 +1741,13 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -1737,12 +1741,13 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
else //commented by nandkumar gadkari on 29/03/18
/*else
{ {
errCode = "VTPUINDAPP"; errCode = "VTPUINDAPP";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }*/
} }
if("pack_code".equalsIgnoreCase(childNodeName)) if("pack_code".equalsIgnoreCase(childNodeName))
...@@ -2571,6 +2576,7 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -2571,6 +2576,7 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
catch ( Exception e ) catch ( Exception e )
{ {
System.out.println ( "Exception: IndentIC: wfValData( Document currFormDataDom ): " + e.getMessage() + ":" ); System.out.println ( "Exception: IndentIC: wfValData( Document currFormDataDom ): " + e.getMessage() + ":" );
throw new ITMException(e);
} }
finally finally
{ {
......
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