Commit e50e0d69 authored by smestry's avatar smestry

W15FSUN008, Create transaction screen Palletization and palletization Confirm for AWMS.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98821 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 570a43ec
...@@ -845,8 +845,8 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -845,8 +845,8 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
System.out.println("allFormDataDom------>>["+genericUtility.serializeDom(allFormDataDom)+"]"); System.out.println("allFormDataDom------>>["+genericUtility.serializeDom(allFormDataDom)+"]");
double quantity = 0; double quantity = 0;
String itemCode = "", lotNo = "", lotSl = "", locationCode ="", palletNo = "", palletNoSource = "", noArt = ""; String itemCode = "", lotNo = "", lotSl = "", locationCode ="", palletNo = "", palletNoSource = "";
int noArt = 0;
tranId = checkNull(genericUtility.getColumnValue("tran_id", allFormDataDom, "2" )); tranId = checkNull(genericUtility.getColumnValue("tran_id", allFormDataDom, "2" ));
System.out.println("Tran_id----------->>["+tranId+"]"); System.out.println("Tran_id----------->>["+tranId+"]");
...@@ -857,7 +857,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -857,7 +857,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) ) if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{ {
System.out.println(" Inside if details 3 for itm_default :::::::::::::::::: "); //System.out.println(" Inside if details 3 for itm_default :::::::::::::::::: ");
sql = "select item_code, lot_no, lot_sl, (quantity - (alloc_qty + hold_qty)) as quantity, no_art from stock where loc_code in (?,?) " sql = "select item_code, lot_no, lot_sl, (quantity - (alloc_qty + hold_qty)) as quantity, no_art from stock where loc_code in (?,?) "
+ "and (quantity - (alloc_qty + hold_qty)) > 0 and site_code = ? " + "and (quantity - (alloc_qty + hold_qty)) > 0 and site_code = ? "
...@@ -878,15 +878,14 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -878,15 +878,14 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
if( tranId != null && tranId.trim().length() > 0 ) if( tranId != null && tranId.trim().length() > 0 )
{ {
System.out.println("-------------- itemchanged Edit mode in Details 3 ----------------------");
while(rs.next()) while(rs.next())
{ {
itemCode = checkNullAndTrim(rs.getString("item_code")); itemCode = checkNullAndTrim(rs.getString("item_code"));
lotNo = checkNullAndTrim(rs.getString("lot_no")); lotNo = checkNullAndTrim(rs.getString("lot_no"));
lotSl = checkNullAndTrim(rs.getString("lot_sl")); lotSl = checkNullAndTrim(rs.getString("lot_sl"));
quantity = rs.getDouble("quantity"); quantity = rs.getDouble("quantity");
noArt = checkNullAndTrim(rs.getString("no_art")); noArt = rs.getInt("no_art");
System.out.println("-------------- itemchanged Edit mode in Details 3 ----------------------");
domId++; domId++;
if(isScanningDone(tranId, itemCode, loginSite, locationCode, lotNo, lotSl, palletNo, conn)) if(isScanningDone(tranId, itemCode, loginSite, locationCode, lotNo, lotSl, palletNo, conn))
...@@ -914,6 +913,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -914,6 +913,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
} }
else else
{ {
System.out.println("-------------- itemchanged Add mode in Details 3 ----------------------");
while(rs.next()) while(rs.next())
{ {
itemCode = checkNullAndTrim(rs.getString("item_code")); itemCode = checkNullAndTrim(rs.getString("item_code"));
...@@ -921,7 +921,6 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -921,7 +921,6 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
lotSl = checkNullAndTrim(rs.getString("lot_sl")); lotSl = checkNullAndTrim(rs.getString("lot_sl"));
quantity = rs.getDouble("quantity"); quantity = rs.getDouble("quantity");
System.out.println("-------------- itemchanged Add mode in Details 3 ----------------------");
domId++; domId++;
valueXmlString.append("<Detail3 domID='"+domId+"' selected=\"N\">\r\n"); valueXmlString.append("<Detail3 domID='"+domId+"' selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n"); valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n");
......
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