Commit f8ae4d70 authored by ppatro's avatar ppatro

Chnaged by shankara on 16-08-13 for close out get data sql changes


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93510 ce508802-f39f-4f6c-b175-0d175dae99d5
parent db13115f
......@@ -74,6 +74,7 @@ public class ShipmentPrc extends ProcessEJB implements ShipmentPrcLocal,Shipment
String transporterFrom = "";
String transporterTo = "";
String shipmentType = "";
String ptcn = "";
String errCode = "";
String errString = "";
PreparedStatement pstmt=null;
......@@ -324,7 +325,8 @@ public class ShipmentPrc extends ProcessEJB implements ShipmentPrcLocal,Shipment
{
rsflag=true;
test.append( "<Detail2>\r\n" );
test.append( "<ptcn><![CDATA[" ).append(rs.getString(1)).append( "]]></ptcn>\r\n" );
ptcn = checkNull(rs.getString(1));
test.append( "<ptcn><![CDATA[" ).append(ptcn).append( "]]></ptcn>\r\n" );
test.append( "<shipment_id><![CDATA[" ).append(rs.getString(2)).append( "]]></shipment_id>\r\n" );
test.append( "<tran_name><![CDATA[" ).append(rs.getString(3)).append( "]]></tran_name>\r\n" );
test.append("\n");
......@@ -468,17 +470,27 @@ public class ShipmentPrc extends ProcessEJB implements ShipmentPrcLocal,Shipment
childNode = childNodeList.item(childRow);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName---->>> "+ childNodeName);
if("ptcn".equalsIgnoreCase(childNodeName))
{
ptcn = checkNull(childNode.getFirstChild().getNodeValue());
if ( childNode != null && childNode.getFirstChild() != null )
{
ptcn = checkNull(childNode.getFirstChild().getNodeValue());
}
}
if("shipment_id".equalsIgnoreCase(childNodeName))
else if("shipment_id".equalsIgnoreCase(childNodeName))
{
shipmentId = checkNull(childNode.getFirstChild().getNodeValue());
if ( childNode != null && childNode.getFirstChild() != null )
{
shipmentId = checkNull(childNode.getFirstChild().getNodeValue());
}
}
if("tran_name".equalsIgnoreCase(childNodeName))
else if("tran_name".equalsIgnoreCase(childNodeName))
{
transporterName = checkNull(childNode.getFirstChild().getNodeValue());
if ( childNode != null && childNode.getFirstChild() != null )
{
transporterName = checkNull(childNode.getFirstChild().getNodeValue());
}
}
shipmentSet.add(shipmentId);
......
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