Commit e8897b8d authored by smestry's avatar smestry

W15FSUN008, Updated class file Palletization.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98891 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3d6da7f8
......@@ -89,6 +89,23 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
System.out.println("lotNo----------->>["+lotNo+"]");
System.out.println("lotSl----------->>["+lotSl+"]");
NodeList detail3List = dom.getElementsByTagName("attribute");
String test = "";
boolean isDelete = false;
for(int ctr = 0;ctr < detail3List.getLength() ; ctr++)
{
Node detail3Node = detail3List.item(ctr);
test = detail3Node.getAttributes().getNamedItem("updateFlag").getNodeValue();
System.out.println("test----------->>["+test+"]");
if("D".equalsIgnoreCase(test))
{
isDelete = true;
}
}
System.out.println("isDelete----------->>["+isDelete+"]");
strAllocate.put("tran_date", tranDate);
strAllocate.put("ref_ser","PZ");
strAllocate.put("ref_id", tranId);
......@@ -98,7 +115,14 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
strAllocate.put("loc_code", locCode);
strAllocate.put("lot_no", lotNo);
strAllocate.put("lot_sl", lotSl);
if(isDelete)
{
strAllocate.put("alloc_qty", -parseQuantity) ;
}
else
{
strAllocate.put("alloc_qty", parseQuantity) ;
}
strAllocate.put("chg_user", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
strAllocate.put("chg_term", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"termId"));
strAllocate.put("chg_win", "W_PALLETIZATION");
......@@ -108,6 +132,7 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
System.out.println("errString ::: " + errString);
if (errString != null && errString.trim().length() > 0 )
{
isError = true;
return errString;
}
strAllocate = null;
......@@ -124,6 +149,7 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
}
catch (Exception e1)
{
isError = true;
e1.printStackTrace();
throw new ITMException(e1);
}
......
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