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)
{ {
...@@ -195,7 +201,12 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C ...@@ -195,7 +201,12 @@ public class CheckSheetPos extends ValidatorEJB implements CheckSheetPosLocal, C
System.out.println("Error String = "+errString); System.out.println("Error String = "+errString);
System.out.println("SHIP CONF CALLED "); System.out.println("SHIP CONF CALLED ");
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)
......
...@@ -7,17 +7,21 @@ ...@@ -7,17 +7,21 @@
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.webitm.ejb.ActionHandlerEJB; import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ITMDBAccessLocal; import ibase.webitm.ejb.ITMDBAccessLocal;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -112,6 +116,13 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -112,6 +116,13 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
} }
else else
{ {
//Changed by sumit on 10/11/12 updating lr_no and pro_no in shipment start.
if( updateShipment(tranId , conn, xtraParam) > 0)
{
System.out.println(" update sucessfully ");
}
//Changed by sumit on 10/11/12 updating lr_no and pro_no in shipment end.
//Changed by sumit on 28/09/12 checking whether shipment is already confirmed or not end. //Changed by sumit on 28/09/12 checking whether shipment is already confirmed or not end.
sql = "SELECT LORRY_NO,TRAN_CODE,LR_NO,LR_DATE, pro_no FROM SHIPMENT WHERE SHIPMENT_ID = ?"; sql = "SELECT LORRY_NO,TRAN_CODE,LR_NO,LR_DATE, pro_no FROM SHIPMENT WHERE SHIPMENT_ID = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -163,6 +174,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -163,6 +174,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
if(refId != null && refId.trim().length() > 0 && "S-DSP".equalsIgnoreCase(refSerNew.trim())) if(refId != null && refId.trim().length() > 0 && "S-DSP".equalsIgnoreCase(refSerNew.trim()))
{ {
System.out.println("after commit in ShipmentConf for id ["+ refId +"]"); System.out.println("after commit in ShipmentConf for id ["+ refId +"]");
errString = confirmShipment("despatch", refId.trim(), xtraParam, forcedFlag, conn); errString = confirmShipment("despatch", refId.trim(), xtraParam, forcedFlag, conn);
...@@ -555,4 +567,262 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -555,4 +567,262 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
return null; return null;
} }
//Changed by sumit on 05/10/12 update desp_confirmed in ship_docs ship detail end. //Changed by sumit on 05/10/12 update desp_confirmed in ship_docs ship detail end.
//Changed by sumit on 10/11/12 updating lr_no and pro_no in shipment start
private int updateShipment(String shipmentId, Connection conn, String xtraParams) throws ITMException
{
String sql = "";
String descr = "";
String descr1 = "";
String prefix = "";
String sProno = "";
String lrNo = "";
String tranCode = "";
long pronoLast = 0;
int update = 0;
PreparedStatement pstmt = null;
ResultSet rs = null;
System.out.println(" sumit inside update shipment ");
try
{
sql = "SELECT TRAN_CODE FROM SHIPMENT WHERE SHIPMENT_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, shipmentId);
rs = pstmt.executeQuery();
if( rs.next() )
{
tranCode = rs.getString("TRAN_CODE");
}
if( rs != null)
{
rs.close();
rs = null;
}
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
sql = "SELECT tran_name, PRONO_LAST , PRONO_FROM, PREFIX FROM transporter WHERE tran_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranCode);
rs = pstmt.executeQuery();
if( rs.next() )
{
descr = rs.getString(1);
descr1 = rs.getString(2);
prefix = rs.getString(4);
if(descr1 == null || descr1.trim().length() == 0)
{
descr1 = checkNull(rs.getString(3));
}
}
if( rs != null)
{
rs.close();
rs = null;
}
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(descr1.trim().length() > 0)
{
pronoLast = Long.parseLong(descr1) + 1;
}
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( getSSCC(prefix, pronoLast, conn) ).append( "]]></lr_no>\r\n" ); // added to generate SSCC18 complaint number //commented as per suggestion
sProno = ("" + pronoLast).trim();
System.out.println("manohar before prefix["+prefix+"]::::sProno["+sProno+"]");
sql = "SELECT fn_prono(?,to_char(?)) FROM dual";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranCode);
pstmt.setString(2, sProno);
rs = pstmt.executeQuery();
if( rs.next() )
{
sProno = checkNull(rs.getString(1));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("manohar after prefix["+prefix+"]::::sProno["+sProno+"]");
//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( "<pro_no><![CDATA[" ).append( sProno ).append( "]]></pro_no>\r\n" );
lrNo = getLrNo(xtraParams, conn);
System.out.println(" --sumit-- lrno - >["+lrNo+"]");
if (lrNo == null || lrNo.trim().length() ==0 )
{
lrNo = getLrNo(xtraParams,conn);
System.out.println("manohar before lr_no ["+lrNo+"]");
sql = "SELECT fn_prono(?,to_char(?)) FROM dual";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranCode);
pstmt.setString(2, lrNo);
rs = pstmt.executeQuery();
if( rs.next() )
{
lrNo = checkNull(rs.getString(1));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("manohar after lr_no ["+lrNo+"]");
//valueXmlString.append( "<lr_no><![CDATA[" ).append( sProno ).append( "]]></lr_no>\r\n" );
}
}
sql = "UPDATE SHIPMENT SET LR_NO = ? , PRO_NO = ? WHERE SHIPMENT_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lrNo);
pstmt.setString(2, sProno);
pstmt.setString(3, shipmentId);
update = pstmt.executeUpdate();
if( update > 0)
{
System.out.println(" shipment updated sucessfully");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
throw new ITMException(e);
}
finally
{
try
{
if( rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception e2)
{
throw new ITMException(e2);
}
}
return update;
}
//Changed by sumit on 10/11/12 updating lr_no and pro_no in shipment end
//Changed by sumit on 10/11/12 generating LrNo ( Copied from shipmentIC, as per manoharan sir) start.
private String getLrNo( String xtraParams,Connection conn) throws Exception
{
boolean isOdd = false;
int sumOdd = 0, sumEven = 0;
String inputStr = "", lrNo = "", runNumberStr =""; //mfgCode = "0351672",
//ibase.utility.GenericUtility genUtility = ibase.utility.GenericUtility.getInstance();
int ctr, curDigit = 0, chkDigit = 0, padLen = 0; // runNumber = 4967235
long runNumber=0;
//TransIDGenerator tg = new TransIDGenerator(xmlValues.toString(), "BASE",CommonConstants.DB_NAME);
String windowName="";
PreparedStatement pSel = null;
PreparedStatement pIns = null;
ResultSet rsSel = null;
// Connection conn = null;
String mfgCode = null;
String sSel = "";
String sIns = "";
String siteCode = "";
String labelType = "";
String labelID = "";
String keyString = "";
String tranIDCol = "";
String refSer = "";
String retString = "";
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
if (mfgCode == null)
{
mfgCode = "04";
}
System.out.println("@@@@@ getLrNo called..........");
windowName = "w_bol_gen";
sSel = "SELECT KEY_STRING, TRAN_ID_COL,REF_SER FROM TRANSETUP WHERE TRAN_WINDOW = ? ";
pSel = conn.prepareStatement(sSel);
pSel.setString(1, windowName);
rsSel = pSel.executeQuery();
if( rsSel.next() )
{
keyString = rsSel.getString( "KEY_STRING" );
tranIDCol = rsSel.getString("TRAN_ID_COL");
refSer = rsSel.getString("REF_SER");
}
//refSer="BOL-NO";
String loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"site_code");
String chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm");
java.util.Date date = null;
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
System.out.println(genericUtility.getDBDateFormat());
SimpleDateFormat simpledateformat = new SimpleDateFormat(genericUtility.getDBDateFormat());
date = simpledateformat.parse(timestamp.toString());
timestamp = Timestamp.valueOf(simpledateformat.format(date).toString() + " 00:00:00.0");
String currDate = (new SimpleDateFormat(genericUtility.getApplDateFormat())).format(timestamp).toString();
StringBuffer xmlValues = new StringBuffer("<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>");
xmlValues = xmlValues.append("<Header></Header>");
xmlValues = xmlValues.append("<Detail1>");
xmlValues.append( "<dummy>").append("<![CDATA[]]>").append("</dummy>\r\n" );
xmlValues.append( "<site_code>").append("<![CDATA[" + siteCode + "]]>").append("</site_code>\r\n" );
xmlValues.append( "<tran_date>").append("<![CDATA[" + currDate + "]]>").append("</tran_date>\r\n");
xmlValues.append( "<loginCode><![CDATA[" ).append(loginCode).append( "]]></loginCode>\r\n" );
xmlValues.append( "<lr_no></lr_no>\r\n");
xmlValues.append( "<bol_no></bol_no>\r\n");
xmlValues = xmlValues.append( "</Detail1></Root>");
System.out.println("refSer:["+refSer+"]:::tranIDCol:["+tranIDCol+"]::::keyString:["+keyString+"]");
TransIDGenerator tg = new TransIDGenerator(xmlValues.toString(), "BASE",CommonConstants.DB_NAME);
runNumber = Long.parseLong(tg.generateTranSeqID(refSer, tranIDCol, keyString, conn));
conn.commit();
System.out.println("runNumber:["+runNumber+"]");
padLen = 16 - mfgCode.length(); // total length should be 16 excluding extension digit and check digit
runNumberStr = "0000000000000000" + String.valueOf(runNumber);
runNumberStr = runNumberStr.substring(runNumberStr.length() - padLen ,runNumberStr.length());
lrNo = mfgCode + runNumberStr;
System.out.println( " lrNo [" + lrNo + "] lrNo.length() [" + lrNo.length() + "]" );
}
catch(Exception e)
{
throw new ITMException(e);
}
return lrNo;
}
//Changed by sumit on 10/11/12 generating LrNo ( Copied from shipmentIC, as per manoharan sir) end.
} }
...@@ -61,7 +61,7 @@ public class ShipmentIC extends ValidatorEJB implements ShipmentICRemote,Shipmen ...@@ -61,7 +61,7 @@ public class ShipmentIC extends ValidatorEJB implements ShipmentICRemote,Shipmen
} }
if(xmlString2 != null && xmlString2.trim().length()!=0) if(xmlString2 != null && xmlString2.trim().length()!=0)
{ {
dom2 = genericUtility.parseString(xmlString2); dom2 = genericUtility.parseString(xmlString2);
} }
errString = wfValData( dom, dom1, dom2, objContext, editFlag, xtraParams ); errString = wfValData( dom, dom1, dom2, objContext, editFlag, xtraParams );
System.out.println ( "ErrString: " + errString); System.out.println ( "ErrString: " + errString);
...@@ -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" );
} }
......
...@@ -18,7 +18,9 @@ import java.sql.ResultSet; ...@@ -18,7 +18,9 @@ import java.sql.ResultSet;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map;
import java.util.Set; import java.util.Set;
...@@ -29,6 +31,7 @@ import org.w3c.dom.NodeList; ...@@ -29,6 +31,7 @@ import org.w3c.dom.NodeList;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ValidatorEJB; import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.dis.SaleOrdItmGen; import ibase.webitm.ejb.dis.SaleOrdItmGen;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
...@@ -122,6 +125,7 @@ etc ...@@ -122,6 +125,7 @@ etc
String stockToDockAllow = ""; String stockToDockAllow = "";
String saleOrderFrom = ""; String saleOrderFrom = "";
String saleOrderTo = ""; String saleOrderTo = "";
String printLabel = "";//Added by sumit on 24/11/12
try try
{ {
...@@ -170,7 +174,11 @@ etc ...@@ -170,7 +174,11 @@ etc
valueXmlString.append( "<master_pack_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></master_pack_allow>\r\n" ); valueXmlString.append( "<master_pack_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></master_pack_allow>\r\n" );
valueXmlString.append( "<active_pick_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></active_pick_allow>\r\n" ); valueXmlString.append( "<active_pick_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></active_pick_allow>\r\n" );
valueXmlString.append( "<stock_to_dock_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></stock_to_dock_allow>\r\n" ); valueXmlString.append( "<stock_to_dock_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></stock_to_dock_allow>\r\n" );
//Changed by sumit on 18/09/12 for single lot and Packing allow end. //Changed by sumit on 18/09/12 for single lot and Packing allow end.
//Changed by sumit on 18/09/12 adding print_label and printer name start.
valueXmlString.append( "<print_label><![CDATA[" ).append( "Y" ).append( "]]></print_label>\r\n" );
valueXmlString.append( "<printer_name><![CDATA[" ).append( "PDFCreator" ).append( "]]></printer_name>\r\n" );
//Changed by sumit on 18/09/12 adding print_label and printer name end.
valueXmlString.append( "</Detail1>\r\n" ); valueXmlString.append( "</Detail1>\r\n" );
} }
//Changed By Pragyan 21/06/12 Statrt //Changed By Pragyan 21/06/12 Statrt
...@@ -279,7 +287,6 @@ etc ...@@ -279,7 +287,6 @@ etc
columnValue = genericUtility.getColumnValue("sale_order__to",currDom); columnValue = genericUtility.getColumnValue("sale_order__to",currDom);
saleOrderFrom = checkNull(genericUtility.getColumnValue("sale_order__from",currDom)); saleOrderFrom = checkNull(genericUtility.getColumnValue("sale_order__from",currDom));
//
custCodeFrom = checkNull(genericUtility.getColumnValue("cust_code__from",currDom)); custCodeFrom = checkNull(genericUtility.getColumnValue("cust_code__from",currDom));
//System.out.println("columnValue1="+columnValue); //System.out.println("columnValue1="+columnValue);
//System.out.println("Hello sale_order__from"); //System.out.println("Hello sale_order__from");
...@@ -377,6 +384,26 @@ etc ...@@ -377,6 +384,26 @@ etc
valueXmlString.append( "</Detail1>\r\n" ); valueXmlString.append( "</Detail1>\r\n" );
} }
//Changed sumit on 24/11/12 item_changed for print label start.
else if ( currentColumn.trim().equalsIgnoreCase( "print_label"))
{
//Changed by sumit on 24/11/12 getting print label value
valueXmlString.append( "<Detail1>\r\n" );
printLabel = genericUtility.getColumnValue("print_label",currDom);
System.out.println(" printLabel "+printLabel);
if("Y".equalsIgnoreCase(printLabel))
{
valueXmlString.append( "<printer_name><![CDATA[" ).append( "PDFCreator" ).append( "]]></printer_name>\r\n" );
}
else
{
valueXmlString.append( "<printer_name protect ='1'><![CDATA[" ).append( "" ).append( "]]></printer_name>\r\n" );
}
valueXmlString.append( "</Detail1>\r\n" );
}
//Changed sumit on 24/11/12 item_changed for print label end.
//Changed By Pragyan 21/06/12 end //Changed By Pragyan 21/06/12 end
//Changed sumit on 18/09/12 item_changed for cust_code__from start. //Changed sumit on 18/09/12 item_changed for cust_code__from start.
//else if ( currentColumn.trim().equalsIgnoreCase( "cust_code__from" )) //else if ( currentColumn.trim().equalsIgnoreCase( "cust_code__from" ))
...@@ -571,6 +598,14 @@ etc ...@@ -571,6 +598,14 @@ etc
String custCode = ""; String custCode = "";
//Changed by sumit on 03/10/12 //Changed by sumit on 03/10/12
String printer = ""; String printer = "";
String printLabel = "";//Added by sumit.
//Changed by sumit on 17/11/12 for validating sale order start.
String itemSerFr = "", itemSerTo = "", custCodeFr = "", custCodeTo = "", custCodeDlvFr = "", custCodeDlvTo = "";
String saleOrderFr = "", saleOrderTo = "", sDateFr = "", sDateTo = "", siteCode = "", itemCode = "";
String itemCodeFr = "", itemCodeTo = "";
java.sql.Timestamp dateTo = null, dueDate = null, dateFr = null;
//Changed by sumit on 17/11/12 for validating sale order end.
int count = 0, cnt = 0; int count = 0, cnt = 0;
int rowCount = 0; int rowCount = 0;
...@@ -588,6 +623,22 @@ etc ...@@ -588,6 +623,22 @@ etc
ArrayList errList = new ArrayList(); ArrayList errList = new ArrayList();
ArrayList errFields = new ArrayList(); ArrayList errFields = new ArrayList();
Set errSet = null; Set errSet = null;
//Changed by sumit on 19/11/12 created variable's for validation near expired item start
PreparedStatement pstmtStock = null;
ResultSet rs1 = null;
String sSingleLotSql = "", sSQL = "";
DistCommon discommon = new DistCommon();
int minSelfLife = 0;
boolean isActives = false;
double pendingQty = 0;
Map itemCodeMap = new HashMap();
String saleOrderTran = "", orderByStkStr = "";
String resrvLoc = "", casePickLoc = "", activePickLoc = "", deepStoreLoc = "", partialResrvLoc = "";
boolean bappend = false ;
double balStockQty = 0, holdQty = 0;
//Changed by sumit on 19/11/12 created variable's for validation near expired item end
try try
{ {
int currentFormNo = 0; int currentFormNo = 0;
...@@ -758,19 +809,28 @@ etc ...@@ -758,19 +809,28 @@ etc
} }
} }
//Changed by sumit on 03/10/12 validating printer service name with existing printer in system start. //Changed by sumit on 03/10/12 validating printer service name with existing printer in system start.
else if ( "printer".equalsIgnoreCase( childNodeName ) ) //Changed by sumit on 24/11/12 changing field name
//else if ( "printer".equalsIgnoreCase( childNodeName ) )
else if ( "printer_name".equalsIgnoreCase( childNodeName ) )
{ {
printer = checkNull(genericUtility.getColumnValue( "printer", currFormDataDom )); //Changed by sumit on 24/11/12 changing field name .
System.out.println(" printer from input parameter ["+printer+"]"); //printer = checkNull(genericUtility.getColumnValue( "printer", currFormDataDom ));
printer = checkNull(genericUtility.getColumnValue( "printer_name", currFormDataDom ));
//Changed by sumit on 24/11/12 adding print label for validation
printLabel = checkNull(genericUtility.getColumnValue( "print_label", currFormDataDom ));
System.out.println(" printer from input parameter ["+printer+"] and print label ->["+printLabel+"]");
PrintService[] printServices = PrinterJob.lookupPrintServices(); PrintService[] printServices = PrinterJob.lookupPrintServices();
ArrayList<String> arry = new ArrayList<String>(); ArrayList<String> arry = new ArrayList<String>();
if(printer.trim().length() == 0) //Changed by sumit on 24/11/12 adding print label condition
//if(printer.trim().length() == 0)
if(printer.trim().length() == 0 && "Y".equalsIgnoreCase(printLabel))
{ {
errFields.add( childNodeName.toLowerCase() ); errFields.add( childNodeName.toLowerCase() );
errList.add( "NLLPRINTER" ); errList.add( "NLLPRINTER" );
} }
else else if(printer.trim().length() > 0 && "Y".equalsIgnoreCase(printLabel))
{ {
System.out.println(" in inside if");
for (PrintService printService : printServices) for (PrintService printService : printServices)
{ {
String name = printService.getName(); String name = printService.getName();
...@@ -784,11 +844,220 @@ etc ...@@ -784,11 +844,220 @@ etc
} }
arry.clear(); arry.clear();
} }
} }
//Changed by sumit on 03/10/12 validating printer service name with existing printer in system end. //Changed by sumit on 03/10/12 validating printer service name with existing printer in system end.
//Changed by sumit on 17/11/12 validating sale order on hold start.
/*else if("sale_order__from".equalsIgnoreCase(childNodeName))
{
System.out.println(" in sale order sumit ");
resrvLoc = discommon.getDisparams("999999","RESERV_LOCATION",conn);
casePickLoc = discommon.getDisparams("999999","CASE_PICK_INVSTAT",conn);
activePickLoc = discommon.getDisparams("999999","ACTIVE_PICK_INVSTAT",conn);
deepStoreLoc = discommon.getDisparams("999999","DEEP_STORE_INVSTAT",conn);
partialResrvLoc = discommon.getDisparams("999999","PRSRV_INVSTAT",conn);
siteCode = genericUtility.getColumnValue("site_code",currFormDataDom);
} itemSerFr = genericUtility.getColumnValue("item_ser__from",currFormDataDom);
itemSerTo = genericUtility.getColumnValue("item_ser__to",currFormDataDom);
itemCodeFr = genericUtility.getColumnValue("item_code__from",currFormDataDom);
itemCodeTo = genericUtility.getColumnValue("item_code__to",currFormDataDom);
custCodeFr = genericUtility.getColumnValue("cust_code__from",currFormDataDom);
custCodeTo = genericUtility.getColumnValue("cust_code__to",currFormDataDom);
custCodeDlvFr = genericUtility.getColumnValue("cust_code__dlv__from",currFormDataDom);
custCodeDlvTo = genericUtility.getColumnValue("cust_code__dlv__to",currFormDataDom);
saleOrderFr = genericUtility.getColumnValue("sale_order__from",currFormDataDom);
saleOrderTo = genericUtility.getColumnValue("sale_order__to",currFormDataDom);
sDateFr = genericUtility.getColumnValue("due_date__from",currFormDataDom);
sDateFr = genericUtility.getValidDateString(sDateFr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
dateFr = java.sql.Timestamp.valueOf(sDateFr + " 00:00:00");
sDateTo = genericUtility.getColumnValue("due_date__to",currFormDataDom);
sDateTo = genericUtility.getValidDateString(sDateTo, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
dateTo = java.sql.Timestamp.valueOf(sDateTo + " 00:00:00");
sql =" SELECT SORDER.CUST_CODE, CUSTOMER.CUST_NAME,SORDDET.LINE_NO, "
+"SORDER.SALE_ORDER,SORDER.DUE_DATE,SORDITEM.ITEM_CODE,"
+"ITEM.DESCR,SORDITEM.QUANTITY,"
+"(SORDITEM.QUANTITY - SORDITEM.QTY_DESP - SORDITEM.QTY_ALLOC) PENDING_QUANTITY,"
+"SORDITEM.QTY_ALLOC,SORDDET.PACK_INSTR,"
+"SORDER.SITE_CODE,SORDITEM.EXP_LEV, "
+"SORDER.PART_QTY AS PART_QTY, CUSTOMER.SINGLE_LOT AS SINGLE_LOT, SORDITEM.MIN_SHELF_LIFE AS MIN_SHELF_LIFE "//Gulzar 5/13/2012
+" ,SORDER.ALLOC_FLAG AS ALLOC_FLAG , WAVE_TYPE.MASTER_PACK_ALLOW , WAVE_TYPE.ACTIVE_PICK_ALLOW , WAVE_TYPE.STOCK_TO_DOCK_ALLOW, "
+" (CASE WHEN SORDDET.HOLD_FLAG IS NULL THEN 'N' ELSE SORDDET.HOLD_FLAG end ) AS HOLD_FLAG "
+" FROM SORDDET,SORDER,SORDITEM,CUSTOMER,ITEM , WAVE_TYPE "
+"WHERE ( SORDER.SALE_ORDER = SORDDET.SALE_ORDER ) AND "
+"( SORDITEM.SALE_ORDER = SORDER.SALE_ORDER ) AND "
+"( SORDDET.LINE_NO = SORDITEM.LINE_NO ) AND "
+"( SORDITEM.ITEM_CODE = ITEM.ITEM_CODE ) AND "
+"( SORDER.CUST_CODE = CUSTOMER.CUST_CODE ) AND "
+"( SORDDET.SITE_CODE = SORDITEM.SITE_CODE ) AND "
+"( CUSTOMER.WAVE_TYPE = WAVE_TYPE.WAVE_TYPE(+)) AND "
+" SORDER.SITE_CODE = ? AND "
+" ITEM.ITEM_SER >=? AND "
+" ITEM.ITEM_SER <=? AND "
+" ITEM.ITEM_CODE >=? AND "
+" ITEM.ITEM_CODE <=? AND "
+" CUSTOMER.CUST_CODE >=? AND "
+" CUSTOMER.CUST_CODE <=? AND "
+" SORDER.CUST_CODE__DLV >=? AND "
+" SORDER.CUST_CODE__DLV <=? AND "
+" SORDER.SALE_ORDER >= ? AND "
+" SORDER.SALE_ORDER <= ? AND "
+" SORDER.DUE_DATE >= ? AND"
+" SORDER.DUE_DATE <= ? "
+"AND CASE WHEN SORDDET.STATUS IS NULL THEN 'P' ELSE SORDDET.STATUS end <> 'C' "
+"AND CASE WHEN SORDER.STATUS IS NULL THEN 'P' ELSE SORDER.STATUS end = 'P' "
//+" AND CASE WHEN SORDDET.HOLD_FLAG IS NULL THEN 'N' ELSE SORDDET.HOLD_FLAG end = 'Y'"
+" AND ((SORDITEM.QUANTITY - SORDITEM.QTY_DESP - SORDITEM.QTY_ALLOC > 0 ) "
+" OR (FN_CHECK_MANUAL_STOCK_ALLOC(SORDER.SALE_ORDER, SORDDET.LINE_NO) = 0 ) )"
+"AND SORDITEM.LINE_TYPE = 'I'"
+" ORDER BY SORDER.CUST_CODE,SORDER.SALE_ORDER,SORDITEM.ITEM_CODE__ORD";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCode);
pstmt.setString(2,itemSerFr);
pstmt.setString(3,itemSerTo);
pstmt.setString(4,itemCodeFr);
pstmt.setString(5,itemCodeTo);
pstmt.setString(6,custCodeFr);
pstmt.setString(7,custCodeTo);
pstmt.setString(8,custCodeDlvFr);
pstmt.setString(9,custCodeDlvTo);
pstmt.setString(10,saleOrderFr);
pstmt.setString(11,saleOrderTo);
pstmt.setTimestamp(12,dateFr);
pstmt.setTimestamp(13,dateTo);
rs = pstmt.executeQuery();
sSQL = "SELECT SUM(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END ) ), SUM(STOCK.HOLD_QTY ) "
+"FROM STOCK,ITEM,LOCATION,INVSTAT "
+"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) "
+"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) "
+"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) "
+"AND INVSTAT.AVAILABLE = ? "
+"AND STOCK.ITEM_CODE = ? "
+"AND STOCK.SITE_CODE = ? "
+"AND (STOCK.QUANTITY - STOCK.ALLOC_QTY - CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) > 0 "
+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) < ? ) ";
sSingleLotSql = "SELECT SUM(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END ) ), "
+"SUM(STOCK.HOLD_QTY )"
+"FROM STOCK,ITEM,LOCATION,INVSTAT "
+"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) "
+"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) "
+"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) "
+"AND INVSTAT.AVAILABLE = ? "
+"AND STOCK.ITEM_CODE = ? "
+"AND STOCK.SITE_CODE = ? "
+"AND STOCK.LOT_NO IN (SELECT LOT_NO FROM STOCK WHERE ITEM_CODE =? AND SITE_CODE =? "
+"GROUP BY LOT_NO HAVING SUM(QUANTITY - ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ) >= ?) "
+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) < ? ) ";
if( rs.next())
{
do
{
minSelfLife = 0;
isActives = false;
String holdFlag = "";
pendingQty = rs.getDouble("PENDING_QUANTITY");
itemCode = checkNull(rs.getString(6));
siteCode = checkNull(rs.getString(12));
//partQty = checkNull(rs.getString("PART_QTY"));
singleLot = checkNull(rs.getString("SINGLE_LOT"));
minSelfLife = rs.getInt("MIN_SHELF_LIFE");
System.out.println("pendingQty =["+pendingQty+"]");
//System.out.println("partQty =["+partQty+"]");
System.out.println("singleLot =["+singleLot+"]");
System.out.println("MIN_SHELF_LIFE =["+minSelfLife+"]");
HashMap itemVolMap = getItemVoumeMap(itemCode, "", conn);
double packSize = (Double)itemVolMap.get("PACK_SIZE");
holdFlag = rs.getString("HOLD_FLAG");
System.out.println(" hold flag ---*- >["+holdFlag+"]");
if( "Y".equalsIgnoreCase(holdFlag))
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "SALEORDHOL" );
}
if((pendingQty % packSize) > 0)
{
isActives = true;
orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?,?) ORDER BY STOCK.EXP_DATE,LOCATION.INV_STAT, STOCK.LOC_CODE ";
}
else
{
isActives = false;
orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?) ORDER BY STOCK.EXP_DATE, STOCK.LOC_CODE ";
}
if(itemCodeMap.containsKey(rs.getString(6)))
{
balStockQty = Double.parseDouble(itemCodeMap.get(rs.getString(6)).toString());
bappend = false ;
}
else
{
if ( singleLot.trim().length() > 0 && singleLot.trim().equalsIgnoreCase("Y") )
{
pstmtStock = conn.prepareStatement(sSingleLotSql + orderByStkStr);
pstmtStock.setString(1,"Y");
pstmtStock.setString(2,itemCode);
pstmtStock.setString(3,siteCode);
pstmtStock.setString(4,itemCode);
pstmtStock.setString(5,siteCode);
pstmtStock.setDouble(6,pendingQty);
pstmtStock.setInt(7,minSelfLife);
pstmtStock.setString(8,resrvLoc);
pstmtStock.setString(9,casePickLoc);
pstmtStock.setString(10,activePickLoc);
pstmtStock.setString(11,deepStoreLoc);
if(isActives)
{
pstmtStock.setString(12,partialResrvLoc);
}
}
else
{
pstmtStock = conn.prepareStatement(sSQL + orderByStkStr);
pstmtStock.setString(1,"Y");
pstmtStock.setString(2,rs.getString(6));
pstmtStock.setString(3,rs.getString(12));
pstmtStock.setInt(4,minSelfLife);//Gulzar on 5/18/2012
pstmtStock.setString(5,resrvLoc);
pstmtStock.setString(6,casePickLoc);
pstmtStock.setString(7,activePickLoc);
pstmtStock.setString(8,deepStoreLoc);
if(isActives)
{
pstmtStock.setString(9,partialResrvLoc);
}
}
rs1 = pstmtStock.executeQuery();
if (rs1.next())
{
String temp = "";
temp = rs1.getString(1);
if( temp != null)
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "ITEMNEXPIR" );
}
}
if(rs1 != null)
{
rs1.close();
}
pstmtStock.clearParameters();
}
}while(rs.next());
pstmt.clearParameters();
}
}
//Changed by sumit on 17/11/12 validating sale order on hold end.
*/ }
} //End of case 1 Validation } //End of case 1 Validation
break; break;
...@@ -909,4 +1178,102 @@ etc ...@@ -909,4 +1178,102 @@ etc
} }
return msgType; return msgType;
} }
private HashMap getItemVoumeMap(String itemCode,String lotNo,Connection con)throws Exception
{
double packSize = 0,itemSize = 0,lotSize = 0;
PreparedStatement pstmt = null;
String sql="";
ResultSet rs = null;
double itmLen = 0,itmWidth = 0,itmHeight = 0,itemWeight = 0,lotLen = 0 ,lotHeight = 0,lotWidth = 0,lotWeight = 0;
HashMap dataVolumeMap = new HashMap();
try {
sql = "SELECT I.LENGTH ITEM_LEN,I.WIDTH ITEM_WID,I.HEIGHT ITEM_HEIGHT,I.GROSS_WEIGHT ITEM_WEIGHT,"
+" L.LENGTH LITEM_LEN,L.WIDTH LITEM_WID,L.HEIGHT LITEM_HEIGHT,L.SHIPPER_SIZE SHIPSIZE,L.GROSS_WEIGHT LOT_WEIGHT FROM"
+" ITEM I,ITEM_LOT_PACKSIZE L"
+" WHERE I.ITEM_CODE = L.ITEM_CODE"
+" AND L.LOT_NO__FROM <= ? AND L.LOT_NO__TO >= ?"
+" AND I.ITEM_CODE = ?";
pstmt = con.prepareStatement(sql);
if(lotNo != null && lotNo.length() > 0)
{
pstmt.setString(1, lotNo);
pstmt.setString(2, lotNo);
}
else
{
pstmt.setString(1, "00");
pstmt.setString(2, "ZZ");
}
pstmt.setString(3, itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
itmLen = rs.getDouble("ITEM_LEN");
itmWidth = rs.getDouble("ITEM_WID");
itmHeight = rs.getDouble("ITEM_HEIGHT");
itemWeight = rs.getDouble("ITEM_WEIGHT");
lotLen = rs.getDouble("LITEM_LEN");
lotWidth = rs.getDouble("LITEM_WID");
lotHeight = rs.getDouble("LITEM_HEIGHT");
packSize = rs.getDouble("SHIPSIZE");
lotWeight = rs.getDouble("LOT_WEIGHT");
}
//packSize = (lotHeight * lotWidth * lotLen)/(itmLen * itmWidth * itmHeight);
/*itemSize = Math.floor(itmLen * itmWidth * itmHeight);
lotSize = Math.floor((lotHeight * lotWidth * lotLen));*/
itemSize = itmLen * itmWidth * itmHeight;
lotSize = lotHeight * lotWidth * lotLen;
dataVolumeMap.put("PACK_SIZE", packSize);
dataVolumeMap.put("ITEM_SIZE", itemSize);
dataVolumeMap.put("LOT_SIZE", lotSize);
dataVolumeMap.put("ITEM_WEIGHT", itemWeight);
dataVolumeMap.put("PACK_WEIGHT", lotWeight);
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
} catch (Exception e) {
// TODO: handle exception
throw e;
}
finally
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
return dataVolumeMap;
}
} }
...@@ -110,6 +110,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -110,6 +110,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
String waveMode = ""; String waveMode = "";
//Changed by sumit on 03/10/12 created printer variable //Changed by sumit on 03/10/12 created printer variable
String printer = ""; String printer = "";
//Changedby sumit on 24/11/12 variable for print label
String printLabel = "";
//Changed By Pragyan on 19/09/11.start //Changed By Pragyan on 19/09/11.start
private HashMap saleOrderWiseMap = new HashMap(); private HashMap saleOrderWiseMap = new HashMap();
private ArrayList saleOrderWiseNotAllowList = new ArrayList(); private ArrayList saleOrderWiseNotAllowList = new ArrayList();
...@@ -178,7 +180,7 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -178,7 +180,7 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{ {
String errCode = ""; String errCode = "";
String errString = ""; String errString = "";
String getDataSql= "" ; String getDataSql= "" ;
...@@ -232,14 +234,16 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -232,14 +234,16 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
PreparedStatement pstmt1 = null; PreparedStatement pstmt1 = null;
ResultSet rs2 = null; ResultSet rs2 = null;
//Changed by sumit 22/08/12 to retrieve alloc_flag end. //Changed by sumit 22/08/12 to retrieve alloc_flag end.
//Changed by Sankara on 23/11/12 fir dispalying get data in propar format
retTabSepStrBuff = new StringBuffer( "<?xml version='1.0' encoding='UTF-8'?>\r\n<DocumentRoot>\r\n<description>Datawindow Root</description>\r\n<group0>\r\n" +
"<description>Group0 description</description>\r\n<Header0>\r\n<description>Header0 members</description>\r\n");
try try
{ {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getDBDateFormat());
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
connDriver = null; connDriver = null;
//retTabSepStrBuff.append("</Header>\r\n" );
/*//Changed by Rohan 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS /*//Changed by Rohan 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS
//Changed by Rohan 0n 18/01/12 as said by gulzar sir //Changed by Rohan 0n 18/01/12 as said by gulzar sir
...@@ -405,9 +409,17 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -405,9 +409,17 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
globalStockToDockAllow = checkNull(genericUtility.getColumnValue("stock_to_dock_allow",headerDom)); globalStockToDockAllow = checkNull(genericUtility.getColumnValue("stock_to_dock_allow",headerDom));
//Change by sumit sarkar on 09/03/12 getting the value of SINGLE_LOT, MASTER_PACK_ALLOW, ACTIVE_PICK_ALLOW, STOCK_TO_DOCK_ALLOW END. //Change by sumit sarkar on 09/03/12 getting the value of SINGLE_LOT, MASTER_PACK_ALLOW, ACTIVE_PICK_ALLOW, STOCK_TO_DOCK_ALLOW END.
//Changed by sumit on 03/10/12 getting value of printer start
/*printer = "";
printer = checkNull(genericUtility.getColumnValue("printer",headerDom));*/
//Changed by sumit on 03/10/12 getting value of printer start //Changed by sumit on 03/10/12 getting value of printer start
printer = ""; printer = "";
printer = checkNull(genericUtility.getColumnValue("printer",headerDom)); printer = checkNull(genericUtility.getColumnValue("printer_name",headerDom));
//Changed by sumit on 03/10/12 getting value of printer end
//Changed by sumit on 24/11/12 getting print label value
printLabel = genericUtility.getColumnValue("print_label",headerDom);
//Changed by sumit on 03/10/12 getting value of printer end //Changed by sumit on 03/10/12 getting value of printer end
//Changed by Sumit sarkar on 07/03/12 search on the basis of item_code too. //Changed by Sumit sarkar on 07/03/12 search on the basis of item_code too.
...@@ -668,6 +680,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -668,6 +680,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
double pendingQty = 0d; double pendingQty = 0d;
//End changes by gulzar on 5/13/2012 //End changes by gulzar on 5/13/2012
boolean isActives = false; boolean isActives = false;
/*retTabSepStrBuff.append( "<?xml version='1.0' encoding='UTF-8'?><DocumentRoot><description>Datawindow Root</description><group0>" +
"<description>Groupscription</description><Header0><description>Header0 members</description>\r\n" );*/
if(rs.next()) if(rs.next())
{ {
do do
...@@ -872,11 +886,13 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -872,11 +886,13 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
double itemStkQty = 0d; double itemStkQty = 0d;
//if (balStockQty > 0) //if (balStockQty > 0)
if(itemCodeMap.containsKey(rs.getString(6))) if(itemCodeMap.containsKey(rs.getString(6)))
{ {
itemStkQty = (Double)itemCodeMap.get(rs.getString(6)); itemStkQty = (Double)itemCodeMap.get(rs.getString(6));
System.out.println("balStockQty =["+itemStkQty+"]"); System.out.println("balStockQty =["+itemStkQty+"]");
// Changed by sankara on 23/11/12 append data in porpar format
retTabSepStrBuff.append( "<Detail2>\r\n" );
//Changed by Gulzar on 5/13/2012 //Changed by Gulzar on 5/13/2012
//Changed by sumit sarkar on 22/06/12 comment this( now also displaying 0 stock quantity. start. //Changed by sumit sarkar on 22/06/12 comment this( now also displaying 0 stock quantity. start.
/*if ( partQty.trim().length() > 0 && partQty.trim().equalsIgnoreCase("N") && balStockQty < pendingQty ) /*if ( partQty.trim().length() > 0 && partQty.trim().equalsIgnoreCase("N") && balStockQty < pendingQty )
...@@ -887,109 +903,149 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -887,109 +903,149 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
//Changed by sumit sarkar on 22/06/12 comment this( now also displaying 0 stock quantity. end. //Changed by sumit sarkar on 22/06/12 comment this( now also displaying 0 stock quantity. end.
//End changed by Gulzar on 5/13/2012 //End changed by Gulzar on 5/13/2012
//CUST_CODE //CUST_CODE
retTabSepStrBuff.append(rs.getString(1)).append("\t"); //Changed by sankara on 23/11/12 append cust_code in porpar format
//retTabSepStrBuff.append(rs.getString(1)).append("\t");
retTabSepStrBuff.append( "<cust_code><![CDATA[" ).append(rs.getString(1)).append( "]]></cust_code>\r\n" );
//CUST_NAME //CUST_NAME
retTabSepStrBuff.append(rs.getString(2)).append("\t"); //Changed by sankara on 23/11/12 append cust_name in porpar format
//retTabSepStrBuff.append(rs.getString(2)).append("\t");
retTabSepStrBuff.append( "<cust_name><![CDATA[" ).append(rs.getString(2)).append( "]]></cust_name>\r\n" );
//LINE_NO //LINE_NO
retTabSepStrBuff.append(rs.getString(3)).append("\t"); //Changed by sankara on 23/11/12 append line_no in porpar format
//retTabSepStrBuff.append(rs.getString(3)).append("\t");
retTabSepStrBuff.append( "<line_no><![CDATA[" ).append(rs.getString(3)).append( "]]></line_no>\r\n" );
//SALE_ORDER //SALE_ORDER
retTabSepStrBuff.append(rs.getString(4)).append("\t"); //Changed by sankara on 23/11/12 append sale_order in porpar format
//retTabSepStrBuff.append(rs.getString(4)).append("\t");
retTabSepStrBuff.append( "<sale_order><![CDATA[" ).append(rs.getString(4)).append( "]]></sale_order>\r\n" );
//DUE_DATE //DUE_DATE
//Changed by Rohan To display due date in dd\mm\yy format //Changed by Rohan To display due date in dd\mm\yy format
//retTabSepStrBuff.append(rs.getTimestamp(5)).append("\t"); //retTabSepStrBuff.append(rs.getTimestamp(5)).append("\t");
System.out.println("Due Date Format===>>>>>>>>=="+rs.getDate(5)); System.out.println("Due Date Format===>>>>>>>>=="+rs.getDate(5));
retTabSepStrBuff.append(rs.getDate(5)).append("\t"); //Changed by sankara on 23/11/12 append due_date in porpar format
//retTabSepStrBuff.append(rs.getDate(5)).append("\t");
retTabSepStrBuff.append( "<due_date><![CDATA[" ).append(rs.getDate(5)).append( "]]></due_date>\r\n" );
dueDate = rs.getTimestamp(5); dueDate = rs.getTimestamp(5);
//ITEM_CODE //ITEM_CODE
retTabSepStrBuff.append(rs.getString(6)).append("\t"); //Changed by sankara on 23/11/12 append item_code in porpar format
//retTabSepStrBuff.append(rs.getString(6)).append("\t");
retTabSepStrBuff.append( "<item_code><![CDATA[" ).append(rs.getString(6)).append( "]]></item_code>\r\n" );
//DESCR //DESCR
retTabSepStrBuff.append(rs.getString(7)).append("\t"); //Changed by sankara on 23/11/12 append item_descr in porpar format
//retTabSepStrBuff.append(rs.getString(7)).append("\t");
//Changed by sumit on 20/08/12 to add single lot opt AND WAVE TYPES. start retTabSepStrBuff.append( "<item_descr><![CDATA[" ).append(rs.getString(7)).append( "]]></item_descr>\r\n" );
//Changed by sumit on 18/09/12 getting value from header field in case data start
//Changed by sumit on 20/08/12 to add single lot opt AND WAVE TYPES. start
/*//SINGLE LOT //Changed by sumit on 18/09/12 getting value from header field in case data start
/*//SINGLE LOT
retTabSepStrBuff.append(singleLot).append("\t"); retTabSepStrBuff.append(singleLot).append("\t");
//MASTER_PACK_ALLOW //MASTER_PACK_ALLOW
retTabSepStrBuff.append(masterPackAllow).append("\t"); retTabSepStrBuff.append(masterPackAllow).append("\t");
//ACTIVE_PICK_ALLOW //ACTIVE_PICK_ALLOW
retTabSepStrBuff.append(activePickAllow).append("\t"); retTabSepStrBuff.append(activePickAllow).append("\t");
//STOCK_TO_DOCK_ALLOW //STOCK_TO_DOCK_ALLOW
retTabSepStrBuff.append(stockToDockAllow).append("\t");*/ retTabSepStrBuff.append(stockToDockAllow).append("\t");*/
//Changed by sumit on 18/09/12 //Changed by sumit on 18/09/12
if (globalSingleLot.trim().length() > 0) if (globalSingleLot.trim().length() > 0)
{ {
//SINGLE LOT //SINGLE LOT
retTabSepStrBuff.append(globalSingleLot).append("\t"); //Changed by sankara on 23/11/12 append single_lot in porpar format
//retTabSepStrBuff.append(globalSingleLot).append("\t");
retTabSepStrBuff.append( "<single_lot><![CDATA[" ).append(globalSingleLot).append( "]]></single_lot>\r\n" );
//MASTER_PACK_ALLOW //MASTER_PACK_ALLOW
retTabSepStrBuff.append(globalMasterPackAllow).append("\t"); //Changed by sankara on 23/11/12 append master_pack_allow in porpar format
//retTabSepStrBuff.append(globalMasterPackAllow).append("\t");
retTabSepStrBuff.append( "<master_pack_allow><![CDATA[" ).append(globalMasterPackAllow).append( "]]></master_pack_allow>\r\n" );
//ACTIVE_PICK_ALLOW //ACTIVE_PICK_ALLOW
retTabSepStrBuff.append(globalActivePickAllow).append("\t"); //Changed by sankara on 23/11/12 append active_pack_allow in porpar format
//retTabSepStrBuff.append(globalActivePickAllow).append("\t");
retTabSepStrBuff.append( "<active_pick_allow><![CDATA[" ).append(globalActivePickAllow).append( "]]></active_pick_allow>\r\n" );
//STOCK_TO_DOCK_ALLOW //STOCK_TO_DOCK_ALLOW
retTabSepStrBuff.append(globalStockToDockAllow).append("\t"); //Changed by sankara on 23/11/12 append stock_to_dock_allow in porpar format
//retTabSepStrBuff.append(globalStockToDockAllow).append("\t");
retTabSepStrBuff.append( "<stock_to_dock_allow><![CDATA[" ).append(globalStockToDockAllow).append( "]]></stock_to_dock_allow>\r\n" );
} }
else else
{ {
//SINGLE LOT //SINGLE LOT
retTabSepStrBuff.append(singleLot).append("\t"); //Changed by sankara on 23/11/12 append single_lot in porpar format
//retTabSepStrBuff.append(singleLot).append("\t");
retTabSepStrBuff.append( "<single_lot><![CDATA[" ).append(singleLot).append( "]]></single_lot>\r\n" );
//MASTER_PACK_ALLOW //MASTER_PACK_ALLOW
retTabSepStrBuff.append(masterPackAllow).append("\t"); //Changed by sankara on 23/11/12 append master_pack_allow in porpar format
//retTabSepStrBuff.append(masterPackAllow).append("\t");
retTabSepStrBuff.append( "<master_pack_allow><![CDATA[" ).append(masterPackAllow).append( "]]></master_pack_allow>\r\n" );
//ACTIVE_PICK_ALLOW //ACTIVE_PICK_ALLOW
retTabSepStrBuff.append(activePickAllow).append("\t"); //Changed by sankara on 23/11/12 append active_pack_allow in porpar format
//retTabSepStrBuff.append(activePickAllow).append("\t");
retTabSepStrBuff.append( "<active_pick_allow><![CDATA[" ).append(activePickAllow).append( "]]></active_pick_allow>\r\n" );
//STOCK_TO_DOCK_ALLOW //STOCK_TO_DOCK_ALLOW
retTabSepStrBuff.append(stockToDockAllow).append("\t"); //Changed by sankara on 23/11/12 append stock_to_dock_allow in porpar format
//retTabSepStrBuff.append(stockToDockAllow).append("\t");
retTabSepStrBuff.append( "<stock_to_dock_allow><![CDATA[" ).append(stockToDockAllow).append( "]]></stock_to_dock_allow>\r\n" );
} }
//Changed by sumit on 18/09/12 getting value from header field in case data end //Changed by sumit on 18/09/12 getting value from header field in case data end
//Chnaged by sumit on 20/08/12 commented this . going to display below. start. //Chnaged by sumit on 20/08/12 commented this . going to display below. start.
//Changed by rohan on 19/07/12 to add transporter details.start //Changed by rohan on 19/07/12 to add transporter details.start
/*//Tran Code /*//Tran Code
retTabSepStrBuff.append(tranCod).append("\t"); retTabSepStrBuff.append(tranCod).append("\t");
//Tran descr //Tran descr
retTabSepStrBuff.append(tranName).append("\t"); retTabSepStrBuff.append(tranName).append("\t");
//LOCK_CODE_DOCK //LOCK_CODE_DOCK
retTabSepStrBuff.append(docLocation).append("\t"); retTabSepStrBuff.append(docLocation).append("\t");
*/ */
//Chnaged by sumit on 20/08/12 commented this . going to display below. end. //Chnaged by sumit on 20/08/12 commented this . going to display below. end.
//Changed by rohan on 19/07/12 to add transporter details.end //Changed by rohan on 19/07/12 to add transporter details.end
//QUANTITY //QUANTITY
retTabSepStrBuff.append(rs.getDouble(8)).append("\t"); //Changed by sankara on 23/11/12 append quantity in porpar format
//retTabSepStrBuff.append(rs.getDouble(8)).append("\t");
retTabSepStrBuff.append( "<quantity><![CDATA[" ).append(rs.getDouble(8)).append( "]]></quantity>\r\n" );
//Changed by sumit sarkar on 22/06/12 showing value of part quantity. //Changed by sumit sarkar on 22/06/12 showing value of part quantity.
//SHOWING VALUE OF PART QUANTITY //SHOWING VALUE OF PART QUANTITY
retTabSepStrBuff.append(partQtyValue).append("\t"); //Changed by sankara on 23/11/12 append part_qty in porpar format
//retTabSepStrBuff.append(partQtyValue).append("\t");
retTabSepStrBuff.append( "<part_qty><![CDATA[" ).append(partQtyValue).append( "]]></part_qty>\r\n" );
//PENDING_QUANTITY //PENDING_QUANTITY
retTabSepStrBuff.append(rs.getDouble(9)).append("\t"); //Changed by sankara on 23/11/12 append pending_quantity in porpar format
//retTabSepStrBuff.append(rs.getDouble(9)).append("\t");
retTabSepStrBuff.append( "<pending_quantity><![CDATA[" ).append(rs.getDouble(9)).append( "]]></pending_quantity>\r\n" );
//STOCK_QUANTITY //STOCK_QUANTITY
pendQty = rs.getDouble(9); pendQty = rs.getDouble(9);
//***** check itemhashmap wheather current item_code already exists //***** check itemhashmap wheather current item_code already exists
// if not add to itemhashmap and get the stock as follows and set in // if not add to itemhashmap and get the stock as follows and set in
// tabdelimited string else nothing is to be done just consider the stock as 0 // tabdelimited string else nothing is to be done just consider the stock as 0
balStockQtyTemp = balStockQty; // Added by chandni 01-june-2012 balStockQtyTemp = balStockQty; // Added by chandni 01-june-2012
if (bappend == true) if (bappend == true)
{ {
retTabSepStrBuff.append(balStockQty).append("\t"); //Changed by sankara on 23/11/12 append stock_quantity in porpar format
//retTabSepStrBuff.append(balStockQty).append("\t");
retTabSepStrBuff.append( "<stock_quantity><![CDATA[" ).append(balStockQty).append( "]]></stock_quantity>\r\n" );
} }
else else
{ {
//Changed by sankara on 25-06-2012 to set 0.0 instead of 0 //Changed by sankara on 25-06-2012 to set 0.0 instead of 0
//retTabSepStrBuff.append("0").append("\t"); //retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append("0.0").append("\t"); //Changed by sankara on 23/11/12 append stock_quantity 0.0 in porpar format
//retTabSepStrBuff.append("0.0").append("\t");
retTabSepStrBuff.append( "<stock_quantity><![CDATA[" ).append("0.0").append( "]]></stock_quantity>\r\n" );
} }
//Changed by sumit on 22/08/12 getting alloc flag start. //Changed by sumit on 22/08/12 getting alloc flag start.
...@@ -1042,28 +1098,37 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -1042,28 +1098,37 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
//if(DefaultQtyFlag.equals("Y")) //if(DefaultQtyFlag.equals("Y"))
if(DefaultQtyFlag.equals("Y") && !"M".equalsIgnoreCase(allocFlag)) if(DefaultQtyFlag.equals("Y") && !"M".equalsIgnoreCase(allocFlag))
{ {
retTabSepStrBuff.append(allocQty).append("\t"); //Changed by sankara on 23/11/12 append qty_alloc in porpar format
//retTabSepStrBuff.append(allocQty).append("\t");
retTabSepStrBuff.append( "<qty_alloc><![CDATA[" ).append(allocQty).append( "]]></qty_alloc>\r\n" );
} }
else else
{ {
//Changed by sankara on 25-06-2012 to set 0.0 instead of 0 //Changed by sankara on 25-06-2012 to set 0.0 instead of 0
//retTabSepStrBuff.append("0").append("\t"); //retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append("0.0").append("\t"); //Changed by sankara on 23/11/12 append qty_allocvalue 0.0 in porpar format
//retTabSepStrBuff.append("0.0").append("\t");
retTabSepStrBuff.append( "<qty_alloc><![CDATA[" ).append("0.0").append( "]]></qty_alloc>\r\n" );
} }
//Changed by sumit sarkar on 22/06/12 to display hold quantity //Changed by sumit sarkar on 22/06/12 to display hold quantity
// HOLD_QUANTITY // HOLD_QUANTITY
if (bappend == true) if (bappend == true)
{ {
retTabSepStrBuff.append(holdQty).append("\t"); //Changed by sankara on 23/11/12 append hold_qty in porpar format
//retTabSepStrBuff.append(holdQty).append("\t");
retTabSepStrBuff.append( "<hold_qty><![CDATA[" ).append(holdQty).append( "]]></hold_qty>\r\n" );
} }
else else
{ {
//Changed by sankara on 25-06-2012 to set 0.0 instead of 0 //Changed by sankara on 25-06-2012 to set 0.0 instead of 0
//retTabSepStrBuff.append("0").append("\t"); //retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append("0.0").append("\t"); //Changed by sankara on 23/11/12 append hold_qty value 0.0 porpar format
//retTabSepStrBuff.append("0.0").append("\t");
retTabSepStrBuff.append( "<hold_qty><![CDATA[" ).append("0.0").append( "]]></hold_qty>\r\n" );
} }
...@@ -1081,14 +1146,18 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -1081,14 +1146,18 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
System.out.println("balStk ::"+balStk); System.out.println("balStk ::"+balStk);
if(balStk >= 0) if(balStk >= 0)
{ {
retTabSepStrBuff.append(balStk).append("\t"); //Changed by sankara on 23/11/12 append bal_qty porpar format
//retTabSepStrBuff.append(balStk).append("\t");
retTabSepStrBuff.append( "<bal_qty><![CDATA[" ).append(balStk).append( "]]></bal_qty>\r\n" );
} }
else else
{ {
//Changed by sankara on 25-06-2012 to set 0.0 instead of 0 //Changed by sankara on 25-06-2012 to set 0.0 instead of 0
//retTabSepStrBuff.append("0").append("\t"); //retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append("0.0").append("\t"); //Changed by sankara on 23/11/12 append bal_qty value 0.0 porpar format
//retTabSepStrBuff.append("0.0").append("\t");
retTabSepStrBuff.append( "<bal_qty><![CDATA[" ).append("0.0").append( "]]></bal_qty>\r\n" );
} }
// CHANDNI END 01-june-2012 // CHANDNI END 01-june-2012
...@@ -1134,11 +1203,15 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -1134,11 +1203,15 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
rs2 = pstmt1.executeQuery(); rs2 = pstmt1.executeQuery();
if( rs2.next()) if( rs2.next())
{ {
retTabSepStrBuff.append(rs2.getString("QTY_ALLOC")).append("\t"); //Changed by sankara on 23/11/12 append qty_alloc porpar format
//retTabSepStrBuff.append(rs2.getString("QTY_ALLOC")).append("\t");
retTabSepStrBuff.append( "<qty_alloc><![CDATA[" ).append(rs2.getString("QTY_ALLOC")).append( "]]></qty_alloc>\r\n" );
} }
else else
{ {
retTabSepStrBuff.append("0.0").append("\t"); //Changed by sankara on 23/11/12 append qty_alloc value 0.0 porpar format
//retTabSepStrBuff.append("0.0").append("\t");
retTabSepStrBuff.append( "<qty_alloc><![CDATA[" ).append("0.0").append( "]]></qty_alloc>\r\n" );
} }
if(pstmt1 != null) if(pstmt1 != null)
{ {
...@@ -1155,40 +1228,61 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -1155,40 +1228,61 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
{ {
allocFlag = ""; allocFlag = "";
} }
retTabSepStrBuff.append(allocFlag).append("\t"); //Changed by sankara on 23/11/12 append alloc_flag in porpar format
//Changed by sumit sarkar on 22/06/12 setting alloc_flag END. //retTabSepStrBuff.append(allocFlag).append("\t");
retTabSepStrBuff.append( "<alloc_flag><![CDATA[" ).append(allocFlag).append( "]]></alloc_flag>\r\n" );
//Chnaged by sumit on 20/08/12 above commented code display here start. //Changed by sumit sarkar on 22/06/12 setting alloc_flag END.
//Tran Code
retTabSepStrBuff.append(tranCod).append("\t"); //Chnaged by sumit on 20/08/12 above commented code display here start.
//Tran Code
//Tran descr //Changed by sankara on 23/11/12 append tran_code in porpar format
retTabSepStrBuff.append(tranName).append("\t"); //retTabSepStrBuff.append(tranCod).append("\t");
retTabSepStrBuff.append( "<tran_code><![CDATA[" ).append(tranCod).append( "]]></tran_code>\r\n" );
//LOCK_CODE_DOCK
retTabSepStrBuff.append(docLocation).append("\t"); //Tran descr
//Chnaged by sumit on 20/08/12 above commented code display here end. //Changed by sankara on 23/11/12 append tran_descr in porpar format
//retTabSepStrBuff.append(tranName).append("\t");
//PACK_INSTR retTabSepStrBuff.append( "<tran_name><![CDATA[" ).append(tranName).append( "]]></tran_name>\r\n" );
//LOCK_CODE_DOCK
//Changed by sankara on 23/11/12 append lock_code_dock in porpar format
//retTabSepStrBuff.append(docLocation).append("\t");
retTabSepStrBuff.append( "<lock_code__dock><![CDATA[" ).append(docLocation).append( "]]></lock_code__dock>\r\n" );
//Chnaged by sumit on 20/08/12 above commented code display here end.
//PACK_INSTR
packInstr = rs.getString(11); packInstr = rs.getString(11);
if (packInstr == null) if (packInstr == null)
{ {
packInstr = ""; packInstr = "";
} }
retTabSepStrBuff.append(packInstr).append("\t"); //Changed by sankara on 23/11/12 append pack_instr in porpar format
//retTabSepStrBuff.append(packInstr).append("\t");
retTabSepStrBuff.append( "<pack_instr><![CDATA[" ).append(packInstr).append( "]]></pack_instr>\r\n" );
//SITE_CODE //SITE_CODE
retTabSepStrBuff.append(rs.getString(12)).append("\t"); //Changed by sankara on 23/11/12 append site_code in porpar format
//retTabSepStrBuff.append(rs.getString(12)).append("\t");
retTabSepStrBuff.append( "<site_code><![CDATA[" ).append(rs.getString(12)).append( "]]></site_code>\r\n" );
//EXP_LEV //EXP_LEV
retTabSepStrBuff.append(rs.getString(13)).append("\t"); //Changed by sankara on 23/11/12 append exp_lev in porpar format
//retTabSepStrBuff.append(rs.getString(13)).append("\t");
retTabSepStrBuff.append( "<exp_lev><![CDATA[" ).append(rs.getString(13)).append( "]]></exp_lev>\r\n" );
//Changed by sumit sarkar on 22/06/12 display part_qty_real start. //Changed by sumit sarkar on 22/06/12 display part_qty_real start.
//PARY_QTY_REAL //PARY_QTY_REAL
retTabSepStrBuff.append(partQty).append("\t"); //Changed by sankara on 23/11/12 append part_qty_real in porpar format
//retTabSepStrBuff.append(partQty).append("\t");
retTabSepStrBuff.append( "<last_col><![CDATA[" ).append("").append( "]]></last_col>\r\n" );
retTabSepStrBuff.append( "<part_qty_real><![CDATA[" ).append(partQty).append( "]]></part_qty_real>\r\n" );
//Changed by sumit sarkar on 22/06/12 display part_qty_real end. //Changed by sumit sarkar on 22/06/12 display part_qty_real end.
retTabSepStrBuff.append(" ").append("\n"); //Changed by sankara on 23/11/12 append last_col in porpar format
//retTabSepStrBuff.append(" ").append("\n");
retTabSepStrBuff.append( "</Detail2>\r\n" );
} }
//retTabSepStrBuff.append( "</Root>\r\n" );
}while(rs.next()); }while(rs.next());
//Changed by sankara on 23/11/12 closed header and root
retTabSepStrBuff.append( "</Header0>\r\n</group0>\r\n</DocumentRoot>\r\n" );
resultString = retTabSepStrBuff.toString(); resultString = retTabSepStrBuff.toString();
System.out.println("ResultString....." + resultString); System.out.println("ResultString....." + resultString);
pstmt.clearParameters(); pstmt.clearParameters();
...@@ -1967,6 +2061,14 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -1967,6 +2061,14 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
//Changed by sumit on 25/08/12 .start //Changed by sumit on 25/08/12 .start
if (errString == null || errString.trim().length() == 0) if (errString == null || errString.trim().length() == 0)
{ {
//Changed by sumit on 24/11/12 calling report label printing start.
System.out.println(" waveMode ["+waveMode+"] printLabel ["+printLabel+"] printer ["+printer+"]");
if( waveId != null && waveId.trim().length() > 0 && "P".equalsIgnoreCase(waveMode) && "Y".equalsIgnoreCase(printLabel))
{
generatedLabelPrint(waveId,printer, conn);
}
//Changed by sumit on 24/11/12 calling report label printing end.
if(waveId == null || waveId.trim().length() == 0) if(waveId == null || waveId.trim().length() == 0)
{ {
waveId = "1"; waveId = "1";
...@@ -19774,5 +19876,89 @@ public int updateReplOrdDet(String replType,String itemCode,String siteCode,Stri ...@@ -19774,5 +19876,89 @@ public int updateReplOrdDet(String replType,String itemCode,String siteCode,Stri
return updatedRecordCount; return updatedRecordCount;
} }
//Chnged by Rohan on 09/03/12 to get Volume & weight form pack code.start //Chnged by Rohan on 09/03/12 to get Volume & weight form pack code.start
//Chnged by sumit on 24/11/12 to get label print start
private String generatedLabelPrint(String waveId, String printer, Connection conn) throws ITMException
{
String errString ="";
String printMode = "";
String outputFilename = "";
TreeMap argMap = null;
String isReplenishment = "";
String saleOrder = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
//Changed by sumit 06/10/12 for getting sale order value start.
sql = " SELECT REPL_ORDER FROM REPL_ORD_HDR WHERE WAVE_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, waveId);
rs = pstmt.executeQuery();
if( rs.next())
{
isReplenishment = "Y";
}
else
{
isReplenishment = "N";
}
pstmt.close();pstmt = null;
rs.close(); rs = null;
String reportObjName = discommon.getDisparams("999999","WAVE_LABEL_OBJ_NAME",conn);
System.out.println("Printer *->["+printer.trim()+"] report_obj_name ["+reportObjName+"] wave id ->["+waveId+"]");
ibase.webitm.reports.utility.JasperReportGenerator jrGenerator = new ibase.webitm.reports.utility.JasperReportGenerator();
String xsdString ="<Arguments>" +
"<Argument id=\"WAVE_ID\" name=\"WAVE_ID\">" +
"<argType>java.lang.String</argType>" +
"<value>"+waveId+"</value>" +
"</Argument>" +
"<Argument id=\"PRINTVAL\" name=\"PRINTVAL\">" +
"<argType>java.lang.String</argType>" +
//"<value>"+ptcnList.get(i)+"</value>" +
"<value>"+isReplenishment+"</value>" +
"</Argument>" +
"<Argument id=\"x_path\" name=\"x_path\">" +
"<argType>java.lang.String</argType>" +
"<value>/DocumentRoot/pick_label</value>" +
"</Argument>" +
"<Argument id=\"design_source\" name=\"design_source\">" +
"<argType>java.lang.String</argType>" +
"<value>pick_label.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, chgUser, printer.trim(), 1, conn);
System.out.println(" PRINTING task completed--------**------->");
//}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return errString;
}
//Chnged by sumit on 24/11/12 to get label print end.
} }
\ No newline at end of file
...@@ -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 )
......
...@@ -3,7 +3,7 @@ release 9; ...@@ -3,7 +3,7 @@ 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=342 color="536870912" ) detail(height=392 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=site_code dbname="site_code" ) table(column=(type=char(10) updatewhereclause=no name=site_code dbname="site_code" )
column=(type=char(1) updatewhereclause=no name=default_qty_flag dbname="name_1" values="Yes Y/No N/" ) column=(type=char(1) updatewhereclause=no name=default_qty_flag dbname="name_1" values="Yes Y/No N/" )
column=(type=char(10) updatewhereclause=no name=item_ser__from dbname="item_ser__from" ) column=(type=char(10) updatewhereclause=no name=item_ser__from dbname="item_ser__from" )
...@@ -23,20 +23,17 @@ table(column=(type=char(10) updatewhereclause=no name=site_code dbname="site_cod ...@@ -23,20 +23,17 @@ table(column=(type=char(10) updatewhereclause=no name=site_code dbname="site_cod
column=(type=char(1) updatewhereclause=no name=master_pack_allow dbname="master_pack_allow" values="YES Y/NO N/" ) column=(type=char(1) updatewhereclause=no name=master_pack_allow dbname="master_pack_allow" values="YES Y/NO N/" )
column=(type=char(1) updatewhereclause=no name=active_pick_allow dbname="active_pick_allow" values="YES Y/NO N/" ) column=(type=char(1) updatewhereclause=no name=active_pick_allow dbname="active_pick_allow" values="YES Y/NO N/" )
column=(type=char(1) updatewhereclause=no name=stock_to_dock_allow dbname="stock_to_dock_allow" values="YES Y/NO N/" ) column=(type=char(1) updatewhereclause=no name=stock_to_dock_allow dbname="stock_to_dock_allow" values="YES Y/NO N/" )
column=(type=char(200) updatewhereclause=no name=printer_name dbname="printer_name" )
column=(type=char(1) updatewhereclause=no name=print_label dbname="print_label" initial="N" values="YES Y/NO N/" )
) )
groupbox(band=detail text="Basic"border="5" color="33554432" x="20" y="6" height="283" width="525" name=gb_1 visible="1" font.face="Times New Roman" font.height="-12" font.weight="700" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) groupbox(band=detail text="Basic"border="5" color="33554432" x="20" y="6" height="337" width="525" name=gb_1 visible="1" font.face="Times New Roman" font.height="-12" font.weight="700" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="75" y="30" height="16" width="94" html.valueishtml="0" name=site_code_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="Site Code:" border="0" color="33554432" x="75" y="30" height="16" width="94" html.valueishtml="0" name=site_code_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="33554432" x="174" y="30" height="16" width="95" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=0 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="33554432" x="174" y="30" height="16" width="95" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=0 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" )
text(band=detail alignment="1" text="Item Series From:" border="0" color="33554432" x="71" y="55" height="16" width="98" html.valueishtml="0" name=item_ser__from_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="Item Series From:" border="0" color="33554432" x="71" y="55" height="16" width="98" html.valueishtml="0" name=item_ser__from_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=3 alignment="0" tabsequence=20 border="5" color="33554432" x="174" y="55" height="16" width="95" format="[general]" html.valueishtml="0" name=item_ser__from visible="1" edit.limit=0 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=3 alignment="0" tabsequence=20 border="5" color="33554432" x="174" y="55" height="16" width="95" format="[general]" html.valueishtml="0" name=item_ser__from visible="1" edit.limit=0 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" )
text(band=detail alignment="1" text="Item Series To:" border="0" color="33554432" x="352" y="55" height="16" width="84" html.valueishtml="0" name=item_ser__to_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="Item Series To:" border="0" color="33554432" x="352" y="55" height="16" width="84" html.valueishtml="0" name=item_ser__to_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=4 alignment="0" tabsequence=30 border="5" color="33554432" x="441" y="55" height="16" width="95" format="[general]" html.valueishtml="0" name=item_ser__to visible="1" edit.limit=0 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=4 alignment="0" tabsequence=30 border="5" color="33554432" x="441" y="55" height="16" width="95" format="[general]" html.valueishtml="0" name=item_ser__to visible="1" edit.limit=0 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" )
text(band=detail alignment="1" text="Active Pack Allow:" border="0" color="33554432" x="65" y="255" height="16" width="104" html.valueishtml="0" name=active_pick_allow_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="553648127" )
column(band=detail id=18 alignment="0" tabsequence=180 border="5" color="33554432" x="174" y="255" height="16" width="95" format="[general]" html.valueishtml="0" name=active_pick_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" )
text(band=detail alignment="1" text="Stock To Dock Allow:" border="0" color="33554432" x="317" y="255" height="16" width="120" html.valueishtml="0" name=stock_to_dock_allow_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="553648127" ) text(band=detail alignment="1" text="Stock To Dock Allow:" border="0" color="33554432" x="317" y="255" height="16" width="120" html.valueishtml="0" name=stock_to_dock_allow_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="553648127" )
column(band=detail id=19 alignment="0" tabsequence=190 border="5" color="33554432" x="441" y="255" height="16" width="95" format="[general]" html.valueishtml="0" name=stock_to_dock_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" )
text(band=detail alignment="1" text="Single Lot:" border="0" color="33554432" x="65" y="230" height="16" width="104" html.valueishtml="0" name=single_lot_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="553648127" )
column(band=detail id=16 alignment="0" tabsequence=160 border="5" color="33554432" x="174" y="230" height="16" width="95" format="[general]" html.valueishtml="0" name=single_lot visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" )
text(band=detail alignment="1" text="Master Pack Allow:" border="0" color="33554432" x="317" y="230" height="16" width="120" html.valueishtml="0" name=master_pack_allow_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="553648127" ) text(band=detail alignment="1" text="Master Pack Allow:" border="0" color="33554432" x="317" y="230" height="16" width="120" html.valueishtml="0" name=master_pack_allow_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="553648127" )
column(band=detail id=17 alignment="0" tabsequence=170 border="5" color="33554432" x="441" y="230" height="16" width="95" format="[general]" html.valueishtml="0" name=master_pack_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" ) column(band=detail id=17 alignment="0" tabsequence=170 border="5" color="33554432" x="441" y="230" height="16" width="95" format="[general]" html.valueishtml="0" name=master_pack_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" )
text(band=detail alignment="1" text="Default Quantity Automatic:" border="0" color="33554432" x="49" y="205" height="16" width="157" html.valueishtml="0" name=default_qty_flag_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="553648127" ) text(band=detail alignment="1" text="Default Quantity Automatic:" border="0" color="33554432" x="49" y="205" height="16" width="157" html.valueishtml="0" name=default_qty_flag_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="553648127" )
...@@ -63,6 +60,15 @@ text(band=detail alignment="1" text="Item Code From:" border="0" color="33554432 ...@@ -63,6 +60,15 @@ text(band=detail alignment="1" text="Item Code From:" border="0" color="33554432
column(band=detail id=5 alignment="0" tabsequence=40 border="5" color="33554432" x="174" y="80" height="18" width="95" format="[general]" html.valueishtml="0" name=item_code__from 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=5 alignment="0" tabsequence=40 border="5" color="33554432" x="174" y="80" height="18" width="95" format="[general]" html.valueishtml="0" name=item_code__from 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Item Code To:" border="0" color="33554432" x="352" y="80" height="16" width="84" html.valueishtml="0" name=item_code__to_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="Item Code To:" border="0" color="33554432" x="352" y="80" height="16" width="84" html.valueishtml="0" name=item_code__to_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=6 alignment="0" tabsequence=50 border="5" color="33554432" x="441" y="80" height="18" width="95" format="[general]" html.valueishtml="0" name=item_code__to 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=6 alignment="0" tabsequence=50 border="5" color="33554432" x="441" y="80" height="18" width="95" format="[general]" html.valueishtml="0" name=item_code__to 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Single Lot:" border="0" color="33554432" x="65" y="230" height="16" width="104" html.valueishtml="0" name=single_lot_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="553648127" )
column(band=detail id=19 alignment="0" tabsequence=190 border="5" color="33554432" x="441" y="255" height="16" width="95" format="[general]" html.valueishtml="0" name=stock_to_dock_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" )
column(band=detail id=16 alignment="0" tabsequence=160 border="5" color="33554432" x="174" y="230" height="16" width="95" format="[general]" html.valueishtml="0" name=single_lot visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" )
column(band=detail id=21 alignment="0" tabsequence=210 border="5" color="33554432" x="174" y="280" height="16" width="95" html.valueishtml="0" name=print_label visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 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="1073741824" )
text(band=detail alignment="1" text="Active Pack Allow:" border="0" color="33554432" x="65" y="255" height="16" width="104" html.valueishtml="0" name=active_pick_allow_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="553648127" )
column(band=detail id=18 alignment="0" tabsequence=180 border="5" color="33554432" x="174" y="255" height="16" width="95" format="[general]" html.valueishtml="0" name=active_pick_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 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="1073741824" )
column(band=detail id=20 alignment="0" tabsequence=200 border="5" color="33554432" x="174" y="305" height="16" width="362" html.valueishtml="0" name=printer_name 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="1073741824" )
text(band=detail alignment="1" text="Printer For Label:" border="0" color="33554432" x="65" y="305" height="16" width="104" 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="553648127" )
text(band=detail alignment="1" text="Print Label:" border="0" color="33554432" x="65" y="280" height="16" width="104" html.valueishtml="0" name=print_label_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="553648127" )
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 template=(comment="" encoding="UTF-8" name="d_wavegen11" xml="<?xml version=~"1.0~" encoding=~"UTF-8~" standalone=~"no~"?><d_wavegen><d_wavegen_row __pbband=~"detail~"><site_code/><default_qty_flag>default_qty_flag</default_qty_flag><item_ser__from>item_ser__from</item_ser__from><item_ser__to>item_ser__to</item_ser__to><item_code__from>item_code__from</item_code__from><item_code__to>item_code__to</item_code__to><cust_code__dlv__from>cust_code__dlv__from</cust_code__dlv__from><cust_code__dlv__to>cust_code__dlv__to</cust_code__dlv__to><cust_code__from>cust_code__from</cust_code__from><cust_code__to>cust_code__to</cust_code__to><sale_order__from>sale_order__from</sale_order__from><sale_order__to>sale_order__to</sale_order__to><due_date__from>due_date__from</due_date__from><due_date__to>due_date__to</due_date__to></d_wavegen_row></d_wavegen>")) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="UTF-8" name="d_wavegen11" xml="<?xml version=~"1.0~" encoding=~"UTF-8~" standalone=~"no~"?><d_wavegen><d_wavegen_row __pbband=~"detail~"><site_code/><default_qty_flag>default_qty_flag</default_qty_flag><item_ser__from>item_ser__from</item_ser__from><item_ser__to>item_ser__to</item_ser__to><item_code__from>item_code__from</item_code__from><item_code__to>item_code__to</item_code__to><cust_code__dlv__from>cust_code__dlv__from</cust_code__dlv__from><cust_code__dlv__to>cust_code__dlv__to</cust_code__dlv__to><cust_code__from>cust_code__from</cust_code__from><cust_code__to>cust_code__to</cust_code__to><sale_order__from>sale_order__from</sale_order__from><sale_order__to>sale_order__to</sale_order__to><due_date__from>due_date__from</due_date__from><due_date__to>due_date__to</due_date__to></d_wavegen_row></d_wavegen>"))
......
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