Commit bf8b6a67 authored by bpandey's avatar bpandey

add white font color on stock avilable on dated 18 oct


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96636 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c9abd9e7
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
<%@page import="org.w3c.dom.NodeList"%> <%@page import="org.w3c.dom.NodeList"%>
<%@page import="ibase.webitm.utility.GenericUtility"%> <%@page import="ibase.webitm.utility.GenericUtility"%>
<%@page import="ibase.dashboard.scm.bean.*"%> <%@page import="ibase.dashboard.scm.bean.*"%>
<jsp:useBean id="scmdasBean" scope="request" class="ibase.dashboard.scm.bean.LocationStockOccuBean"/> <jsp:useBean id="scmdasBean" scope="request" class="ibase.dashboard.scm.bean.LocationStockOccuBean" />
<html> <html>
<head> <head>
<link rel="stylesheet" type="text/css" href="/ibase/dashboard/scm/css/scmdashboard.css"/> <link rel="stylesheet" type="text/css" href="/ibase/dashboard/scm/css/scmdashboard.css" />
<link rel="stylesheet" type="text/css" href="/ibase/dashboard/scm/css/ui.dropdownchecklist.standalone.css" /> <link rel="stylesheet" type="text/css" href="/ibase/dashboard/scm/css/ui.dropdownchecklist.standalone.css" />
<link rel="stylesheet" type="text/css" href="/ibase/dashboard/scm/css/jquery-ui.css"/> <link rel="stylesheet" type="text/css" href="/ibase/dashboard/scm/css/jquery-ui.css" />
<script type="text/javascript" src="/ibase/dashboard/scm/jquery/jquery-1.6.1.min.js"></script> <script type="text/javascript" src="/ibase/dashboard/scm/jquery/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="/ibase/dashboard/scm/jquery/jquery-ui-1.8.13.custom.min.js"></script> <script type="text/javascript" src="/ibase/dashboard/scm/jquery/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="/ibase/dashboard/scm/jquery/ui.dropdownchecklist-1.4-min.js"></script> <script type="text/javascript" src="/ibase/dashboard/scm/jquery/ui.dropdownchecklist-1.4-min.js"></script>
<%!GenericUtility genericUtility = GenericUtility.getInstance(); <%!GenericUtility genericUtility = GenericUtility.getInstance();
String xmlString = ""; String xmlString = "";
...@@ -52,13 +52,47 @@ ...@@ -52,13 +52,47 @@
int ctr = 0; int ctr = 0;
%> %>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function(){ $(document).ready(function()
$("#areaDropDwn").dropdownchecklist({emptyText: "For previous.", width: 100 }); {
$("#area").dropdownchecklist({emptyText: "Select ", width:100, height:25 });
$( "#opendiv" ).dialog({
autoOpen: false,
modal: false,
draggable: false,
height: "auto",
width: "auto",
resizable: false,
position: [630,30],
closeOnEscape: true,
});
$("#opendiv").dialog({width:400,height:150});
$( "#img" ).click(function()
{
$( "#opendiv" ).dialog( "open" );
});
$( "#cancel" ).click(function()
{
$( "#opendiv" ).dialog( "close" );
});
$( "#ok" ).click(function()
{
var area= $("#area").val();
var locationRange = $("#locationRange").val();
$('#LocationStockOccupancy').attr('action', 'LocationStockOccupancy.jsp?area='+area+'&locationRange='+locationRange);
$('#LocationStockOccupancy').submit();
//document.getElementById("LocationStockOccupancy").submit();
});
}); });
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
function getStockDtl(location,row,stack,column) function getStockDtl(location,row,stack,column)
{ {
...@@ -67,8 +101,7 @@ ...@@ -67,8 +101,7 @@
endTag="</TBODY></TABLE>" endTag="</TBODY></TABLE>"
newTable=startTag; newTable=startTag;
<% areaStr = areaStr.replaceAll("\"", "'"); %> data = document.getElementById("stock").value;
data="<%=areaStr%>";
if (window.DOMParser) if (window.DOMParser)
{ {
...@@ -246,7 +279,13 @@ ...@@ -246,7 +279,13 @@
$('#stocktableDiv').dialog('close'); $('#stocktableDiv').dialog('close');
} }
var span=document.getElementById("ui-dialog-title-stocktableDiv");
while(span.firstChild)
{
span.removeChild(span.firstChild);
}
span.appendChild(document.createTextNode(location));
} }
...@@ -258,20 +297,18 @@ ...@@ -258,20 +297,18 @@
//ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO"); //ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO");
//String user = userInfo.getLoginCode(); //String user = userInfo.getLoginCode();
siteCode = request.getParameter("siteCode"); //siteCode = userInfo.getSiteCode();
// siteCode =request.getParameter("siteCode");
if (siteCode == null || siteCode.trim().length() == 0 ) if (siteCode == null || siteCode.trim().length() == 0 )
{ {
//siteCode = userInfo.getSiteCode();
siteCode = "TA387"; siteCode = "TA387";
} }
// siteCode = "TA387";//this is static .because there is no data found
if(xmlString == "") if(xmlString == "")
{ {
xmlString = scmdasBean.getLocPhyArea(); xmlString = scmdasBean.getLocPhyArea();
} }
//Add New Code on dated 21 Aug 2014 //add by Birendra Pandey on dated 21 Aug 2014
selectedArea = request.getParameter("area");
selectedArea = request.getParameter("areaDropDwn");
locationRange = request.getParameter("locationRange"); locationRange = request.getParameter("locationRange");
if(locationRange==null){ if(locationRange==null){
locationRange =""; locationRange ="";
...@@ -281,18 +318,26 @@ ...@@ -281,18 +318,26 @@
areaStr = scmdasBean.getLocDtl(selectedArea, siteCode,locationRange); areaStr = scmdasBean.getLocDtl(selectedArea, siteCode,locationRange);
} }
//end code on dated 21Aug2014 //end code on dated 21Aug2014
%> %>
<body> <body>
<form method="post" action="LocationStockOccupancy.jsp" name="LocationStockOccupancy">
<table align="center" >
<tr>
<td align="center"> Location Stock Occupancy</td> <table class="pagetitle">
</tr> <tr>
<td class="pagetitlename"> Location Stock Occupancy</td>
<td align="right"> <img id='img' class="img" alt="" src="/ibase/dashboard/scm/images/analysis_scope.png" onclick="divopen()" />
</tr>
</table>
<form method="post" id='LocationStockOccupancy' action="LocationStockOccupancy.jsp" name="LocationStockOccupancy">
<div id='opendiv' >
<table class='popUpFiltrTbl' >
<tr> <tr>
<td align="center" >Area :<select name="areaDropDwn" id="areaDropDwn" >
<td> Area <select name="area" id="area" >
<% <%
if (xmlString != null && xmlString.trim().length() > 0) if (xmlString != null && xmlString.trim().length() > 0)
{ {
...@@ -317,7 +362,7 @@ ...@@ -317,7 +362,7 @@
if (locPhyArea != "") if (locPhyArea != "")
{ {
%> %>
<option><%=locPhyArea%> <option ><%=locPhyArea%>
</option> </option>
<% <%
} }
...@@ -329,10 +374,34 @@ ...@@ -329,10 +374,34 @@
} }
%> %>
</select> </select>
Location Range Like: <input type text name="locationRange" id="locationRange" size="10" value="<%=locationRange%>"></td>
<td> <input type="submit" name="showChart" value="View"/>
</td> </td>
<td> Location Range Like <input type text name="locationRange" id="locationRange" size="10" value="<%=locationRange%>">
</td>
</tr>
</table>
<input type hidden name="stock" id="stock" value="<%=areaStr.replaceAll("\"", "'")%>" >
<div style="position: absolute;left:300;top:94; ">
<table>
<tr>
<td>
<input type="button" id='cancel' name='cancel' value="Cancel">
<input type="button" id='ok' name="ok" value="Ok" /></td>
</tr> </tr>
</table>
</div>
</div>
<table align="center">
<tr> <tr>
<td> <td>
<div id="wrapper"> <div id="wrapper">
...@@ -438,7 +507,8 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue()); ...@@ -438,7 +507,8 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue());
%> %>
<li id="<%="card-"+cardID%>" style="left:<%=frmLeft%>px;top:<%=frmTop%>px;"> <li id="<%="card-"+cardID%>"
style="left:<%=frmLeft%>px;top:<%=frmTop%>px;">
<table id='celltable'> <table id='celltable'>
<tr> <tr>
<td background="<%=imagePath%>"><%=rowNode.getAttributes().item(0).getNodeValue()%></td> <td background="<%=imagePath%>"><%=rowNode.getAttributes().item(0).getNodeValue()%></td>
...@@ -551,7 +621,8 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue()); ...@@ -551,7 +621,8 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue());
{ {
%> %>
<!--<!--%=columnNode.getAttributes().item(0).getNodeValue()%--> <!--<!--%=columnNode.getAttributes().item(0).getNodeValue()%-->
<td class="itemcell" onclick="getStockDtl('<%=locationNode.getAttributes().item(0) .getNodeValue()%>','<%=rowNode.getAttributes().item(0).getNodeValue()%>','<%=stackNode.getAttributes().item(0).getNodeValue()%>','<%=columnNode.getAttributes().item(0).getNodeValue()%>');"> <%=locationNode.getAttributes().item(0) .getNodeValue()%> </td> <td class="itemcell" onclick="getStockDtl('<%=locationNode.getAttributes().item(0) .getNodeValue()%>','<%=rowNode.getAttributes().item(0).getNodeValue()%>','<%=stackNode.getAttributes().item(0).getNodeValue()%>','<%=columnNode.getAttributes().item(0).getNodeValue()%>');"> <%=locationNode.getAttributes().item(0) .getNodeValue()%>
</td>
<% <%
} }
else else
...@@ -581,9 +652,7 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue()); ...@@ -581,9 +652,7 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue());
</div> </div>
</td> </td>
<td> <td>
<div id="stocktableDiv" width="400px"> <div id="stocktableDiv" width="400px"></div>
</div>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -599,15 +668,14 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue()); ...@@ -599,15 +668,14 @@ columnArray.add(columnNode.getAttributes().item(0).getNodeValue());
System.out .println("Exception : LocationStockOccupancey sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$ System.out .println("Exception : LocationStockOccupancey sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$
} }
%> %>
</form> </form>
<script> <script>
var areaCode ="<%=selectedArea%>"; areaCode ="<%=this.selectedArea%>";
var locRange ="<%=locationRange%>"; locRange ="<%=this.locationRange%>";
document.getElementById("locationRange").value=locRange; document.getElementById("locationRange").value=locRange;
window.onload = new function() { window.onload = new function() {
var currList = document.getElementById("areaDropDwn"); var currList = document.getElementById("area");
for (var m = 0; m < currList.options.length; m++) for (var m = 0; m < currList.options.length; m++)
{ {
var checkval = currList.options[m].value; var checkval = currList.options[m].value;
......
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