Commit a0ccb2fb authored by bpandey's avatar bpandey

add use bean concept in jsp


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93472 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5048e344
<%@page import="java.rmi.RemoteException"%>
<%@page import="ibase.webitm.utility.ITMException"%>
<%@ page contentType="text/html"%>
<%@ page
import="javax.xml.parsers.DocumentBuilderFactory,javax.xml.parsers.DocumentBuilder,org.w3c.dom.*"%>
<%@page import="ibase.dashboard.sfa.ejb.*"%>
<%@page contentType="text/html"%>
<%@page import="javax.xml.parsers.DocumentBuilderFactory,javax.xml.parsers.DocumentBuilder,org.w3c.dom.*"%>
<%@page import="ibase.utility.CommonConstants"%>
<%@ page import="javax.naming.InitialContext"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="javax.naming.Context"%>
<%@page import="org.w3c.dom.Node"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="org.w3c.dom.NodeList"%>
<%@page import="ibase.webitm.utility.GenericUtility"%>
<%@page import="ibase.dashboard.scm.ejb.*;"%>
<%@page import="ibase.dashboard.scm.bean.*"%>
<jsp:useBean id="scmdasBean" scope="request" class="ibase.dashboard.scm.bean.LocationStockOccuBean"/>
<html>
<head>
<link rel="stylesheet" href="/ibase/dashboard/scm/css/style.css" type="text/css" />
......@@ -31,8 +28,7 @@
NodeList dtlList = null;
Node parentNode = null;
NodeList childNodeList = null;
Node currDetail = null;
LocationStockOccupancyRemote locationStockOccupancy = null;
Node currDetail = null;
String childNodeName = "", locPhyArea = "", areaDtlString = "", selectedArea = "", siteCode = " ",imgSrc ="";
NodeList rowList = null, stackList = null, columnList = null;
boolean stockNotPresent;
......@@ -43,8 +39,8 @@
NodeList locationCodeList = null;
Node locationNode = null;
NodeList stockList = null;
int frmTop;
int frmLeft;
int frmTop;
int frmLeft;
%>
<%
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
......@@ -61,13 +57,13 @@
var selectedArea = document.getElementById("areaDropDwn").value;
window.location.replace("LocationStockOccupancy.jsp?name=" +selectedArea);
<% selectedArea = request.getParameter("name");
if(locationStockOccupancy !=null )
if(scmdasBean !=null )
{
if (selectedArea == null || selectedArea == "")
{
selectedArea = locationStockOccupancy.getSelectedArea();
selectedArea = scmdasBean.getSelectedArea();
}
areaStr = locationStockOccupancy.getLocDtl(selectedArea, siteCode);
areaStr = scmdasBean.getLocDtl(selectedArea, siteCode);
}
%>
......@@ -288,20 +284,17 @@
//ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO");
//String user = userInfo.getLoginCode();
siteCode = request.getParameter("SITE_CODE");
if (siteCode == null || siteCode.trim().length() == 0 ) {
//siteCode = userInfo.getSiteCode();
}
siteCode = "TA821";//this is static .because there is no data found
Context context = new InitialContext();
locationStockOccupancy = (LocationStockOccupancyRemote) context .lookup("ibase/LocationStockOccupancy/remote");
{
if(xmlString == "")
if (siteCode == null || siteCode.trim().length() == 0 )
{
xmlString = locationStockOccupancy.getLocPhyArea();
}
}
//siteCode = userInfo.getSiteCode();
}
siteCode = "TA821";//this is static .because there is no data found
if(xmlString == "")
{
xmlString = scmdasBean.getLocPhyArea();
}
%>
<body>
<table >
......@@ -350,13 +343,13 @@
<td></td>
</tr>
<%
if(locationStockOccupancy!=null)
if(scmdasBean!=null)
{
if (selectedArea == null || selectedArea == "")
{
selectedArea = locationStockOccupancy.getSelectedArea();
selectedArea = scmdasBean.getSelectedArea();
}
areaStr = locationStockOccupancy.getLocDtl(selectedArea, siteCode);
areaStr = scmdasBean.getLocDtl(selectedArea, siteCode);
}
%>
......
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