Commit 5dcc57bd authored by cpatil's avatar cpatil

revert changes of chandrashekhar previous version


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95015 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a4de9eaf
......@@ -1221,61 +1221,15 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
int ctr;
for (ctr = 0; ctr < itemArr.size(); ctr++)
{
if(isRequirement)
System.out.println("(String)itemArr.get(ctr)--" + (String) itemArr.get(ctr));
suppSour = getSuppSour((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
suppSour = suppSour.trim();
bomCode = getBomCode((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
System.out.println("SuppSour---" + suppSour + "bomCode--" + bomCode);
// System.out.println("populateAllItem(): Supp_Sour:..." +
// suppSour + " Bom Code:..." + bomCode);
if (((suppSour != null) && (!suppSour.equals("P"))) && (bomCode != null))
{
if(siteItemList.contains((String) siteMapEntry.getKey()+(String) itemArr.get(ctr)))//Added by chandrashekar 0n 02-05-2014
{
System.out.println("(String)itemArr.get(ctr)--" + (String) itemArr.get(ctr));
suppSour = getSuppSour((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
suppSour = suppSour.trim();
bomCode = getBomCode((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
System.out.println("SuppSour---" + suppSour + "bomCode--" + bomCode);
// System.out.println("populateAllItem(): Supp_Sour:..." +
// suppSour + " Bom Code:..." + bomCode);
if (((suppSour != null) && (!suppSour.equals("P"))) && (bomCode != null))
{
Set levelBom = new HashSet();
level = 1;
levelBom.add(bomCode);
hmap.put(new Integer(level), levelBom);
// itemHashMap.put( (String)itemArr.get(ctr), new
// Integer(count) );
System.out.println("itemArr.get(ctr)--" + itemArr.get(ctr));
itemList.add((String) itemArr.get(ctr));
// System.out.println("Exploding BOM for site : " +
// (String)siteMapEntry.getKey() + " Item : " +
// (String)itemArr.get(ctr) + " BOM : " + bomCode);
// Added by Jiten 07/11/06
cyclicItem.bomCode = bomCode;
cyclicItem.itemCode = (String) itemArr.get(ctr);
cyclicItem.siteCode = (String) siteMapEntry.getKey();
// end
validBomItemCode = cyclicItem.itemCode; // 19-01-2007
// manoharan
cyclicCheck = new HashSet();
errString = bomExplode((String) siteMapEntry.getKey(), bomCode);
itemHashMap.clear();
if (errString != null && errString.trim().length() > 0)
{
System.out.println("Error While Calling method bomExplode(String, String):..." + errString);
return errString;
}
level = 0;
hmap.clear();
}
}
}else if(isDetailReq)
{
System.out.println("(String)itemArr.get(ctr)--" + (String) itemArr.get(ctr));
suppSour = getSuppSour((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
suppSour = suppSour.trim();
bomCode = getBomCode((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
System.out.println("SuppSour---" + suppSour + "bomCode--" + bomCode);
// System.out.println("populateAllItem(): Supp_Sour:..." +
// suppSour + " Bom Code:..." + bomCode);
if (((suppSour != null) && (!suppSour.equals("P"))) && (bomCode != null))
{
Set levelBom = new HashSet();
level = 1;
levelBom.add(bomCode);
......@@ -1305,9 +1259,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
}
level = 0;
hmap.clear();
}
}
}
}
itemList.clear();
......
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