Commit 79a151eb authored by smestry's avatar smestry

W15ESUN005, Changed by Sneha. Updated the JSP for Location Stock Occupancy dashboard.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98492 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f8a5cb50
...@@ -54,6 +54,8 @@ ...@@ -54,6 +54,8 @@
String expStock =""; String expStock ="";
String occupiedRack=""; String occupiedRack="";
String retestDate =""; String retestDate ="";
String siteCodeStr=""; // Sneha
%> %>
<% <%
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT"); response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
...@@ -71,6 +73,10 @@ ...@@ -71,6 +73,10 @@
$(document).ready(function() $(document).ready(function()
{ {
$("#area").dropdownchecklist({emptyText: "Select ", width:100, height:25 }); $("#area").dropdownchecklist({emptyText: "Select ", width:100, height:25 });
// Changed by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
$("#siteCode").dropdownchecklist({emptyText: "Select ", width:90, height:25 });
// End by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
$( "#opendiv" ).dialog({ $( "#opendiv" ).dialog({
...@@ -99,7 +105,13 @@ ...@@ -99,7 +105,13 @@
{ {
var area= $("#area").val(); var area= $("#area").val();
var locationRange = $("#locationRange").val(); var locationRange = $("#locationRange").val();
$('#LocationStockOccupancy').attr('action', 'LocationStockOccupancy.jsp?area='+area+'&locationRange='+locationRange); //$('#LocationStockOccupancy').attr('action', 'LocationStockOccupancy.jsp?area='+area+'&locationRange='+locationRange);
// Changed by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
var siteCodeInScript = $("#siteCode").val();
$('#LocationStockOccupancy').attr('action', 'LocationStockOccupancy.jsp?area='+area+'&locationRange='+locationRange+'&siteCode='+siteCodeInScript);
// End by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
$('#LocationStockOccupancy').submit(); $('#LocationStockOccupancy').submit();
//document.getElementById("LocationStockOccupancy").submit(); //document.getElementById("LocationStockOccupancy").submit();
...@@ -183,11 +195,29 @@ ...@@ -183,11 +195,29 @@
newTable+="<TD>"; newTable+="<TD>";
//Changed by Sneha, for alignment of Stock, Quantity, Unit & Item image display on 14-08-2015, Request ID: W15ESUN005
newTable+="<table id='stockTbl' class='stocktbl' cellpadding='0' cellspacing='0'> <tbody> <tr> <td colspan='2' class='poptitle white'>&nbsp;</td> </tr> <tr> "; newTable+="<table id='stockTbl' class='stocktbl' cellpadding='0' cellspacing='0'> <tbody> <tr> <td colspan='2' class='poptitle white'>&nbsp;</td> </tr> <tr> ";
newTable+="<td colspan='2' class='poptitle white'>"+stockDtl[1].childNodes[0].nodeValue +"</td>"; //newTable+="<td colspan='2' class='poptitle white'>"+stockDtl[1].childNodes[0].nodeValue +"</td>";
newTable+="</tr> <tr> <td width='50%' height='31' class='popcode white'>"+stockDtl[0].childNodes[0].nodeValue +"</td> ";
newTable+="<td width='50%' class='white tdrghtalign'><span class='popunit'>Quantity:</span> <span class='popqty'> "+stockDtl[4].childNodes[0].nodeValue +" </span><span class='popunit'> "+stockDtl[10].childNodes[0].nodeValue+"</span></td> </tr> <tr> <td colspan='2' class='ttl'>Other Information</td> </tr> <tr> <td colspan='2'><table width='100%' border='0' cellspacing='0' cellpadding='0' class='otherdetails'>"; newTable+="<td colspan='2' class='poptitle white'> "+stockDtl[1].childNodes[0].nodeValue +"</td>";
newTable+="<tr> <td class='highlight'>Lot No</td> <td class='highlight rght'>"+stockDtl[2].childNodes[0].nodeValue +"</td> </tr> ";
//newTable+="</tr> <tr> <td width='50%' height='31' class='popcode white'>"+stockDtl[0].childNodes[0].nodeValue +"</td> ";
//newTable+="<td width='50%' class='white tdrghtalign'><span class='popunit'>Quantity:</span> <span class='popqty'> "+stockDtl[4].childNodes[0].nodeValue +" </span><span class='popunit'> "+stockDtl[10].childNodes[0].nodeValue+"</span></td> </tr> <tr> <td colspan='2' class='ttl'>Other Information</td> </tr> <tr> <td colspan='2'><table width='100%' border='0' cellspacing='0' cellpadding='0' class='otherdetails'>";
newTable+=" </tr> <tr> "
+ " <td width='50%' height='31' class='popcode white'> <p><img src = '/ibase/dashboard/wms/images/item.png' height='30' width='30' style = 'margin-top: -28px; ' ></p> "
+ " "+stockDtl[0].childNodes[0].nodeValue +"</td> ";
newTable+="<td width='50%' class='white tdrghtalign'><span class='popunit'>Stock &nbsp;</span> <br> "
+" <span class='popqty'> "+stockDtl[4].childNodes[0].nodeValue +" </span> <br> "
+" <span class='popunit'> "+stockDtl[10].childNodes[0].nodeValue+"</span> </tr> "
+" <tr> <td colspan='2' class='ttl'>Other Information</td> </tr> <tr> <td colspan='2'> "
+" <table width='100%' border='0' cellspacing='0' cellpadding='0' class='otherdetails'>";
//End by Sneha, for alignment of Stock, Quantity & Unit display on 14-08-2015, Request ID: W15ESUN005
newTable+="<tr> <td class='highlight'>Lot No</td> <td class='highlight rght'>"+stockDtl[2].childNodes[0].nodeValue +"</td> </tr> ";
newTable+="<tr> <td class='tdleftalign'>Lot Serial</td> <td class='tdrghtalign'>"+stockDtl[3].childNodes[0].nodeValue +"</td> </tr> "; newTable+="<tr> <td class='tdleftalign'>Lot Serial</td> <td class='tdrghtalign'>"+stockDtl[3].childNodes[0].nodeValue +"</td> </tr> ";
newTable+="<tr> <td class='tdleftalign'>Mfg. Date</td> <td class='tdrghtalign'>"+stockDtl[7].childNodes[0].nodeValue +"</td> </tr>"; newTable+="<tr> <td class='tdleftalign'>Mfg. Date</td> <td class='tdrghtalign'>"+stockDtl[7].childNodes[0].nodeValue +"</td> </tr>";
...@@ -224,8 +254,9 @@ ...@@ -224,8 +254,9 @@
if( parseInt(stockDtl[5].childNodes[0].nodeValue) >0) if( parseInt(stockDtl[5].childNodes[0].nodeValue) >0)
{ {
newTable+="<tr> <td class='alert'>Hold Quantity</td> <td class='alert rght'>"+stockDtl[5].childNodes[0].nodeValue +"</td> </tr>"; newTable+="<tr> <td class='alert'>Hold Quantity</td> <td class='alert rght'>"+stockDtl[5].childNodes[0].nodeValue +"</td> </tr>";
//Changed by Sneha, for display of Lock Code on 16-07-2015, Request ID: SMWMS00008
newTable+="<tr> <td class='alert'>Lock Code</td> <td class='alert rght'>"+stockDtl[6].childNodes[0].nodeValue +"</td> </tr>"; //Changed by Sneha, for display of Lock Code on 16-07-2015, Request ID: SMWMS00008
newTable+="<tr> <td class='alert'>Lock Code</td> <td class='alert rght'>"+stockDtl[11].childNodes[0].nodeValue +"</td> </tr>";
//End by Sneha, for display of Lock Code on 16-07-2015, Request ID: SMWMS00008 //End by Sneha, for display of Lock Code on 16-07-2015, Request ID: SMWMS00008
} }
...@@ -233,12 +264,10 @@ ...@@ -233,12 +264,10 @@
{ {
newTable+="<tr> <td class='tdleftalign'>Hold Quantity</td> <td class='tdleftalign rght'>"+stockDtl[5].childNodes[0].nodeValue +"</td> </tr>"; newTable+="<tr> <td class='tdleftalign'>Hold Quantity</td> <td class='tdleftalign rght'>"+stockDtl[5].childNodes[0].nodeValue +"</td> </tr>";
} }
//newTable+="<tr> <td class='tdleftalign'>Allocated Qty</td> <td class='tdrghtalign'>"+stockDtl[6].childNodes[0].nodeValue +"</td> </tr> </table> </td> </tr> </tbody> </table>"; newTable+="<tr> <td class='tdleftalign'>Allocated Qty</td> <td class='tdrghtalign'>"+stockDtl[6].childNodes[0].nodeValue +"</td> </tr> </table> </td> </tr> </tbody> </table>";
//Changed by Sneha, for display of Lock Code on 16-07-2015, Request ID: SMWMS00008
newTable+="<tr> <td class='tdleftalign'>Allocated Qty</td> <td class='tdrghtalign'>"+stockDtl[7].childNodes[0].nodeValue +"</td> </tr> </table> </td> </tr> </tbody> </table>";
//End by Sneha, for display of Lock Code on 16-07-2015, Request ID: SMWMS00008
/* /*
...@@ -378,15 +407,19 @@ span.appendChild(document.createTextNode(location)); ...@@ -378,15 +407,19 @@ span.appendChild(document.createTextNode(location));
</head> </head>
<% <%
try { try {
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 = userInfo.getSiteCode(); //siteCode = userInfo.getSiteCode();
System.out.print("Site code from session = "+siteCode); System.out.print("Site code from session :::::::::: " + siteCode);
if (siteCode == null || siteCode.trim().length() == 0 ) if (siteCode == null || siteCode.trim().length() == 0 )
{ {
//siteCode = "TA387"; //siteCode = "TA387";
siteCode = "TA821"; //siteCode = "TA821";
// Changed by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
siteCodeStr = scmdasBean.getSiteCode();
System.out.print("Site code if null ::::::::: " + siteCode);
// End by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
} }
if(xmlString == "") if(xmlString == "")
{ {
...@@ -396,18 +429,24 @@ span.appendChild(document.createTextNode(location)); ...@@ -396,18 +429,24 @@ span.appendChild(document.createTextNode(location));
selectedArea = request.getParameter("area"); selectedArea = request.getParameter("area");
locationRange = request.getParameter("locationRange"); locationRange = request.getParameter("locationRange");
// Changed by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
siteCode = request.getParameter("siteCode") == null ? "no" : request.getParameter("siteCode") ;
// End by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008
if(locationRange==null) if(locationRange==null)
{ {
locationRange =""; locationRange ="";
} }
System.out.println("expStock = "+expStock + " occupiedRack ="+occupiedRack+" retestDate ="+retestDate); // System.out.println("expStock = "+expStock + " occupiedRack ="+occupiedRack+" retestDate ="+retestDate);
if(selectedArea!=null && selectedArea.trim().length() != 0 ) if(selectedArea!=null && selectedArea.trim().length() != 0 )
{ {
areaStr = scmdasBean.getLocDtl(selectedArea.trim(), siteCode,locationRange); areaStr = scmdasBean.getLocDtl(selectedArea.trim(), siteCode, locationRange);
//areaStr = scmdasBean.getLocDtl(selectedArea, siteCode,locationRange); //areaStr = scmdasBean.getLocDtl(selectedArea, siteCode,locationRange);
} }
System.out.println("areaStr is ="+areaStr); System.out.println("areaStr is = " + areaStr);
System.out.println("siteCode is :::::::: "+siteCode);
//end code on dated 21Aug2014 //end code on dated 21Aug2014
%> %>
<body> <body>
...@@ -423,6 +462,7 @@ span.appendChild(document.createTextNode(location)); ...@@ -423,6 +462,7 @@ span.appendChild(document.createTextNode(location));
<form method="post" id='LocationStockOccupancy' <form method="post" id='LocationStockOccupancy'
action="LocationStockOccupancy.jsp" name="LocationStockOccupancy"> action="LocationStockOccupancy.jsp" name="LocationStockOccupancy">
<div id='opendiv' class="openDiv"> <div id='opendiv' class="openDiv">
<table class='popUpFiltrTbl'> <table class='popUpFiltrTbl'>
<tr> <tr>
...@@ -458,24 +498,6 @@ span.appendChild(document.createTextNode(location)); ...@@ -458,24 +498,6 @@ span.appendChild(document.createTextNode(location));
%> %>
<option><%=locPhyArea%> </option> <option><%=locPhyArea%> </option>
<!--
<option>Test fghfghfgfhgfhgfghgfhgfhgf</option>
<option>B</option>
<option>hjzdgfhjbgfhjgfhj dfbh</option>
<option>D</option>
<option>E</option>
<option>F</option>
<option>G</option>
<option>H</option>
<option>I</option>
<option>J</option>
<option>K</option>
<option>O</option>
<option>P</option>
<option>Q</option>
<option>R</option>
<option>S</option>
-->
<% <%
} }
...@@ -487,16 +509,59 @@ span.appendChild(document.createTextNode(location)); ...@@ -487,16 +509,59 @@ span.appendChild(document.createTextNode(location));
} }
%> %>
</select> </select>
</td> </td>
<td> Location Range Like <input type text name="locationRange" id="locationRange" size="10" value="<%=locationRange%>"> <td> Location Range Like <input type text name="locationRange" id="locationRange" size="10" value="<%=locationRange%>">
</td> </td>
<!-- Changed by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008 -->
<td>Site Code <select name="siteCode" id="siteCode">
<%
if (siteCodeStr != null && siteCodeStr.trim().length() > 0)
{
dom = genericUtility.parseString(siteCodeStr);
if (dom != null)
{
dtlList = dom.getElementsByTagName("Detail");
for (int cntr = 0; cntr < dtlList.getLength(); cntr++)
{
parentNode = dtlList.item(cntr);
childNodeList = parentNode.getChildNodes();
for (int nodCtr = 0; nodCtr < childNodeList .getLength(); nodCtr++)
{
currDetail = childNodeList.item(nodCtr);
childNodeName = currDetail.getNodeName();
if (childNodeName.trim().equals("SITE_CODE"))
{
//locPhyArea = currDetail.getFirstChild().getNodeValue();
locPhyArea = currDetail.getTextContent();
if (locPhyArea != "")
{
%>
<option><%=locPhyArea%>
</option>
<%
}
}
}
}
}
}
%>
</select>
</td>
<!-- End by Sneha, added site code dropdown on 17-08-2015, Request ID: SMWMS00008 -->
</tr> </tr>
</table> </table>
<input type hidden name="stock" id="stock" <input type hidden name="stock" id="stock"
value="<%=areaStr.replaceAll("\"", "'")%>"> value="<%=areaStr.replaceAll("\"", "'")%>">
<!-- <div style="position: absolute;left:300;top:94; "> --> <!-- <div style="position: absolute;left:300;top:94; "> -->
<!-- Change by Sneha for alignment of Cancel and Ok button --> <!-- Change by Sneha for alignment of Cancel and Ok button -->
<div style="position: absolute;left:280;top:94; "> <div style="position: absolute;left:280;top:94; ">
<table> <table>
...@@ -509,9 +574,10 @@ span.appendChild(document.createTextNode(location)); ...@@ -509,9 +574,10 @@ span.appendChild(document.createTextNode(location));
</div> </div>
</div> </div>
<table align="center"> <table align="center">
<tr>
<td> <tr>
<div id="wrapper"> <td>
<div id="wrapper">
<ul id="index_cards"> <ul id="index_cards">
<% <%
frmTop = 50; frmTop = 50;
...@@ -621,11 +687,19 @@ span.appendChild(document.createTextNode(location)); ...@@ -621,11 +687,19 @@ span.appendChild(document.createTextNode(location));
} }
%> %>
<li id="<%="card-"+cardID%>" <li id="<%="card-"+cardID%>"
style="left:<%=frmLeft%>px;top:<%=frmTop%>px;"> style="left:<%=frmLeft%>px;top:<%=frmTop%>px;" >
<table id='celltable'>
<tr> <!-- <table id='celltable'> -->
<!-- Changed by Sneha, added a image for indication on the carts loads on 17-08-2015, Request ID: SMWMS00008 -->
<div id='celltablediv' style="float: right;"><p>
<table id='celltable'></p>
</div>
<!-- End by Sneha, added a image for indication on the carts loads on 17-08-2015, Request ID: SMWMS00008 -->
<tr>
<td class="<%=imagePath%>"><%=rowNode.getAttributes().item(0).getNodeValue()%></td> <td class="<%=imagePath%>"><%=rowNode.getAttributes().item(0).getNodeValue()%></td>
<% <%
columnDataList=new ArrayList(); columnDataList=new ArrayList();
...@@ -718,6 +792,7 @@ span.appendChild(document.createTextNode(location)); ...@@ -718,6 +792,7 @@ span.appendChild(document.createTextNode(location));
%> %>
<tr id="info"> <tr id="info">
<td class="<%=imgSrc%>" align="right"><%=stackNode.getAttributes().item(0).getNodeValue()%></td> <td class="<%=imgSrc%>" align="right"><%=stackNode.getAttributes().item(0).getNodeValue()%></td>
<% <%
for (int colCtr = 0; colCtr < columnList.getLength(); colCtr++) for (int colCtr = 0; colCtr < columnList.getLength(); colCtr++)
...@@ -741,6 +816,7 @@ span.appendChild(document.createTextNode(location)); ...@@ -741,6 +816,7 @@ span.appendChild(document.createTextNode(location));
<!--<!--%=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 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>
<% <%
} }
else else
...@@ -748,18 +824,26 @@ span.appendChild(document.createTextNode(location)); ...@@ -748,18 +824,26 @@ span.appendChild(document.createTextNode(location));
%> %>
<td class="cellempty" onclick="getStockDtl();"><%=locationNode.getAttributes().item(0) .getNodeValue()%> <td class="cellempty" onclick="getStockDtl();"><%=locationNode.getAttributes().item(0) .getNodeValue()%>
</td> </td>
<% <%
} }
} }
}} }}
} }
%> %>
<!-- Changed by Sneha, added a image for indication on the carts loads on 18-08-2015, Request ID: SMWMS00008 -->
<td style="border-top: hidden; border-bottom: hidden; border-right: hidden;">&nbsp;&nbsp;</td>
<!-- End by Sneha, added a image for indication on the carts loads on 18-08-2015, Request ID: SMWMS00008 -->
</tr> </tr>
<% <%
}} }}
%> %>
</table> </table>
</li> </li>
<% <%
frmLeft+=40; frmLeft+=40;
frmTop+= 25; frmTop+= 25;
...@@ -767,22 +851,24 @@ span.appendChild(document.createTextNode(location)); ...@@ -767,22 +851,24 @@ span.appendChild(document.createTextNode(location));
} }
%> %>
</ul> </ul>
</div> </div>
</td> </td>
<td> <td>
<div id="stocktableDiv" width="400px"></div> <div id="stocktableDiv" width="400px"></div>
</td> </td>
</tr> </tr>
</table> </table>
<% <%
} catch (RemoteException ex) { } catch (RemoteException ex) {
System.out .println("Exception : EORLocationStock sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$ System.out .println("Exception : LocationStockOccupancy sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$
} catch (ITMException ex) { } catch (ITMException ex) {
System.out .println("Exception : EORLocationStock sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$ System.out .println("Exception : LocationStockOccupancy sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$
} catch (Exception ex) { } catch (Exception ex) {
System.out .println("Exception : EORLocationStock sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$ System.out .println("Exception : LocationStockOccupancy sMessageArguments(String,wizardBean) :" + ex); //$NON-NLS-1$
} }
%> %>
</form> </form>
......
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