Commit f3f8c54d authored by cpatil's avatar cpatil

modify for requirment sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95008 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 26bb6362
......@@ -19,6 +19,7 @@ package ibase.webitm.ejb.mfg;
6. in of case mfgtype = "O" create workorder instead of mps order
*/
import org.w3c.dom.*;
import java.rmi.RemoteException;
import java.util.*;
import java.sql.*;
......@@ -151,6 +152,9 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
ArrayList IPD_INDENT = new ArrayList();
ArrayList IPD_MPS_ORDER = new ArrayList();
ArrayList IPD_DIST = new ArrayList();
String wnName1=""; // added by chandrakant on 29/4/14
//String IPD_INDEPENDENT = "",IPD_INDENT = "",IPD_MPS_ORDER = "",IPD_DIST = ""; //cpatil on 15/01/14
/*
* public void ejbCreate() throws RemoteException, CreateException { try {
......@@ -213,14 +217,37 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
return retString;
}
private String getWinName(Node node) throws Exception
{
String objName = "";
NamedNodeMap attrMap = node.getAttributes();
objName = attrMap.getNamedItem("objName").getNodeValue();
System.out.println(" Object Name is==>" + objName);
return "w_" + objName;
}
public String getData(Document dom, Document dom1, String windowName, String xtraParams) throws RemoteException, ITMException
{
errString = "";
String resultString = "";
String resultString = "",windowName1="";
ResultSet rs = null;
this.wnName=windowName;
System.out.println("win name is ==>"+wnName);
NodeList parentNodeList1 = dom1.getElementsByTagName("Detail3");
Node parentNode1 = parentNodeList1.item(0);
try
{
windowName1 = this.getWinName(parentNode1);
}
catch (Exception e1)
{
e1.printStackTrace();
}
this.wnName1=windowName1; // added by chandrakant on 29/4/14
System.out.println("windowName is ==>"+windowName);
// System.out.println("Initial Size of Item Has Map :" +
// itemHashMap.size());
......@@ -2752,9 +2779,20 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
if (matPlan.equalsIgnoreCase("N") && mfgPlan.equalsIgnoreCase("N"))
{
sqlFileName = CommonConstants.JBOSSHOME + File.separator + "sql" + File.separator + "demandsupplyforecastonly";
} else if (matPlan.equalsIgnoreCase("Y") && mfgPlan.equalsIgnoreCase("N"))
}
else if (matPlan.equalsIgnoreCase("Y") && mfgPlan.equalsIgnoreCase("N"))
{
System.out.println("wnName1["+wnName1+"]");
if(wnName1.trim().equals("w_requirement")) // added by chandrakant on 29/4/14 as per suggestion
{
sqlFileName = CommonConstants.JBOSSHOME + File.separator + "sql" + File.separator + "demandsupplymaterialReq";
}
else
{
sqlFileName = CommonConstants.JBOSSHOME + File.separator + "sql" + File.separator + "demandsupplymaterial";
}
} else
{
//Condition Added By manoj dtd 31/10/2013 to get demand supply at detail level
......
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