Commit f9baf769 authored by prahate's avatar prahate

EJB updated.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97999 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9c51a207
......@@ -404,7 +404,7 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
qtyRcp=Double.valueOf(genericUtility.getColumnValue("qty_rcp", dom)==null?"0":genericUtility.getColumnValue("qty_rcp", dom));
qtyActual = Double.valueOf(genericUtility.getColumnValue("qty_actual", dom)==null?"0":genericUtility.getColumnValue("qty_actual", dom));
System.out.println("Status@@@@@@@@@@@@@ :"+status);
if(( (qtyRcp-qtyActual) < 0) && (!(status.equalsIgnoreCase("O"))) && ((remarks2==null || remarks2.trim().length()<=0)))
if(( (qtyRcp-qtyActual) > 0) && (!(status.equalsIgnoreCase("O"))) && ((remarks2==null || remarks2.trim().length()<=0)))
{
System.out.println("Inside if of REMARKS2@@@@@@@");
errCode = "VMREMARK";
......@@ -596,11 +596,12 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
{
if(childNode.getFirstChild() != null)
{
columnValue = childNode.getFirstChild().getNodeValue().trim(); //added by cpatil
columnValue = childNode.getFirstChild().getNodeValue().trim();
}
}
ctr++;
}while(ctr < childNodeListLength && ! childNodeName.equals(currentColumn));
System.out.println("currentColumn>>>>> :"+currentColumn);
if(currentColumn.trim().equalsIgnoreCase("itm_default"))
{
System.out.println("@@@@@@ itm_default itemchange called");
......@@ -612,23 +613,17 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
valueXmlString.append("<site_code>").append("<![CDATA[" + siteCode + "]]>").append("</site_code>");
valueXmlString.append("<descr>").append("<![CDATA[" + siteDescr + "]]>").append("</descr>"); // 25/3/15end
System.out.println("Receipt Date@@@@@@@@@@@@@@@@@:"+currDate);
//valueXmlString.append("<tran_date>").append("<![CDATA[" + tranDate + "]]>").append("</tran_date>");
valueXmlString.append("<tran_date>").append("<![CDATA[" + currDate + "]]>").append("</tran_date>");
valueXmlString.append("<add_date>").append("<![CDATA[" + currDate + "]]>").append("</add_date>");
valueXmlString.append("<add_user>").append("<![CDATA[" + chgUser + "]]>").append("</add_user>");
valueXmlString.append("<add_term>").append("<![CDATA[" + chgTerm + "]]>").append("</add_term>");
System.out.println("Effective Date@@@@@@@@@@@@@@@@@:"+currDate);
}//end of if
}
if(currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
System.out.println("currDate>>>"+currDate);
valueXmlString.append("<chg_date>").append("<![CDATA[" + currDate + "]]>").append("</chg_date>");
}
else if(currentColumn.trim().equalsIgnoreCase("tran_id__rcp"))
......@@ -686,7 +681,6 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
System.out.println("In side iff>>>>>>>");
lrDateStr=sdf.format(lrDate).toString();
System.out.println("lrDateStr@@@@@@@"+lrDateStr);
}
else
{
......@@ -702,7 +696,6 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
System.out.println("In side iff>>>>>>>");
gpDateStr=sdf.format(gpDate).toString();
System.out.println("gpDateStr@@@@@@@"+gpDateStr);
}
else
{
......@@ -732,8 +725,6 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
valueXmlString.append("<site_code__ship>").append("<![CDATA[" + siteCodeShip + "]]>").append("</site_code__ship>");
valueXmlString.append("<descr_1>").append("<![CDATA[" + siteCodeShipDescr + "]]>").append("</descr_1>");
valueXmlString.append("<tran_id__iss>").append("<![CDATA[" + tranIdIss + "]]>").append("</tran_id__iss>");
}
else if(currentColumn.trim().equalsIgnoreCase("site_code"))
......@@ -756,9 +747,6 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
}
//Added by Pankaj R. on 13/MAY/2015 [END]
valueXmlString.append("</Detail1>");
break;
......@@ -780,13 +768,14 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
}
}
ctr ++;
}while(ctr < childNodeListLength && ! childNodeName.equals(currentColumn));
}
while(ctr < childNodeListLength && ! childNodeName.equals(currentColumn));
System.out.println("Entered in CASE2");
tranId = genericUtility.getColumnValue("tran_id", dom1);
tranIdRcp=genericUtility.getColumnValue("tran_id__rcp", dom1);
System.out.println("tranID >>>>>>>> "+tranId);
System.out.println("TRANIDRCP@ >>>>>>>> "+tranIdRcp);
System.out.println("currentColumn>>>>> :"+currentColumn);
if(currentColumn.trim().equalsIgnoreCase("itm_default"))
{
status = genericUtility.getColumnValue("status", dom);
......@@ -794,16 +783,6 @@ public class DistRcpExShIC extends ValidatorEJB implements DistRcpExShICLocal, D
tranIdRcp = genericUtility.getColumnValue("tran_id__rcp", dom1, "1");
//valueXmlString.append("<tran_id__rcp>").append("<![CDATA[" + tranIdRcp + "]]>").append("</tran_id__rcp>");
valueXmlString.append("<tran_id__rcp protect = \"1\">").append("<![CDATA[" + tranIdRcp + "]]>").append("</tran_id__rcp>");
}//end of if
else if(currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
status = genericUtility.getColumnValue("status", dom);
if(status.equalsIgnoreCase("O"))
{
valueXmlString.append("<remarks2 protect = \"1\">").append("<![CDATA[" + remarks2 + "]]>").append("</remarks2>");
}
}
else if(currentColumn.trim().equalsIgnoreCase("line_no__rcp"))
{
......
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