Commit 2bd1341d authored by cpatil's avatar cpatil

add domID condition for repeate domID


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99981 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2a11ce92
...@@ -90,10 +90,13 @@ public class MrpWizPrsSaveBean ...@@ -90,10 +90,13 @@ public class MrpWizPrsSaveBean
StockAllocationPrc stockAllocationPrc = new StockAllocationPrc() ; StockAllocationPrc stockAllocationPrc = new StockAllocationPrc() ;
ArrayList itemValueList = new ArrayList(); ArrayList itemValueList = new ArrayList();
ArrayList<String> detail4DataInfoList = new ArrayList<String>(); //ArrayList<String> detail4DataInfoList = new ArrayList<String>();
boolean firstVal= false; boolean firstVal= false;
ArrayList<String> domIdList = new ArrayList<String>();
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
...@@ -107,8 +110,35 @@ public class MrpWizPrsSaveBean ...@@ -107,8 +110,35 @@ public class MrpWizPrsSaveBean
NodeList detail4List= detailListNode.getChildNodes(); NodeList detail4List= detailListNode.getChildNodes();
// System.out.println("@@@@@@@@@node name[" + detailListNode.getNodeName()+"]"); // System.out.println("@@@@@@@@@node name[" + detailListNode.getNodeName()+"]");
//NodeList links = dom.getElementsByTagName("Detail4");
//for( int i = 0; i < links.getLength(); i++ )
//{
Element detailListElement = (Element) hdrDommList.item(dtlCtr);
String domId = checkNull(detailListElement.getAttribute("domID"));
System.out.println( "before adding >>>>>domId["+domId+"]domIdList["+domIdList+"]");
//}
if(domIdList.contains(domId))
{
System.out.println("@@@@@@@@@ already present...continue...........");
continue;
}
else
{
domIdList.add(domId);
System.out.println( "after adding >>>>>domId["+domId+"]domIdList["+domIdList+"]");
}
if("Detail4".equalsIgnoreCase(detailListNode.getNodeName())) if("Detail4".equalsIgnoreCase(detailListNode.getNodeName()))
{ {
System.out.println("@@@@@@@@ inside <Detail4> dtlCtr["+dtlCtr+"]........");
/*
NodeList links = dom.getElementsByTagName("Detail4");
for( int i = 0; i < links.getLength(); i++ )
{
Element link = (Element) links.item( i );
domId = link.getAttribute( "domId" );
System.out.println( ">>>>>line_no_sl > attribute value = " + domId);
}
*/
// System.out.println("@@@@inside detail4----------------"); // System.out.println("@@@@inside detail4----------------");
for (int cntr = 0; cntr < detail4List.getLength(); cntr++) for (int cntr = 0; cntr < detail4List.getLength(); cntr++)
{ {
...@@ -315,8 +345,9 @@ public class MrpWizPrsSaveBean ...@@ -315,8 +345,9 @@ public class MrpWizPrsSaveBean
// remove when no allocation repeated found... // remove when no allocation repeated found...
String detail4DataInfo = checkNull(siteCode)+"@"+checkNull(itemCode)+"@"+checkNull(locCode)+"@"+checkNull(lotNo)+"@"+checkNull(lotSl)+"@"+checkNull(allocQtyStr); /*
System.out.println("@@@@ detail4DataInfo["+detail4DataInfo+"]detail4DataInfoList["+detail4DataInfoList+"]"); //String detail4DataInfo = checkNull(siteCode)+"@"+checkNull(itemCode)+"@"+checkNull(locCode)+"@"+checkNull(lotNo)+"@"+checkNull(lotSl)+"@"+checkNull(allocQtyStr);
//System.out.println("@@@@ detail4DataInfo["+detail4DataInfo+"]detail4DataInfoList["+detail4DataInfoList+"]");
if(detail4DataInfoList.contains(detail4DataInfo)) if(detail4DataInfoList.contains(detail4DataInfo))
{ {
System.out.println("same allocation repeate.........continue......."); System.out.println("same allocation repeate.........continue.......");
...@@ -328,6 +359,7 @@ public class MrpWizPrsSaveBean ...@@ -328,6 +359,7 @@ public class MrpWizPrsSaveBean
detail4DataInfoList.add(detail4DataInfo); detail4DataInfoList.add(detail4DataInfo);
} }
System.out.println("@@@@@@@@ testing purpose SOP....detail4DataInfoList["+detail4DataInfoList+"]."); System.out.println("@@@@@@@@ testing purpose SOP....detail4DataInfoList["+detail4DataInfoList+"].");
*/
String itemCodeHdr=""; String itemCodeHdr="";
remarks = "From mrp process"; remarks = "From mrp process";
......
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