Commit 7460da2f authored by arane's avatar arane

MRP run - Admin email id to be defined in enterprise table - If user is not...

MRP run - Admin email id to be defined in enterprise table - If user is not having email id then mail should go to the admin user

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216809 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5a6b8c7c
...@@ -71,7 +71,7 @@ import java.util.Set; ...@@ -71,7 +71,7 @@ import java.util.Set;
import java.util.TreeMap; import java.util.TreeMap;
import java.util.TreeSet; import java.util.TreeSet;
import javax.ejb.Stateless; import javax.ejb.Stateless;import ibase.utility.E12GenericUtility;
import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilderFactory;
...@@ -352,9 +352,6 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -352,9 +352,6 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
return retString; return retString;
} }
private String getWinName(Node node) throws Exception private String getWinName(Node node) throws Exception
{ {
String objName = ""; String objName = "";
...@@ -15991,6 +15988,26 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -15991,6 +15988,26 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
pStmt = null; pStmt = null;
BaseLogger.log("2", null, null, "@@@@ empCode["+empCode+"]emailId["+emailId+"]"); BaseLogger.log("2", null, null, "@@@@ empCode["+empCode+"]emailId["+emailId+"]");
} }
//Added by Anagha rane 12.02.2020 >>To get EmailId of Admin Start
else if(emailId == null || emailId.trim().length() == 0)
{
UserInfoBean userInfoBean = getUserInfo();
String enterprise = userInfoBean.getEnterprise();
sql = " select email_id from enterprise where enterprise = ? ";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, enterprise);
rs = pStmt.executeQuery();
if (rs.next())
{
emailId = checkNull(rs.getString("email_id"));
}
rs.close();
rs = null;
pStmt.close();
pStmt = null;
}
//End Added by Anagha rane 12.02.2020 >>To get EmailId of Admin
}catch(Exception e){ }catch(Exception e){
BaseLogger.log("0", null, null,"Exception :RunMRPPrcEJB : getEmailId" + e.getMessage()); BaseLogger.log("0", null, null,"Exception :RunMRPPrcEJB : getEmailId" + e.getMessage());
e.printStackTrace(); e.printStackTrace();
......
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