Commit c4242c39 authored by pjain's avatar pjain

changhed by sankara on 21/08/14 fo wms source metadata srd and sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@34225 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b819bc23
......@@ -114,6 +114,9 @@ public class AsnIC extends ValidatorEJB implements AsnICRemote,AsnICLocal
int count = 0;
//Changed by Rohan on 08-07-13 for define variables.end
java.util.Date currDate = null;
//changed by sankara on 07/06/14 for period stat
java.util.Date tranDate = null;
String siteCode = "",prdCode = "";
String dbDateFormat = null;
String applDateFormat = null;
DateFormat dateFormat = null;
......@@ -128,9 +131,7 @@ public class AsnIC extends ValidatorEJB implements AsnICRemote,AsnICLocal
ConnDriver connDriver = null;
//changed by sankara on 18/11/13 for black_list supp code
String blackList = "";
//changed by sankara on 07/06/14 for period stat
java.util.Date tranDate = null;
String siteCode = "",prdCode = "";
try
{
......@@ -532,6 +533,8 @@ public class AsnIC extends ValidatorEJB implements AsnICRemote,AsnICLocal
break;
case 2 :
{
//changed by dhanraj 20/08/14 for date calculation
String flag="F";
parentList = dom.getElementsByTagName( "Detail" + currentFormNo );
childList = parentList.item( 0 ).getChildNodes();
noOfChilds = childList.getLength();
......@@ -727,6 +730,77 @@ public class AsnIC extends ValidatorEJB implements AsnICRemote,AsnICLocal
// end 26/10/11 manoharan all the errors should be returned so that warnings can be processed
}
}
//changed by dhanraj on 20/08/14 for mfg site code and mfg code start.
else if ( "site_code__mfg".equalsIgnoreCase( childNodeName ) )
{
System.out.println("call Dhanraj site_code__mfg");
itemCode = genericUtility.getColumnValue( "item_code", dom );
sql = "SELECT supp_sour FROM siteitem WHERE ITEM_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if( rs.next() )
{
if("M".equalsIgnoreCase(rs.getString("supp_sour")))
{
if ( childNode.getFirstChild() == null ){
//blank error
errList.add( "VTNULLPMFG" );
errFields.add( childNodeName.toLowerCase() );
}
}
}else{
sql = "SELECT supp_sour FROM ITEM WHERE ITEM_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if( rs.next() )
{
if("M".equalsIgnoreCase(rs.getString("supp_sour")))
{
if ( childNode.getFirstChild() == null ){
//blank error
errList.add( "VTNULLPMFG" );
errFields.add( childNodeName.toLowerCase());
}
}
}
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
}
else if ( "mfg_date".equalsIgnoreCase( childNodeName ) )
{
if ( childNode.getFirstChild() == null )
{
//Null Allowed.
}else{
String mfgDate = genericUtility.getColumnValue( "mfg_date", dom );
flag=DateValidation(mfgDate);
//For check manfr date greator than sys date.
if(flag.equals("T")){
System.out.println("mfg Date Less or equal than sys date");
//for exp date greator than mfg date.
String expDate = genericUtility.getColumnValue( "exp_date", dom );
mfgDate = genericUtility.getColumnValue( "mfg_date", dom );
flag=DateValidation(expDate,mfgDate);
if(flag.equals("T")){//Then check exp date
System.out.println("Exp Date Greater than mfg date");
}else{
errList.add( "VTMFGLXPDT" );//for exp date greater than mfg date.
errFields.add( childNodeName.toLowerCase() );
}
}else{
errList.add( "VTMFSYSPDT" );//mfg date less or = to sys date
errFields.add( childNodeName.toLowerCase() );
}
}
}
//changed by dhanraj on 20/08/14 for mfg site code and mfg code end.
//Changed by Rohan on 09-07-13 for adding validation if purchase order and line no exist in porddet.start
else if ( "line_no__ord".equalsIgnoreCase( childNodeName ) )
{
......@@ -849,6 +923,53 @@ public class AsnIC extends ValidatorEJB implements AsnICRemote,AsnICLocal
}
return errString;
}
//changed by Dhanraj on 20/08/14 for date validation start.
private String DateValidation(String strDate) throws ParseException{
GenericUtility genericUtility = GenericUtility.getInstance();
try {
String applDateFormat = genericUtility.getApplDateFormat();
SimpleDateFormat formatter5=new SimpleDateFormat(applDateFormat);
//SimpleDateFormat formatter5=new SimpleDateFormat("dd/MM/yy");
java.util.Date mfgDate1 = (java.util.Date)formatter5.parse(strDate);
java.sql.Date dd =new java.sql.Date(System.currentTimeMillis());
String orcaleDate = formatter5.format(dd);
java.util.Date sysDate = (java.util.Date)formatter5.parse(orcaleDate);
if(sysDate.getTime()>=mfgDate1.getTime())
return "T";
else
return "F";
}
catch (Exception e) {
e.printStackTrace();
}
return "F";
}
private String DateValidation(String expDate,String mnfrDate) throws ParseException
{
GenericUtility genericUtility = GenericUtility.getInstance();
try {
String applDateFormat = genericUtility.getApplDateFormat();
SimpleDateFormat formatter=new SimpleDateFormat(applDateFormat);
//SimpleDateFormat formatter=new SimpleDateFormat("dd/MM/yy");
java.util.Date expDate1 = (java.util.Date)formatter.parse(expDate);
java.util.Date manfrDate1 = (java.util.Date)formatter.parse(mnfrDate);
if(expDate1.getTime()>manfrDate1.getTime())
return "T";
else
return "F";
}
catch (Exception e) {
e.printStackTrace();
}
return "F";
}
//changed by Dhanraj on 20/08/14 for date validation end.
private String errorType( Connection conn , String errorCode )
{
String msgType = "";
......@@ -1159,6 +1280,12 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
{
valueXmlString.append( "<line_no__ord protect ='0'><![CDATA[" ).append("").append( "]]></line_no__ord>\r\n" );
}
// Changed by Dhanraj 20/08/14 add default value start.
if( currentColumn.trim().equalsIgnoreCase( "itm_default" )){
valueXmlString.append( "<shelf_life__type><![CDATA[" ).append("E").append( "]]></shelf_life__type>\r\n" );
}
// Changed by Dhanraj 20/08/14 add default value end.
}
//Chnaged by Rohan on 07-09-13 for make line no ord protected if purchase order present in 1st form.end
else if( currentColumn.trim().equalsIgnoreCase( "item_code" ) ||currentColumn.trim().equalsIgnoreCase( "quantity" ) || currentColumn.trim().equalsIgnoreCase( "lot_no" ))
......
......@@ -396,7 +396,8 @@ public class ExpStkTransferPos extends ValidatorEJB implements ExpStkTransferPos
{
HashMap hashMap = new HashMap();
String lineNo = "", tranId = "", tranSer = "XRFX", line = "", updateStatus = "";
//changed by sankara on 21/08/14 changed refser XRFX to XFRX
String lineNo = "", tranId = "", tranSer = "XFRX", line = "", updateStatus = "";
String siteCode = "", itemCode = "", quantity = "", locCode = "", lotNo = "", lotSl = "";
DistStkUpdLocal distStkUpd = null;
NodeList hdrDom = null;
......
......@@ -188,6 +188,8 @@ public class ExpStockTransferIC extends ValidatorEJB implements ExpStockTransfer
//Changed by sumit on 17/09/12 commented not required now END
//Changed by Rohan on 20/06/12.end
GenericUtility genericUtility = GenericUtility.getInstance();
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
ibase.webitm.utility.wms.CommonWmsUtil commonWmsUtility =ibase.webitm.utility.wms.CommonWmsUtil.getInstance();
DistCommon distCommon = new DistCommon();
int currentFormNo = 0, cnt = 0;
......@@ -593,7 +595,14 @@ public class ExpStockTransferIC extends ValidatorEJB implements ExpStockTransfer
}
else
{
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
if(!commonWmsUtility.isValFacLocation(locCodeCurr, siteCode, conn))
{
errList.add( "VMFACI2" ); // 'Diffrent Loc Code from location and site' (set same error Code @base)
errFields.add( childNodeName.toLowerCase() );
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
//Changed By Pragyan as per AShish 27-sep-13 to allow all location to transfer
/*sql = "SELECT A.LOC_CODE AS LOC_CODE FROM LOCATION A, INVSTAT B "
+ " WHERE A.INV_STAT = B.INV_STAT AND B.AVAILABLE = 'Y' "
......
......@@ -10,7 +10,7 @@ import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.wms.CommonWmsUtil;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
......@@ -129,7 +129,8 @@ public class PalletNoIC extends ValidatorEJB implements PalletNoICLocal, PalletN
double quantity = 0.0;
GenericUtility genericUtility = GenericUtility.getInstance();
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
ibase.webitm.utility.wms.CommonWmsUtil commonWmsUtility =ibase.webitm.utility.wms.CommonWmsUtil.getInstance();
Connection conn = null;
PreparedStatement pstmt = null;
PreparedStatement pstmtLoc = null;
......@@ -439,6 +440,15 @@ public class PalletNoIC extends ValidatorEJB implements PalletNoICLocal, PalletN
}
pstmtLoc.clearParameters();
rs.close(); rs = null;
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
if(!commonWmsUtility.isValFacLocation(locCodeTo, siteCode, conn))
{
errList.add( "VMFACI2" ); // 'Diffrent Loc Code from location and site' (set same error Code @base)
errFields.add( childNodeName.toLowerCase() );
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
pickType = checkNull(genericUtility.getColumnValue("pick_type", allFormDataDom, "2" ));
String varName = "";
......
......@@ -159,7 +159,8 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
double shipperSize = 0.0; //changed by sumit on 13/03/13
GenericUtility genericUtility = GenericUtility.getInstance();
DistCommon distCommon = new DistCommon();
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
ibase.webitm.utility.wms.CommonWmsUtil commonWmsUtility =ibase.webitm.utility.wms.CommonWmsUtil.getInstance();
Connection conn = null;
PreparedStatement pstmt = null,pstmt1 = null;
PreparedStatement pstmtPickLotNo = null;
......@@ -1277,6 +1278,15 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
}
pstmtLoc.clearParameters();
rs.close(); rs = null;
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
if(!commonWmsUtility.isValFacLocation(locCodeTo, siteCode, conn))
{
errList.add( "VMFACI2" ); // 'Diffrent Loc Code from location and site' (set same error Code @base)
errFields.add( childNodeName.toLowerCase() );
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
pickType = checkNull(genericUtility.getColumnValue("pick_type", allFormDataDom, "2" ));
String varName = "";
......
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* PURPOSE : Local Interface for PorcpLocal.java EJB
* AUTHOR : BALU
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.xml.parsers.*;
//The local interface declares the functions to be implemented for performing validation and itemchange
@javax.ejb.Local
public interface PoRcpRmPmICLocal extends ValidatorLocal
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlCurrFrmString, String xmlHdrFrmString, String xmlAllFrmString, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
/**
* PURPOSE : Local Interface for PorcpRemote.java EJB
* AUTHOR : BALU
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.xml.parsers.*;
//The remote interface declares the functions to be implemented for performing validation and itemchange
@javax.ejb.Remote
public interface PoRcpRmPmICRemote extends ValidatorRemote
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document currDom, Document HdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlCurrFrmString, String xmlHdrFrmString, String xmlAllfrmString, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
This diff is collapsed.
/**
Title : Local interface for PoRcpPos component
Date : 25/11/11
Author: Gulzar Ahmad
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import org.w3c.dom.*;
@javax.ejb.Local
public interface PoRcpRmPmPosLocal
{
//public String postSave()throws RemoteException,ITMException;
//public String postSave( String domString,String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
public String postSaveForm(String arg1, String arg2, String objContext, String editFlag, String xtraParam) throws RemoteException,ITMException;
}
\ No newline at end of file
/**
Title : Remote interface for PoRcpPos component
Date : 25/11/11
Author: Gulzar Ahmad
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import org.w3c.dom.*;
@javax.ejb.Remote
public interface PoRcpRmPmPosRemote
{
//public String postSave()throws RemoteException,ITMException;
//public String postSave( String domString,String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
public String postSaveForm(String arg1, String arg2, String objContext, String editFlag, String xtraParam) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
import java.rmi.RemoteException;
import java.sql.*;
import org.w3c.dom.*;
import javax.ejb.*;
@javax.ejb.Stateless
public class PoRcpRmPmPrs extends ValidatorEJB //implements PoRcpPrsLocal, PoRcpPrsRemote
{
public String preSave() throws RemoteException,ITMException
{
return "";
}
public String preSave(String xmlString, String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
System.out.println("PoRcpPrs EJB called");
Document dom = null;
try
{
System.out.println("xmlString in PoRcpPrs : preSaveRec \n"+xmlString);
if (xmlString != null && xmlString.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString);
executepreSave( dom, editFlag, xtraParams, conn );
}
}
catch(Exception e)
{
System.out.println("Exception :PoRcpPrs :" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
private String executepreSave( Document dom, String editFlag, String xtraParams, Connection conn ) throws RemoteException, ITMException
{
System.out.println("Call WFVAlDATA for PRS RMPM porder");
String sql = "";
String purcOrder = "";
String tranId = "";
int deleteCount = 0;
int cnt = 0;
ResultSet rs = null;
PreparedStatement pstmt = null;
try
{
conn.setAutoCommit(false);
GenericUtility genericUtility = GenericUtility.getInstance();
purcOrder = genericUtility.getColumnValue( "purc_order", dom, "2" );
if( purcOrder != null && purcOrder.trim().length() > 0 )
{
sql = "SELECT TRAN_ID FROM PORCP WHERE PURC_ORDER = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, purcOrder);
rs = pstmt.executeQuery();
if(rs.next())
{
tranId = rs.getString("TRAN_ID");
}
System.out.println("Call WFVAlDATA for PRS RMPM porder TRAN ID "+tranId);
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if( tranId != null && tranId.trim().length() > 0 )
{
sql = "DELETE FROM PORCPDET WHERE TRAN_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
deleteCount = pstmt.executeUpdate();
if( deleteCount > 0 )
{
System.out.println( "Row with Tran_ID " + tranId + " deleted from PORCPDET table" );
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
sql = "DELETE FROM PORCP WHERE TRAN_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
deleteCount = pstmt.executeUpdate();
if( deleteCount > 0 )
{
System.out.println( "Row with Tran_ID " + tranId + " deleted from PORCP table" );
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
}
}
catch (SQLException sqe)
{
System.out.println("The SQLException occurs in PorcpPrs :"+sqe);
sqe.printStackTrace();
throw new ITMException(sqe);
}
catch(Exception e)
{
System.out.println("The Exception occurs in PorcpPrs :"+e);
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
System.err.println("Exception :PorcpPrs :\n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
}
return "";
}
}
/**
* PURPOSE : Local Interface for PorcpPrsLocal.java EJB
* Author : Balu
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.sql.*;
import java.rmi.RemoteException;
// The local interface declares all the utility functions to be used in your EJB component
@javax.ejb.Local
public interface PoRcpRmPmPrsLocal extends ValidatorLocal
{
// Declare the public functions over here, to be used in your EJB component
public String preSave()throws RemoteException,ITMException;
public String preSave(String xmlString, String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
/**
* PURPOSE : Remote Interface for PorcpPrsRemote.java EJB
* Author : Balu
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.sql.*;
import java.rmi.RemoteException;
// The remote interface declares all the utility functions to be used in your EJB component
@javax.ejb.Remote
public interface PoRcpRmPmPrsRemote extends ValidatorRemote//, EJBObject
{
// Declare the public functions over here, to be used in your EJB component
public String preSave()throws RemoteException,ITMException;
public String preSave(String xmlString, String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
......@@ -199,7 +199,9 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
//changed by sankara on 12/04/14 validation for compared alloc_qty from srodalloc
double stockalloocqty = 0.0;
double sordallocqty = 0.0;
double activeReplQty = 0.0;
double activeReplQty = 0.0;
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
ibase.webitm.utility.wms.CommonWmsUtil commonWmsUtility =ibase.webitm.utility.wms.CommonWmsUtil.getInstance();
try
{
......@@ -1190,6 +1192,15 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
if(!commonWmsUtility.isValFacLocation(locCodeTo, siteCode, conn))
{
errList.add( "VMFACI2" ); // 'Diffrent Loc Code from location and site' (set same error Code @base)
errFields.add( childNodeName.toLowerCase() );
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
if (!"A".equals(orderType) && !"E".equals(orderType) && !"Q".equals(orderType) && !"T".equals(orderType))
{
if ( !("L".equalsIgnoreCase(orderType)))
......@@ -2771,6 +2782,14 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
pstmt.close();
pstmt = null;
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
if(!commonWmsUtility.isValFacLocation(locCodeTo, siteCode, conn))
{
errList.add( "VMFACI2" ); // 'Diffrent Loc Code from location and site' (set same error Code @base)
errFields.add( childNodeName.toLowerCase() );
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
sql = "SELECT SINGLE_LOT_SL, ITEM_LOT_OPT FROM LOCATION WHERE LOC_CODE = ?";
......
......@@ -66,7 +66,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
{
HashMap hashMap = new HashMap();
String lineNo = "", tranId = "", tranSer = "XRFX", line = "", updateStatus = "";
String lineNo = "", tranId = "", tranSer = "XFRX", line = "", updateStatus = "";
String siteCode = "", itemCode = "", quantity = "", locCode = "", lotNo = "", lotSl = "", sql = "";
DistStkUpdLocal distStkUpd = null;
NodeList hdrDom = null;
......@@ -177,11 +177,16 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
}
}
System.out.println("dQuantity::"+dQuantity+"noArt::"+noArt+"quantity::"+quantity);
sql="update stock_transfer_det set quantity = ?, no_art = ? where tran_id = ? ";
System.out.println("lineNumber["+lineNo+"]");
//changed by sankara on 20/08/14 passed line no for multiple stock transfer
//sql="update stock_transfer_det set quantity = ?, no_art = ? where tran_id = ? ";
sql="update stock_transfer_det set quantity = ?, no_art = ? where tran_id = ? and line_no = ? ";
pstmt =conn.prepareStatement(sql);
pstmt.setDouble(1,dQuantity);
pstmt.setDouble(2,noArt);
pstmt.setString(3,tranId);
//changed by sankara on 20/08/14 passed line no for multiple stock transfer
pstmt.setString(4,lineNo);
pstmt.executeUpdate();
pstmt.close();
pstmt =null;
......
......@@ -26,7 +26,7 @@ import ibase.webitm.ejb.*;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.wms.CommonWmsUtil;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.TransformerFactory;
......@@ -138,6 +138,8 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
PreparedStatement pstmt = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
ibase.webitm.utility.wms.CommonWmsUtil commonWmsUtility =ibase.webitm.utility.wms.CommonWmsUtil.getInstance();
DistCommon distCommon = new DistCommon();
int currentFormNo = 0, cnt = 0,recCnt = 0;
......@@ -522,6 +524,15 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
}
//Changed by Ameya on 07/09/2012 check locType of item & location is equal or not End
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
if(!commonWmsUtility.isValFacLocation(locCodeTo, siteCode, conn))
{
errList.add( "VMFACI2" ); // 'Diffrent Loc Code from location and site' (set same error Code @base)
errFields.add( childNodeName.toLowerCase() );
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
sql = "SELECT HOLD_QTY FROM STOCK WHERE ITEM_CODE = ? AND SITE_CODE = ?"
+ " AND LOC_CODE = ? AND lOT_NO = ? AND LOT_SL = ?";
pstmt = conn.prepareStatement( sql );
......@@ -1963,6 +1974,7 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
cntList++;
}
System.out.println( "invStstPars ["+invStstPars+"]");
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation
// Changed by sankara on 27/08/13 for optimized the sql start.
//Changed by ameya on 14/09/2012 End
/*System.out.println(" invStstPars -----> ["+invStstPars+"]");
......@@ -1988,7 +2000,8 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
" AND S.INV_STAT = A.INV_STAT AND S.INV_STAT = B.INV_STAT AND S.LOC_CODE = A.LOC_CODE AND A.LOC_TYPE = ? AND A.INV_STAT IN ("+invStstPars+") " +
" GROUP BY A.LOC_CODE, A.LOC_ZONE, A.LOC_TYPE HAVING SUM (CASE WHEN S.QUANTITY IS NULL THEN 0 ELSE S.QUANTITY END) < = 0 ) " +
" ORDER BY ABS(LOC_ZONE - ?), LOC_CODE " ;*/
sql = " SELECT LOC_CODE,LOC_ZONE,LOC_TYPE FROM (SELECT A.LOC_CODE, A.LOC_ZONE, A.LOC_TYPE FROM LOCATION A ,INVSTAT B "
//sql = " SELECT LOC_CODE,LOC_ZONE,LOC_TYPE FROM (SELECT A.LOC_CODE, A.LOC_ZONE, A.LOC_TYPE FROM LOCATION A ,INVSTAT B "
/*sql = " SELECT LOC_CODE,LOC_ZONE,LOC_TYPE FROM (SELECT A.LOC_CODE, A.LOC_ZONE, A.LOC_TYPE FROM LOCATION A ,INVSTAT B "
+ " WHERE A.INV_STAT =B.INV_STAT AND B.AVAILABLE = 'Y' AND A.LOC_TYPE = ? "
+ " AND A.INV_STAT IN ("+invStstPars+") "
+ " AND (CASE WHEN B.STAT_TYPE IS NULL THEN ' ' ELSE B.STAT_TYPE END) <> 'S' "
......@@ -1996,21 +2009,42 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
+ " SITE_CODE= ? AND INV_STAT IN ("+invStstPars+") "
+ " GROUP BY LOC_CODE "
+ " HAVING SUM (CASE WHEN QUANTITY IS NULL THEN 0 ELSE QUANTITY END) > 0) "
+ " ORDER BY ABS(A.LOC_ZONE - ?),A.LOC_CODE ) WHERE ROWNUM < 5" ;
+ " ORDER BY ABS(A.LOC_ZONE - ?),A.LOC_CODE ) WHERE ROWNUM < 5" ;*/
sql = " SELECT LOC_CODE,LOC_ZONE,LOC_TYPE FROM (SELECT A.LOC_CODE, A.LOC_ZONE, A.LOC_TYPE,FN_CHECK_VALID_LOC(?,LOC_CODE) AS LOC_CHECK_COUNT "
+" FROM LOCATION A ,INVSTAT B "
+ " WHERE A.INV_STAT =B.INV_STAT AND B.AVAILABLE = 'Y' AND A.LOC_TYPE = ? "
+ " AND A.INV_STAT IN ("+invStstPars+") "
+ " AND (CASE WHEN B.STAT_TYPE IS NULL THEN ' ' ELSE B.STAT_TYPE END) <> 'S' "
+ " AND A.LOC_CODE NOT IN (SELECT LOC_CODE FROM STOCK WHERE "
+ " SITE_CODE= ? AND INV_STAT IN ("+invStstPars+") "
+ " GROUP BY LOC_CODE "
+ " HAVING SUM (CASE WHEN QUANTITY IS NULL THEN 0 ELSE QUANTITY END) > 0) "
+ " ORDER BY ABS(A.LOC_ZONE - ?),A.LOC_CODE ) WHERE LOC_CHECK_COUNT > 0 " ;
// Changed by sankara on 27/08/13 for optimized the sql end.
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locType);
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation
//pstmt.setString(1, locType);
pstmt.setString(1, siteCode);
pstmt.setString(2, locType);
for(cntList=0 ; cntList<invStatList.size(); cntList++)
{
System.out.println( "inv stat ["+(String)invStatList.get(cntList)+"]");
pstmt.setString( (cntList+2), (String)invStatList.get(cntList));
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation
//pstmt.setString( (cntList+2), (String)invStatList.get(cntList));
pstmt.setString( (cntList+3), (String)invStatList.get(cntList));
}
System.out.println( "CNT List count ["+cntList+"]");
pstmt.setString(cntList+2, siteCode);
int k = cntList+2;
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
/*pstmt.setString(cntList+2, siteCode);
int k = cntList+2;*/
pstmt.setString(cntList+3, siteCode);
int k = cntList+3;
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
for(cntList=0 ; cntList<invStatList.size(); cntList++)
{
k = k + 1;
......
......@@ -136,7 +136,9 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
String invStatLoc = "";
boolean isLocToValid = true;
//Changed by Rohan on 18-03-13 for define variable.end
//changed by sankara on 07/jun/14 for period stat
java.util.Date tranDateDt = null;
String prdCode = "";
int noOfChilds = 0;
int noOfParent = 0;
int count = 0;
......@@ -148,14 +150,14 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
PreparedStatement pstmt = null;
DistCommon distCommon = new DistCommon();
GenericUtility genericUtility = GenericUtility.getInstance();
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
ibase.webitm.utility.wms.CommonWmsUtil commonWmsUtility =ibase.webitm.utility.wms.CommonWmsUtil.getInstance();
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
String errorType = "", errCode = "", phyHanBasis= "";
ArrayList errList = new ArrayList();
ArrayList errFields = new ArrayList();
ArrayList<String> invStatList = new ArrayList<String>();//Added By Dipak
//changed by sankara on 07/jun/14 for period stat
java.util.Date tranDateDt = null;
String prdCode = "";
try
{
......@@ -521,6 +523,15 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
//Changed by Rohan on 16-04-13 For Stock Transfer ,Expired stock can not be transfer from location configured in Disparm.start
locCode = genericUtility.getColumnValue("loc_code", allDom, "2" );
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
if(!commonWmsUtility.isValFacLocation(locCodeTo, siteCode, conn))
{
errList.add( "VMFACI2" ); // 'Diffrent Loc Code from location and site' (set same error Code @base)
errFields.add( childNodeName.toLowerCase() );
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
sql ="SELECT COUNT(*) AS LOCCOUNT FROM STOCK WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? " +
" AND LOT_NO = ? AND LOT_SL = ? AND EXP_DATE <= fn_sysdate()";
pstmt = conn.prepareStatement( sql );
......
This diff is collapsed.
/**
* PURPOSE : Local Interface
* AUTHOR : BALU
* Date : 19/09/2011
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.xml.parsers.*;
//The local interface declares the functions to be implemented for performing validation and itemchange
@javax.ejb.Local
public interface StockTransferMultipleICLocal extends ValidatorLocal
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String currFrmXmlStr, String hdrFrmXmlStr, String allFrmXmlStr, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String currFrmXmlStr, String hdrFrmXmlStr,String allFrmXmlStr, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
/**
* PURPOSE : Remote Interface
* AUTHOR : BALU
* Date : 19/09/2011
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.xml.parsers.*;
//The remote interface declares the functions to be implemented for performing validation and itemchange
@javax.ejb.Remote
public interface StockTransferMultipleICRemote extends ValidatorRemote
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String currFrmXmlStr, String hdrFrmXmlStr, String allfrmXmlStr, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String currFrmXmlStr, String hdrFrmXmlStr,String allFrmXmlString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
......@@ -135,6 +135,8 @@ etc
String tranDate ="";
String tranDateTo ="";
//changed by sankara on 22/06/13 End...
//changed by sankara on 14/08/14 for transporter item change start.
String transporterName = "";
try
{
String applDateFmt = genericUtility.getApplDateFormat();
......@@ -567,6 +569,37 @@ etc
}
valueXmlString.append( "</Detail1>\r\n" );
}
//changed by sankara on 14/08/14 tran name item changed in wave generation start.
else if( currentColumn.trim().equalsIgnoreCase( "tran_code" ) )
{
columnValue = checkNull(genericUtility.getColumnValue("tran_code",currDom));
if( columnValue != null && columnValue.trim().length() > 0 )
{
sSQL = " SELECT TRAN_NAME FROM TRANSPORTER WHERE TRAN_CODE = ? ";
pstmt = conn.prepareStatement(sSQL);
pstmt.setString(1, columnValue);
rs = pstmt.executeQuery();
if( rs.next() )
{
transporterName = checkNull(rs.getString(1));
System.out.println("transporterName:::::::"+transporterName);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
valueXmlString.append( "<Detail1>\r\n" );
valueXmlString.append( "<tran_name><![CDATA[" ).append( transporterName ).append( "]]></tran_name>\r\n" );
valueXmlString.append( "</Detail1>\r\n" );
}
else
{
System.out.println("columnValue::::::"+columnValue);
valueXmlString.append( "<Detail1>\r\n" );
valueXmlString.append( "<tran_name><![CDATA[" ).append("").append( "]]></tran_name>\r\n" );
valueXmlString.append( "</Detail1>\r\n" );
}
}
//changed by sankara on 14/08/14 tran name item changed in wave generation end.
//Changed sumit on 06/12/12 item_changed for wave_mode END.
//Changed By Pragyan 21/06/12 end
//Changed sumit on 18/09/12 item_changed for cust_code__from start.
......@@ -893,7 +926,8 @@ etc
boolean bappend = false ;
double balStockQty = 0, holdQty = 0;
//Changed by sumit on 19/11/12 created variable's for validation near expired item end
//changed by sankara on 14/08/14 for transporter code
String tranCode = "";
try
{
int currentFormNo = 0;
......@@ -1313,7 +1347,33 @@ etc
arry.clear(); */
//Changed by Dhanraj 27JUN14 to validate printer name from net printers table.end
}
}
}
//changed by sankara on 14/08/14 for valid transporter start.
else if( "tran_code".equalsIgnoreCase( childNodeName ) )
{
tranCode = checkNull(genericUtility.getColumnValue( "tran_code", currFormDataDom ));
System.out.println("tranCode:::::"+tranCode);
if( tranCode != null && tranCode.trim().length() > 0 )
{
sql = " SELECT COUNT(*) AS COUNT FROM TRANSPORTER WHERE TRAN_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranCode);
rs = pstmt.executeQuery();
if( rs.next())
{
count = rs.getInt("COUNT");
System.out.println("count::::::"+count);
}
if(count == 0)
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "VMTRAN1" );
}
pstmt.close();pstmt = null;
rs.close(); rs = null;
}
}
//changed by sankara on 14/08/14 for valid transporter 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))
......
......@@ -3,5 +3,67 @@ package ibase.webitm.utility.wms;
public class CommonWmsUtil {
public static int ALL_PTCN_EX_COUNT;
public CommonWmsUtil()
{
}
public static CommonWmsUtil getInstance()
{
return new ibase.webitm.utility.wms.CommonWmsUtil();
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.start
public boolean isValFacLocation(String locCode,String siteCode,Connection conn) throws ITMException
{
PreparedStatement pstmt=null;
ResultSet rs = null;
double partialQty=0.0;
double packSize=0.0;
boolean isValidLocation = false;
int count = 0;
try {
String sql ="SELECT FN_CHECK_VALID_LOC(?,?) FROM DUAL";
pstmt =conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
pstmt.setString(2, locCode);
rs = pstmt.executeQuery();
if(rs.next())
{
count = rs.getInt(1);
}
if(count > 0)
{
isValidLocation = true;
}
if(rs != null)
{
rs.close();
rs=null;
}
if(pstmt != null)
{
pstmt.close();
pstmt=null;
}
} catch (Exception e) {
// TODO Auto-generated catch block
throw new ITMException(e);
}
return isValidLocation;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
}
......@@ -132,7 +132,41 @@
<name>line_no__ord</name>
<dbname>asn_det.line_no__ord</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;asn_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;asn_det.tran_id&quot;) COLUMN(NAME=&quot;asn_det.line_no&quot;) COLUMN(NAME=&quot;asn_det.item_code&quot;) COLUMN(NAME=&quot;asn_det.quantity&quot;) COLUMN(NAME=&quot;asn_det.exp_date&quot;) COLUMN(NAME=&quot;asn_det.pack_size&quot;) COLUMN(NAME=&quot;asn_det.lot_no&quot;) COLUMN(NAME=&quot;asn_det.sscc_14&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;asn_det.no_pallet&quot;) COMPUTE(NAME=&quot;fn_po_dlv_qty(asn_det.tran_id,asn_det.line_no__ord) as dlv_qty&quot;) COLUMN(NAME=&quot;asn_det.line_no__ord&quot;) JOIN (LEFT=&quot;asn_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;asn_det.item_code&quot; )WHERE( EXP1 =&quot;ASN_DET.TRAN_ID&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>realised_qty</name>
<dbname>asn_det.realised_qty</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>mfg_date</name>
<dbname>asn_det.mfg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>supp_code__mnfr</name>
<dbname>asn_det.supp_code__mnfr</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>shelf_life__type</name>
<dbname>asn_det.shelf_life__type</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>site_code__mfg</name>
<dbname>asn_det.site_code__mfg</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;asn_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;asn_det.tran_id&quot;) COLUMN(NAME=&quot;asn_det.line_no&quot;) COLUMN(NAME=&quot;asn_det.item_code&quot;) COLUMN(NAME=&quot;asn_det.quantity&quot;) COLUMN(NAME=&quot;asn_det.exp_date&quot;) COLUMN(NAME=&quot;asn_det.pack_size&quot;) COLUMN(NAME=&quot;asn_det.lot_no&quot;) COLUMN(NAME=&quot;asn_det.sscc_14&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;asn_det.no_pallet&quot;) COMPUTE(NAME=&quot;fn_po_dlv_qty(asn_det.tran_id,asn_det.line_no__ord) as dlv_qty&quot;) COLUMN(NAME=&quot;asn_det.line_no__ord&quot;) COLUMN(NAME=&quot;asn_det.realised_qty&quot;) COLUMN(NAME=&quot;asn_det.mfg_date&quot;) COLUMN(NAME=&quot;asn_det.supp_code__mnfr&quot;) COLUMN(NAME=&quot;asn_det.shelf_life__type&quot;) COLUMN(NAME=&quot;asn_det.site_code__mfg&quot;) JOIN (LEFT=&quot;asn_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;asn_det.item_code&quot; )WHERE( EXP1 =&quot;ASN_DET.TRAN_ID&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<update>ASN_DET</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -934,6 +968,239 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>0</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1415</x>
<y>1</y>
<height>16</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</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>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>0</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1520</x>
<y>1</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_code__mnfr</name>
<visible>1</visible>
<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>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>0</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1601</x>
<y>1</y>
<height>16</height>
<width>31</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shelf_life__type</name>
<visible>1</visible>
<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>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>0</alignment>
<tabsequence>0</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1635</x>
<y>1</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__mfg</name>
<visible>1</visible>
<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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>MFG Date</text>
<border>0</border>
<color>33554432</color>
<x>1415</x>
<y>1</y>
<height>19</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>MFG Code</text>
<border>0</border>
<color>33554432</color>
<x>1519</x>
<y>1</y>
<height>19</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_code__mnfr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Retest</text>
<border>0</border>
<color>33554432</color>
<x>1600</x>
<y>1</y>
<height>19</height>
<width>32</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shelf_life__type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>MFG Site</text>
<border>0</border>
<color>33554432</color>
<x>1634</x>
<y>1</y>
<height>19</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__mfg_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>23</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="30">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>asn_no</name>
<dbname>asn_hdr.asn_no</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;asn_hdr&quot; ) COLUMN(NAME=&quot;asn_hdr.asn_no&quot;)) </retrieve>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Asn No</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>asn_no_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>
<band>Detail</band>
<id>1</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>86</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>asn_no</name>
<tag>represents asn number for each asn ( Advanced Shipment Notication )</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>30</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<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>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>21</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code__fr</name>
<dbname>lpn_no</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Location Code</text>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>90</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code__fr_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>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code__fr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<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>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
This diff is collapsed.
$PBExportHeader$d_rmpm_porcp_wiz11.srd
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 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(30) updatewhereclause=yes name=asn_no dbname="asn_hdr.asn_no" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"asn_hdr~" ) COLUMN(NAME=~"asn_hdr.asn_no~")) " )
text(band=header alignment="0" text="Asn No" border="6" color="33554432" x="2" y="2" height="16" width="86" html.valueishtml="0" name=asn_no_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="2" tabsequence=32766 border="5" color="33554432" x="2" y="2" height="16" width="86" format="[general]" html.valueishtml="0" name=asn_no tag="represents asn number for each asn ( Advanced Shipment Notication )" visible="1" edit.limit=30 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" )
htmltable(border="1" )
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 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
$PBExportHeader$d_rmpm_porcp_wiz21.srd
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 )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=229 color="536870912" )
table(column=(type=char(30) updatewhereclause=yes name=asn_no dbname="porcp.asn_no" )
column=(type=char(10) updatewhereclause=yes name=tran_id dbname="porcp.tran_id" )
column=(type=char(8) updatewhereclause=yes name=loc_code dbname="loc_code" )
column=(type=char(10) updatewhereclause=yes name=purc_order dbname="porcp.purc_order" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"porcp~" ) COLUMN(NAME=~"porcp.asn_no~") COLUMN(NAME=~"porcp.tran_id~") COMPUTE(NAME=~"' ' loc_code~") COLUMN(NAME=~"porcp.purc_order~")) " )
text(band=detail alignment="1" text="Asn Number:" border="0" color="33554432" x="47" y="55" height="16" width="67" html.valueishtml="0" name=asn_no_t visible="1" font.face="Times New Roman" font.height="-9" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=10 border="0" color="33554432" x="119" y="22" height="16" width="88" format="[general]" html.valueishtml="0" name=tran_id visible="0" 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="-9" font.weight="400" font.family="2" font.pitch="1" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=20 border="5" color="33554432" x="119" y="55" height="16" width="248" format="[general]" html.valueishtml="0" name=asn_no visible="1" edit.limit=30 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-9" font.weight="400" font.family="2" font.pitch="1" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=40 border="5" color="33554432" x="119" y="79" height="16" width="248" format="[general]" html.valueishtml="0" name=purc_order visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-9" font.weight="400" font.family="2" font.pitch="1" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Location Code:" border="0" color="33554432" x="25" y="105" height="14" width="89" html.valueishtml="0" name=loc_code_t visible="1" font.face="Times New Roman" font.height="-9" 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=30 border="5" color="33554432" x="119" y="105" height="14" width="40" format="[general]" html.valueishtml="0" name=loc_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-9" font.weight="400" font.family="2" font.pitch="1" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Purchase Order:" border="0" color="33554432" x="33" y="79" height="16" width="81" html.valueishtml="0" name=purc_order_t visible="1" font.face="Times New Roman" font.height="-9" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
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 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
$PBExportHeader$d_stk_transfer_wiz12.srd
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 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=21 color="536870912" )
table(column=(type=char(15) updatewhereclause=yes name=loc_code__fr dbname="lpn_no" )
)
text(band=header alignment="0" text="Location Code" border="0" color="33554432" x="2" y="2" height="16" width="90" html.valueishtml="0" name=loc_code__fr_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="2" y="2" height="16" width="90" format="[general]" html.valueishtml="0" name=loc_code__fr 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" )
htmltable(border="1" )
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 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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