Commit 0999ba8c authored by ppatro's avatar ppatro

Loading and task label in Wave


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92186 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 83c4633c
...@@ -6,10 +6,14 @@ ...@@ -6,10 +6,14 @@
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
import java.awt.print.PrinterJob;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.*; import java.sql.*;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import javax.print.PrintService;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.system.config.*; import ibase.system.config.*;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
...@@ -100,6 +104,8 @@ public class CheckSheetIC extends ValidatorEJB implements CheckSheetICLocal,Chec ...@@ -100,6 +104,8 @@ public class CheckSheetIC extends ValidatorEJB implements CheckSheetICLocal,Chec
int noOfChilds = 0; int noOfChilds = 0;
int noOfParent = 0; int noOfParent = 0;
int cnt = 0; int cnt = 0;
//Changed by sumit on 16/11/12 created variable printer
String printer = "";
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
Connection conn = null; Connection conn = null;
...@@ -197,6 +203,30 @@ public class CheckSheetIC extends ValidatorEJB implements CheckSheetICLocal,Chec ...@@ -197,6 +203,30 @@ public class CheckSheetIC extends ValidatorEJB implements CheckSheetICLocal,Chec
//Changed by sumit on 04/10/12 written this code above end. //Changed by sumit on 04/10/12 written this code above end.
} }
} }
//Changed by sumit on 16/11/12 validating printer service name with existing printer in system start.
else if ( "printer".equalsIgnoreCase( childNodeName ) )
{
printer = checkNull(genericUtility.getColumnValue( "printer_name", currFormDataDom ));
System.out.println(" printer from input parameter ["+printer+"]");
PrintService[] printServices = PrinterJob.lookupPrintServices();
ArrayList<String> arry = new ArrayList<String>();
if(printer.trim().length() > 0)
{
for (PrintService printService : printServices)
{
String name = printService.getName();
System.out.println("printer service name --> "+name);
arry.add(name);
}
if( !arry.contains(printer.trim()))
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "INVPRINTER" );
}
arry.clear();
}
}
//Changed by sumit on 16/11/12 validating printer service name with existing printer in system end.
} }
} //End of case 1 Validation } //End of case 1 Validation
break; break;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
********************************************************/ ********************************************************/
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException; import java.rmi.RemoteException;
...@@ -53,6 +54,8 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C ...@@ -53,6 +54,8 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C
String orderType = ""; String orderType = "";
String replOrder = ""; String replOrder = "";
String pickOrder = ""; String pickOrder = "";
//Changed by sumit on 10/11/12 create variable
String printer = "";
PreparedStatement pstmt1 = null; PreparedStatement pstmt1 = null;
PreparedStatement pstmt2 = null; PreparedStatement pstmt2 = null;
ResultSet rs1 = null ; ResultSet rs1 = null ;
...@@ -68,6 +71,9 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C ...@@ -68,6 +71,9 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C
dom = genericUtility.parseString(domString); dom = genericUtility.parseString(domString);
System.out.println("Dom String ="+domString); System.out.println("Dom String ="+domString);
shipmentId = genericUtility.getColumnValue("shipment_id", dom, "1", "1"); shipmentId = genericUtility.getColumnValue("shipment_id", dom, "1", "1");
//Changed by sumit on 10/11/12 getting printer from header
printer = checkNull(genericUtility.getColumnValue("printer_name", dom, "1", "1"));
System.out.println(" printer ->["+printer+"]");
//palletNo = genericUtility.getColumnValueFromNode("palletNo", dom.getElementsByTagName("Detail2").item(0)); //palletNo = genericUtility.getColumnValueFromNode("palletNo", dom.getElementsByTagName("Detail2").item(0));
if(shipmentId != null && shipmentId.trim().length() > 0) if(shipmentId != null && shipmentId.trim().length() > 0)
{ {
...@@ -197,6 +203,11 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C ...@@ -197,6 +203,11 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C
errString = shipConf.confirm(shipmentId, xtraParams, forcedFlag); errString = shipConf.confirm(shipmentId, xtraParams, forcedFlag);
System.out.println("Error String = "+errString); System.out.println("Error String = "+errString);
if( errString.contains("VTCONFIRM") && printer.trim().length() > 0)
{
errString = generateBOLReport(shipmentId, printer, conn, xtraParams);
}
} }
else else
{ {
...@@ -249,6 +260,15 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C ...@@ -249,6 +260,15 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C
isError = true; isError = true;
System.out.println("Exception "+e.getMessage()); System.out.println("Exception "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
try
{
conn.rollback();
}
catch(Exception e1)
{
e1.printStackTrace();
throw new ITMException(e1);
}
throw new ITMException(e); throw new ITMException(e);
} }
finally finally
...@@ -283,5 +303,82 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C ...@@ -283,5 +303,82 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C
} }
return errString; return errString;
} }
//Changed by sumit on 10/11/12 on
private String generateBOLReport(String shipmnetId, String printer, Connection conn, String xtraParams) throws ITMException
{
String sql = "";
String reportObjName = "";
//String refId = "";
String errString = "";
String loginCode = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
try
{
GenericUtility genericUtility = GenericUtility.getInstance();
System.out.println(" calling BOL report -------------------");
loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" ));
DistCommon discommon = new DistCommon();
reportObjName = discommon.getDisparams("999999","LOADING_REP_OBJNAME",conn);
/*sql = "SELECT REF_ID, REF_SER FROM SHIP_DOCS WHERE SHIPMENT_ID = ? AND DESP_CONFIRMED = 'Y'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, shipmnetId);
rs = pstmt.executeQuery();*/
ibase.webitm.reports.utility.JasperReportGenerator jrGenerator = new ibase.webitm.reports.utility.JasperReportGenerator();
String xsdString ="<Arguments>" +
"<Argument id=\"DESP_ID_FIRST\" name=\"DESP_ID_FIRST\">" +
"<argType>java.lang.String</argType>" +
"<value>"+shipmnetId+"</value>" +
"</Argument>" +
"<Argument id=\"DESP_ID_LAST\" name=\"DESP_ID_LAST\">" +
"<argType>java.lang.String</argType>" +
"<value>"+shipmnetId+"</value>" +
"</Argument>" +
"<Argument id=\"x_path\" name=\"x_path\">" +
"<argType>java.lang.String</argType>" +
"<value>/DocumentRoot/bill_of_lading</value>" +
"</Argument>" +
"<Argument id=\"design_source\" name=\"design_source\">" +
"<argType>java.lang.String</argType>" +
"<value>bill_of_lading.jrxml</value>" +
"</Argument>" +
"<Argument id=\"data_source\" name=\"data_source\">" +
"<argType>java.lang.String</argType>" +
"<value>SQL</value>" +
"</Argument>" +
"<Argument id=\"bind_type\" name=\"bind_type\">" +
"<argType>java.lang.Integer</argType>" +
"<value>0</value>" +
"</Argument>" +
"<Argument id=\"report_type\" name=\"report_type\">" +
"<argType>java.lang.String</argType>" +
"<value>JASPER</value>" +
"</Argument>" +
"<Argument id=\"report_save_type\" name=\"report_save_type\">" +
"<argType>java.lang.String</argType>" +
"<value>NATIVE</value>" +
"</Argument>" +
"</Arguments>";
System.out.println(" XSD parser **->["+xsdString+"]");
errString = jrGenerator.printReport(reportObjName, xsdString, loginCode, printer.trim(), 1, conn);
}
catch(Exception e)
{
System.err.println("Exception :CheckSheetPos :\n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
return null;
}
private String checkNull(String str)
{
if( str == null)
{
str = "";
}
return str;
}
} }
...@@ -68,6 +68,15 @@ public class PalletMergePos extends ValidatorEJB implements PalletMergePosLocal, ...@@ -68,6 +68,15 @@ public class PalletMergePos extends ValidatorEJB implements PalletMergePosLocal,
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
sSQL = "UPDATE PALLET_NO SET STATUS = ? WHERE PALLET_NO = ? ";
pstmt = conn.prepareStatement(sSQL);
pstmt.setString(1, "U");
pstmt.setString(2, palletNoNew);
pstmt.executeUpdate();
pstmt.close();
pstmt = null;
//Changed by sumit on 23/11/12 updated carton_master end. //Changed by sumit on 23/11/12 updated carton_master end.
} }
catch(Exception e) catch(Exception e)
......
...@@ -1112,7 +1112,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1112,7 +1112,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
pronoLast = Long.parseLong(descr1) + 1; pronoLast = Long.parseLong(descr1) + 1;
} }
if(pronoLast != 0) //Changed by sumit on 10/11/12 commented this as pro_no and lr_no will insert from shipment, this logic is now written in shipmentconf start.
/*if(pronoLast != 0)
{ {
//valueXmlString.append( "<lr_no><![CDATA[" ).append( pronoLast ).append( "]]></lr_no>\r\n" ); // commented to generate SSCC18 complaint number //valueXmlString.append( "<lr_no><![CDATA[" ).append( pronoLast ).append( "]]></lr_no>\r\n" ); // commented to generate SSCC18 complaint number
...@@ -1159,7 +1160,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1159,7 +1160,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
valueXmlString.append( "<lr_no><![CDATA[" ).append( sProno ).append( "]]></lr_no>\r\n" ); valueXmlString.append( "<lr_no><![CDATA[" ).append( sProno ).append( "]]></lr_no>\r\n" );
} }
} }*/
//Changed by sumit on 10/11/12 commented this as pro_no and lr_no will insert from shipment, this logic is now written in shipmentconf end.
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( descr) ).append( "]]></transporter_tran_name>\r\n" ); valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( descr) ).append( "]]></transporter_tran_name>\r\n" );
//valueXmlString.append( "<lr_no><![CDATA[" ).append( getLrNo(prefix,pronoLast,xtraParams,conn) ).append( "]]></lr_no>\r\n" ); // added to generate SSCC18 complaint number //commented as per suggestion //valueXmlString.append( "<lr_no><![CDATA[" ).append( getLrNo(prefix,pronoLast,xtraParams,conn) ).append( "]]></lr_no>\r\n" ); // added to generate SSCC18 complaint number //commented as per suggestion
} }
...@@ -1579,7 +1581,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1579,7 +1581,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
{ {
pronoLast = Long.parseLong(descr1) + 1; pronoLast = Long.parseLong(descr1) + 1;
} }
if(pronoLast != 0) //Changed by sumit on 10/11/12 commented this as this logic is now written in shipmentconf start.
/*if(pronoLast != 0)
{ {
// 18/09/12 manoharan get from database function // 18/09/12 manoharan get from database function
System.out.println("@@@@@ prefix["+prefix+"]::::pronoLast["+pronoLast+"]"); System.out.println("@@@@@ prefix["+prefix+"]::::pronoLast["+pronoLast+"]");
...@@ -1601,6 +1604,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1601,6 +1604,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("manohar after sprono ["+sProno+"]"); System.out.println("manohar after sprono ["+sProno+"]");
}*/
//Changed by sumit on 10/11/12 commented this as this logic is now written in shipmentconf start.
if(tranCodeHdr != null && tranCodeHdr.trim().length() > 0 ) if(tranCodeHdr != null && tranCodeHdr.trim().length() > 0 )
{ {
if( tranCodeHdr.equalsIgnoreCase(tranCode)) if( tranCodeHdr.equalsIgnoreCase(tranCode))
...@@ -1640,9 +1645,11 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1640,9 +1645,11 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" ); valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" );
//valueXmlString.append( "<pro_no><![CDATA[" ).append( getSSCC(prefix, pronoLast, conn) ).append( "]]></pro_no>\r\n" ); //valueXmlString.append( "<pro_no><![CDATA[" ).append( getSSCC(prefix, pronoLast, conn) ).append( "]]></pro_no>\r\n" );
//valueXmlString.append( "<lr_no><![CDATA[" ).append( getLrNo(prefix,pronoLast,xtraParams,conn) ).append( "]]></lr_no>\r\n" ); //valueXmlString.append( "<lr_no><![CDATA[" ).append( getLrNo(prefix,pronoLast,xtraParams,conn) ).append( "]]></lr_no>\r\n" );
valueXmlString.append( "<pro_no><![CDATA[" ).append(sProno).append( "]]></pro_no>\r\n" ); //Changed by sumit on 10/11/12 commented this as pro number will update from shipment confirmation.
//valueXmlString.append( "<pro_no><![CDATA[" ).append(sProno).append( "]]></pro_no>\r\n" );
lrNo = genericUtility.getColumnValue("lr_no",dom1); lrNo = genericUtility.getColumnValue("lr_no",dom1);
if (lrNo == null || lrNo.trim().length() == 0) //Changed by sumit on 10/11/12 this code copied to ShipmentConf, commented from here (as per manoharan sir) start
/*if (lrNo == null || lrNo.trim().length() == 0)
{ {
sProno = getLrNo(xtraParams,conn); sProno = getLrNo(xtraParams,conn);
System.out.println("manohar before lr_no ["+sProno+"]"); System.out.println("manohar before lr_no ["+sProno+"]");
...@@ -1661,8 +1668,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1661,8 +1668,8 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
pstmt = null; pstmt = null;
System.out.println("manohar after lr_no ["+sProno+"]"); System.out.println("manohar after lr_no ["+sProno+"]");
valueXmlString.append( "<lr_no><![CDATA[" ).append( sProno ).append( "]]></lr_no>\r\n" ); valueXmlString.append( "<lr_no><![CDATA[" ).append( sProno ).append( "]]></lr_no>\r\n" );
} }*/
//Changed by sumit on 10/11/12 this code copied to ShipmentConf, commented from here (as per manoharan sir) end
//valueXmlString.append( "<lr_no><![CDATA[" ).append( getLrNo(xtraParams,conn) ).append( "]]></lr_no>\r\n" ); //valueXmlString.append( "<lr_no><![CDATA[" ).append( getLrNo(xtraParams,conn) ).append( "]]></lr_no>\r\n" );
valueXmlString.append( "</Detail1>\r\n" ); valueXmlString.append( "</Detail1>\r\n" );
valueXmlString.append( "<Detail2>\r\n" ); valueXmlString.append( "<Detail2>\r\n" );
...@@ -1670,7 +1677,7 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1670,7 +1677,7 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" ); valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" );
//valueXmlString.append( "</Detail2>\r\n" ); //valueXmlString.append( "</Detail2>\r\n" );
} }
} //}
// added by cpatil on 8-sept-12 end // added by cpatil on 8-sept-12 end
//valueXmlString.append( "<Detail2>\r\n" ); //valueXmlString.append( "<Detail2>\r\n" );
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<grid.lines>0</grid.lines> <grid.lines>0</grid.lines>
</BaseDefinition> </BaseDefinition>
<Header> <Header>
<height>19</height> <height>21</height>
<color>536870912</color> <color>536870912</color>
</Header> </Header>
<Summary> <Summary>
...@@ -54,7 +54,13 @@ ...@@ -54,7 +54,13 @@
<name>shipment_id</name> <name>shipment_id</name>
<dbname>shipment.shipment_id</dbname> <dbname>shipment.shipment_id</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;shipment&quot; ) COLUMN(NAME=&quot;shipment.shipment_id&quot;)) </retrieve> <table_column>
<type size="0">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>printer_name</name>
<dbname>printer_name</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;shipment&quot; ) COLUMN(NAME=&quot;shipment.shipment_id&quot;) COMPUTE(NAME=&quot;&apos;&apos;printer_name&quot;)) </retrieve>
</TableDefinition> </TableDefinition>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
...@@ -63,7 +69,7 @@ ...@@ -63,7 +69,7 @@
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>2</x> <x>2</x>
<y>2</y> <y>1</y>
<height>16</height> <height>16</height>
<width>77</width> <width>77</width>
<html> <html>
...@@ -84,6 +90,34 @@ ...@@ -84,6 +90,34 @@
<color>67108864</color> <color>67108864</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Printer Name</text>
<border>6</border>
<color>0</color>
<x>81</x>
<y>1</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -122,6 +156,42 @@ ...@@ -122,6 +156,42 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>81</x>
<y>2</y>
<height>16</height>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>25</height> <height>48</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
...@@ -49,7 +49,13 @@ ...@@ -49,7 +49,13 @@
<name>shipment_id</name> <name>shipment_id</name>
<dbname>shipment.shipment_id</dbname> <dbname>shipment.shipment_id</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;shipment&quot; ) COLUMN(NAME=&quot;shipment.shipment_id&quot;)) </retrieve> <table_column>
<type size="0">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>printer_name</name>
<dbname>printer_name</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;shipment&quot; ) COLUMN(NAME=&quot;shipment.shipment_id&quot;) COMPUTE(NAME=&quot;&apos;&apos;printer_name&quot;)) </retrieve>
</TableDefinition> </TableDefinition>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
...@@ -79,6 +85,34 @@ ...@@ -79,6 +85,34 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Printer :</text>
<border>0</border>
<color>33554432</color>
<x>0</x>
<y>24</y>
<height>16</height>
<width>77</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -117,6 +151,42 @@ ...@@ -117,6 +151,42 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>0</border>
<color>0</color>
<x>79</x>
<y>23</y>
<height>16</height>
<width>55</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>342</height> <height>392</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
...@@ -187,8 +187,19 @@ ...@@ -187,8 +187,19 @@
<table_column> <table_column>
<type size="200">char</type> <type size="200">char</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>no</updatewhereclause>
<name>printer</name> <name>printer_name</name>
<dbname>printer</dbname> <dbname>printer_name</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>print_label</name>
<dbname>print_label</dbname>
<initial>N</initial>
<values>
<item display="YES" data="Y"/>
<item display="NO" data="N"/>
</values>
</table_column> </table_column>
</TableDefinition> </TableDefinition>
<GroupBox> <GroupBox>
...@@ -198,7 +209,7 @@ ...@@ -198,7 +209,7 @@
<color>33554432</color> <color>33554432</color>
<x>20</x> <x>20</x>
<y>6</y> <y>6</y>
<height>310</height> <height>337</height>
<width>525</width> <width>525</width>
<name>gb_1</name> <name>gb_1</name>
<visible>1</visible> <visible>1</visible>
...@@ -441,42 +452,6 @@ ...@@ -441,42 +452,6 @@
<color>553648127</color> <color>553648127</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<border>5</border>
<color>33554432</color>
<x>174</x>
<y>230</y>
<height>16</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>single_lot</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
...@@ -1315,14 +1290,42 @@ ...@@ -1315,14 +1290,42 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Single Lot:</text>
<border>0</border>
<color>33554432</color>
<x>65</x>
<y>230</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>single_lot_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>18</id> <id>19</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>180</tabsequence> <tabsequence>190</tabsequence>
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>174</x> <x>441</x>
<y>255</y> <y>255</y>
<height>16</height> <height>16</height>
<width>95</width> <width>95</width>
...@@ -1330,7 +1333,7 @@ ...@@ -1330,7 +1333,7 @@
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>active_pick_allow</name> <name>stock_to_dock_allow</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="ddlb"> <EditStyle style="ddlb">
<limit>0</limit> <limit>0</limit>
...@@ -1353,20 +1356,20 @@ ...@@ -1353,20 +1356,20 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>19</id> <id>16</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>190</tabsequence> <tabsequence>160</tabsequence>
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>441</x> <x>174</x>
<y>255</y> <y>230</y>
<height>16</height> <height>16</height>
<width>95</width> <width>95</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>stock_to_dock_allow</name> <name>single_lot</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="ddlb"> <EditStyle style="ddlb">
<limit>0</limit> <limit>0</limit>
...@@ -1387,21 +1390,29 @@ ...@@ -1387,21 +1390,29 @@
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>21</id>
<text>Single Lot:</text> <alignment>0</alignment>
<border>0</border> <tabsequence>210</tabsequence>
<border>5</border>
<color>33554432</color> <color>33554432</color>
<x>65</x> <x>174</x>
<y>230</y> <y>280</y>
<height>16</height> <height>16</height>
<width>104</width> <width>95</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>single_lot_t</name> <name>print_label</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>upper</case>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1411,10 +1422,10 @@ ...@@ -1411,10 +1422,10 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>553648127</color> <color>1073741824</color>
</background> </background>
</TextObject> </ColumnObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
...@@ -1443,21 +1454,29 @@ ...@@ -1443,21 +1454,29 @@
<color>553648127</color> <color>553648127</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>18</id>
<text>Printer:</text> <alignment>0</alignment>
<border>0</border> <tabsequence>180</tabsequence>
<border>5</border>
<color>33554432</color> <color>33554432</color>
<x>65</x> <x>174</x>
<y>280</y> <y>255</y>
<height>16</height> <height>16</height>
<width>104</width> <width>95</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>printer_t</name> <name>active_pick_allow</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1467,10 +1486,10 @@ ...@@ -1467,10 +1486,10 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>553648127</color> <color>1073741824</color>
</background> </background>
</TextObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>20</id> <id>20</id>
...@@ -1479,14 +1498,21 @@ ...@@ -1479,14 +1498,21 @@
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>174</x> <x>174</x>
<y>280</y> <y>305</y>
<height>16</height> <height>16</height>
<width>362</width> <width>362</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>printer</name> <name>printer_name</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1500,6 +1526,62 @@ ...@@ -1500,6 +1526,62 @@
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Printer For Label:</text>
<border>0</border>
<color>33554432</color>
<x>65</x>
<y>305</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Print Label:</text>
<border>0</border>
<color>33554432</color>
<x>65</x>
<y>280</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>print_label_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -35762,5 +35762,89 @@ VALUES ( ...@@ -35762,5 +35762,89 @@ VALUES (
'1 ', '1 ',
'sale_order__to', 'sale_order__to',
'Y'); 'Y');
----- Sumit 24-11-12 part 2
INSERT INTO POPHELP (
field_name,
mod_name,
sql_str ,
dw_object ,
msg_title ,
width ,
height ,
chg_date datetime,
chg_user,
chg_term ,
dist_opt,
filter_string ,
sql_input,
default_col ,
pop_align,
query_mode,
page_context,
pophelp_cols,
pophelp_source,
multi_opt ,
help_option)
VALUES (
'SHIPMENT_ID',
'W_CHECKSHEET',
'SELECT S.SHIPMENT_ID FROM SHIPMENT S, SHIP_DOCS SD WHERE S.CONFIRMED =''N'' AND SD.REF_SER = ''S-DSP'' and s.SHIPMENT_ID = SD.SHIPMENT_ID ORDER BY SD.SHIPMENT_ID',
NULL,
'SHIPMENT ID',
0,
0,
TO_DATE('16-11-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE',
'BASE',
'0',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
update OBJ_FORMS set scan_metadata = '<SCAN_INFO><INPUT_SCAN ORDER="1"><SCAN_LABEL>Shipment ID:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>shipment_id</FIELD></FIELDS></INPUT_SCAN><INPUT_SCAN ORDER="2"><SCAN_LABEL>Printer :</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>printer_name</FIELD></FIELDS></INPUT_SCAN></SCAN_INFO>'
where win_name = 'w_checksheet' and form_no = 1;
commit;
INSERT INTO OBJ_ITEMCHANGE (
obj_name,
form_no ,
field_name ,
mandatory )
VALUES (
'wavegen',
'1 ',
'print_label',
'Y');
INSERT INTO disparm (
prd_code,
var_name,
var_type,
var_value,
descr,
var_subs,
chg_date,
chg_user,
chg_term)
VALUES (
'999999',
'WAVE_LABEL_OBJ_NAME',
'S',
'pick_label',
'wave label report name',
NULL,
fn_sysdate(),
'BASe',
'BASE ');
commit;
commit; commit;
\ No newline at end of file
$PBExportHeader$d_checksheet11.srd $PBExportHeader$d_checksheet11.srd
release 9; release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 ) datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=19 color="536870912" ) header(height=21 color="536870912" )
summary(height=0 color="536870912" ) summary(height=0 color="536870912" )
footer(height=0 color="536870912" ) footer(height=0 color="536870912" )
detail(height=22 color="536870912" ) detail(height=22 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=shipment_id dbname="shipment.shipment_id" ) table(column=(type=char(10) updatewhereclause=yes name=shipment_id dbname="shipment.shipment_id" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"shipment~" ) COLUMN(NAME=~"shipment.shipment_id~")) " ) column=(type=char(0) updatewhereclause=yes name=printer_name dbname="printer_name" )
text(band=header alignment="2" text="Shipment Id" border="6" color="0" x="2" y="2" height="16" width="77" html.valueishtml="0" name=shipment_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"shipment~" ) COLUMN(NAME=~"shipment.shipment_id~") COMPUTE(NAME=~"''printer_name~")) " )
text(band=header alignment="2" text="Shipment Id" border="6" color="0" x="2" y="1" height="16" width="77" html.valueishtml="0" name=shipment_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Printer Name" border="6" color="0" x="81" y="1" height="16" width="93" html.valueishtml="0" name=printer_name_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="2" y="2" height="16" width="77" format="[general]" html.valueishtml="0" name=shipment_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="2" y="2" height="16" width="77" format="[general]" html.valueishtml="0" name=shipment_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="81" y="2" height="16" width="93" format="[general]" html.valueishtml="0" name=printer_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
...@@ -3,11 +3,14 @@ release 9; ...@@ -3,11 +3,14 @@ release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no ) datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" ) summary(height=0 color="536870912" )
footer(height=0 color="536870912" ) footer(height=0 color="536870912" )
detail(height=25 color="536870912" ) detail(height=48 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=shipment_id dbname="shipment.shipment_id" ) table(column=(type=char(10) updatewhereclause=yes name=shipment_id dbname="shipment.shipment_id" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"shipment~" ) COLUMN(NAME=~"shipment.shipment_id~")) " ) column=(type=char(0) updatewhereclause=yes name=printer_name dbname="printer_name" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"shipment~" ) COLUMN(NAME=~"shipment.shipment_id~") COMPUTE(NAME=~"''printer_name~")) " )
text(band=detail alignment="1" text="Shipment Id:" border="0" color="33554432" x="0" y="1" height="16" width="77" html.valueishtml="0" name=shipment_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Shipment Id:" border="0" color="33554432" x="0" y="1" height="16" width="77" html.valueishtml="0" name=shipment_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Printer :" border="0" color="33554432" x="0" y="24" height="16" width="77" html.valueishtml="0" name=printer_name_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="79" y="1" height="16" width="55" format="[general]" html.valueishtml="0" name=shipment_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="79" y="1" height="16" width="55" format="[general]" html.valueishtml="0" name=shipment_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="79" y="23" height="16" width="55" format="[general]" html.valueishtml="0" name=printer_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
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