Commit ea74d0a9 authored by dpingle's avatar dpingle

Updated src file of leave table

LeaveTableIC.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215803 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b3ca1b68
......@@ -263,6 +263,17 @@ public class LeaveTableIC extends ValidatorEJB implements LeaveTableRemote, Leav
errFields.add(childNodeName.toLowerCase());
}
}
else if ("lve_tblno".equalsIgnoreCase(childNodeName))
{
lveTbNo = checkNull(genericUtility.getColumnValue("lve_tblno", dom));
if(lveTbNo == null || lveTbNo.trim().length() == 0)
{
errList.add("LVETBLNULL");
errFields.add(childNodeName.toLowerCase());
}
}
}
break;
}
......@@ -548,6 +559,8 @@ public class LeaveTableIC extends ValidatorEJB implements LeaveTableRemote, Leav
accumulateMonths = checkNull(genericUtility.getColumnValue("accumulate_months", dom));
accumulate = checkNull(genericUtility.getColumnValue("accumulate", dom));
System.out.println("accumulate::::"+accumulate);
if(accumulate.equalsIgnoreCase("N"))
{
valueXmlString.append("<accumulate_months protect=\"1\"><![CDATA[").append(accumulateMonths).append("]]></accumulate_months>\r\n");
......@@ -611,6 +624,15 @@ public class LeaveTableIC extends ValidatorEJB implements LeaveTableRemote, Leav
valueXmlString.append("<accumulate_months ><![CDATA[").append(accumulateMonths).append("]]></accumulate_months>\r\n");
valueXmlString.append("<encashable ><![CDATA[").append(encashable).append("]]></encashable>\r\n");
if(accumulate.trim().equalsIgnoreCase("N"))
{
valueXmlString.append("<accumulate_months protect=\"1\"><![CDATA[").append(0).append("]]></accumulate_months>\r\n");
}
else
{
valueXmlString.append("<accumulate_months protect=\"0\"><![CDATA[").append(accumulateMonths).append("]]></accumulate_months>\r\n");
}
if(allowAdvLeave == null || allowAdvLeave.trim().length() == 0)
{
allowAdvLeave="N";
......@@ -688,6 +710,7 @@ public class LeaveTableIC extends ValidatorEJB implements LeaveTableRemote, Leav
{
valueXmlString.append("<allow_adv_leave protect=\"1\"><![CDATA[").append(allowAdvLeave).append("]]></allow_adv_leave>\r\n");
}
}
else if("accumulate".equalsIgnoreCase(currentColumn))
{
......
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