You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
275 lines
11 KiB
275 lines
11 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMasterNew.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Package.PackageModel>" %>
|
||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||
|
线边库存大屏显示
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||
|
|
||
|
<style>
|
||
|
|
||
|
#tblFis
|
||
|
{
|
||
|
font-family: 宋体, Arial, Helvetica, sans-serif;
|
||
|
font-size: 18px;
|
||
|
font-weight: bold;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
#tblFis td
|
||
|
{
|
||
|
text-align: center;
|
||
|
}
|
||
|
.tblFishead_td
|
||
|
{
|
||
|
background-color: #999999;
|
||
|
height: 38px;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
.tblFisbody_td_red
|
||
|
{
|
||
|
background-color: red;
|
||
|
height: 58px;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
.tblFisbody_td_yellow
|
||
|
{
|
||
|
background-color:Yellow;
|
||
|
height: 58px;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
.tblFisbody_td_green
|
||
|
{
|
||
|
background-color:Green;
|
||
|
height: 58px;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
/*预计在途数量*/
|
||
|
#tblQTY
|
||
|
{
|
||
|
font-family: 宋体, Arial, Helvetica, sans-serif;
|
||
|
font-size: 25px;
|
||
|
font-weight: bold;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
#tblQTY td
|
||
|
{
|
||
|
text-align: center;
|
||
|
}
|
||
|
.tblQTYhead_td
|
||
|
{
|
||
|
background-color: #0033CC;
|
||
|
height: 38px;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
.tblQTYhead_td_blue
|
||
|
{
|
||
|
background-color: #3399FF;
|
||
|
height: 58px;
|
||
|
border: 1px solid #808080;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<div align="center" style="position: absolute; width:90%;height:40px;">
|
||
|
<table >
|
||
|
<tr>
|
||
|
<%--<td style="padding-right: 5px; padding-left: 5px">
|
||
|
<img alt="" src="../../Content/Img/cfaa.png"
|
||
|
style="top: 5px; position: relative;" /></td>--%>
|
||
|
<td style="font-family: 微软雅黑; font-size: 48px; font-weight: bold;" width="90%">
|
||
|
富维安道拓——线边库存</td>
|
||
|
<td nowrap="nowrap">
|
||
|
<span id="systemtimelbl" style="font-family: 微软雅黑; font-size: 24px; font-weight: bold;">2017年8月12日 11:23:45</span>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<%-- <tr>
|
||
|
<td colspan="2"
|
||
|
style="background-image: url('../../Content/Img/line1.png'); background-repeat: repeat-x" height="20px">
|
||
|
|
||
|
</td>z
|
||
|
</tr>--%>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div style="position: absolute; padding-top: 70px">
|
||
|
<table cellspacing=0 cellpadding=0 style="width:100%">
|
||
|
|
||
|
<tr>
|
||
|
<td valign="top" align=center>
|
||
|
<div id="divMain" style="display : block">
|
||
|
<%=Model.MainDataHtml %>
|
||
|
|
||
|
<%-- <table id="tblFis" cellspacing=0 cellpadding=0 style="width:99%;">
|
||
|
<tr>
|
||
|
<td style="width:10%;" class="tblQTYhead_td">
|
||
|
操作 </td>
|
||
|
<td style="width:40%;" class="tblQTYhead_td">
|
||
|
物料名称</td>
|
||
|
<td style="width:30%;" class="tblQTYhead_td">
|
||
|
物料号</td>
|
||
|
<td class="tblQTYhead_td">
|
||
|
剩余数量
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="tblFisbody_td_red">
|
||
|
<input type="button" value="编辑" onclick="clickeMain('567')"></td>
|
||
|
<td class="tblFisbody_td_red">
|
||
|
16D 857 002 6T6</td>
|
||
|
<td class="tblFisbody_td_red">
|
||
|
NCS仪表板总成</td>
|
||
|
<td class="tblFisbody_td_red">
|
||
|
20170506101</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
<input type="button" value="编辑" onclick="clickeMain()"></td>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
16D 857 002 A 6T6</td>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
NCS仪表板总成</td>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
20170506102</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
<input type="button" value="编辑" onclick="clickeMain()">
|
||
|
</td>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
16D 857 002 A 6T6
|
||
|
</td>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
NCS仪表板总成
|
||
|
</td>
|
||
|
<td class="tblQTYhead_td_blue">
|
||
|
20170506103
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
--%>
|
||
|
</div>
|
||
|
<div id="divChild" style="display : none">
|
||
|
<%=Model.ChildDataHtml%>
|
||
|
|
||
|
<%-- <table cellpadding=0 cellspacing=0 id="tbChild" style="width:99%;"><tr><td style="width:10%;" class="tblQTYhead_td">操作</td><td style="width:40%;" class="tblQTYhead_td">箱号</td><td style="width:30%;" class="tblQTYhead_td">装箱数量</td><td class="tblQTYhead_td">已使用数量</td></tr>
|
||
|
<tr><td class="tblQTYhead_td_blue"><input type="button" value="编辑" onclick="clickeEdit('2 ')"><input type="button" value="返回" onclick="clickeReturn()"></td><td class="tblQTYhead_td_blue">456</td><td class="tblQTYhead_td_blue">50</td><td class="tblQTYhead_td_blue">40</td></tr><tr><td class="tblQTYhead_td_blue"><input type="button" value="编辑" onclick="clickeEdit('4 ')"><input type="button" value="返回" onclick="clickeReturn()"></td><td class="tblQTYhead_td_blue">888</td><td class="tblQTYhead_td_blue">50</td><td class="tblQTYhead_td_blue">0</td></tr></table>
|
||
|
--%>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<%--<%=Html.HiddenFor(p=>p.FisDataPageIndex)%>
|
||
|
<%=Html.HiddenFor(p=>p.OnTheWayDataPageIndex)%>--%>
|
||
|
<script language="javascript" >
|
||
|
|
||
|
var count = 0;
|
||
|
var divMain = document.getElementById("divMain");
|
||
|
var divChild = document.getElementById("divChild");
|
||
|
$(function () {
|
||
|
showTime();
|
||
|
//刷新
|
||
|
setTimeout("RefreshMainTable()", 60000);
|
||
|
});
|
||
|
|
||
|
function clickeMain(mc) {
|
||
|
divMain.style.display = 'none';
|
||
|
divChild.style.display = 'block';
|
||
|
//打开child
|
||
|
RefreshChildTable(mc);
|
||
|
}
|
||
|
function clickeReturn() {
|
||
|
divMain.style.display = 'block';
|
||
|
divChild.style.display = 'none';
|
||
|
//刷新main
|
||
|
RefreshMainTable();
|
||
|
}
|
||
|
//编辑页面
|
||
|
function clickeEdit(pid) {
|
||
|
openAppWindow1('编辑', 'Edit?PID=' + pid, '350', '380');
|
||
|
}
|
||
|
//刷新Main
|
||
|
function RefreshMainTable() {
|
||
|
// if (count == 120) {
|
||
|
// window.location.href = window.location.href;
|
||
|
// }
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "/PackageDisplay/GetMainDatas",
|
||
|
dataType: "json",
|
||
|
data: {},
|
||
|
success: function (data) {
|
||
|
divMain.innerHTML = data.MainDataHtml;
|
||
|
// if (data.FisDataPageIndex == data.FisDataPageCount) {
|
||
|
// //从第一开始
|
||
|
// $("#FisDataPageIndex").val("0");
|
||
|
// }
|
||
|
// else {
|
||
|
// $("#FisDataPageIndex").val(data.FisDataPageIndex);
|
||
|
// }
|
||
|
// document.getElementById("fispage").innerHTML = data.FisDataPageInfo;
|
||
|
},
|
||
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||
|
//setTimeout("RefreshMainTable()", 10000);
|
||
|
//alert("123");
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
count = count + 1;
|
||
|
|
||
|
//50秒后定时提示及时消息
|
||
|
setTimeout("RefreshMainTable()", 60000);
|
||
|
}
|
||
|
//打开Child
|
||
|
function RefreshChildTable(mc) {
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "/PackageDisplay/GetChildDatas?materialCode=" + mc,
|
||
|
dataType: "json",
|
||
|
data: {},
|
||
|
success: function (data) {
|
||
|
//alert(data.ChildDataHtml);
|
||
|
divChild.innerHTML = data.ChildDataHtml;
|
||
|
// if (data.FisDataPageIndex == data.FisDataPageCount) {
|
||
|
// //从第一开始
|
||
|
// $("#FisDataPageIndex").val("0");
|
||
|
// }
|
||
|
// else {
|
||
|
// $("#FisDataPageIndex").val(data.FisDataPageIndex);
|
||
|
// }
|
||
|
// document.getElementById("fispage").innerHTML = data.FisDataPageInfo;
|
||
|
},
|
||
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||
|
//setTimeout("RefreshChildTable(mc)", 10000);
|
||
|
//alert("456");
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
function showTime() {
|
||
|
time = new Date();
|
||
|
hours = time.getHours();
|
||
|
minutes = time.getMinutes();
|
||
|
seconds = time.getSeconds();
|
||
|
year = time.getFullYear();
|
||
|
month = time.getMonth() + 1;
|
||
|
date = time.getDate();
|
||
|
day = time.getDay();
|
||
|
dayArray = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
|
||
|
// 如果分或秒是个位数,则在十位补0
|
||
|
if (minutes <= 9)
|
||
|
minutes = "0" + minutes;
|
||
|
if (seconds <= 9)
|
||
|
seconds = "0" + seconds;
|
||
|
|
||
|
//theDate = year + "年" + month + "月" + date + "日" + " " + dayArray[day];
|
||
|
theDate = year + "年" + month + "月" + date + "日" + " ";
|
||
|
theTime = hours + ":" + minutes + ":" + seconds;
|
||
|
|
||
|
document.getElementById("systemtimelbl").innerHTML = theDate + theTime;
|
||
|
setTimeout("showTime()", 1000);
|
||
|
}
|
||
|
</script>
|
||
|
</asp:Content>
|