Commit 29bf2a33 authored by rtiwari's avatar rtiwari

UPDATED


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94097 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ce562dc8
...@@ -472,23 +472,47 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -472,23 +472,47 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
} }
if (childNodeName.equals("site_code")) if (childNodeName.equals("site_code"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
siteCode = childNode.getFirstChild().getNodeValue(); siteCode = childNode.getFirstChild().getNodeValue();
} }
}
}
if (childNodeName.equals("item_code")) if (childNodeName.equals("item_code"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
itemCode = childNode.getFirstChild().getNodeValue(); itemCode = childNode.getFirstChild().getNodeValue();
} }
}
}
if (childNodeName.equals("lot_no")) if (childNodeName.equals("lot_no"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
lotno = childNode.getFirstChild().getNodeValue(); lotno = childNode.getFirstChild().getNodeValue();
} }
}
}
if (childNodeName.equals("lot_sl")) if (childNodeName.equals("lot_sl"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
lotsl = childNode.getFirstChild().getNodeValue(); lotsl = childNode.getFirstChild().getNodeValue();
} }
}
}
if (childNodeName.equals("quantity")) if (childNodeName.equals("quantity"))
{ {
allocQty = childNode.getFirstChild().getNodeValue(); allocQty = childNode.getFirstChild().getNodeValue();
...@@ -505,32 +529,68 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -505,32 +529,68 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
} }
}if (childNodeName.equals("loc_code")) }if (childNodeName.equals("loc_code"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
locCodeFr = childNode.getFirstChild().getNodeValue(); locCodeFr = childNode.getFirstChild().getNodeValue();
}
}
}if (childNodeName.equals("exp_lev")) }if (childNodeName.equals("exp_lev"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
explev = childNode.getFirstChild().getNodeValue(); explev = childNode.getFirstChild().getNodeValue();
} }
}
}
if (childNodeName.equals("loc_code__to")) if (childNodeName.equals("loc_code__to"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
locCodeTo = childNode.getFirstChild().getNodeValue(); locCodeTo = childNode.getFirstChild().getNodeValue();
} }
}
}
if (childNodeName.equals("work_order")) if (childNodeName.equals("work_order"))
{ {
worder = childNode.getFirstChild().getNodeValue(); worder = childNode.getFirstChild().getNodeValue();
} }
if (childNodeName.equals("remarks")) if (childNodeName.equals("remarks"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
remarks = childNode.getFirstChild().getNodeValue(); remarks = childNode.getFirstChild().getNodeValue();
} }
}
}
if (childNodeName.equals("actual_qty")) if (childNodeName.equals("actual_qty"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
actualQty = Double.parseDouble(childNode.getFirstChild().getNodeValue()); actualQty = Double.parseDouble(childNode.getFirstChild().getNodeValue());
} }
}
}
if (childNodeName.equals("allocated_qty")) if (childNodeName.equals("allocated_qty"))
{
if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{ {
trfedQty = Double.parseDouble(childNode.getFirstChild().getNodeValue()); trfedQty = Double.parseDouble(childNode.getFirstChild().getNodeValue());
} }
}
}
}//inner for loop }//inner for loop
System.out.println(" amount values "+actualQty+"::"+trfedQty+"::"+allocQty2); System.out.println(" amount values "+actualQty+"::"+trfedQty+"::"+allocQty2);
if(Double.parseDouble(df.format(actualQty - trfedQty)) >= Double.parseDouble(df.format(allocQty2))) if(Double.parseDouble(df.format(actualQty - trfedQty)) >= Double.parseDouble(df.format(allocQty2)))
......
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