Commit c9bba916 authored by ssarkar's avatar ssarkar

update by sumit on 25/02/13 for issue tracker point 119 (Active clubbing)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92737 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 23241126
...@@ -672,45 +672,106 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote, ...@@ -672,45 +672,106 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
expLev = dExpLev; expLev = dExpLev;
} }
System.out.println("Finally the Exp level["+expLev+"]"); System.out.println("Finally the Exp level["+expLev+"]");
//Changed by sumit on 25/02/13 checking whether already insertion done in sordalloc if yes then update start
updateSql = "insert into sordalloc( SALE_ORDER, LINE_NO, EXP_LEV, ITEM_CODE__ORD, "
+ " ITEM_CODE, LOT_NO, LOT_SL, LOC_CODE, ITEM_REF, QUANTITY, UNIT, " sql = " SELECT SALE_ORDER, LINE_NO, EXP_LEV, ITEM_CODE, LOT_NO, LOT_SL, LOC_CODE FROM SORDALLOC " +
+ " QTY_ALLOC, DATE_ALLOC, STATUS, ITEM_GRADE, EXP_DATE, ALLOC_MODE, SITE_CODE, " " WHERE SALE_ORDER = ? AND LINE_NO = ? AND EXP_LEV = ? AND ITEM_CODE = ? AND LOT_NO = ? " +
+ " CONV__QTY_STDUOM, UNIT__STD, QUANTITY__STDUOM, MFG_DATE, SITE_CODE__MFG, " " AND LOT_SL = ? AND LOC_CODE = ? ";
+ " REAS_CODE ) VALUES (?, ?, ?, ?, " pstmt1 = conn.prepareStatement(sql);
+ " ?, ?, ? , ?, ?, ?, ?, " pstmt1.setString(1, saleOrder);
+ " ?,?, ?, ?, ?, ?, ?, " pstmt1.setString(2, lineNoSord);
+ " ?, ?, ? , ?, ?, ?) "; pstmt1.setString(3, expLev);
pstmt1.setString(4, itemCode);
pstmt1.setString(5, lotNo);
pstmt1.setString(6, lotSlNew);
pstmt1.setString(7, locCodeTo);
rs1 = pstmt1.executeQuery();
if( rs1.next())
{
updateSql = "UPDATE SORDALLOC SET QTY_ALLOC = QTY_ALLOC + ? " //LOC_CODE = ? ,LOT_SL = ? "
+ " WHERE SALE_ORDER = ? AND LINE_NO = ? "
+ " AND EXP_LEV = ? "
+ " AND ITEM_CODE = ? "
+ " AND LOC_CODE = ? "
+ " AND LOT_NO = ? "
+ " AND LOT_SL = ? "
+ " AND QTY_ALLOC > 0";
pstmtUpd = conn.prepareStatement(updateSql);
pstmtUpd.setDouble(1, pickQty);
pstmtUpd.setString(2, saleOrder);
pstmtUpd.setString(3, lineNoSord);
pstmtUpd.setString(4, expLev);
pstmtUpd.setString(5, itemCode); //pickQty
pstmtUpd.setString(6, locCodeTo);
pstmtUpd.setString(7, lotNo);
pstmtUpd.setString(8, lotSlNew);
updCnt = pstmtUpd.executeUpdate();
if( updCnt > 0 )
{
System.out.println( " updated successfullt in sordalloc ");
}
else
{
throw new Exception(" Update fail in sordalloc");
}
pstmtUpd.close(); pstmtUpd = null;
}
else
{
updateSql = "insert into sordalloc( SALE_ORDER, LINE_NO, EXP_LEV, ITEM_CODE__ORD, "
+ " ITEM_CODE, LOT_NO, LOT_SL, LOC_CODE, ITEM_REF, QUANTITY, UNIT, "
+ " QTY_ALLOC, DATE_ALLOC, STATUS, ITEM_GRADE, EXP_DATE, ALLOC_MODE, SITE_CODE, "
+ " CONV__QTY_STDUOM, UNIT__STD, QUANTITY__STDUOM, MFG_DATE, SITE_CODE__MFG, "
+ " REAS_CODE ) VALUES (?, ?, ?, ?, "
+ " ?, ?, ? , ?, ?, ?, ?, "
+ " ?,?, ?, ?, ?, ?, ?, "
+ " ?, ?, ? , ?, ?, ?) ";
pstmtUpd = conn.prepareStatement(updateSql); pstmtUpd = conn.prepareStatement(updateSql);
pstmtUpd.setString(1, saleOrder); pstmtUpd.setString(1, saleOrder);
pstmtUpd.setString(2, lineNoSord); pstmtUpd.setString(2, lineNoSord);
pstmtUpd.setString(3, expLev); pstmtUpd.setString(3, expLev);
pstmtUpd.setString(4, itemCodeOrd); pstmtUpd.setString(4, itemCodeOrd);
pstmtUpd.setString(5, itemCode); pstmtUpd.setString(5, itemCode);
pstmtUpd.setString(6, lotNo); pstmtUpd.setString(6, lotNo);
pstmtUpd.setString(7, lotSlNew); pstmtUpd.setString(7, lotSlNew);
pstmtUpd.setString(8, locCodeTo); pstmtUpd.setString(8, locCodeTo);
pstmtUpd.setString(9, itemRef); pstmtUpd.setString(9, itemRef);
//pstmtUpd.setDouble(10, actualQty); //pstmtUpd.setDouble(10, actualQty);
pstmtUpd.setDouble(10, qtyOrd); pstmtUpd.setDouble(10, qtyOrd);
pstmtUpd.setString(11, unit); pstmtUpd.setString(11, unit);
//pstmtUpd.setDouble(12, actualQty); //pstmtUpd.setDouble(12, actualQty);
pstmtUpd.setDouble(12, pickQty); pstmtUpd.setDouble(12, pickQty);
pstmtUpd.setTimestamp(13, dateAlloc); pstmtUpd.setTimestamp(13, dateAlloc);
pstmtUpd.setString(14, status); pstmtUpd.setString(14, status);
pstmtUpd.setString(15, itemGrade); pstmtUpd.setString(15, itemGrade);
pstmtUpd.setTimestamp(16, expDate); pstmtUpd.setTimestamp(16, expDate);
pstmtUpd.setString(17, allocMode); pstmtUpd.setString(17, allocMode);
pstmtUpd.setString(18, siteCode); pstmtUpd.setString(18, siteCode);
pstmtUpd.setDouble(19, convQtyStduom ); pstmtUpd.setDouble(19, convQtyStduom );
pstmtUpd.setString(20, unitStd); pstmtUpd.setString(20, unitStd);
pstmtUpd.setDouble(21, actualQty * convQtyStduom); pstmtUpd.setDouble(21, actualQty * convQtyStduom);
pstmtUpd.setTimestamp(22, mfgDate ); pstmtUpd.setTimestamp(22, mfgDate );
pstmtUpd.setString(23, siteCodeMfg); pstmtUpd.setString(23, siteCodeMfg);
pstmtUpd.setString(24, reasCode); pstmtUpd.setString(24, reasCode);
updCnt = pstmtUpd.executeUpdate(); updCnt = pstmtUpd.executeUpdate();
if(updCnt > 0 )
{
System.out.println(" insertion done in sordalloc");
}
else
{
throw new Exception(" INSERTION FAIL IN SORDALLOC TABLE");
}
pstmtUpd.close(); pstmtUpd = null;
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
//Changed by sumit on 25/02/13 checking whether already insertion done in sordalloc if yes then update end
System.out.println("manohar 18/09/12 sordalloc inserted updCnt [" + updCnt + "]"); System.out.println("manohar 18/09/12 sordalloc inserted updCnt [" + updCnt + "]");
} }
......
...@@ -163,7 +163,7 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -163,7 +163,7 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
String sqlReplCnt = ""; String sqlReplCnt = "";
int cntRepl = 0; int cntRepl = 0;
//Changed By Rohan on 29-12-10 to define variables.end //Changed By Rohan on 29-12-10 to define variables.end
String noArt = "";//Changed by sumit on 25/02/13
DistCommon distCommon = new DistCommon(); DistCommon distCommon = new DistCommon();
List<String> lpnNoList; List<String> lpnNoList;
...@@ -695,6 +695,9 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -695,6 +695,9 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
{ {
childList = parentList.item(0).getChildNodes(); childList = parentList.item(0).getChildNodes();
noOfChilds = childList.getLength(); noOfChilds = childList.getLength();
//Changed by sumit on 25/02/13 getting obj_name
objName = getObjNameFromDom(currFormDataDom, "objName", objContext);
System.out.println(" onj_name ["+objName+"]");
for ( int ctr = 0; ctr < noOfChilds; ctr++ ) //Loop for each node of current detail for ( int ctr = 0; ctr < noOfChilds; ctr++ ) //Loop for each node of current detail
{ {
Node childNode = childList.item( ctr ); Node childNode = childList.item( ctr );
...@@ -708,6 +711,8 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -708,6 +711,8 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
columnValue = childNode.getFirstChild().getNodeValue(); columnValue = childNode.getFirstChild().getNodeValue();
} }
System.out.println(" columnName:::::: [" + childNodeName + "] columnValue [" + columnValue + "]"); System.out.println(" columnName:::::: [" + childNodeName + "] columnValue [" + columnValue + "]");
//Changed by sumit on 25/02/13 validation for no_art start
if ( "lot_sl".equalsIgnoreCase( childNodeName ) ) if ( "lot_sl".equalsIgnoreCase( childNodeName ) )
{ {
...@@ -1357,7 +1362,47 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -1357,7 +1362,47 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
pstmt = null; pstmt = null;
} }
} }
//Changed by sumit on 25/02/13 validation no_art start
else if ( "no_art".equalsIgnoreCase( childNodeName ) && "active_repl_iss".equalsIgnoreCase(objName))
{
noArt = checkNull(genericUtility.getColumnValue("no_art", currFormDataDom ));
replOrder = genericUtility.getColumnValue("repl_order", currFormDataDom );
System.out.println(" noArt ["+noArt+"] replOrder ["+replOrder+"]");
if( noArt == null || noArt.trim().length() == 0 )
{
errList.add( "NULLNOART" );
errFields.add( childNodeName.toLowerCase() );
}
else if (!noArt.matches("((-|\\+)?[0-9]+(\\.[0-9]+)?)+")) // NO_ART SHOLUD BE A NUMBER
{
errList.add( "ARTNOTANUM" );
errFields.add( childNodeName.toLowerCase() );
}
else
{
double tempNoArt = 0.0;
sql = " SELECT SUM(NO_ART) AS NO_ART FROM REPL_ORD_DET WHERE REPL_ORDER = ? " +
" AND CASE WHEN CANCEL_MODE IS NULL THEN 'N' ELSE CANCEL_MODE END <> 'Y'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
rs = pstmt.executeQuery();
if( rs.next())
{
tempNoArt = rs.getDouble(1);
}
rs.close(); rs =null;
pstmt.close(); pstmt = null;
if ( Double.parseDouble(noArt) != tempNoArt)
{
errList.add( "INVNOOFART" );
errFields.add( childNodeName.toLowerCase() );
}
}
}
//Changed by sumit on 25/02/13 validation no_art end
//Changed By rohan on 29-10-12 to add warning if depended repanishment present.start //Changed By rohan on 29-10-12 to add warning if depended repanishment present.start
//Changed By Rohan on 29-10-12 to add warning if depended repanishment present.end //Changed By Rohan on 29-10-12 to add warning if depended repanishment present.end
...@@ -2897,8 +2942,10 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -2897,8 +2942,10 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
Connection conn = null; Connection conn = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
PreparedStatement pstmt1 = null;//added by sumit on 20/02/13
PreparedStatement pstmtStock = null; PreparedStatement pstmtStock = null;
ResultSet rs = null ; ResultSet rs = null ;
ResultSet rs1 = null ; //added by sumit on 20/02/13
ResultSet rsStock = null ; ResultSet rsStock = null ;
NodeList parentNodeList = null; NodeList parentNodeList = null;
Node parentNode = null; Node parentNode = null;
...@@ -2911,6 +2958,7 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -2911,6 +2958,7 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
String replOrderChkInv = ""; String replOrderChkInv = "";
String replOrderChk = ""; String replOrderChk = "";
//Changed By Pragyan 26/11/12 To set the last used Inventory for scaning.end //Changed By Pragyan 26/11/12 To set the last used Inventory for scaning.end
String replLine = "";// changed by sumit on 20/02/13
System.out.println("xtraParams=["+xtraParams+"]"); System.out.println("xtraParams=["+xtraParams+"]");
String objNameChk = ""; String objNameChk = "";
DistCommon distComm = new DistCommon(); DistCommon distComm = new DistCommon();
...@@ -3225,7 +3273,8 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3225,7 +3273,8 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
if ( replIssID.trim().length() > 0 ) if ( replIssID.trim().length() > 0 )
{ {
tranID = replIssID; tranID = replIssID;
sql = "SELECT MAX(LINE_NO) FROM REPL_ISS_DET WHERE TRAN_ID = ? "; //Changed by sumit on 21/02/13 commenting no need of this code, getting dom id by normal increment start
/*sql = "SELECT MAX(LINE_NO) FROM REPL_ISS_DET WHERE TRAN_ID = ? ";
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, tranID ); pstmt.setString( 1, tranID );
...@@ -3235,13 +3284,17 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3235,13 +3284,17 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
domID = rs.getInt(1); domID = rs.getInt(1);
} }
rs.close(); rs = null; rs.close(); rs = null;
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;*/
//Changed by sumit on 21/02/13 commenting no need of this code, getting dom id by normal increment end
} }
} }
//added by chitranjan to get location code ,var_name ,pick_type from stock and invstat location for suggested location //23/11/11 //added by chitranjan to get location code ,var_name ,pick_type from stock and invstat location for suggested location //23/11/11
sugstLocList = new ArrayList(); sugstLocList = new ArrayList();
sql = "SELECT POD.PICK_TYPE , ROD.ITEM_CODE FROM REPL_ORD_DET ROD,PICK_ORD_HDR POD WHERE ROD.PICK_ORDER = POD.PICK_ORDER AND ROD.REPL_ORDER = ?"; //Changed by sumit on 19/02/13 modifide sql as this is wrong.
//sql = "SELECT POD.PICK_TYPE , ROD.ITEM_CODE FROM REPL_ORD_DET ROD,PICK_ORD_HDR POD WHERE ROD.PICK_ORDER = POD.PICK_ORDER AND ROD.REPL_ORDER = ?";
sql = " SELECT DISTINCT POH.PICK_TYPE , ROD.ITEM_CODE FROM REPL_ORD_DET ROD,PICK_ORD_HDR POH , PICK_ORD_DET POD " +
" WHERE POH.PICK_ORDER = POD.PICK_ORDER AND POD.REPL_ORDER = ROD.REPL_ORDER AND ROD.REPL_ORDER = ? ";
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, replOrder ); pstmt.setString( 1, replOrder );
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -3354,27 +3407,83 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3354,27 +3407,83 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
//end of changes by chitranjan - 23/11/11 //end of changes by chitranjan - 23/11/11
sql = "SELECT RID.TRAN_ID, RID.LINE_NO, RID.REPL_ORDER, RID.LINE_NO__ORD, RID.SITE_CODE, RID.ITEM_CODE, RID.LOC_CODE, RID.LOT_NO, "+ //Changed by sumit on 21/02/13 changing sql for active repl_iss start
/*sql = "SELECT RID.TRAN_ID, RID.LINE_NO, RID.REPL_ORDER, RID.LINE_NO__ORD, RID.SITE_CODE, RID.ITEM_CODE, RID.LOC_CODE, RID.LOT_NO, "+
" RID.LOT_SL, RID.QUANTITY, RID.NO_ART, RID.LOC_CODE__TO, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT,RID.LOC_CODE__SYS as LOC_CODE__SYS, RID.LOT_SL__NEW"+
" FROM REPL_ISS_DET RID, ITEM ITEM WHERE RID.TRAN_ID = ? AND RID.ITEM_CODE = ITEM.ITEM_CODE ORDER BY LINE_NO ";*/
if("active_repl_iss".equalsIgnoreCase(objName))
{
sql = " SELECT RID.SITE_CODE, RID.ITEM_CODE, RID.LOC_CODE, RID.LOT_NO, RID.LOT_SL, RID.LOC_CODE__TO, ITEM.DESCR AS ITEM_DESCR ," +
" ITEM.UNIT UNIT,RID.LOC_CODE__SYS as LOC_CODE__SYS, RID.LOT_SL__NEW, SUM(RID.QUANTITY) AS QUANTITY , SUM(RID.NO_ART) AS NO_ART " +
" FROM REPL_ISS_DET RID, ITEM ITEM WHERE RID.TRAN_ID = ? AND RID.ITEM_CODE = ITEM.ITEM_CODE " +
" GROUP BY RID.SITE_CODE, RID.ITEM_CODE, RID.LOC_CODE, RID.LOT_NO, RID.LOT_SL,RID.LOC_CODE__TO, ITEM.DESCR, UNIT, LOC_CODE__SYS, RID.LOT_SL__NEW ";
replLine = "SELECT LINE_NO, LINE_NO__ORD FROM REPL_ISS_DET WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ?" +
" AND LOT_SL = ? AND REPL_ORDER = ? AND TRAN_ID = ? ORDER BY LINE_NO";
pstmt1 = conn.prepareStatement(replLine);
}
else
{
sql = "SELECT RID.TRAN_ID, RID.LINE_NO, RID.REPL_ORDER, RID.LINE_NO__ORD, RID.SITE_CODE, RID.ITEM_CODE, RID.LOC_CODE, RID.LOT_NO, "+
" RID.LOT_SL, RID.QUANTITY, RID.NO_ART, RID.LOC_CODE__TO, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT,RID.LOC_CODE__SYS as LOC_CODE__SYS, RID.LOT_SL__NEW"+ " RID.LOT_SL, RID.QUANTITY, RID.NO_ART, RID.LOC_CODE__TO, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT,RID.LOC_CODE__SYS as LOC_CODE__SYS, RID.LOT_SL__NEW"+
" FROM REPL_ISS_DET RID, ITEM ITEM WHERE RID.TRAN_ID = ? AND RID.ITEM_CODE = ITEM.ITEM_CODE ORDER BY LINE_NO "; " FROM REPL_ISS_DET RID, ITEM ITEM WHERE RID.TRAN_ID = ? AND RID.ITEM_CODE = ITEM.ITEM_CODE ORDER BY LINE_NO ";
}
//Changed by sumit on 21/02/13 changing sql for active repl_iss end
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, tranID ); pstmt.setString( 1, tranID );
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
while ( rs.next() ) while ( rs.next() )
{ {
lineNoOrd = rs.getInt("LINE_NO__ORD"); //Changed by sumit on 21/02/13 seperated line_no in case of active_repl_iss start
/*lineNoOrd = rs.getInt("LINE_NO__ORD");
ordLineNos = ordLineNos + "'" + lineNoOrd + "',"; ordLineNos = ordLineNos + "'" + lineNoOrd + "',";
// 04/10/12 manoharan // 04/10/12 manoharan
issLineNo = rs.getInt("LINE_NO"); issLineNo = rs.getInt("LINE_NO");*/
if("active_repl_iss".equalsIgnoreCase(objName))
{
pstmt1.setString(1, rs.getString("ITEM_CODE"));
pstmt1.setString(2, rs.getString("SITE_CODE"));
pstmt1.setString(3, rs.getString("LOC_CODE"));
pstmt1.setString(4, rs.getString("LOT_NO"));
pstmt1.setString(5, rs.getString("LOT_SL"));
pstmt1.setString(6, replOrder);
pstmt1.setString(7, tranID);
rs1 = pstmt1.executeQuery();
if( rs1.next() )
{
lineNoOrd = rs1.getInt("LINE_NO__ORD");
issLineNo = rs1.getInt("LINE_NO");
}
rs1.close();rs1 = null;
pstmt1.clearParameters();
}
else
{
lineNoOrd = rs.getInt("LINE_NO__ORD");
ordLineNos = ordLineNos + "'" + lineNoOrd + "',";
// 04/10/12 manoharan
issLineNo = rs.getInt("LINE_NO");
}
//Changed by sumit on 21/02/13 seperated line_no in case of active_repl_iss end
//Changed by sumit on 21/02/13 open the commented domId and using this domId start
//domID++; //domID++;
//valueXmlString.append( "<Detail2 domID='"+ domID +"' objContext = '"+currentFormNo+"' objName=\"pick_iss\" selected=\"Y\">\r\n" ); //valueXmlString.append( "<Detail2 domID='"+ domID +"' objContext = '"+currentFormNo+"' objName=\"pick_iss\" selected=\"Y\">\r\n" );
valueXmlString.append( "<Detail3 domID='"+ issLineNo +"' objContext = '"+currentFormNo+"' objName='"+objName+"' selected=\"Y\">\r\n" ); //valueXmlString.append( "<Detail3 domID='"+ issLineNo +"' objContext = '"+currentFormNo+"' objName='"+objName+"' selected=\"Y\">\r\n" );
domID++;
valueXmlString.append( "<Detail3 domID='"+ domID +"' objContext = '"+currentFormNo+"' objName='"+objName+"' selected=\"Y\">\r\n" );
//Changed by sumit on 21/02/13 open the commented domid using domId end
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"O\" pkNames=\"\" />\r\n"); //added by Kunal on 30/08/12 valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"O\" pkNames=\"\" />\r\n"); //added by Kunal on 30/08/12
//valueXmlString.append( "<attribute selected=\"Y\"/>\r\n" ); //valueXmlString.append( "<attribute selected=\"Y\"/>\r\n" );
valueXmlString.append( "<tran_id><![CDATA[" ).append( checkNull(rs.getString("TRAN_ID")) ).append( "]]></tran_id>\r\n" ); //Changed by sumit on 22/02/13 setting tran_id
//valueXmlString.append( "<tran_id><![CDATA[" ).append( checkNull(rs.getString("TRAN_ID")) ).append( "]]></tran_id>\r\n" );
valueXmlString.append( "<tran_id><![CDATA[" ).append( tranID ).append( "]]></tran_id>\r\n" );
valueXmlString.append( "<line_no><![CDATA[" ).append( issLineNo ).append( "]]></line_no>\r\n" ); valueXmlString.append( "<line_no><![CDATA[" ).append( issLineNo ).append( "]]></line_no>\r\n" );
valueXmlString.append( "<repl_order><![CDATA[" ).append( checkNull(rs.getString("REPL_ORDER")) ).append( "]]></repl_order>\r\n" ); //Changed by sumit on 22/02/13 using repl_order from header
//valueXmlString.append( "<repl_order><![CDATA[" ).append( checkNull(rs.getString("REPL_ORDER")) ).append( "]]></repl_order>\r\n" );
valueXmlString.append( "<repl_order><![CDATA[" ).append( replOrder ).append( "]]></repl_order>\r\n" );
valueXmlString.append( "<line_no__ord><![CDATA[" ).append( lineNoOrd ).append( "]]></line_no__ord>\r\n" ); valueXmlString.append( "<line_no__ord><![CDATA[" ).append( lineNoOrd ).append( "]]></line_no__ord>\r\n" );
valueXmlString.append( "<order_type><![CDATA[" ).append( orderType ).append( "]]></order_type>\r\n" ); valueXmlString.append( "<order_type><![CDATA[" ).append( orderType ).append( "]]></order_type>\r\n" );
valueXmlString.append( "<item_code><![CDATA[" ).append( checkNullAndTrim( rs.getString("ITEM_CODE") )).append( "]]></item_code>\r\n" ); valueXmlString.append( "<item_code><![CDATA[" ).append( checkNullAndTrim( rs.getString("ITEM_CODE") )).append( "]]></item_code>\r\n" );
...@@ -3386,7 +3495,7 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3386,7 +3495,7 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
valueXmlString.append( "<quantity><![CDATA[" ).append( rs.getDouble("QUANTITY")).append( "]]></quantity>\r\n" ); valueXmlString.append( "<quantity><![CDATA[" ).append( rs.getDouble("QUANTITY")).append( "]]></quantity>\r\n" );
valueXmlString.append( "<unit><![CDATA[" ).append( rs.getString("UNIT")).append( "]]></unit>\r\n" ); valueXmlString.append( "<unit><![CDATA[" ).append( rs.getString("UNIT")).append( "]]></unit>\r\n" );
valueXmlString.append( "<no_art><![CDATA[" ).append( rs.getDouble("NO_ART") ).append( "]]></no_art>\r\n" ); valueXmlString.append( "<no_art><![CDATA[" ).append( rs.getDouble("NO_ART") ).append( "]]></no_art>\r\n" );
valueXmlString.append( "<loc_code__to><![CDATA[" ).append( rs.getString("LOC_CODE__TO") ).append( "]]></loc_code__to>\r\n" ); valueXmlString.append( "<loc_code__to><![CDATA[" ).append( checkNull(rs.getString("LOC_CODE__TO")) ).append( "]]></loc_code__to>\r\n" );
//changes made by chitranjan for suggested location code //23/11/11 //changes made by chitranjan for suggested location code //23/11/11
//valueXmlString.append( "<loc_code__sys><![CDATA[" ).append( rs.getString("LOC_CODE__TO") ).append( "]]></loc_code__sys>\r\n" ); //valueXmlString.append( "<loc_code__sys><![CDATA[" ).append( rs.getString("LOC_CODE__TO") ).append( "]]></loc_code__sys>\r\n" );
System.out.println("loc code sys="+rs.getString("LOC_CODE__SYS")); System.out.println("loc code sys="+rs.getString("LOC_CODE__SYS"));
...@@ -3405,13 +3514,24 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3405,13 +3514,24 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
} }
rs.close(); rs = null; rs.close(); rs = null;
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;
//Changed by sumit on 21/02/13 closing statement start
if( rs1 != null )
{
rs1.close(); rs1 = null;
}
if( pstmt1 != null )
{
pstmt1.close(); pstmt1 = null;
}
//Changed by sumit on 21/02/13 closing statement end
if ( ordLineNos.trim().length() > 1 ) if ( ordLineNos.trim().length() > 1 )
{ {
ordLineNos = ordLineNos.substring( 0, ordLineNos.length()-1 ); ordLineNos = ordLineNos.substring( 0, ordLineNos.length()-1 );
} }
if ( domID == 0 ) //Changed by sumit on 20/02/13 commented and written new sql start
/*if ( domID == 0 )
{ {
sql = "SELECT REPL_ORD_DET.LINE_NO, REPL_ORD_DET.ITEM_CODE, REPL_ORD_DET.SITE_CODE, "+ sql = "SELECT REPL_ORD_DET.LINE_NO, REPL_ORD_DET.ITEM_CODE, REPL_ORD_DET.SITE_CODE, "+
"REPL_ORD_DET.LOC_CODE, REPL_ORD_DET.LOT_NO, REPL_ORD_DET.LOT_SL, REPL_ORD_DET.QUANTITY,"+ "REPL_ORD_DET.LOC_CODE, REPL_ORD_DET.LOT_NO, REPL_ORD_DET.LOT_SL, REPL_ORD_DET.QUANTITY,"+
...@@ -3435,15 +3555,32 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3435,15 +3555,32 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
"AND REPL_ORD_DET.ITEM_CODE = ITEM.ITEM_CODE(+) " + "AND REPL_ORD_DET.ITEM_CODE = ITEM.ITEM_CODE(+) " +
"AND REPL_ORD_DET.SITE_CODE = SITE.SITE_CODE(+) "; "AND REPL_ORD_DET.SITE_CODE = SITE.SITE_CODE(+) ";
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
} }*/
sql = " SELECT ROD.ITEM_CODE, ROD.SITE_CODE, ROD.LOC_CODE, ROD.LOT_NO, ROD.LOT_SL, I.DESCR AS ITEM_DESCR , I.UNIT, S.DESCR AS SITE_DESCR , " +
" ROD.LOC_CODE__TO , SUM(QUANTITY) AS QUANTITY , SUM(NO_ART) AS NO_ART FROM REPL_ORD_DET ROD, ITEM I , SITE S " +
" WHERE ROD.REPL_ORDER = ? AND ROD.ITEM_CODE = I.ITEM_CODE AND ROD.SITE_CODE = S.SITE_CODE " +
" AND (ROD.REPL_ORDER, ROD.LINE_NO) NOT IN (SELECT REPL_ORDER, LINE_NO__ORD FROM REPL_ISS_DET WHERE REPL_ORDER = ? )" +
" AND CASE WHEN ROD.CANCEL_MODE IS NULL THEN 'N' ELSE ROD.CANCEL_MODE END <> 'Y' " +
" GROUP BY ROD.ITEM_CODE,ROD.SITE_CODE, ROD.LOC_CODE, ROD.LOT_NO, ROD.LOT_SL, I.DESCR , I.UNIT, S.DESCR , ROD.LOC_CODE__TO ";
pstmt = conn.prepareStatement(sql);
replLine = "SELECT LINE_NO FROM REPL_ORD_DET WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ?" +
" AND LOT_SL = ? AND REPL_ORDER = ? ORDER BY LINE_NO";
pstmt1 = conn.prepareStatement(replLine);
//Changed by sumit on 20/02/13 commented and written new sql end
pstmt.setString( 1, replOrder ); pstmt.setString( 1, replOrder );
//Changed by sumit on 22/03/13 setter as per sql
pstmt.setString( 2, replOrder );
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
String itemDescr = ""; String itemDescr = "";
String unit = ""; String unit = "";
while ( rs.next() ) while ( rs.next() )
{ {
lineNoOrd = rs.getInt("LINE_NO"); //Changed by sumit on 20/02/13 commenting line no and reteriving line number from below code from repl_ord_det
//lineNoOrd = rs.getInt("LINE_NO");
itemCode = rs.getString("ITEM_CODE"); itemCode = rs.getString("ITEM_CODE");
itemDescr = rs.getString("ITEM_DESCR"); itemDescr = rs.getString("ITEM_DESCR");
siteCode = rs.getString("SITE_CODE"); siteCode = rs.getString("SITE_CODE");
...@@ -3456,13 +3593,31 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3456,13 +3593,31 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
noArt = rs.getDouble("NO_ART"); noArt = rs.getDouble("NO_ART");
locCodeto = rs.getString("LOC_CODE__TO"); locCodeto = rs.getString("LOC_CODE__TO");
//Changed by sumit on 20/02/13 reteriving repl line number from repl_ord_det start
pstmt1.setString(1, itemCode);
pstmt1.setString(2, siteCode);
pstmt1.setString(3, locCode);
pstmt1.setString(4, lotNo);
pstmt1.setString(5, lpnNo);
pstmt1.setString(6, replOrder);
rs1 = pstmt1.executeQuery();
if( rs1.next() )
{
lineNoOrd = rs1.getInt("LINE_NO");
}
rs1.close();rs1 = null;
pstmt1.clearParameters();
//Changed by sumit on 20/02/13 reteriving repl line number from repl_ord_det end
domID++; domID++;
//valueXmlString.append( "<Detail2 domID='"+ domID +"' selected=\"N\">\r\n" ); //valueXmlString.append( "<Detail2 domID='"+ domID +"' selected=\"N\">\r\n" );
valueXmlString.append( "<Detail3 domID='"+ domID +"' objContext = '"+currentFormNo+"' objName='"+objName+"' selected=\"N\">\r\n" ); valueXmlString.append( "<Detail3 domID='"+ domID +"' objContext = '"+currentFormNo+"' objName='"+objName+"' selected=\"N\">\r\n" );
valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n"); //added by Kunal on 30/08/12 valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n"); //added by Kunal on 30/08/12
valueXmlString.append( "<tran_id/>" ); valueXmlString.append( "<tran_id/>" );
//valueXmlString.append( "<line_no/>" );//changed by gulzar on 12/22/2011 //valueXmlString.append( "<line_no/>" );//changed by gulzar on 12/22/2011
valueXmlString.append( "<line_no><![CDATA[" ).append( domID ).append( "]]></line_no>\r\n" );//changed by gulzar on 12/22/2011 //Changed by sumit on 22/02/13 changing line_no
//valueXmlString.append( "<line_no><![CDATA[" ).append( domID ).append( "]]></line_no>\r\n" );//changed by gulzar on 12/22/2011
valueXmlString.append( "<line_no><![CDATA[" ).append( lineNoOrd ).append( "]]></line_no>\r\n" );
valueXmlString.append( "<repl_order><![CDATA[" ).append( replOrder ).append( "]]></repl_order>\r\n" ); valueXmlString.append( "<repl_order><![CDATA[" ).append( replOrder ).append( "]]></repl_order>\r\n" );
valueXmlString.append( "<line_no__ord><![CDATA[" ).append( lineNoOrd ).append( "]]></line_no__ord>\r\n" ); valueXmlString.append( "<line_no__ord><![CDATA[" ).append( lineNoOrd ).append( "]]></line_no__ord>\r\n" );
valueXmlString.append( "<order_type><![CDATA[" ).append( orderType ).append( "]]></order_type>\r\n" ); valueXmlString.append( "<order_type><![CDATA[" ).append( orderType ).append( "]]></order_type>\r\n" );
...@@ -3494,7 +3649,9 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3494,7 +3649,9 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
} }
//valueXmlString.append("<loc_code__to><![CDATA[").append( locCodeto).append("]]></loc_code__to>\r\n"); //valueXmlString.append("<loc_code__to><![CDATA[").append( locCodeto).append("]]></loc_code__to>\r\n");
//valueXmlString.append( "<loc_code__to/>" ); //valueXmlString.append( "<loc_code__to/>" );
if ( "A".equalsIgnoreCase(pickType.trim()) )//Active pick //Changed by sumit on 25/02/13 setting lot_sl_new in case of psrv to active( Order type "T"
//if ( "A".equalsIgnoreCase(pickType.trim()) )//Active pick
if ( "A".equalsIgnoreCase(pickType.trim()) && !"T".equalsIgnoreCase(orderType))
{ {
valueXmlString.append( "<lot_sl__new><![CDATA[]]></lot_sl__new>\r\n" ); valueXmlString.append( "<lot_sl__new><![CDATA[]]></lot_sl__new>\r\n" );
} }
...@@ -3506,6 +3663,17 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3506,6 +3663,17 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
} }
rs.close(); rs = null; rs.close(); rs = null;
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;
//Changed by sumit on 20/02/13 closing prepared statement start
if( pstmt1 != null)
{
pstmt1.close(); pstmt1 = null;
}
if( rs1 != null )
{
rs1.close(); rs1 = null;
}
//Changed by sumit on 20/02/13 closing prepared statement end
/////////// ///////////
String updatedDetailDomStr = addSelectedRecToDom( allFormDataDom, valueXmlString.toString() ); String updatedDetailDomStr = addSelectedRecToDom( allFormDataDom, valueXmlString.toString() );
...@@ -3609,7 +3777,10 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3609,7 +3777,10 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
lotSlNew = genericUtility.getColumnValueFromNode("lot_sl__new", parentNode); lotSlNew = genericUtility.getColumnValueFromNode("lot_sl__new", parentNode);
replOrder = genericUtility.getColumnValueFromNode("repl_order", parentNode); replOrder = genericUtility.getColumnValueFromNode("repl_order", parentNode);
lineNoOrd = Integer.parseInt(genericUtility.getColumnValueFromNode("line_no__ord", parentNode)); lineNoOrd = Integer.parseInt(genericUtility.getColumnValueFromNode("line_no__ord", parentNode));
sql = "SELECT POD.PICK_TYPE , ROD.ITEM_CODE FROM REPL_ORD_DET ROD,PICK_ORD_HDR POD WHERE ROD.PICK_ORDER = POD.PICK_ORDER AND ROD.REPL_ORDER = ?"; //Changed by sumit on 19/02/13 modifide sql as this is wrong.
//sql = "SELECT POD.PICK_TYPE , ROD.ITEM_CODE FROM REPL_ORD_DET ROD,PICK_ORD_HDR POD WHERE ROD.PICK_ORDER = POD.PICK_ORDER AND ROD.REPL_ORDER = ?";
sql = " SELECT DISTINCT POH.PICK_TYPE , ROD.ITEM_CODE FROM REPL_ORD_DET ROD,PICK_ORD_HDR POH , PICK_ORD_DET POD " +
" WHERE POH.PICK_ORDER = POD.PICK_ORDER AND POD.REPL_ORDER = ROD.REPL_ORDER AND ROD.REPL_ORDER = ? ";
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, replOrder ); pstmt.setString( 1, replOrder );
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -3734,6 +3905,16 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3734,6 +3905,16 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
conn.close(); conn.close();
conn = null; conn = null;
} }
//Changed by sumit on 20/02/13 closing prepared statement start
if( pstmt1 != null)
{
pstmt1.close(); pstmt1 = null;
}
if( rs1 != null )
{
rs1.close(); rs1 = null;
}
//Changed by sumit on 20/02/13 closing prepared statement end
} }
catch (Exception e) catch (Exception e)
{ {
......
...@@ -38,6 +38,7 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs ...@@ -38,6 +38,7 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs
String errString = ""; String errString = "";
String locCodeTwo = ""; String locCodeTwo = "";
//Changed by sumit on 09/10/12 end //Changed by sumit on 09/10/12 end
String objName = ""; //Changed by sumit on 21/02/13
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null ; ResultSet rs = null ;
...@@ -56,6 +57,13 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs ...@@ -56,6 +57,13 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs
{ {
dom = genericUtility.parseString(domString); dom = genericUtility.parseString(domString);
NodeList detail3List = dom.getElementsByTagName("Detail3"); NodeList detail3List = dom.getElementsByTagName("Detail3");
//Changed by sumit on 20/02/13 updating repl_iss_det start
objName = getObjNameFromDom(dom, "objName", "1");
if("active_repl_iss".equalsIgnoreCase(objName))
{
updateReplOrder(dom, tranId, conn);
}
//Changed by sumit on 20/02/13 updating repl_iss_det end
if(detail3List != null && detail3List.getLength() > 0) if(detail3List != null && detail3List.getLength() > 0)
{ {
System.out.println("Detail3 length = "+detail3List.getLength()); System.out.println("Detail3 length = "+detail3List.getLength());
...@@ -88,6 +96,7 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs ...@@ -88,6 +96,7 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs
{ {
selectedRow = rs.getInt(1); selectedRow = rs.getInt(1);
} }
System.out.println(" selectedRow ==>["+selectedRow+"]");
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
...@@ -189,9 +198,10 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs ...@@ -189,9 +198,10 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
//if(totalRow == selectedRow)
if(totalRow == locCtr) //Changed by sumit on 23/02/13 commenting below code from for loop and written outside of for loop start .
/*if(totalRow == locCtr)
{ {
System.out.println("=======>totalRow [" + totalRow + "] locCtr [" + locCtr + "]"); System.out.println("=======>totalRow [" + totalRow + "] locCtr [" + locCtr + "]");
ReplIssConf replIssConf = new ReplIssConf(); ReplIssConf replIssConf = new ReplIssConf();
...@@ -210,7 +220,45 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs ...@@ -210,7 +220,45 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs
else else
{ {
System.out.println("All rows are not selected"); System.out.println("All rows are not selected");
}*/
//Changed by sumit on 23/02/13 commenting below code from for loop and written outside of for loop END .
}
//Changed by sumit on 23/02/13 written above commented code here start .
if("active_repl_iss".equalsIgnoreCase(objName) && totalRow == selectedRow )
{
sql = "select COUNT(*) FROM REPL_ISS_DET WHERE TRAN_ID = ? AND LOC_CODE__TO IS NOT NULL ";
pstmt = conn.prepareStatement(sql);
pstmt.setString( 1, tranId);
rs = pstmt.executeQuery();
if( rs.next())
{
locCtr = rs.getInt(1);
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
System.out.println(" locCtr ==>["+locCtr+"]");
}
//Changed by sumit on 23/02/13 written above commented code here end .
if(totalRow == locCtr)
{
System.out.println("=======>totalRow [" + totalRow + "] locCtr [" + locCtr + "]");
ReplIssConf replIssConf = new ReplIssConf();
retString = replIssConf.confirm(tranId, xtraParams, forcedFlag, conn, isConn);
System.out.println("retString[" +retString +"]");
if (retString.indexOf("REPISSCONF") > -1)
{
retString = "";
} }
if ( retString != null && retString.length() > 0 )
{
//throw new Exception("Exception while calling confirm for tran Id:["+tranId+"]");
throw new Exception(retString);
}
}
else
{
System.out.println("All rows are not selected");
} }
} }
} }
...@@ -344,4 +392,294 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs ...@@ -344,4 +392,294 @@ public class ReplIssPos extends ValidatorEJB implements ReplIssPosRemote, ReplIs
return errString; return errString;
} }
//Changed by sumit on 09/10/12 generating report end. //Changed by sumit on 09/10/12 generating report end.
//Changed by sumit on 21/02/13 to reterive obj_name start
private String getObjNameFromDom( Document dom, String attribute, String objContext ) throws RemoteException,ITMException
{
NodeList detailList = null;
Node currDetail = null,reqDetail = null;
String objName = "";
int detailListLength = 0;
try
{
detailList = dom.getElementsByTagName("Detail"+objContext);
detailListLength = detailList.getLength();
for (int ctr = 0; ctr < detailListLength; ctr++)
{
currDetail = detailList.item(ctr);
objName = currDetail.getAttributes().getNamedItem(attribute).getNodeValue();
}
}
catch ( Exception e )
{
throw new ITMException(e);
}
return objName;
}
private String checkNull(String str)
{
if( str == null)
{
str = "";
}
return str;
}
//Changed by sumit on 21/02/13 to reterive obj_name end
//Changed by sumit on 21/02/13 to update repl_iss_det start
private String updateReplOrder ( Document dom , String tranId, Connection conn) throws ITMException
{
String sql = "";
String errString = "";
String locCode = "", lotNo = "", siteCode = "", itemCode = "";
String replOrder = "";
String locCodeSys = "";
String lotSlNew = "";
String locCodeTo = "";
int lineNoOrd = 0;
String lotSl = "";
double noArt = 0.0, quantity = 0.0;
int update = 0, tranLine = 0;
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
ResultSet rs = null, rs1 = null, rs2 = null;
NodeList parentNodeList = null;
Node parentNode = null;
int parentNodeListLength = 0;
try
{
NodeList detail3List = dom.getElementsByTagName("Detail3");
parentNodeListLength = detail3List.getLength();
sql = "SELECT MAX(LINE_NO) FROM REPL_ISS_DET WHERE TRAN_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next())
{
tranLine = rs.getInt(1);
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
for(int row = 0; row < parentNodeListLength; row++)
{
replOrder = GenericUtility.getInstance().getColumnValueFromNode("repl_order", dom.getElementsByTagName("Detail3").item(row));
//lineNoOrd = Integer.parseInt(GenericUtility.getInstance().getColumnValueFromNode("line_no__ord", dom.getElementsByTagName("Detail3").item(row)));
itemCode = GenericUtility.getInstance().getColumnValueFromNode("item_code", dom.getElementsByTagName("Detail3").item(row));
siteCode = GenericUtility.getInstance().getColumnValueFromNode("site_code", dom.getElementsByTagName("Detail3").item(row));
locCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code", dom.getElementsByTagName("Detail3").item(row));
lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no", dom.getElementsByTagName("Detail3").item(row));
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl", dom.getElementsByTagName("Detail3").item(row));
locCodeSys = GenericUtility.getInstance().getColumnValueFromNode("loc_code__sys", dom.getElementsByTagName("Detail3").item(row));
lotSlNew = GenericUtility.getInstance().getColumnValueFromNode("lot_sl__new", dom.getElementsByTagName("Detail3").item(row));
noArt = Double.parseDouble(GenericUtility.getInstance().getColumnValueFromNode("no_art", dom.getElementsByTagName("Detail3").item(row)));
System.out.println(" replOrder ["+replOrder+"] lineNoOrd ["+lineNoOrd+"]");
System.out.println(" itemCode ["+itemCode+"] siteCode ["+siteCode+"] locCode["+locCode+"] lotNo["+lotNo+"] lotSl["+lotSl+"]");
System.out.println(" locCodeSys ["+locCodeSys+"] lotSlNew ["+lotSlNew+"] noArt["+noArt+"]");
sql = " UPDATE REPL_ISS_DET SET LOT_SL__NEW = ? WHERE REPL_ORDER = ? AND ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? " +
" AND LOT_NO = ? AND LOT_SL = ? AND TRAN_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lotSlNew);
pstmt.setString(2, replOrder);
pstmt.setString(3, itemCode);
pstmt.setString(4, siteCode);
pstmt.setString(5, locCode);
pstmt.setString(6, lotNo);
pstmt.setString(7, lotSl);
pstmt.setString(8, tranId);
update = 0;
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(" update seccessfully ");
}
pstmt.close(); pstmt = null;
if( noArt == 1 )
{
continue;
}
System.out.println(" **********-----------**********");
sql = " SELECT REPL_ORDER, LINE_NO, QUANTITY, NO_ART FROM REPL_ORD_DET WHERE REPL_ORDER = ? " +
" AND ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ? " +
" AND CASE WHEN CANCEL_MODE IS NULL THEN 'N' ELSE CANCEL_MODE END <> 'Y' ORDER BY LINE_NO ";
pstmt = conn.prepareStatement(sql);
sql = " SELECT REPL_ORDER, LINE_NO__ORD, QUANTITY, NO_ART FROM REPL_ISS_DET WHERE TRAN_ID = ? AND REPL_ORDER = ? " +
" AND LINE_NO__ORD = ? AND ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
pstmt.setString(2, itemCode);
pstmt.setString(3, siteCode);
pstmt.setString(4, locCode);
pstmt.setString(5, lotNo);
pstmt.setString(6, lotSl);
rs = pstmt.executeQuery();
while( rs.next() )
{
quantity = rs.getDouble("QUANTITY");
pstmt1.setString(1, tranId);
pstmt1.setString(2, replOrder);
pstmt1.setInt(3, rs.getInt("LINE_NO"));
pstmt1.setString(4, itemCode);
pstmt1.setString(5, siteCode);
pstmt1.setString(6, locCode);
pstmt1.setString(7, lotNo);
pstmt1.setString(8, lotSl);
rs1 = pstmt1.executeQuery();
if( rs1.next())
{
if( quantity != rs1.getDouble("QUANTITY"))
{
sql = " UPDATE REPL_ISS_DET SET QUANTITY = ?, NO_ART = 1 WHERE REPL_ORDER = ? AND LINE_NO__ORD = ? " +
" AND ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ? AND TRAN_ID = ?";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setDouble(1, quantity);
pstmt2.setString(2, replOrder);
pstmt2.setInt(3, rs.getInt("LINE_NO"));
pstmt2.setString(4, itemCode);
pstmt2.setString(5, siteCode);
pstmt2.setString(6, locCode);
pstmt2.setString(7, lotNo);
pstmt2.setString(8, lotSl);
pstmt2.setString(9, tranId);
update = 0;
update = pstmt2.executeUpdate();
if( update > 0 )
{
System.out.println("repl order ["+replOrder+"] updated ");
}
else
{
throw new Exception("update fail of repl_iss_det ");
}
pstmt2.close(); pstmt2 = null;
}
}
else
{
tranLine++;//Increment tran line_no
// inserting new record in case of record not preset in repl_iss_det
sql = " INSERT INTO REPL_ISS_DET(TRAN_ID, LINE_NO, REPL_ORDER, LINE_NO__ORD, ITEM_CODE, SITE_CODE, " +
" LOC_CODE, LOT_NO, LOT_SL, QUANTITY, NO_ART, LOC_CODE__SYS, LOT_SL__NEW ) " +
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, tranId);
pstmt2.setDouble(2, tranLine);
pstmt2.setString(3, replOrder);
pstmt2.setInt(4, rs.getInt("LINE_NO"));
pstmt2.setString(5, itemCode);
pstmt2.setString(6, siteCode);
pstmt2.setString(7, locCode);
pstmt2.setString(8, lotNo);
pstmt2.setString(9, lotSl);
pstmt2.setDouble(10, quantity);
pstmt2.setDouble(11, 1);
pstmt2.setString(12, locCodeSys);
pstmt2.setString(13, lotSlNew);
update = 0;
update = pstmt2.executeUpdate();
if( update > 0 )
{
System.out.println("repl order ["+replOrder+"] updated ");
}
else
{
throw new Exception("INSERTION FAIL OF REPL_ISS_DET");
}
pstmt2.close(); pstmt2 = null;
}
}
rs.close(); rs =null;
pstmt.close(); pstmt = null;
}
sql = " UPDATE REPL_ISS_DET SET LOC_CODE__TO = ?, LOC_TO_ASSIGNED = 'Y' WHERE REPL_ORDER = ? AND ITEM_CODE = ? " +
" AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ? AND TRAN_ID = ? ";
pstmt = conn.prepareStatement(sql);
NodeList detail4List = dom.getElementsByTagName("Detail4");
parentNodeListLength = detail4List.getLength();
for(int row = 0; row < parentNodeListLength; row++)
{
replOrder = GenericUtility.getInstance().getColumnValueFromNode("repl_order", dom.getElementsByTagName("Detail3").item(row));
itemCode = GenericUtility.getInstance().getColumnValueFromNode("item_code", dom.getElementsByTagName("Detail4").item(row));
siteCode = GenericUtility.getInstance().getColumnValueFromNode("site_code", dom.getElementsByTagName("Detail4").item(row));
locCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code", dom.getElementsByTagName("Detail4").item(row));
lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no", dom.getElementsByTagName("Detail4").item(row));
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl", dom.getElementsByTagName("Detail4").item(row));
locCodeTo = GenericUtility.getInstance().getColumnValueFromNode("loc_code__to", dom.getElementsByTagName("Detail4").item(row));
noArt = Double.parseDouble(GenericUtility.getInstance().getColumnValueFromNode("no_art", dom.getElementsByTagName("Detail3").item(row)));
lotSlNew = GenericUtility.getInstance().getColumnValueFromNode("lot_sl__new", dom.getElementsByTagName("Detail3").item(row));
System.out.println(" replOrder ["+replOrder+"] ");
System.out.println(" itemCode ["+itemCode+"] siteCode ["+siteCode+"] locCode["+locCode+"] lotNo["+lotNo+"] lotSl["+lotSl+"]");
System.out.println(" locCodeTo ["+locCodeTo+"] noArt["+noArt+"]");
/*if( noArt == 1)
{
continue;
}*/
pstmt.setString(1, locCodeTo);
pstmt.setString(2, replOrder);
pstmt.setString(3, itemCode);
pstmt.setString(4, siteCode);
pstmt.setString(5, locCode);
pstmt.setString(6, lotNo);
pstmt.setString(7, lotSl);
pstmt.setString(8, tranId);
update = 0;
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(" update seccessfully ");
}
pstmt.clearParameters();
}
pstmt.close(); pstmt = null;
}
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
throw new ITMException(e);
}
finally
{
try
{
if( rs != null )
{
rs.close(); rs = null;
}
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
}
catch( Exception ex)
{
ex.printStackTrace();
errString = ex.getMessage();
throw new ITMException(ex);
}
}
return errString;
}
//Changed by sumit on 21/02/13 to update repl_iss_det end
} }
...@@ -31,15 +31,15 @@ ...@@ -31,15 +31,15 @@
</print> </print>
</BaseDefinition> </BaseDefinition>
<Summary> <Summary>
<height>0</height> <height>29</height>
<color>536870912</color> <color>536870912</color>
</Summary> </Summary>
<Footer> <Footer>
<height>0</height> <height>8</height>
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>270</height> <height>331</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
<type size="10">char</type> <type size="10">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name> <name>tran_id</name>
<dbname>repl_iss_det.tran_id</dbname> <dbname>repl_iss_det.tran_id</dbname>
</table_column> </table_column>
...@@ -55,7 +54,6 @@ ...@@ -55,7 +54,6 @@
<type precision="0">decimal</type> <type precision="0">decimal</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>line_no</name> <name>line_no</name>
<dbname>repl_iss_det.line_no</dbname> <dbname>repl_iss_det.line_no</dbname>
</table_column> </table_column>
...@@ -167,10 +165,7 @@ ...@@ -167,10 +165,7 @@
<name>order_type</name> <name>order_type</name>
<dbname>order_type</dbname> <dbname>order_type</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;repl_iss_det&quot; ) TABLE(NAME=&quot;item&quot; ) TABLE(NAME=&quot;site&quot; ) COLUMN(NAME=&quot;repl_iss_det.tran_id&quot;) COLUMN(NAME=&quot;repl_iss_det.line_no&quot;) COLUMN(NAME=&quot;repl_iss_det.repl_order&quot;) COLUMN(NAME=&quot;repl_iss_det.line_no__ord&quot;) COLUMN(NAME=&quot;repl_iss_det.item_code&quot;) COLUMN(NAME=&quot;repl_iss_det.site_code&quot;) COLUMN(NAME=&quot;repl_iss_det.loc_code&quot;) COLUMN(NAME=&quot;repl_iss_det.lot_no&quot;) COLUMN(NAME=&quot;repl_iss_det.lot_sl&quot;) COLUMN(NAME=&quot;repl_iss_det.quantity&quot;) COLUMN(NAME=&quot;repl_iss_det.no_art&quot;) COLUMN(NAME=&quot;repl_iss_det.loc_code__to&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;item.unit&quot;) COLUMN(NAME=&quot;repl_iss_det.loc_code__sys&quot;) COLUMN(NAME=&quot;repl_iss_det.lot_sl__new&quot;) COMPUTE(NAME=&quot;&apos; &apos; order_type&quot;) JOIN (LEFT=&quot;repl_iss_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;repl_iss_det.item_code&quot; ) JOIN (LEFT=&quot;repl_iss_det.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;site.site_code&quot; OUTER1 =&quot;repl_iss_det.site_code&quot; )) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;repl_iss_det&quot; ) TABLE(NAME=&quot;item&quot; ) TABLE(NAME=&quot;site&quot; ) COLUMN(NAME=&quot;repl_iss_det.tran_id&quot;) COLUMN(NAME=&quot;repl_iss_det.line_no&quot;) COLUMN(NAME=&quot;repl_iss_det.repl_order&quot;) COLUMN(NAME=&quot;repl_iss_det.line_no__ord&quot;) COLUMN(NAME=&quot;repl_iss_det.item_code&quot;) COLUMN(NAME=&quot;repl_iss_det.site_code&quot;) COLUMN(NAME=&quot;repl_iss_det.loc_code&quot;) COLUMN(NAME=&quot;repl_iss_det.lot_no&quot;) COLUMN(NAME=&quot;repl_iss_det.lot_sl&quot;) COLUMN(NAME=&quot;repl_iss_det.quantity&quot;) COLUMN(NAME=&quot;repl_iss_det.no_art&quot;) COLUMN(NAME=&quot;repl_iss_det.loc_code__to&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;item.unit&quot;) COLUMN(NAME=&quot;repl_iss_det.loc_code__sys&quot;) COLUMN(NAME=&quot;repl_iss_det.lot_sl__new&quot;) COMPUTE(NAME=&quot;&apos; &apos; order_type&quot;) JOIN (LEFT=&quot;repl_iss_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; ) JOIN (LEFT=&quot;repl_iss_det.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;site.site_code&quot; )) </retrieve>
<update>REPL_ISS_DET</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition> </TableDefinition>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
...@@ -180,7 +175,7 @@ ...@@ -180,7 +175,7 @@
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>351</x> <x>351</x>
<y>20</y> <y>33</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
...@@ -218,7 +213,7 @@ ...@@ -218,7 +213,7 @@
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>129</x> <x>129</x>
<y>20</y> <y>33</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
...@@ -256,7 +251,7 @@ ...@@ -256,7 +251,7 @@
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>129</x> <x>129</x>
<y>122</y> <y>135</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
...@@ -294,7 +289,7 @@ ...@@ -294,7 +289,7 @@
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>206</x> <x>206</x>
<y>122</y> <y>135</y>
<height>16</height> <height>16</height>
<width>218</width> <width>218</width>
<format>[general]</format> <format>[general]</format>
...@@ -331,7 +326,7 @@ ...@@ -331,7 +326,7 @@
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>129</x> <x>129</x>
<y>219</y> <y>232</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
...@@ -363,27 +358,26 @@ ...@@ -363,27 +358,26 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>10</id> <id>17</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>20</tabsequence>
<border>5</border> <border>0</border>
<color>255</color> <color>255</color>
<x>129</x> <x>126</x>
<y>71</y> <y>255</y>
<height>16</height> <height>16</height>
<width>73</width> <width>75</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>quantity</name> <name>lot_sl__new</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>no</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
...@@ -401,26 +395,27 @@ ...@@ -401,26 +395,27 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>3</id> <id>10</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>129</x> <x>129</x>
<y>45</y> <y>84</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>repl_order</name> <name>quantity</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>no</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
...@@ -438,27 +433,26 @@ ...@@ -438,27 +433,26 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>4</id> <id>3</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>351</x> <x>129</x>
<y>45</y> <y>58</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>line_no__ord</name> <name>repl_order</name>
<visible>0</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>no</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
...@@ -476,23 +470,23 @@ ...@@ -476,23 +470,23 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>5</id> <id>4</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>129</x> <x>351</x>
<y>97</y> <y>58</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>item_code</name> <name>line_no__ord</name>
<visible>1</visible> <visible>0</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>10</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
...@@ -514,26 +508,27 @@ ...@@ -514,26 +508,27 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>13</id> <id>5</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>206</x> <x>129</x>
<y>97</y> <y>110</y>
<height>16</height> <height>16</height>
<width>218</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>item_descr</name> <name>item_code</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>10</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>no</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
...@@ -551,27 +546,26 @@ ...@@ -551,27 +546,26 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>8</id> <id>13</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>129</x> <x>206</x>
<y>146</y> <y>110</y>
<height>16</height> <height>16</height>
<width>73</width> <width>218</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>lot_no</name> <name>item_descr</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>15</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>no</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
...@@ -587,58 +581,48 @@ ...@@ -587,58 +581,48 @@
<color>67108864</color> <color>67108864</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<id>9</id> <alignment>1</alignment>
<alignment>0</alignment> <text>Quantity:</text>
<tabsequence>32766</tabsequence> <border>6</border>
<border>5</border> <color>33554432</color>
<color>255</color> <x>37</x>
<x>351</x> <y>85</y>
<y>146</y>
<height>16</height> <height>16</height>
<width>73</width> <width>86</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>lot_sl</name> <name>quantity_t</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>67108864</color> <color>536870912</color>
</background> </background>
</ColumnObject> </TextObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>LPN No:</text> <text>Item Code:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>262</x> <x>39</x>
<y>146</y> <y>110</y>
<height>16</height> <height>16</height>
<width>85</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>lot_sl_t</name> <name>item_code_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -656,17 +640,17 @@ ...@@ -656,17 +640,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Line No Order:</text> <text>Site Code:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>262</x> <x>39</x>
<y>45</y> <y>135</y>
<height>16</height> <height>16</height>
<width>85</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>line_no__ord_t</name> <name>site_code_t</name>
<visible>0</visible> <visible>0</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -684,18 +668,18 @@ ...@@ -684,18 +668,18 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Line No:</text> <text>Location Code To:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>262</x> <x>25</x>
<y>20</y> <y>232</y>
<height>16</height> <height>16</height>
<width>85</width> <width>99</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>line_no_t</name> <name>loc_code__to_t</name>
<visible>0</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -709,58 +693,49 @@ ...@@ -709,58 +693,49 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<id>15</id> <alignment>1</alignment>
<alignment>0</alignment> <text>New LPN:</text>
<tabsequence>32766</tabsequence> <border>6</border>
<border>5</border> <color>33554432</color>
<color>255</color> <x>8</x>
<x>129</x> <y>255</y>
<y>169</y>
<height>16</height> <height>16</height>
<width>50</width> <width>115</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>unit</name> <name>lot_sl__new_t</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>67108864</color> <color>536870912</color>
</background> </background>
</ColumnObject> </TextObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>No Of Article:</text> <text>Lot No:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>305</x> <x>39</x>
<y>169</y> <y>159</y>
<height>16</height> <height>16</height>
<width>75</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>no_art_t</name> <name>lot_no_t</name>
<visible>0</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -776,23 +751,23 @@ ...@@ -776,23 +751,23 @@
</TextObject> </TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>11</id> <id>8</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>384</x> <x>129</x>
<y>169</y> <y>159</y>
<height>16</height> <height>16</height>
<width>40</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>no_art</name> <name>lot_no</name>
<visible>0</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>15</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
...@@ -814,23 +789,23 @@ ...@@ -814,23 +789,23 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>7</id> <id>9</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>255</color> <color>255</color>
<x>128</x> <x>351</x>
<y>195</y> <y>159</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>loc_code</name> <name>lot_sl</name>
<visible>0</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>8</limit> <limit>15</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
...@@ -853,17 +828,17 @@ ...@@ -853,17 +828,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Sugg. Location Code:</text> <text>LPN No:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>232</x> <x>262</x>
<y>195</y> <y>159</y>
<height>16</height> <height>16</height>
<width>115</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>loc_code__sys_t</name> <name>lot_sl_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -878,58 +853,48 @@ ...@@ -878,58 +853,48 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<id>16</id> <alignment>1</alignment>
<alignment>0</alignment> <text>Line No Order:</text>
<tabsequence>32766</tabsequence> <border>6</border>
<border>5</border> <color>33554432</color>
<color>255</color> <x>262</x>
<x>350</x> <y>58</y>
<y>195</y>
<height>16</height> <height>16</height>
<width>73</width> <width>85</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>loc_code__sys</name> <name>line_no__ord_t</name>
<visible>1</visible> <visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>67108864</color> <color>536870912</color>
</background> </background>
</ColumnObject> </TextObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Transaction Id:</text> <text>Line No:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>39</x> <x>262</x>
<y>20</y> <y>33</y>
<height>16</height> <height>16</height>
<width>85</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>tran_id_t</name> <name>line_no_t</name>
<visible>0</visible> <visible>0</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -947,17 +912,17 @@ ...@@ -947,17 +912,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Replenishment Order:</text> <text>Unit:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>9</x> <x>39</x>
<y>45</y> <y>182</y>
<height>16</height> <height>16</height>
<width>115</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>repl_order_t</name> <name>unit_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -972,49 +937,58 @@ ...@@ -972,49 +937,58 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>15</id>
<text>Quantity:</text> <alignment>0</alignment>
<border>6</border> <tabsequence>32766</tabsequence>
<color>33554432</color> <border>5</border>
<x>37</x> <color>255</color>
<y>72</y> <x>129</x>
<y>182</y>
<height>16</height> <height>16</height>
<width>86</width> <width>50</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>quantity_t</name> <name>unit</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>67108864</color>
</background> </background>
</TextObject> </ColumnObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Item Code:</text> <text>Transaction Id:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>39</x> <x>39</x>
<y>97</y> <y>33</y>
<height>16</height> <height>16</height>
<width>85</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>item_code_t</name> <name>tran_id_t</name>
<visible>1</visible> <visible>0</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1031,18 +1005,18 @@ ...@@ -1031,18 +1005,18 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Site Code:</text> <text>Replenishment Order:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>39</x> <x>9</x>
<y>122</y> <y>58</y>
<height>16</height> <height>16</height>
<width>85</width> <width>115</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>site_code_t</name> <name>repl_order_t</name>
<visible>0</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1059,17 +1033,17 @@ ...@@ -1059,17 +1033,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Location Code To:</text> <text>Sugg. Location Code:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>25</x> <x>9</x>
<y>219</y> <y>8</y>
<height>16</height> <height>16</height>
<width>99</width> <width>115</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>loc_code__to_t</name> <name>loc_code__sys_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -1084,48 +1058,58 @@ ...@@ -1084,48 +1058,58 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>16</id>
<text>Lot No:</text> <alignment>0</alignment>
<border>6</border> <tabsequence>32766</tabsequence>
<color>33554432</color> <border>5</border>
<x>39</x> <color>255</color>
<y>146</y> <x>129</x>
<y>8</y>
<height>16</height> <height>16</height>
<width>85</width> <width>73</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>lot_no_t</name> <name>loc_code__sys</name>
<visible>1</visible> <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> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>67108864</color>
</background> </background>
</TextObject> </ColumnObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Unit:</text> <text>No Of Article:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>39</x> <x>305</x>
<y>169</y> <y>182</y>
<height>16</height> <height>16</height>
<width>85</width> <width>75</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>unit_t</name> <name>no_art_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -1140,49 +1124,59 @@ ...@@ -1140,49 +1124,59 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>11</id>
<text>Location Code:</text> <alignment>0</alignment>
<border>6</border> <tabsequence>32766</tabsequence>
<color>33554432</color> <border>5</border>
<x>39</x> <color>255</color>
<y>195</y> <x>384</x>
<y>182</y>
<height>16</height> <height>16</height>
<width>85</width> <width>40</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>loc_code_t</name> <name>no_art</name>
<visible>0</visible> <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> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>67108864</color>
</background> </background>
</TextObject> </ColumnObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>New LPN:</text> <text>Location Code:</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>8</x> <x>39</x>
<y>242</y> <y>208</y>
<height>16</height> <height>16</height>
<width>115</width> <width>85</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>lot_sl__new_t</name> <name>loc_code_t</name>
<visible>1</visible> <visible>0</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1198,26 +1192,27 @@ ...@@ -1198,26 +1192,27 @@
</TextObject> </TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>17</id> <id>7</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>20</tabsequence> <tabsequence>32766</tabsequence>
<border>0</border> <border>5</border>
<color>255</color> <color>255</color>
<x>126</x> <x>128</x>
<y>242</y> <y>208</y>
<height>16</height> <height>16</height>
<width>75</width> <width>73</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>lot_sl__new</name> <name>loc_code</name>
<visible>1</visible> <visible>0</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>8</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>no</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
...@@ -1233,50 +1228,22 @@ ...@@ -1233,50 +1228,22 @@
<color>67108864</color> <color>67108864</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>order type:</text>
<border>6</border>
<color>33554432</color>
<x>226</x>
<y>242</y>
<height>16</height>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>order_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>536870912</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>18</id> <id>18</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>30</tabsequence> <tabsequence>30</tabsequence>
<border>0</border> <border>5</border>
<color>255</color> <color>255</color>
<x>343</x> <x>384</x>
<y>242</y> <y>208</y>
<height>16</height> <height>16</height>
<width>79</width> <width>40</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>order_type</name> <name>order_type</name>
<visible>1</visible> <visible>0</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
......
...@@ -29603,6 +29603,98 @@ INSERT INTO messages ( ...@@ -29603,6 +29603,98 @@ INSERT INTO messages (
'Base', 'Base',
NULL, NULL,
NULL); NULL);
-- changed by sumit on 25/02/13 for active cubbing
UPDATE OBJ_FORMS SET SCAN_METADATA = '<SCAN_INFO><MAPPING_SCAN ORDER="1"><SCAN_LABEL>Location From:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>loc_code</FIELD></FIELDS></MAPPING_SCAN><MAPPING_SCAN ORDER="2"><SCAN_LABEL>LPN No:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>lot_sl</FIELD></FIELDS></MAPPING_SCAN><MAPPING_SCAN ORDER="3"><SCAN_LABEL>Item Code:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>item_code</FIELD></FIELDS></MAPPING_SCAN><MAPPING_SCAN ORDER="4"><SCAN_LABEL>Lot No:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>lot_no</FIELD></FIELDS></MAPPING_SCAN><INPUT_SCAN ORDER="1"><SCAN_LABEL>New LPN:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>lot_sl__new</FIELD></FIELDS></INPUT_SCAN><INPUT_SCAN ORDER="2"><SCAN_LABEL>No of Article</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>no_art</FIELD></FIELDS></INPUT_SCAN><SCAN_CONDITION field="lot_sl__new">order_type != "T"</SCAN_CONDITION></SCAN_INFO>'
WHERE WIN_NAME = 'w_active_repl_iss' AND FORM_NO = 3;
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'NULLNOART',
'Null Number of article',
'Number of article should not be null.',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base',
'Base',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'ARTNOTANUM',
'Invalid Number of article',
'Number of article should be numeric value.',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base',
'Base',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'INVNOOFART',
'Invalid Number of article',
'Number of article is not correct.',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base',
'Base',
NULL,
NULL);
commit; commit;
$PBExportHeader$d_active_repl_iss23.srd $PBExportHeader$
release 9; release 9;
datawindow(units=1 timer_interval=0 color=134217750 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no ) datawindow(units=1 timer_interval=0 color=134217750 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=29 color="536870912" ) summary(height=29 color="536870912" )
footer(height=8 color="536870912" ) footer(height=8 color="536870912" )
detail(height=331 color="536870912" ) detail(height=331 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="repl_iss_det.tran_id" ) table(column=(type=char(10) update=yes updatewhereclause=yes name=tran_id dbname="repl_iss_det.tran_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="repl_iss_det.line_no" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no dbname="repl_iss_det.line_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=repl_order dbname="repl_iss_det.repl_order" ) column=(type=char(10) update=yes updatewhereclause=yes name=repl_order dbname="repl_iss_det.repl_order" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__ord dbname="repl_iss_det.line_no__ord" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__ord dbname="repl_iss_det.line_no__ord" )
column=(type=char(10) update=yes updatewhereclause=yes name=item_code dbname="repl_iss_det.item_code" ) column=(type=char(10) update=yes updatewhereclause=yes name=item_code dbname="repl_iss_det.item_code" )
...@@ -21,7 +21,8 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i ...@@ -21,7 +21,8 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(3) updatewhereclause=yes name=unit dbname="item.unit" ) column=(type=char(3) updatewhereclause=yes name=unit dbname="item.unit" )
column=(type=char(8) update=yes updatewhereclause=yes name=loc_code__sys dbname="repl_iss_det.loc_code__sys" ) column=(type=char(8) update=yes updatewhereclause=yes name=loc_code__sys dbname="repl_iss_det.loc_code__sys" )
column=(type=char(15) update=yes updatewhereclause=yes name=lot_sl__new dbname="repl_iss_det.lot_sl__new" ) column=(type=char(15) update=yes updatewhereclause=yes name=lot_sl__new dbname="repl_iss_det.lot_sl__new" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"repl_iss_det~" ) TABLE(NAME=~"item~" ) TABLE(NAME=~"site~" ) COLUMN(NAME=~"repl_iss_det.tran_id~") COLUMN(NAME=~"repl_iss_det.line_no~") COLUMN(NAME=~"repl_iss_det.repl_order~") COLUMN(NAME=~"repl_iss_det.line_no__ord~") COLUMN(NAME=~"repl_iss_det.item_code~") COLUMN(NAME=~"repl_iss_det.site_code~") COLUMN(NAME=~"repl_iss_det.loc_code~") COLUMN(NAME=~"repl_iss_det.lot_no~") COLUMN(NAME=~"repl_iss_det.lot_sl~") COLUMN(NAME=~"repl_iss_det.quantity~") COLUMN(NAME=~"repl_iss_det.no_art~") COLUMN(NAME=~"repl_iss_det.loc_code__to~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"site.descr~") COLUMN(NAME=~"item.unit~") COLUMN(NAME=~"repl_iss_det.loc_code__sys~") COLUMN(NAME=~"repl_iss_det.lot_sl__new~") JOIN (LEFT=~"repl_iss_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" OUTER1 =~"repl_iss_det.item_code~" ) JOIN (LEFT=~"repl_iss_det.site_code~" OP =~"=~"RIGHT=~"site.site_code~" OUTER1 =~"repl_iss_det.site_code~" )) " update="repl_iss_det" updatewhere=0 updatekeyinplace=no ) column=(type=char(1) updatewhereclause=yes name=order_type dbname="order_type" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"repl_iss_det~" ) TABLE(NAME=~"item~" ) TABLE(NAME=~"site~" ) COLUMN(NAME=~"repl_iss_det.tran_id~") COLUMN(NAME=~"repl_iss_det.line_no~") COLUMN(NAME=~"repl_iss_det.repl_order~") COLUMN(NAME=~"repl_iss_det.line_no__ord~") COLUMN(NAME=~"repl_iss_det.item_code~") COLUMN(NAME=~"repl_iss_det.site_code~") COLUMN(NAME=~"repl_iss_det.loc_code~") COLUMN(NAME=~"repl_iss_det.lot_no~") COLUMN(NAME=~"repl_iss_det.lot_sl~") COLUMN(NAME=~"repl_iss_det.quantity~") COLUMN(NAME=~"repl_iss_det.no_art~") COLUMN(NAME=~"repl_iss_det.loc_code__to~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"site.descr~") COLUMN(NAME=~"item.unit~") COLUMN(NAME=~"repl_iss_det.loc_code__sys~") COLUMN(NAME=~"repl_iss_det.lot_sl__new~") COMPUTE(NAME=~"' 'order_type~") JOIN (LEFT=~"repl_iss_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" ) JOIN (LEFT=~"repl_iss_det.site_code~" OP =~"=~"RIGHT=~"site.site_code~" )) " )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="255" x="351" y="33" height="16" width="73" format="[general]" html.valueishtml="0" name=line_no visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="255" x="351" y="33" height="16" width="73" format="[general]" html.valueishtml="0" name=line_no visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="33" height="16" width="73" format="[general]" html.valueishtml="0" name=tran_id visible="0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="33" height="16" width="73" format="[general]" html.valueishtml="0" name=tran_id visible="0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="135" height="16" width="73" format="[general]" html.valueishtml="0" name=site_code visible="0" edit.limit=5 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="67108864" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="135" height="16" width="73" format="[general]" html.valueishtml="0" name=site_code visible="0" edit.limit=5 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="67108864" )
...@@ -44,16 +45,17 @@ column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="255" x ...@@ -44,16 +45,17 @@ column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="255" x
text(band=detail alignment="1" text="LPN No:" border="6" color="33554432" x="262" y="159" height="16" width="85" html.valueishtml="0" name=lot_sl_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="LPN No:" border="6" color="33554432" x="262" y="159" height="16" width="85" html.valueishtml="0" name=lot_sl_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="Line No Order:" border="6" color="33554432" x="262" y="58" height="16" width="85" html.valueishtml="0" name=line_no__ord_t visible="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" ) text(band=detail alignment="1" text="Line No Order:" border="6" color="33554432" x="262" y="58" height="16" width="85" html.valueishtml="0" name=line_no__ord_t visible="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" )
text(band=detail alignment="1" text="Line No:" border="6" color="33554432" x="262" y="33" height="16" width="85" html.valueishtml="0" name=line_no_t visible="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" ) text(band=detail alignment="1" text="Line No:" border="6" color="33554432" x="262" y="33" height="16" width="85" html.valueishtml="0" name=line_no_t visible="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" )
text(band=detail alignment="1" text="Unit:" border="6" color="33554432" x="39" y="182" height="16" width="85" html.valueishtml="0" name=unit_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=15 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="182" height="16" width="50" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no 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="67108864" )
text(band=detail alignment="1" text="No Of Article:" border="6" color="33554432" x="305" y="182" height="16" width="75" html.valueishtml="0" name=no_art_t visible="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=11 alignment="0" tabsequence=32766 border="5" color="255" x="384" y="182" height="16" width="40" format="[general]" html.valueishtml="0" name=no_art visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Location Code:" border="6" color="33554432" x="39" y="208" height="16" width="85" html.valueishtml="0" name=loc_code_t visible="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=7 alignment="0" tabsequence=32766 border="5" color="255" x="128" y="208" height="16" width="73" format="[general]" html.valueishtml="0" name=loc_code visible="0" edit.limit=8 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="67108864" )
text(band=detail alignment="1" text="Transaction Id:" border="6" color="33554432" x="39" y="33" height="16" width="85" html.valueishtml="0" name=tran_id_t visible="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" ) text(band=detail alignment="1" text="Transaction Id:" border="6" color="33554432" x="39" y="33" height="16" width="85" html.valueishtml="0" name=tran_id_t visible="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" )
text(band=detail alignment="1" text="Replenishment Order:" border="6" color="33554432" x="9" y="58" height="16" width="115" html.valueishtml="0" name=repl_order_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="Replenishment Order:" border="6" color="33554432" x="9" y="58" height="16" width="115" html.valueishtml="0" name=repl_order_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="Sugg. Location Code:" border="6" color="33554432" x="9" y="8" height="16" width="115" html.valueishtml="0" name=loc_code__sys_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="Sugg. Location Code:" border="6" color="33554432" x="9" y="8" height="16" width="115" html.valueishtml="0" name=loc_code__sys_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=16 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="8" height="16" width="73" format="[general]" html.valueishtml="0" name=loc_code__sys visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) column(band=detail id=16 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="8" height="16" width="73" format="[general]" html.valueishtml="0" name=loc_code__sys visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Unit:" border="6" color="33554432" x="39" y="182" height="16" width="85" html.valueishtml="0" name=unit_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=15 alignment="0" tabsequence=32766 border="5" color="255" x="129" y="182" height="16" width="50" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no 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="67108864" )
text(band=detail alignment="1" text="No Of Article:" border="6" color="33554432" x="305" y="182" height="16" width="75" html.valueishtml="0" name=no_art_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="Location Code:" border="6" color="33554432" x="39" y="208" height="16" width="85" html.valueishtml="0" name=loc_code_t visible="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=7 alignment="0" tabsequence=32766 border="5" color="255" x="128" y="208" height="16" width="73" format="[general]" html.valueishtml="0" name=loc_code visible="0" edit.limit=8 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="67108864" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="255" x="384" y="182" height="16" width="40" format="[general]" html.valueishtml="0" name=no_art visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=18 alignment="0" tabsequence=30 border="5" color="255" x="384" y="208" height="16" width="40" html.valueishtml="0" name=order_type visible="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="67108864" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment