Commit 1efbda21 authored by ssalve's avatar ssalve

Sarita: Set values of rotate , off_for and off_day in itm_default on 28 JANUARY 2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196302 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 209e97a5
......@@ -66,7 +66,7 @@ public class WeekOffCreation extends ValidatorEJB implements WeekOffCreationLoca
String fromDate = "", toDate = "", rotate = "";
int currentYear = 0, currentFormNo = 0;
java.util.Date currentDate = null, date1 = null, date2 = null;
String offFor , offDay = "";//Added by sarita on 28 JANUARY 2019
GenericUtility genericUtility = GenericUtility.getInstance();
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>");
......@@ -97,6 +97,15 @@ public class WeekOffCreation extends ValidatorEJB implements WeekOffCreationLoca
System.out.println("toDate...:: "+ toDate);
valueXmlString.append("<from_date>").append(fromDate).append("</from_date>");
valueXmlString.append("<to_date>").append(toDate).append("</to_date>");
//Added and Commented by sarita on 28 JANUARY 2019 [START]
rotate = genericUtility.getColumnValue("rotate",currentDom);
offFor = genericUtility.getColumnValue("off_for",currentDom);
offDay = genericUtility.getColumnValue("off_day",currentDom);
System.out.println("Values in CurrentDom are :: rotate["+rotate+"]\t offFor["+offFor+"]\t offDay["+offDay+"]");
valueXmlString.append("<rotate>").append(rotate).append("</rotate>");
valueXmlString.append("<off_for>").append(offFor).append("</off_for>");
valueXmlString.append("<off_day>").append(offDay).append("</off_day>");
//Added and Commented by sarita on 28 JANUARY 2019 [END]
}
if (currentColumn.trim().equals("rotate"))
{
......
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