Commit 6f7bd421 authored by akhokar's avatar akhokar

changes done to display employee first,middle and last name

EmpComplete.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200742 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e6864acb
......@@ -1136,8 +1136,12 @@ public class EmpComplete extends ValidatorEJB implements EmpCompleteLocal,EmpCo
String userId = "",loginSite="";
String mcode = "",empLname = "",empFname = "",query ="";
String dateJoinStr ="",probationDateStr="";
GenericUtility genericUtility = GenericUtility.getInstance();
UtilMethods utilMethods = UtilMethods.getInstance();
//Modified by Azhar K. on 13-05-2019[Changes done as per new framework][Start]
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
//UtilMethods utilMethods = UtilMethods.getInstance();
UtilMethods utilMethods = new UtilMethods();
//Modified by Azhar K. on 13-05-2019[Changes done as per new framework][End]
//Modified by Rohini T on 26/March/2019[Req ID:A18KSUN005][start]
String retirementDateVarVal = "";
Timestamp birthDate = null,toDate = null,RetDateDT = null;
......@@ -1150,6 +1154,10 @@ public class EmpComplete extends ValidatorEJB implements EmpCompleteLocal,EmpCo
Date dateOfBirth = null,RetDate = null;
java.sql.Date birthDateDT = null;
//Modified by Rohini T on 26/March/2019[Req ID:A18KSUN005][end]
//Modified by Azhar K. on 19/April/2019[To Trim Column name and value of employee name to process validation][Start]
String value = "", newColumn = "";
//Modified by Azhar K. on 19/April/2019[To Trim Column name and value of employee name to process validation][End]
try
{
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
......@@ -1740,6 +1748,28 @@ public class EmpComplete extends ValidatorEJB implements EmpCompleteLocal,EmpCo
}
}
//Modified by Rohini T on 26/March/2019[Req ID:A18KSUN005][end]
//Modified by Azhar K. on 13/May/2019[To Trim Column name and value of employee name to process validation][Start]
else if(currentColumn.trim().equalsIgnoreCase("emp_fname_long") || currentColumn.trim().equalsIgnoreCase("emp_mname_long") ||
currentColumn.trim().equalsIgnoreCase("emp_lname_long"))
{
value = getColumnValue(currentColumn.trim(), dom);
newColumn = utilMethods.left(currentColumn.trim(), 9);
if(value != null && value.trim().length() > 0)
{
int length = value.length();
if(length > 15)
{
value = value.substring(0, 15);
}
}
valueXmlString.append("<"+newColumn+">").append("<![CDATA[" + value + "]]>").append("</"+newColumn+">");
}
//Modified by Azhar K. on 13/May/2019[To Trim Column name and value of employee name to process validation][End]
valueXmlString.append("</Detail1 >");
System.out.println("itemchange string :::" +valueXmlString);
break;
......
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