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
...@@ -473,21 +473,45 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -473,21 +473,45 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
if (childNodeName.equals("site_code")) if (childNodeName.equals("site_code"))
{ {
siteCode = childNode.getFirstChild().getNodeValue(); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
siteCode = childNode.getFirstChild().getNodeValue();
}
}
} }
if (childNodeName.equals("item_code")) if (childNodeName.equals("item_code"))
{ {
itemCode = childNode.getFirstChild().getNodeValue(); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
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"))
{ {
lotsl = childNode.getFirstChild().getNodeValue(); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
lotsl = childNode.getFirstChild().getNodeValue();
}
}
} }
if (childNodeName.equals("quantity")) if (childNodeName.equals("quantity"))
{ {
...@@ -506,14 +530,32 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -506,14 +530,32 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
}if (childNodeName.equals("loc_code")) }if (childNodeName.equals("loc_code"))
{ {
locCodeFr = childNode.getFirstChild().getNodeValue(); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
locCodeFr = childNode.getFirstChild().getNodeValue();
}
}
}if (childNodeName.equals("exp_lev")) }if (childNodeName.equals("exp_lev"))
{ {
explev = childNode.getFirstChild().getNodeValue(); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
explev = childNode.getFirstChild().getNodeValue();
}
}
} }
if (childNodeName.equals("loc_code__to")) if (childNodeName.equals("loc_code__to"))
{ {
locCodeTo = childNode.getFirstChild().getNodeValue(); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
locCodeTo = childNode.getFirstChild().getNodeValue();
}
}
} }
if (childNodeName.equals("work_order")) if (childNodeName.equals("work_order"))
{ {
...@@ -521,15 +563,33 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -521,15 +563,33 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
} }
if (childNodeName.equals("remarks")) if (childNodeName.equals("remarks"))
{ {
remarks = childNode.getFirstChild().getNodeValue(); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
remarks = childNode.getFirstChild().getNodeValue();
}
}
} }
if (childNodeName.equals("actual_qty")) if (childNodeName.equals("actual_qty"))
{ {
actualQty = Double.parseDouble(childNode.getFirstChild().getNodeValue()); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
actualQty = Double.parseDouble(childNode.getFirstChild().getNodeValue());
}
}
} }
if (childNodeName.equals("allocated_qty")) if (childNodeName.equals("allocated_qty"))
{ {
trfedQty = Double.parseDouble(childNode.getFirstChild().getNodeValue()); if(childNode !=null)
{
if(childNode.getFirstChild() != null)
{
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);
......
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