Commit 1faf9b7c authored by dsawant's avatar dsawant

updated for detail


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95781 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f9457628
......@@ -723,54 +723,6 @@ public class WorkOrdRcpDet extends ValidatorEJB implements WorkOrdRcpDetLocal, W
valueXmlString.append("<lot_no>").append("<![CDATA[" + lotNo + "]]>").append("</lot_no>");
valueXmlString.append("<lot_sl>").append("<![CDATA[" + lotsl + "]]>").append("</lot_sl>");
valueXmlString.append("<no_art>").append("<![CDATA[" + noOfArt + "]]>").append("</no_art>");
//select shipper_size from item_lot_packsize where item_code = 'EF0050';
sql = "select shipper_size from item_lot_packsize where item_code = ?";
pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,itemCode);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
shippsize = rs1.getDouble(1);
}
pstmt1.close();
rs1.close();
pstmt1 = null;
rs1 = null;
quantity = shippsize * noOfArt;
if(quantity == 0)
{
valueXmlString.append("<quantity protect=\"0\">").append("<![CDATA[" + quantity + "]]>").append("</quantity>");
setNodeValue( dom, "quantity", getAbsString(""+quantity));
}else
{
valueXmlString.append("<quantity protect=\"1\">").append("<![CDATA[" + quantity + "]]>").append("</quantity>");
setNodeValue( dom, "quantity", getAbsString(""+quantity));
}
sql = "select loc_code__insp from siteitem where item_code = ? and site_code = ?";
pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,itemCode);
pstmt1.setString(2,loginSite);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
locCode = rs1.getString(1) == null ? "":rs1.getString(1);
}
pstmt1.close();
rs1.close();
pstmt1 = null;
rs1 = null;
valueXmlString.append("<loc_code>").append("<![CDATA[" + locCode + "]]>").append("</loc_code>");
valueXmlString.append("<gross_weight>").append("<![CDATA[" + grossWeight + "]]>").append("</gross_weight>");
valueXmlString.append("<tare_weight>").append("<![CDATA[" + tareWeight + "]]>").append("</tare_weight>");
......
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