Commit 7bf3512c authored by sbade's avatar sbade

added emp_code variable to mehod argumetns


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101342 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 92e7ee4d
......@@ -39,19 +39,20 @@ public class PendingStatusServlet extends HttpServlet
JSONObject jsonObjData = null;
OutputStream outputStream = null;
UserInfoBean userInfo = null;
String empSite=null;
try
{
response.setContentType("application/xml");
session = request.getSession(true);
userInfo = (UserInfoBean) session.getAttribute("USER_INFO");
loginId = userInfo.getLoginCode().trim();
empSite = userInfo.getSiteCode();
dataSourceName = request.getParameter("dataSourceName");
//loginId="I99994";
System.out.println("loginId is =" + loginId);
System.out.println("loginId is =" + loginId);
context = new InitialContext(appConnectParm.getProperty());
gardeniaRemote = (PendingStatusRemote) context.lookup("ibase/PendingStatus/remote");
jsonObjData = (JSONObject) gardeniaRemote.getPendingStatus(dataSourceName,loginId);
jsonObjData = (JSONObject) gardeniaRemote.getPendingStatus(dataSourceName,loginId,empSite);
outputStream = response.getOutputStream();
outputStream.write(jsonObjData.toString().getBytes());
outputStream.flush();
......@@ -60,8 +61,7 @@ public class PendingStatusServlet extends HttpServlet
}
catch (Exception e)
{
System.out.println("Exception : PendingStatusServlet :doPost(HttpServletRequest request, HttpServletResponse response) :"
+ e);
System.out.println("Exception : PendingStatusServlet :doPost(HttpServletRequest request, HttpServletResponse response) :"+ e);
try
{
throw new ITMException(e);
......
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