Commit 3de39899 authored by rbhogale's avatar rbhogale

Changed by Rohan on 28-06-13 for ADSI source as said by pragyan


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@31504 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6977c6b4
...@@ -203,6 +203,24 @@ public class CheckSheetIC extends ValidatorEJB implements CheckSheetICLocal,Chec ...@@ -203,6 +203,24 @@ public class CheckSheetIC extends ValidatorEJB implements CheckSheetICLocal,Chec
errFields.add( childNodeName.toLowerCase() ); errFields.add( childNodeName.toLowerCase() );
}*/ }*/
//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 04/06/13 adding validation in case of label not reprinted. start.
String printStatus = "";
sql = "SELECT WSO.PRINT_STATUS FROM SHIP_DOCS SD, WAVE_STATUS_ORG WSO WHERE SD.SHIPMENT_ID = ? AND SD.PTCN = WSO.PTCN";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, shipmentId );
rs = pstmt.executeQuery();
while( rs.next() )
{
printStatus = rs.getString("PRINT_STATUS");
if("N".equalsIgnoreCase(printStatus))
{
errList.add( "INVPRINTST" );
errFields.add( childNodeName.toLowerCase() );
}
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
//Changed by sumit on 04/06/13 adding validation in case of label not reprinted. end.
} }
} }
//Changed by sumit on 16/11/12 validating printer service name with existing printer in system start. //Changed by sumit on 16/11/12 validating printer service name with existing printer in system start.
......
/* /*
authored by Pawan 10/7/2010 to confirm the transaction authored by Pawan 10/7/2010 to confirm the transaction
*/ */
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
......
...@@ -273,7 +273,8 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal, ...@@ -273,7 +273,8 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
" AND POH.PICK_ORDER = POD.PICK_ORDER " + " AND POH.PICK_ORDER = POD.PICK_ORDER " +
" AND CM.LINE_NO__PICK = POD.LINE_NO AND WTD.PTCN = CM.PTCN " + " AND CM.LINE_NO__PICK = POD.LINE_NO AND WTD.PTCN = CM.PTCN " +
" AND WTD.REF_ID = CM.PICK_ORDER " + " AND WTD.REF_ID = CM.PICK_ORDER " +
" AND POH.PICK_TYPE IN ('C','M') " +
" AND POH.PICK_TYPE IN ('C','M') " +
" AND SORDER.SITE_CODE__SHIP = ? "+ " AND SORDER.SITE_CODE__SHIP = ? "+
" AND SORDER.SALE_ORDER >= ? AND SORDER.SALE_ORDER <= ? " + " AND SORDER.SALE_ORDER >= ? AND SORDER.SALE_ORDER <= ? " +
" AND CUSTOMER.CUST_CODE >= ? AND CUSTOMER.CUST_CODE <= ? " + " AND CUSTOMER.CUST_CODE >= ? AND CUSTOMER.CUST_CODE <= ? " +
......
This diff is collapsed.
/*
Author: Sumit Sarkar 07/03/12 of Req: WM1ESUN006
Reason: Interface Local for EJB Component WaveGenerationIC
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Local
public interface GenerateLabelsICLocal extends ibase.webitm.ejb.ValidatorLocal
{
public String itemChanged() throws RemoteException, ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
//Changed by sumit on 18/09/12 adding validation start.
public String wfValData() throws RemoteException, ITMException;
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String xtraParams) throws RemoteException, ITMException;
//Changed by sumit on 18/09/12 adding validation end.
}
/**
* Author: Sumit Sarkar 07/03/12 of Req: WM1ESUN006
* Reason: Interface Local for EJB Component WaveGenerationIC
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Remote
public interface GenerateLabelsICRemote extends ibase.webitm.ejb.ValidatorRemote
{
public String itemChanged() throws RemoteException, ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
//Changed by sumit on 18/09/12 adding validation start.
public String wfValData() throws RemoteException, ITMException;
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String xtraParams) throws RemoteException, ITMException;
//Changed by sumit on 18/09/12 adding validation end.
}
\ No newline at end of file
This diff is collapsed.
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Local
public interface GenerateLabelsPrcLocal extends ProcessLocal
{
public String process() throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Remote
public interface GenerateLabelsPrcRemote extends ProcessRemote
{
public String process() throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
}
...@@ -46,6 +46,7 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote, ...@@ -46,6 +46,7 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
String pickOrder = ""; String pickOrder = "";
//Change by Rohan on 25-02-12 for define variables //Change by Rohan on 25-02-12 for define variables
String outerCartonNo = ""; String outerCartonNo = "";
Set cartonSet = new HashSet();//Changed by sumit on 05/05/13
int cartonPack = 0; int cartonPack = 0;
int cartonPick = 0; int cartonPick = 0;
int cnt = 0; int cnt = 0;
...@@ -194,10 +195,17 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote, ...@@ -194,10 +195,17 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
} }
outerCarton = genericUtility.getColumnValueFromNode("carton_no", node2.item(cnt)); outerCarton = genericUtility.getColumnValueFromNode("carton_no", node2.item(cnt));
System.out.println("-------->Carton ["+outerCarton+"] updateFlag ["+updateFlag+"]"); System.out.println("-------->Carton ["+outerCarton+"] updateFlag ["+updateFlag+"]");
//Changed by sumit on 05/06/13
if( "A".equalsIgnoreCase(updateFlag) || "D".equalsIgnoreCase(updateFlag))
{
cartonSet.add(outerCarton);
}
//Changed by sumit on 08/12/12 changing input parameter as per sql start //Changed by sumit on 08/12/12 changing input parameter as per sql start
//pstmt.setString(1,outerCarton); //pstmt.setString(1,outerCarton);
if("E".equalsIgnoreCase(updateFlag) || "A".equalsIgnoreCase(updateFlag) ) if("E".equalsIgnoreCase(updateFlag) || "A".equalsIgnoreCase(updateFlag) )
{ {
pstmt.setString(1,"U"); pstmt.setString(1,"U");
...@@ -273,7 +281,9 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote, ...@@ -273,7 +281,9 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;
} }
//Ended By Mahesh Patidar //Ended By Mahesh Patidar
}
updateChangeStatus(cartonSet, conn);
}
} }
//Changed by sumit on 08/02/13 updating pack_hdr start. //Changed by sumit on 08/02/13 updating pack_hdr start.
else else
...@@ -330,4 +340,122 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote, ...@@ -330,4 +340,122 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
} }
return input; return input;
} }
private int updateChangeStatus(Set cartonSet,Connection conn) throws ITMException
{
String sql = "";
String cartonNo = "";
String orgMasterCarton = "";
String newMasterCarton = "";
int update = 0;
PreparedStatement pstmt = null,pstmt1 = null;
ResultSet rs = null;
try
{
sql = "UPDATE CARTON_MASTER SET CHANGE_STATUS = ? WHERE MASTER_CARTON = ?";
pstmt1 = conn.prepareStatement(sql);
Iterator it = cartonSet.iterator();
while( it.hasNext())
{
cartonNo = it.next().toString();
System.out.println(" cartonNo ["+cartonNo+"]");
sql = "SELECT MASTER_CARTON FROM WAVE_STATUS_ORG_DET WHERE CARTON_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, cartonNo);
rs = pstmt.executeQuery();
if( rs.next())
{
orgMasterCarton = rs.getString("MASTER_CARTON");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
sql = "SELECT MASTER_CARTON FROM CARTON_MASTER WHERE CARTON_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, cartonNo);
rs = pstmt.executeQuery();
if( rs.next())
{
newMasterCarton = rs.getString("MASTER_CARTON");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if( !orgMasterCarton.equalsIgnoreCase(newMasterCarton) )
{
update = 0;
pstmt1.setString(1, "Y");
pstmt1.setString(2, orgMasterCarton);
update = pstmt1.executeUpdate();
pstmt1.clearParameters();
if( update > 0 )
{
System.out.println("update successfully in WAVE_STATUS_ORG_DET ");
}
update = 0;
pstmt1.setString(1, "Y");
pstmt1.setString(2, newMasterCarton);
update = pstmt1.executeUpdate();
pstmt1.clearParameters();
if( update > 0 )
{
System.out.println("update successfully in WAVE_STATUS_ORG_DET ");
}
sql = "UPDATE WAVE_STATUS_ORG SET PRINT_STATUS = ? WHERE PTCN IN (SELECT PTCN FROM CARTON_MASTER WHERE CARTON_NO = ?)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "N");
pstmt.setString(2, cartonNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println("update successfully in WAVE_STATUS_ORG ");
}
pstmt.close(); pstmt = null;
}
}
if(pstmt1 != null )
{
pstmt1.close(); pstmt1 = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null )
{
rs.close(); rs = null;
}
if(pstmt1 != null )
{
pstmt1.close(); pstmt1 = null;
}
if(pstmt != null )
{
pstmt.close(); pstmt = null;
}
}
catch(Exception es)
{
es.printStackTrace();
throw new ITMException(es);
}
}
return 0;
}
} }
...@@ -11,10 +11,12 @@ import ibase.utility.CommonConstants; ...@@ -11,10 +11,12 @@ 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.ejb.dis.DistCommon;
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 ibase.webitm.utility.TransIDGenerator;
import java.net.URL;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
...@@ -23,6 +25,8 @@ import java.sql.SQLException; ...@@ -23,6 +25,8 @@ import java.sql.SQLException;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -39,6 +43,10 @@ import org.w3c.dom.NodeList; ...@@ -39,6 +43,10 @@ import org.w3c.dom.NodeList;
//Changed by sumit on 06/10/12 //Changed by sumit on 06/10/12
import org.w3c.dom.*; import org.w3c.dom.*;
import com.adsionline.ADSIShippingWS.ADSIShippingLocator;
import com.adsionline.ADSIShippingWS.ADSIShippingSoap;
import com.adsionline.ADSIShippingWS.StringDictionaryReturn;
@Stateless @Stateless
public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ShipmentConfRemote public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ShipmentConfRemote
...@@ -267,6 +275,66 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -267,6 +275,66 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
conn.commit(); conn.commit();
//For Adsi start
DistCommon discommon = new DistCommon();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
String adsiShippingURL = "",imagePath = "";
ADSIShippingLocator locator = null;
ADSIShippingSoap soap = null;
String PTCN = "";
String carrierFriendlyName = "";
java.util.Date date = new Date();
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
SimpleDateFormat format = new SimpleDateFormat("M/d/yyyy");
String strSmple = format.format(calendar.getTime());
adsiShippingURL = discommon.getDisparams("999999","WMS_ADSI_SOAP_URL",conn);
long timeBefore = System.currentTimeMillis();
locator = new ADSIShippingLocator();
System.out.println(" Connecting ADSI server ................");
soap = locator.getADSIShippingSoap(new URL(adsiShippingURL));
long timeAfter = System.currentTimeMillis();
System.out.println(" is server active ["+soap.testADSIServer()+"]");
if(!soap.testADSIServer())
{
errString = itmDBAccessEJB.getErrorString("","ADSISRVERR","","",conn);
return errString;
}
sql = " SELECT DISTINCT S.PTCN,G.CARRIER_FRIENDLYNAME FROM SHIP_DOCS S,WAVE_STATUS_ORG G WHERE S.SHIPMENT_ID = ? AND G.PTCN = S.PTCN";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while( rs.next())
{
PTCN = rs.getString("PTCN");
carrierFriendlyName = rs.getString("CARRIER_FRIENDLYNAME");
System.out.println("PTCN["+PTCN+"]Carrier FriendlyName["+carrierFriendlyName+"]");
StringDictionaryReturn testStr = soap.closeOutEOD("Taro Commercial", carrierFriendlyName,strSmple, false, "");
System.out.println("Message for Close Out["+testStr.getMessage()+"]");
System.out.println("isSuccess["+testStr.isSuccess()+"]");
if(testStr.isSuccess())
{
}
else
{
errString =getError(testStr.getMessage(),"ADSCLOSEOD", conn);
return errString;
}
}
rs.close();rs = null;
pstmt.close();pstmt = null;
//For Adsi end
//Changed by sumit on 28/09/12 commented and written above. //Changed by sumit on 28/09/12 commented and written above.
//ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB(); //ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB();
errString = itmDBAccessLocal.getErrorString("","VTCONFIRM",""); errString = itmDBAccessLocal.getErrorString("","VTCONFIRM","");
...@@ -303,6 +371,30 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -303,6 +371,30 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
return errString; return errString;
} }
private String getError(String message,String Code,Connection conn) throws ITMException, Exception
{
String mainStr ="";
try
{
String errString = "";
errString = new ITMDBAccessEJB().getErrorString("",Code,"","",conn);
String begPart = errString.substring(0,errString.indexOf("<message>")+9);
String endDesc = errString.substring(errString.indexOf("</description>"));
mainStr= begPart+"Invalid Data"+"</message><description>";
mainStr= mainStr+"ADSI ="+message+""+endDesc;
System.out.println("mainStr:::::::::::::::::: "+mainStr);
begPart = null;
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return mainStr;
}
private String confirmShipment(String businessObj, String tranIdFr,String xtraParams, String forcedFlag , Connection conn) throws ITMException private String confirmShipment(String businessObj, String tranIdFr,String xtraParams, String forcedFlag , Connection conn) throws ITMException
{ {
String methodName = "gbf_post"; String methodName = "gbf_post";
...@@ -532,6 +624,9 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -532,6 +624,9 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
return isSame; return isSame;
} }
//Changed by sumit on 05/10/12 counting ship detail end. //Changed by sumit on 05/10/12 counting ship detail end.
//Changed by sumit on 05/10/12 update desp_confirmed in ship_docs ship detail start. //Changed by sumit on 05/10/12 update desp_confirmed in ship_docs ship detail start.
private String updateShipDocs ( String refId, HashMap error) throws ITMException private String updateShipDocs ( String refId, HashMap error) throws ITMException
{ {
......
This diff is collapsed.
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ProcessLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.Document;
@javax.ejb.Local
public interface ShipmentPrcLocal extends ProcessLocal
{
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Remote
public interface ShipmentPrcRemote extends ProcessRemote
{
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
...@@ -14,6 +14,14 @@ import ibase.webitm.ejb.dis.DistStkUpdLocal; ...@@ -14,6 +14,14 @@ import ibase.webitm.ejb.dis.DistStkUpdLocal;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.net.URL;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
...@@ -25,6 +33,13 @@ import java.util.HashMap; ...@@ -25,6 +33,13 @@ import java.util.HashMap;
import javax.ejb.Stateless; import javax.ejb.Stateless;
import javax.naming.InitialContext; import javax.naming.InitialContext;
import com.adsionline.ADSIShippingWS.ADSIShippingLocator;
import com.adsionline.ADSIShippingWS.ADSIShippingSoap;
import com.adsionline.ADSIShippingWS.Service;
import com.adsionline.ADSIShippingWS.ShipmentResult2;
import com.adsionline.ADSIShippingWS.ShipmentResultReturn2;
import com.adsionline.ADSIShippingWS.StringReturn;
@Stateless @Stateless
public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLocal, WaveCancelEJBRemote public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLocal, WaveCancelEJBRemote
{ {
...@@ -162,7 +177,10 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca ...@@ -162,7 +177,10 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca
String invStatLoc = ""; String invStatLoc = "";
String invPndReserve = ""; String invPndReserve = "";
String sqlLoc = ""; String sqlLoc = "";
//Changed by Rohan on 30-05-13 for
long msnNo = 0;
String response = "";
String serviceCode = "";
//Changed by Rohan on 22-01-13 to cancle independent Repanishment.end //Changed by Rohan on 22-01-13 to cancle independent Repanishment.end
PreparedStatement pstmtTask = null; PreparedStatement pstmtTask = null;
ResultSet rsTask = null; ResultSet rsTask = null;
...@@ -254,12 +272,12 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca ...@@ -254,12 +272,12 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca
{ {
//if despachdet generate then not allow to cancle wave.start //if despachdet generate then not allow to cancle wave.start
waveId = checkNull(rsWave.getString("WAVE_ID")); //waveId = checkNull(rsWave.getString("WAVE_ID"));
if(isDespatch) if(isDespatch)
{ {
pstmtDesp = conn.prepareStatement(sqlDesp); pstmtDesp = conn.prepareStatement(sqlDesp);
pstmtDesp.setString(1,waveId); pstmtDesp.setString(1,waveID);
pstmtDesp.setString(2,"S-DSP"); pstmtDesp.setString(2,"S-DSP");
rsDesp = pstmtDesp.executeQuery(); rsDesp = pstmtDesp.executeQuery();
if(rsDesp.next()) if(rsDesp.next())
...@@ -290,7 +308,8 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca ...@@ -290,7 +308,8 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca
//if despachdet generate then not allow to cancle wave.start //if despachdet generate then not allow to cancle wave.start
refSer = checkNull( rsWave.getString("REF_SER".trim())); refSer = checkNull( rsWave.getString("REF_SER".trim()));
refId = checkNull( rsWave.getString("REF_ID") ); refId = checkNull( rsWave.getString("REF_ID") );
//Changed by Rohan on 30-05-13 for get ptcn
ptcn = checkNull( rsWave.getString("PTCN") );
System.out.println("Curren refser:"+refSer+"REF_ID"+refId); System.out.println("Curren refser:"+refSer+"REF_ID"+refId);
//if(refSer.equalsIgnoreCase("C-PICK") || refSer.equalsIgnoreCase("M-PICK") || refSer.equalsIgnoreCase("A-PICK") || refSer.trim().equalsIgnoreCase("S-DOC") || refSer.equalsIgnoreCase("RP-PND") || refSer.equalsIgnoreCase("RP-PSO")) //if(refSer.equalsIgnoreCase("C-PICK") || refSer.equalsIgnoreCase("M-PICK") || refSer.equalsIgnoreCase("A-PICK") || refSer.trim().equalsIgnoreCase("S-DOC") || refSer.equalsIgnoreCase("RP-PND") || refSer.equalsIgnoreCase("RP-PSO"))
...@@ -690,13 +709,12 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca ...@@ -690,13 +709,12 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca
//if(!invStatLoc.trim().equals(invPndReserve.trim())) //if(!invStatLoc.trim().equals(invPndReserve.trim()))
//{ //{
//Changed by Rohan on 21-06-13 for bug fixing.start
//lineNoSord = " " + lineNoSord;
lineNoSord = " " + lineNoSord;
lineNoSord = lineNoSord.substring(lineNoSord.length()-3);
//Chnaged by Rohan on 21-06-13 for bug fixing.end
//Chnaged by Rohan on 20-06-13 for bug fixing.start
//lineNoSord = " " + lineNoSord;
lineNoSord = " " + lineNoSord;
lineNoSord = lineNoSord.substring(lineNoSord.length()-3);
//Chnaged by Rohan on 20-06-13 for bug fixing.end
System.out.println("Line No:["+lineNoSord+"]");
sql = "SELECT QTY_ALLOC AS COUNT FROM SORDALLOC " sql = "SELECT QTY_ALLOC AS COUNT FROM SORDALLOC "
+"WHERE SALE_ORDER = ? " +"WHERE SALE_ORDER = ? "
+"AND LINE_NO = ? " +"AND LINE_NO = ? "
...@@ -708,7 +726,7 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca ...@@ -708,7 +726,7 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca
+"AND LOC_CODE = ? "; +"AND LOC_CODE = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,saleOrder); pstmt.setString(1,saleOrder);
pstmt.setString(2, lineNoSord); pstmt.setString(2,lineNoSord);
pstmt.setString(3,expLev); pstmt.setString(3,expLev);
pstmt.setString(4,itemCode); pstmt.setString(4,itemCode);
pstmt.setString(5,itemCode); pstmt.setString(5,itemCode);
...@@ -862,10 +880,112 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca ...@@ -862,10 +880,112 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca
} }
} }
//Changed by Rohan on 30-05-13 for void packages duning master pick and parcel picking.start
System.out.println("RefSeries checking for void packages"+refSer+"}");
if(refSer.equalsIgnoreCase("M-PICK") || refSer.equalsIgnoreCase("P-PICK") )
{
System.out.println("GOing for VOid PAckage::::::");
String serviceSymbol = "";
String sqlSymbol = "";
PreparedStatement pstmt1 = null;
ResultSet rs1 = null;
ADSIShippingLocator locator = new ADSIShippingLocator();
ADSIShippingSoap soap = locator.getADSIShippingSoap(new URL("http://172.20.0.137/ADSIShippingWS/ADSIShipping.asmx"));
String imagePath = discommon.getDisparams("999999","SHIP_WITH_PATH",conn);
sqlSymbol = "SELECT CARRIER_SYMBOL FROM WAVE_STATUS_ORG WHERE PTCN = ?";
pstmt1 = conn.prepareStatement(sqlSymbol);
if(refSer.equalsIgnoreCase("M-PICK"))
{
sql = "SELECT MSN_NO FROM CARTON_MASTER WHERE PTCN = ? AND REF_SER = 'M-PACK' AND CARTON_TYPE = 'M'";
}
else
{
sql = "SELECT MSN_NO FROM CARTON_MASTER WHERE PTCN = ? AND REF_SER='P-PICK' AND CARTON_TYPE= 'P' ";
}
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ptcn);
rs = pstmt.executeQuery();
while(rs.next())
{
msnNo = rs.getLong("MSN_NO");
/*
//reading shipment result2 object.start
InputStream file2 = new FileInputStream( imagePath+ File.separator+"Ship_Label"+File.separator+ ptcn + File.separator + ptcn+"_"+"ShipRslt"+".ser" );
InputStream buffer2 = new BufferedInputStream( file2 );
ObjectInput input1 = new ObjectInputStream ( buffer2 );
ShipmentResultReturn2 shipReslt =(ShipmentResultReturn2)input1.readObject();
//reading shipment result2 object.end
ShipmentResult2 objShipResulttest = shipReslt.getShipmentResultResponse2();
serviceSymbol = objShipResulttest.getServiceSymbol();
System.out.println("Service Symbol original"+serviceSymbol);
serviceSymbol = serviceSymbol.substring(0,serviceSymbol.lastIndexOf(".") );
System.out.println("Service Symbol final"+serviceSymbol);
*/
pstmt1.setString(1, ptcn);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
serviceSymbol = checkNull(rs1.getString("CARRIER_SYMBOL"));
}
else
{
serviceSymbol = "";
}
System.out.println("Service Symbol original"+serviceSymbol);
/*
if(!"".equalsIgnoreCase(serviceSymbol) && serviceSymbol.trim().length() > 0)
{
serviceSymbol = serviceSymbol.substring(0,serviceSymbol.lastIndexOf(".") );
}
*/
System.out.println("Service Symbol final"+serviceSymbol);
System.out.println("Service Symbol for void packages:"+serviceSymbol+":MSN NO:"+msnNo);
StringReturn testReturn = soap.voidPackage(serviceSymbol,msnNo);
response = testReturn.getResponse();
System.out.println("response ["+response+"]");
if(!response.contains("No Error"))
{
//retString = itmDBAccess.getErrorString("","NTVOIDPKGS","");
retString = getError(response,"NTVOIDPKGS",conn);
return retString;
}
pstmt1.clearParameters();
}
if(rs != null)
{
rs.close();
rs = null;
}
if(rs1 != null)
{
rs1.close();
rs1 = null;
}
if(pstmt1 != null)
{
pstmt1.close();
pstmt1 = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
//Changed by Rohan on 30-05-13 for void packages duning master pick and parcel picking.end
}//while close }//while close
//changed by Rohan on 26/03/13 for updating wave status.start //changed by Rohan on 26/03/13 for updating wave status.start
System.out.println("Error in wave Cancel"+retString); System.out.println("Retun string["+retString+"]");
if(("".equalsIgnoreCase(retString) || retString != null) && retString.trim().length() == 0) if(("".equalsIgnoreCase(retString) || retString != null) && retString.trim().length() == 0)
{ {
sqlUpdate = "UPDATE WAVE_TASK SET CANCEL ='Y' WHERE WAVE_ID = ?" ; sqlUpdate = "UPDATE WAVE_TASK SET CANCEL ='Y' WHERE WAVE_ID = ?" ;
...@@ -989,6 +1109,31 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca ...@@ -989,6 +1109,31 @@ public class WaveCancelEJB extends ActionHandlerEJB implements WaveCancelEJBLoca
} }
return comp; return comp;
} }
private String getError(String saleOrder,String Code,Connection conn) throws ITMException, Exception
{
String mainStr ="";
try
{
String errString = "";
errString = new ITMDBAccessEJB().getErrorString("",Code,"","",conn);
String begPart = errString.substring(0,errString.indexOf("<message>")+9);
String endDesc = errString.substring(errString.indexOf("</description>"));
mainStr= begPart+"Invalid Data"+"</message><description>";
mainStr= mainStr+"Sale Order ="+saleOrder+""+endDesc;
System.out.println("mainStr:::::::::::::::::: "+mainStr);
begPart = null;
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return mainStr;
}
private ArrayList isReplinshmentConfirm(String replOrder ,String replLineNo,Connection conn) throws Exception private ArrayList isReplinshmentConfirm(String replOrder ,String replLineNo,Connection conn) throws Exception
{ {
......
<?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>0</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>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>76</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>ptcn</name>
<dbname>ptcn</dbname>
</table_column>
<table_column>
<type size="12">char</type>
<updatewhereclause>no</updatewhereclause>
<name>wave_id</name>
<dbname>wave_id</dbname>
</table_column>
<table_column>
<type size="200">char</type>
<updatewhereclause>no</updatewhereclause>
<name>printer_name</name>
<dbname>printer_name</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Wave Id:</text>
<border>6</border>
<color>33554432</color>
<x>217</x>
<y>17</y>
<height>16</height>
<width>55</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_id_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>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Printer Name:</text>
<border>6</border>
<color>33554432</color>
<x>16</x>
<y>43</y>
<height>16</height>
<width>75</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>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>PTCN:</text>
<border>6</border>
<color>33554432</color>
<x>16</x>
<y>16</y>
<height>16</height>
<width>75</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_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>96</x>
<y>17</y>
<height>16</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</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>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>97</x>
<y>43</y>
<height>16</height>
<width>266</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name</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>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>278</x>
<y>17</y>
<height>16</height>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_id</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>1073741824</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>
<?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>0</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>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>194</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>from_date</name>
<dbname>from_date</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>to_date</name>
<dbname>to_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_code_from</name>
<dbname>tran_code_from</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_code_to</name>
<dbname>tran_code_to</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>no</updatewhereclause>
<name>shipment_type</name>
<dbname>shipment_type</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>5</border>
<color>0</color>
<x>5</x>
<y>0</y>
<height>84</height>
<width>367</width>
<name>gb_1</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>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>From Date:</text>
<border>0</border>
<color>0</color>
<x>9</x>
<y>17</y>
<height>16</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_date_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>To Date:</text>
<border>0</border>
<color>0</color>
<x>214</x>
<y>17</y>
<height>16</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_date_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>Transporter From:</text>
<border>0</border>
<color>0</color>
<x>10</x>
<y>39</y>
<height>16</height>
<width>101</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code_from_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>Transporter To:</text>
<border>0</border>
<color>0</color>
<x>199</x>
<y>39</y>
<height>16</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code_to_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>Shipment Type:</text>
<border>0</border>
<color>0</color>
<x>10</x>
<y>62</y>
<height>16</height>
<width>101</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipment_type_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>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>115</x>
<y>17</y>
<height>16</height>
<width>74</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_date</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>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>292</x>
<y>17</y>
<height>16</height>
<width>74</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_date</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>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>115</x>
<y>39</y>
<height>16</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code_from</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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>292</x>
<y>39</y>
<height>16</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code_to</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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>115</x>
<y>62</y>
<height>16</height>
<width>252</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipment_type</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>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>
<?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>1</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>ptcn</name>
<dbname>ptcn</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>shipment_id</name>
<dbname>shipment_id</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_name</name>
<dbname>tran_name</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>PTCN</text>
<border>6</border>
<color>0</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>165</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_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>Header</band>
<alignment>0</alignment>
<text>Shipment Id</text>
<border>6</border>
<color>0</color>
<x>169</x>
<y>2</y>
<height>16</height>
<width>144</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipment_id_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>Header</band>
<alignment>0</alignment>
<text>Transporter Name</text>
<border>6</border>
<color>0</color>
<x>315</x>
<y>2</y>
<height>16</height>
<width>841</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_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>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>19</height>
<width>165</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn</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>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>169</x>
<y>2</y>
<height>19</height>
<width>144</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipment_id</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>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>315</x>
<y>2</y>
<height>19</height>
<width>841</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_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>1</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_gen_label.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=76 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=ptcn dbname="ptcn" )
column=(type=char(12) updatewhereclause=no name=wave_id dbname="wave_id" )
column=(type=char(200) updatewhereclause=no name=printer_name dbname="printer_name" )
)
text(band=detail alignment="1" text="Wave Id:" border="6" color="33554432" x="217" y="17" height="16" width="55" html.valueishtml="0" name=wave_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 Name:" border="6" color="33554432" x="16" y="43" height="16" width="75" 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" )
text(band=detail alignment="1" text="PTCN:" border="6" color="33554432" x="16" y="16" height="16" width="75" html.valueishtml="0" name=ptcn_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="96" y="17" height="16" width="102" format="[general]" html.valueishtml="0" name=ptcn 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=3 alignment="0" tabsequence=30 border="5" color="33554432" x="97" y="43" height="16" width="266" html.valueishtml="0" name=printer_name visible="1" 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="1073741824" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="278" y="17" height="16" width="84" html.valueishtml="0" name=wave_id visible="1" 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="1073741824" )
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
$PBExportHeader$d_ptcn11.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=194 color="536870912" )
table(column=(type=date updatewhereclause=no name=from_date dbname="from_date" )
column=(type=date updatewhereclause=no name=to_date dbname="to_date" )
column=(type=char(10) updatewhereclause=no name=tran_code_from dbname="tran_code_from" )
column=(type=char(10) updatewhereclause=no name=tran_code_to dbname="tran_code_to" )
column=(type=char(20) updatewhereclause=no name=shipment_type dbname="shipment_type" )
)
groupbox(band=detail text="Basic"border="5" color="0" x="5" y="0" height="84" width="367" name=gb_1 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=detail alignment="1" text="From Date:" border="0" color="0" x="9" y="17" height="16" width="102" html.valueishtml="0" name=from_date_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="To Date:" border="0" color="0" x="214" y="17" height="16" width="74" html.valueishtml="0" name=to_date_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="Transporter From:" border="0" color="0" x="10" y="39" height="16" width="101" html.valueishtml="0" name=tran_code_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="553648127" )
text(band=detail alignment="1" text="Transporter To:" border="0" color="0" x="199" y="39" height="16" width="89" html.valueishtml="0" name=tran_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="553648127" )
text(band=detail alignment="1" text="Shipment Type:" border="0" color="0" x="10" y="62" height="16" width="101" html.valueishtml="0" name=shipment_type_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=1 alignment="0" tabsequence=10 border="5" color="33554432" x="115" y="17" height="16" width="74" format="[general]" html.valueishtml="0" name=from_date 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="292" y="17" height="16" width="74" format="[general]" html.valueishtml="0" name=to_date 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="33554432" x="115" y="39" height="16" width="74" format="[general]" html.valueishtml="0" name=tran_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=4 alignment="0" tabsequence=40 border="5" color="33554432" x="292" y="39" height="16" width="74" format="[general]" html.valueishtml="0" name=tran_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=5 alignment="0" tabsequence=50 border="5" color="33554432" x="115" y="62" height="16" width="252" format="[general]" html.valueishtml="0" name=shipment_type 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" )
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
$PBExportHeader$d_ptcn12.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=1 color="536870912" )
footer(height=0 color="536870912" )
detail(height=22 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=ptcn dbname="ptcn" )
column=(type=char(10) updatewhereclause=no name=shipment_id dbname="shipment_id" )
column=(type=char(40) updatewhereclause=no name=tran_name dbname="tran_name" )
)
text(band=header alignment="0" text="PTCN" border="6" color="0" x="2" y="2" height="16" width="165" html.valueishtml="0" name=ptcn_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=header alignment="0" text="Shipment Id" border="6" color="0" x="169" y="2" height="16" width="144" 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="553648127" )
text(band=header alignment="0" text="Transporter Name" border="6" color="0" x="315" y="2" height="16" width="841" html.valueishtml="0" name=tran_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" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="2" y="2" height="19" width="165" format="[general]" html.valueishtml="0" name=ptcn 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="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="169" y="2" height="19" width="144" format="[general]" html.valueishtml="0" name=shipment_id 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=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="315" y="2" height="19" width="841" format="[general]" html.valueishtml="0" name=tran_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="1" 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
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