Commit b24c4016 authored by pjain's avatar pjain

Changed by Dhanraj on 22-SEP-14 Packing Masters [W14FSUN003] and StockTransfer...

Changed by Dhanraj on 22-SEP-14 Packing Masters [W14FSUN003] and StockTransfer (Pass siteCode in queries).


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96393 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 11c121b8
......@@ -911,8 +911,9 @@ public class ConsolidatToDoc {
pstmt1.close();
pstmt1 = null;
}
sqlHdr = "update despatch set gross_weight = ?, tare_weight = ? ,nett_weight = ?, no_art = ? where desp_id = ? "; //added by Kunal on 08/09/12 as per S Manoharan Sir instruction
//Changed by Dharnaj on 19-SEP-14 for [W14FSUN003]
//sqlHdr = "update despatch set gross_weight = ?, tare_weight = ? ,nett_weight = ?, no_art = ? where desp_id = ? "; //added by Kunal on 08/09/12 as per S Manoharan Sir instruction
sqlHdr = "update despatch set gross_weight = ?, tare_weight = tare_weight + ? ,nett_weight = ?, no_art = ? where desp_id = ? "; //added by Kunal on 08/09/12 as per S Manoharan Sir instruction
pstmtHdr = conn.prepareStatement(sqlHdr);
pstmtHdr.setDouble(1, totalGrossWeight);
pstmtHdr.setDouble(2, totalTareWeight);
......
......@@ -493,6 +493,9 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
if( pstmt1.executeUpdate() > 0)
{
System.out.println(rs.getString("CARTON_NO")+" carton_no updated successfully ");
//Changed by Dhanraj on 19-SEP-14 [W14FSUN003] for minus tare and filler wt.
errString = updatedespatch(ptcn,cartonNo,conn);
}
pstmt1.clearParameters();
}
......@@ -3976,7 +3979,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
String errString = "";
int update = 0;
int count = 0;
System.out.println("hai");
System.out.println("hi call deallocateMaster carton");
try
{
......@@ -4009,6 +4012,8 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
if( update > 0)
{
System.out.println(update+" column of carton_master is successfuly ");
//Changed by Dhanraj on 19-SEP-14 [W14FSUN003] for minus tare and filler wt.
errString=updatedespatch(ptcn,masterCarton,conn);
}
}
}
......@@ -4060,6 +4065,98 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
return update;
}
//changed by sankara on 04/02/14 update carton_master status from pick deallocation end.
//Start Changed by Dhanraj on 19-SEP-14 [W14FSUN003]
private String updatedespatch(String ptcn,String masterCarton,Connection conn) throws Exception
{
String errString = "";
String sql=null;
double tareWt=0.0;
double fillerWt=0.0;
System.out.println("Call Despatch update method");
System.out.println("==> MasterCarton "+masterCarton);
PreparedStatement pstmt = null;
ResultSet rSet = null ;
try
{
sql=" SELECT NVL(FILLER_WEIGHT,0) FILLER_WEIGHT , NVL(TARE_WEIGHT,0) TARE_WEIGHT "
+" FROM CARTON_MASTER "
+" WHERE PTCN = ? AND STATUS = ? AND (REF_SER = ? AND REF_SER = ?) AND CARTON_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,ptcn);
pstmt.setString(2,"R");
pstmt.setString(3,"M-PACK");
pstmt.setString(3,"A-PICK");
pstmt.setString(5,masterCarton);
rSet = pstmt.executeQuery();
if (rSet.next())
{
fillerWt = rSet.getDouble("FILLER_WEIGHT");
tareWt = rSet.getDouble("TARE_WEIGHT");
}
System.out.println("Sum fillerWt"+fillerWt);
System.out.println("sum tare wate "+tareWt);
if( rSet != null)
{
rSet.close();
rSet = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
sql = " UPDATE DESPATCH SET TARE_WEIGHT= TARE_WEIGHT - ? ,FILLER_WEIGHT= FILLER_WEIGHT - ? WHERE PTCN= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, tareWt);
pstmt.setDouble(2, fillerWt);
pstmt.setString(3, ptcn);
int updateCnt=pstmt.executeUpdate();
if(updateCnt > 0){
System.out.println("<============Updation done==========>");
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw e;
}
finally
{
try
{
if( rSet != null)
{
rSet.close();
rSet = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw e;
}
}
return errString;
}
//End Changed by Dhanraj on 19-SEP-14 [W14FSUN003]
//Changed by sumit sarkar on 18/08/2011 [ WM1ESUN006 ] update despatch table end.
//changed by sankara on 21/06/14 update sorder ship_status from pick deallocation start
private int updatesaleOrdershipStatus(String saleOrder,String ptcn,Connection conn) throws ITMException
{
......
......@@ -279,7 +279,11 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
if(count == 0)
{
System.out.println("@@@@@@Master Carton self deallocation @@@@@@@@@");
status = "R";
errString = updatedespatch(ptcn,outerCarton,conn);
}
if(count > 0)
{
......@@ -679,4 +683,93 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
}
return 0;
}
//Start Changed by Dhanraj on 19-SEP-14 [W14FSUN003]
private String updatedespatch(String ptcn,String masterCarton,Connection conn) throws Exception
{
String errString = "";
String sql=null;
double tareWt=0.0;
double fillerWt=0.0;
System.out.println("Call carton master update method");
System.out.println("==> MasterCarton "+masterCarton);
PreparedStatement pstmt = null;
ResultSet rSet = null ;
try
{
sql=" SELECT NVL(FILLER_WEIGHT,0) FILLER_WEIGHT , NVL(TARE_WEIGHT,0) TARE_WEIGHT "
+" FROM CARTON_MASTER "
+" WHERE PTCN = ? AND REF_SER = ? AND CARTON_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,ptcn);
pstmt.setString(2,"M-PACK");
pstmt.setString(3,masterCarton);
rSet = pstmt.executeQuery();
if (rSet.next())
{
fillerWt = rSet.getDouble("FILLER_WEIGHT");
tareWt = rSet.getDouble("TARE_WEIGHT");
}
System.out.println("Sum fillerWt"+fillerWt);
System.out.println("sum tare wate "+tareWt);
if( rSet != null)
{
rSet.close();
rSet = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
sql = " UPDATE DESPATCH SET TARE_WEIGHT= TARE_WEIGHT - ? ,FILLER_WEIGHT= FILLER_WEIGHT - ? WHERE PTCN= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, tareWt);
pstmt.setDouble(2, fillerWt);
pstmt.setString(3, ptcn);
int updateCnt=pstmt.executeUpdate();
if(updateCnt > 0){
System.out.println("<============Updation done==========>");
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw e;
}
finally
{
try
{
if( rSet != null)
{
rSet.close();
rSet = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw e;
}
}
return errString;
}
//End Changed by Dhanraj on 19-SEP-14 [W14FSUN003]
}
......@@ -1185,6 +1185,10 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
//changed by sankara on 10/09/2012 to assign deep storage,case pick location [End]
//changed by sankara on 05/04/14 passed login site code
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
if ( siteCode.trim().length() == 0 || "INVALID_SITE".equalsIgnoreCase(siteCode.trim()) )
{
siteCode = getSiteCode( xtraParams, conn );
}
System.out.println("in case 2:::::"+siteCode);
//Commented and changes below by gulzar on 12/23/2011
/*
......@@ -1373,6 +1377,15 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
partialGrlLoc = distCommon.getDisparams("999999","PGRL_INVSTAT",conn);
partialResrvLoc = distCommon.getDisparams("999999","PRSRV_INVSTAT",conn);
/*Added by Ashish Sonawane on 23/Aug/12 for allowing partial grl location [WM2ESUN009][END]*/
//start Changed by Dhanraj on 20-SEP-14 get site_code and set sql.
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
if ( siteCode.trim().length() == 0 || "INVALID_SITE".equalsIgnoreCase(siteCode.trim()) )
{
siteCode = getSiteCode( xtraParams, conn );
}
System.out.println("in case 3:::::"+siteCode);
//end Changed by Dhanraj on 20-SEP-14 get site_code and set sql.
lotSl = checkNull(genericUtility.getColumnValue("lpn_no", allDom, "2" ));
//invStatList.add(casePickInvstat); // 13/09/12 manoharan
......@@ -1485,9 +1498,12 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
"AND (CASE WHEN B.STAT_TYPE IS NULL THEN ' ' ELSE B.STAT_TYPE END) <> 'S' " +
//"AND (A.QUANTITY - A.ALLOC_QTY - CASE WHEN A.HOLD_QTY IS NULL THEN 0 ELSE A.HOLD_QTY END) > 0 "+//Commented by gulzar on 1/12/2012
"AND ((CASE WHEN A.QUANTITY IS NULL THEN 0 ELSE A.QUANTITY END) - (CASE WHEN A.ALLOC_QTY IS NULL THEN 0 ELSE A.ALLOC_QTY END)) > 0 "+//Changed by gulzar on 1/12/2012
"AND A.lot_sl = ? ";
"AND A.lot_sl = ? " +
//Changed by Dharnaj on 20-SEP-14
"AND A.SITE_CODE = ? " ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lotSl);//grlInvstat);
pstmt.setString(1, lotSl);//grlInvstat);
pstmt.setString(2, siteCode);
rs = pstmt.executeQuery();
while (rs.next())
{
......
......@@ -1298,6 +1298,7 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
}
public String default_ItemChanged( Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
{
System.out.println("Call stockTransferIC default_ItemChanged ");
String sql = "";
String itemCode = "";
String itemDescr = "";
......@@ -1369,6 +1370,7 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
{
case 1:
{
System.out.println("Call stockTransferIC default_ItemChanged case 1 ");
valueXmlString.append( "<Detail1 domID='1'>\r\n" );
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
......@@ -1415,10 +1417,18 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
break;
case 3:
{
System.out.println("Call stockTransferIC default_ItemChanged case 1 ");
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
lpnNo = checkNull(genericUtility.getColumnValue("lpn_no", allDom, "2"));
locCode = checkNull(genericUtility.getColumnValue("loc_code", allDom, "2"));
//Changed by Dhanraj on 20-SEP-14
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
if ( siteCode.trim().length() == 0 || "INVALID_SITE".equalsIgnoreCase(siteCode.trim()) )
{
siteCode = getSiteCode( xtraParams, conn );
}
System.out.println(" locCode Dhanraj "+locCode);
grlInvstat = dComm.getDisparams("999999","GRL_INVSTAT",conn);//Added By Dipak On 4 June 2012
if( lpnNo.trim().length() > 0 )
......@@ -1481,7 +1491,10 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
"AND ((CASE WHEN A.QUANTITY IS NULL THEN 0 ELSE A.QUANTITY END) - (CASE WHEN A.ALLOC_QTY IS NULL THEN 0 ELSE A.ALLOC_QTY END)) > 0 "+
//Changed by Rohan on 21/07/12 to move items for any location
//"AND D.INV_STAT = ? AND A.LOT_SL = ? ";
" AND A.LOC_CODE = ? AND A.LOT_SL = ? ";
//Changed by Dhanraj on 20-SEP-14
//" AND A.LOC_CODE = ? AND A.LOT_SL = ? ";
" AND A.LOC_CODE = ? AND A.LOT_SL = ? AND A.SITE_CODE = ? ";
}
else
{
......@@ -1498,7 +1511,9 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
"AND ((CASE WHEN A.QUANTITY IS NULL THEN 0 ELSE A.QUANTITY END) - (CASE WHEN A.ALLOC_QTY IS NULL THEN 0 ELSE A.ALLOC_QTY END)) > 0 "+
//Changed by Rohan on 21/07/12 to move items for any location
//"AND D.INV_STAT = ? AND A.LOT_SL = ? ";
" AND A.LOC_CODE = ? AND A.LOT_SL = ? ";
//Changed by Dhanraj on 20-SEP-14
//" AND A.LOC_CODE = ? AND A.LOT_SL = ? ";
" AND A.LOC_CODE = ? AND A.LOT_SL = ? AND A.SITE_CODE = ? ";
/*Changes Are Done By Dipak On 4 June 2012 End*/
//End changes by gulzar on 1/12/2012
......@@ -1512,6 +1527,8 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
*/
pstmt.setString(1,locCode );
pstmt.setString(2,lpnNo );
//Changed by Dhanraj on 20-SEP-14
pstmt.setString(3,siteCode );
rs = pstmt.executeQuery();
while (rs.next())
{
......
......@@ -106,6 +106,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
*/
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{
System.out.println("Call stocktransfermultipleIc wfValData");
String errString = "";
String columnValue = "";
String sql = "";
......@@ -1213,6 +1214,12 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
locCode = checkNull(genericUtility.getColumnValue("loc_code__fr", allDom, "2"));
itemCode = checkNull(genericUtility.getColumnValue("item_code", allDom, "3"));
// Start Changed by Dhanraj on 20-SEP-14
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
if ( siteCode.trim().length() == 0 || "INVALID_SITE".equalsIgnoreCase(siteCode.trim()) )
{
siteCode = getSiteCode( xtraParams, conn );
}
sql = " SELECT A.ITEM_CODE, A.SITE_CODE, A.LOC_CODE, A.LOT_NO, A.LOT_SL," +
" C.ITEM_SER, C.DESCR ITEM_DESCR, C.LOC_TYPE, C.LOC_ZONE__PREF, A.QUANTITY, "+
" D.DESCR LOC_DESCR, A.PACK_CODE, A.ALLOC_QTY, A.MFG_DATE, A.NO_ART, " +
......@@ -1221,9 +1228,13 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
" WHERE A.LOC_CODE = D.LOC_CODE " +
" AND A.ITEM_CODE = C.ITEM_CODE " +
" AND A.QUANTITY > 0 " +
" AND D.LOC_CODE = ? ";
" AND D.LOC_CODE = ? " +
//Chaned by Dhanraj for stock pass site_code on 20-SEP-14
" AND A.SITE_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,locCode );
//Chaned by Dhanraj for stock pass site_code on 20-SEP-14
pstmt.setString(2,siteCode );
rs = pstmt.executeQuery();
while (rs.next())
......@@ -1319,6 +1330,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
break;
case 4:
{
System.out.println("Call stocktransfermultipleIc item changed case 4");
int newInt = 0;
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
......
......@@ -67,6 +67,62 @@ public class CommonWmsUtil {
return isValidLocation;
}
// Start changed by Pragyan on 19-SEP-14 [W14FSUN003]
public String checkNull( String inputVal )
{
if ( inputVal == null )
{
inputVal = "";
}
return inputVal;
}
public String getFacilityCode(String siteCode,Connection conn) throws ITMException
{
PreparedStatement pstmt=null;
ResultSet rs = null;
int count = 0;
String facilityCode = "";
try {
String sql ="SELECT facility_code FROM site where site_code = ?";
pstmt =conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
rs = pstmt.executeQuery();
if(rs.next())
{
facilityCode = checkNull(rs.getString(1));
}
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 facilityCode;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
// End changed by Pragyan on 19-SEP-14 [W14FSUN003]
}
......@@ -154,7 +154,21 @@
<name>ptcn</name>
<dbname>pack_hdr.ptcn</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;pack_hdr&quot; ) COLUMN(NAME=&quot;pack_hdr.tran_id&quot;) COLUMN(NAME=&quot;pack_hdr.tran_date&quot;) COLUMN(NAME=&quot;pack_hdr.site_code&quot;) COLUMN(NAME=&quot;pack_hdr.sale_order&quot;) COLUMN(NAME=&quot;pack_hdr.wave_id&quot;) COLUMN(NAME=&quot;pack_hdr.confirmed&quot;) COLUMN(NAME=&quot;pack_hdr.conf_date&quot;) COLUMN(NAME=&quot;pack_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;pack_hdr.chg_user&quot;) COLUMN(NAME=&quot;pack_hdr.chg_date&quot;) COLUMN(NAME=&quot;pack_hdr.chg_term&quot;) COLUMN(NAME=&quot;pack_hdr.outer_carton_no&quot;) COLUMN(NAME=&quot;pack_hdr.pick_order&quot;) COLUMN(NAME=&quot;pack_hdr.sscc_18&quot;) COLUMN(NAME=&quot;pack_hdr.ptcn&quot;)WHERE( EXP1 =&quot;~&quot;PACK_HDR~&quot;.~&quot;PTCN~&quot;&quot; OP =&quot;=&quot; EXP2 =&quot;:ptcn&quot; ) ) ARG(NAME = &quot;ptcn&quot; TYPE = string) </retrieve>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tare_weight</name>
<dbname>pack_hdr.tare_weight</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>filler_weight</name>
<dbname>pack_hdr.filler_weight</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;pack_hdr&quot; ) COLUMN(NAME=&quot;pack_hdr.tran_id&quot;) COLUMN(NAME=&quot;pack_hdr.tran_date&quot;) COLUMN(NAME=&quot;pack_hdr.site_code&quot;) COLUMN(NAME=&quot;pack_hdr.sale_order&quot;) COLUMN(NAME=&quot;pack_hdr.wave_id&quot;) COLUMN(NAME=&quot;pack_hdr.confirmed&quot;) COLUMN(NAME=&quot;pack_hdr.conf_date&quot;) COLUMN(NAME=&quot;pack_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;pack_hdr.chg_user&quot;) COLUMN(NAME=&quot;pack_hdr.chg_date&quot;) COLUMN(NAME=&quot;pack_hdr.chg_term&quot;) COLUMN(NAME=&quot;pack_hdr.outer_carton_no&quot;) COLUMN(NAME=&quot;pack_hdr.pick_order&quot;) COLUMN(NAME=&quot;pack_hdr.sscc_18&quot;) COLUMN(NAME=&quot;pack_hdr.ptcn&quot;) COLUMN(NAME=&quot;pack_hdr.tare_weight&quot;) COLUMN(NAME=&quot;pack_hdr.filler_weight&quot;)WHERE( EXP1 =&quot;~&quot;PACK_HDR~&quot;.~&quot;PTCN~&quot;&quot; OP =&quot;=&quot; EXP2 =&quot;:ptcn&quot; ) ) ARG(NAME = &quot;ptcn&quot; TYPE = string) </retrieve>
<update>PACK_HDR</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -1153,6 +1167,120 @@
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Tare Weight</text>
<border>6</border>
<color>33554432</color>
<x>1518</x>
<y>2</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tare_weight_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>Filler Weight</text>
<border>6</border>
<color>33554432</color>
<x>1615</x>
<y>2</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>filler_weight_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>16</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1519</x>
<y>2</y>
<height>16</height>
<width>94</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tare_weight</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>17</id>
<alignment>0</alignment>
<tabsequence>170</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1616</x>
<y>2</y>
<height>16</height>
<width>94</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>filler_weight</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>
......
......@@ -32,7 +32,7 @@
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>18</height>
<height>15</height>
<color>536870912</color>
</Header>
<Summary>
......@@ -408,11 +408,11 @@
<alignment>0</alignment>
<text>Pack Type</text>
<border>0</border>
<color>0</color>
<color>33554432</color>
<x>929</x>
<y>1</y>
<height>19</height>
<width>78</width>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -807,7 +807,7 @@
<x>929</x>
<y>1</y>
<height>16</height>
<width>78</width>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
CREATE TABLE PACKING_FACILITY
(
PACK_CODE CHAR(5) NOT NULL,
LINE_NO NUMBER(3,0) NOT NULL,
FACILITY_CODE CHAR(10) NOT NULL,
GROSS_WEIGHT NUMBER(14,3),
NETT_WEIGHT NUMBER(14,3),
TARE_WEIGHT NUMBER(14,3),
PACK_TYPE VARCHAR2(3),
LENGTH NUMBER(14,3),
WIDTH NUMBER(14,3),
HEIGHT NUMBER(14,3)
) ;
ALTER TABLE PACKING_FACILITY
ADD ( ( CONSTRAINT PK_A_PACKFACILITY PRIMARY KEY ( PACK_CODE, LINE_NO, FACILITY_CODE )) ;
CREATE TABLE PACKING_FILLER
(
PACK_CODE CHAR(5) NOT NULL,
LINE_NO NUMBER(3,0) NOT NULL,
LOC_TYPE__PARENT CHAR(3) NOT NULL,
MIN_WEIGHT NUMBER(14,3),
MAX_WEIGHT NUMBER(14,3),
MIN_VOLUME NUMBER(14,3),
MAX_VOLUME NUMBER(14,3),
FILLER_WEIGHT NUMBER(14,3)
) ;
ALTER TABLE PACKING_FILLER
ADD ( CONSTRAINT PK_A_PACKFILLER PRIMARY KEY ( PACK_CODE, LINE_NO, LOC_TYPE__PARENT ));
Insert into OBJ_FORMS
(WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY)
values
('w_packing','Packing Facility','d_packing_facility_brow','d_packing_facility_edit',null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_FORMS
(WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY)
values
('w_packing','Packing_Filler','d_packing_filler_brow','d_packing_filler_edit',null,null,null,null,'3',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
-- only table
ALTER TABLE CARTON_MASTER ADD TARE_WEIGHT NUMBER(14,3);
ALTER TABLE CARTON_MASTER ADD FILLER_WEIGHT NUMBER(14,3);
--srd and table
ALTER TABLE PACK_HDR ADD TARE_WEIGHT NUMBER(14,3);
ALTER TABLE PACK_HDR ADD FILLER_WEIGHT NUMBER(14,3);
--start pending because this changes already done on base office.(latest srd ref.)
--ALTER TABLE DESPATCH ADD FILLER_WEIGHT NUMBER(14,3);
--End Pending
INSERT INTO pophelp (
field_name ,
mod_name ,
sql_str ,
dw_object ,
msg_title ,
width ,
height ,
chg_date ,
chg_user ,
chg_term ,
dist_opt ,
filter_string ,
sql_input ,
default_col ,
pop_align ,
query_mode ,
page_context ,
pophelp_cols ,
pophelp_source ,
multi_opt ,
help_option )
VALUES (
'PACK_TYPE',
'W_PACKING',
'SELECT FLD_VALUE,DESCR FROM GENCODES WHERE FLD_NAME = ''PACK_TYPE'' AND MOD_NAME = ''W_PACKING''',
NULL,
'PACK TYPE',
0,
0,
fn_sysdate(),
'Base',
'Base',
'0',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
INSERT INTO GENCODES (
fld_name ,
mod_name ,
fld_value ,
descr ,
sh_descr ,
chg_date ,
chg_user ,
chg_term ,
active ,
udf_str1 ,
udf_str2 ,
udf_str3 )
VALUES (
'PACK_TYPE',
'W_PACKING',
'A',
'Active',
'Active',
fn_sysdate(),
'BASE',
'BASE',
'Y',
NULL,
NULL,
NULL);
INSERT INTO GENCODES (
fld_name ,
mod_name ,
fld_value ,
descr ,
sh_descr ,
chg_date ,
chg_user ,
chg_term ,
active ,
udf_str1 ,
udf_str2 ,
udf_str3 )
VALUES (
'PACK_TYPE',
'W_PACKING',
'B',
'BOTH',
'BOTH',
fn_sysdate(),
'BASE',
'BASE',
'Y',
NULL,
NULL,
NULL);
INSERT INTO GENCODES (
fld_name ,
mod_name ,
fld_value ,
descr ,
sh_descr ,
chg_date ,
chg_user ,
chg_term ,
active ,
udf_str1 ,
udf_str2 ,
udf_str3 )
VALUES (
'PACK_TYPE',
'W_PACKING',
'M',
'MASTER',
'MASTER',
fn_sysdate(),
'BASE',
'BASE',
'Y',
NULL,
NULL,
NULL);
commit;
\ No newline at end of file
This diff is collapsed.
......@@ -20,7 +20,9 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(10) update=yes updatewhereclause=yes name=pick_order dbname="pack_hdr.pick_order" )
column=(type=char(35) update=yes updatewhereclause=yes name=sscc_18 dbname="pack_hdr.sscc_18" )
column=(type=char(10) update=yes updatewhereclause=yes name=ptcn dbname="pack_hdr.ptcn" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"pack_hdr~" ) COLUMN(NAME=~"pack_hdr.tran_id~") COLUMN(NAME=~"pack_hdr.tran_date~") COLUMN(NAME=~"pack_hdr.site_code~") COLUMN(NAME=~"pack_hdr.sale_order~") COLUMN(NAME=~"pack_hdr.wave_id~") COLUMN(NAME=~"pack_hdr.confirmed~") COLUMN(NAME=~"pack_hdr.conf_date~") COLUMN(NAME=~"pack_hdr.emp_code__aprv~") COLUMN(NAME=~"pack_hdr.chg_user~") COLUMN(NAME=~"pack_hdr.chg_date~") COLUMN(NAME=~"pack_hdr.chg_term~") COLUMN(NAME=~"pack_hdr.outer_carton_no~") COLUMN(NAME=~"pack_hdr.pick_order~") COLUMN(NAME=~"pack_hdr.sscc_18~") COLUMN(NAME=~"pack_hdr.ptcn~")WHERE( EXP1 =~"~~~"PACK_HDR~~~".~~~"PTCN~~~"~" OP =~"=~" EXP2 =~":ptcn~" ) ) ARG(NAME = ~"ptcn~" TYPE = string) " update="PACK_HDR" updatewhere=1 updatekeyinplace=no arguments=(("ptcn", string)) )
column=(type=decimal(3) update=yes updatewhereclause=yes name=tare_weight dbname="pack_hdr.tare_weight" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=filler_weight dbname="pack_hdr.filler_weight" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"pack_hdr~" ) COLUMN(NAME=~"pack_hdr.tran_id~") COLUMN(NAME=~"pack_hdr.tran_date~") COLUMN(NAME=~"pack_hdr.site_code~") COLUMN(NAME=~"pack_hdr.sale_order~") COLUMN(NAME=~"pack_hdr.wave_id~") COLUMN(NAME=~"pack_hdr.confirmed~") COLUMN(NAME=~"pack_hdr.conf_date~") COLUMN(NAME=~"pack_hdr.emp_code__aprv~") COLUMN(NAME=~"pack_hdr.chg_user~") COLUMN(NAME=~"pack_hdr.chg_date~") COLUMN(NAME=~"pack_hdr.chg_term~") COLUMN(NAME=~"pack_hdr.outer_carton_no~") COLUMN(NAME=~"pack_hdr.pick_order~") COLUMN(NAME=~"pack_hdr.sscc_18~") COLUMN(NAME=~"pack_hdr.ptcn~") COLUMN(NAME=~"pack_hdr.tare_weight~") COLUMN(NAME=~"pack_hdr.filler_weight~")WHERE( EXP1 =~"~~~"PACK_HDR~~~".~~~"PTCN~~~"~" OP =~"=~" EXP2 =~":ptcn~" ) ) ARG(NAME = ~"ptcn~" TYPE = string) " update="PACK_HDR" updatewhere=1 updatekeyinplace=no arguments=(("ptcn", string)) )
text(band=header alignment="0" text="Transaction Id" border="6" color="0" x="2" y="2" height="16" width="82" html.valueishtml="0" name=tran_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=header alignment="0" text="Transaction Date" border="6" color="0" x="86" y="2" height="16" width="132" html.valueishtml="0" name=tran_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="536870912" )
text(band=header alignment="0" text="Site Code" border="6" color="0" x="220" y="2" height="16" width="57" html.valueishtml="0" name=site_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
......@@ -51,6 +53,10 @@ column(band=detail id=12 alignment="0" tabsequence=120 border="5" color="3355443
column(band=detail id=13 alignment="0" tabsequence=130 border="5" color="33554432" x="1214" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=pick_order 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=140 border="5" color="33554432" x="1282" y="2" height="19" width="166" format="[general]" html.valueishtml="0" name=sscc_18 visible="1" edit.limit=35 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=15 alignment="0" tabsequence=150 border="5" color="33554432" x="1450" y="2" height="19" width="66" 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=header alignment="0" text="Tare Weight" border="6" color="33554432" x="1518" y="2" height="16" width="95" html.valueishtml="0" name=tare_weight_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="Filler Weight" border="6" color="33554432" x="1615" y="2" height="16" width="95" html.valueishtml="0" name=filler_weight_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=16 alignment="0" tabsequence=160 border="5" color="33554432" x="1519" y="2" height="16" width="94" html.valueishtml="0" name=tare_weight 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="16777215" )
column(band=detail id=17 alignment="0" tabsequence=170 border="5" color="33554432" x="1616" y="2" height="16" width="94" html.valueishtml="0" name=filler_weight 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="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 )
......
$PBExportHeader$d_packing_brow.srd
release 9;
datawindow(units=1 timer_interval=0 color=79741120 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=18 color="536870912" )
header(height=15 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=19 color="536870912" )
......@@ -27,7 +27,7 @@ text(band=header alignment="0" text="change term" border="6" color="0" x="682" y
text(band=header alignment="0" text="Length" border="0" color="0" x="762" y="1" height="19" width="60" html.valueishtml="0" name=length_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Width" border="0" color="0" x="824" y="1" height="19" width="51" html.valueishtml="0" name=width_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Height" border="0" color="0" x="877" y="1" height="19" width="50" html.valueishtml="0" name=height_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Pack Type" border="0" color="0" x="929" y="1" height="19" width="78" html.valueishtml="0" name=pack_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="2" background.color="67108864" )
text(band=header alignment="0" text="Pack Type" border="0" color="33554432" x="929" y="1" height="19" width="82" html.valueishtml="0" name=pack_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="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="2" y="1" height="16" width="66" format="[general]" html.valueishtml="0" name=pack_code visible="1" edit.limit=5 edit.case=any 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="1090519039" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="0" x="70" y="1" height="16" width="308" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=60 edit.case=any edit.focusrectangle=no edit.autoselect=no 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="1090519039" )
column(band=detail id=3 alignment="1" tabsequence=30 border="5" color="0" x="380" y="1" height="16" width="95" format="###0.000" html.valueishtml="0" name=capacity visible="1" edit.limit=13 edit.case=any edit.format="###0.000" 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="1090519039" )
......@@ -38,7 +38,7 @@ column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="0" x="
column(band=detail id=8 alignment="0" tabsequence=50 border="0" color="0" x="762" y="1" height="16" width="60" format="[general]" html.valueishtml="0" name=length 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="1090519039" )
column(band=detail id=9 alignment="0" tabsequence=60 border="0" color="0" x="824" y="1" height="16" width="51" format="[general]" html.valueishtml="0" name=width 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="1090519039" )
column(band=detail id=10 alignment="0" tabsequence=70 border="0" color="0" x="877" y="1" height="16" width="50" format="[general]" html.valueishtml="0" name=height 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="1090519039" )
column(band=detail id=11 alignment="0" tabsequence=80 border="0" color="0" x="929" y="1" height="16" width="78" format="[general]" html.valueishtml="0" name=pack_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="1090519039" )
column(band=detail id=11 alignment="0" tabsequence=80 border="0" color="0" x="929" y="1" height="16" width="82" format="[general]" html.valueishtml="0" name=pack_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="1090519039" )
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 )
......
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