Commit a29d844e authored by msingh's avatar msingh

Change in WaveGenSchedule.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100270 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a043c3ac
...@@ -15,6 +15,7 @@ import ibase.planner.utility.ITMException; ...@@ -15,6 +15,7 @@ import ibase.planner.utility.ITMException;
import ibase.scheduler.utility.interfaces.Schedule; import ibase.scheduler.utility.interfaces.Schedule;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
import ibase.utility.UserInfoBean; import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.wms.WaveGenerationPrc; import ibase.webitm.ejb.wms.WaveGenerationPrc;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
...@@ -94,7 +95,9 @@ public class WaveGenSchedule implements Schedule ...@@ -94,7 +95,9 @@ public class WaveGenSchedule implements Schedule
ResultSet rs = null; ResultSet rs = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
String dueDateStr = ""; String dueDateStr = "";
StringBuffer xmlString = null; StringBuffer xmlString = null;
DistCommon dComm = new DistCommon();
String varValue = "";
try try
{ {
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -102,6 +105,7 @@ public class WaveGenSchedule implements Schedule ...@@ -102,6 +105,7 @@ public class WaveGenSchedule implements Schedule
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
dueDateStr = sdf.format(currentDate.getTime()); dueDateStr = sdf.format(currentDate.getTime());
System.out.println("datestring@@--------->> : "+dueDateStr + " loginSiteCode--->>["+loginSiteCode+"]"); System.out.println("datestring@@--------->> : "+dueDateStr + " loginSiteCode--->>["+loginSiteCode+"]");
varValue = dComm.getDisparams("999999","WAVE_PRINTER",conn); //Added by Manish for enable printer name on 24/02/16
xmlString = new StringBuffer(); xmlString = new StringBuffer();
xmlString.append( "<DocumentRoot>" ); xmlString.append( "<DocumentRoot>" );
xmlString.append( "<description>").append("Datawindow Root").append( "</description>\r\n" ); xmlString.append( "<description>").append("Datawindow Root").append( "</description>\r\n" );
...@@ -138,8 +142,14 @@ public class WaveGenSchedule implements Schedule ...@@ -138,8 +142,14 @@ public class WaveGenSchedule implements Schedule
xmlString.append("<master_pack_allow><![CDATA[").append("N").append("]]></master_pack_allow>\r\n"); xmlString.append("<master_pack_allow><![CDATA[").append("N").append("]]></master_pack_allow>\r\n");
xmlString.append("<active_pick_allow><![CDATA[").append("Y").append("]]></active_pick_allow>\r\n"); xmlString.append("<active_pick_allow><![CDATA[").append("Y").append("]]></active_pick_allow>\r\n");
xmlString.append("<stock_to_dock_allow><![CDATA[").append("N").append("]]></stock_to_dock_allow>\r\n"); xmlString.append("<stock_to_dock_allow><![CDATA[").append("N").append("]]></stock_to_dock_allow>\r\n");
xmlString.append("<printer_name><![CDATA[").append("N").append("]]></printer_name>\r\n"); /*xmlString.append("<printer_name><![CDATA[").append("N").append("]]></printer_name>\r\n");
xmlString.append("<print_label><![CDATA[").append("N").append("]]></print_label>\r\n"); xmlString.append("<print_label><![CDATA[").append("N").append("]]></print_label>\r\n");*/
//Changed by Manish for enable printer name on 24/02/16 [Start]
xmlString.append("<printer_name><![CDATA[").append(varValue).append("]]></printer_name>\r\n");
xmlString.append("<print_label><![CDATA[").append("Y").append("]]></print_label>\r\n");
//Changed by Manish for enable printer name on 24/02/16 [End]
xmlString.append("<parcelpack_allow><![CDATA[").append("Y").append("]]></parcelpack_allow>\r\n"); xmlString.append("<parcelpack_allow><![CDATA[").append("Y").append("]]></parcelpack_allow>\r\n");
xmlString.append("<ship_type><![CDATA[").append("A").append("]]></ship_type>\r\n"); xmlString.append("<ship_type><![CDATA[").append("A").append("]]></ship_type>\r\n");
xmlString.append("<direct_pick_loc><![CDATA[").append("").append("]]></direct_pick_loc>\r\n"); xmlString.append("<direct_pick_loc><![CDATA[").append("").append("]]></direct_pick_loc>\r\n");
......
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