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.
301 lines
12 KiB
301 lines
12 KiB
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Monitor.ShipmentMonitorModel>" %>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" >
|
|
<head runat="server">
|
|
<title>发运看板</title>
|
|
<style>
|
|
/*待发运FIS*/
|
|
#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>
|
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.1.11.0.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<table cellspacing=0 cellpadding=0 style="width:100%;height:768px">
|
|
<tr>
|
|
<td colspan="2" height="40px">
|
|
<table style="width:100%;">
|
|
<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>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"
|
|
style="background-image: url('../../Content/Img/line1.png'); background-repeat: repeat-x" height="20px">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-family: 宋体, Arial, Helvetica, sans-serif; font-size: 32px; font-weight: bold"
|
|
width="55%;" height="30px">
|
|
待发运FIS
|
|
<%--<span id="fispage"><%=Model.FisDataPageInfo %></span>--%>
|
|
</td>
|
|
<td style="font-family: 宋体, Arial, Helvetica, sans-serif; font-size: 32px; font-weight: bold"
|
|
width="45%" height="30px">
|
|
预计在途数量
|
|
<%-- <span id="qtypage"><%=Model.OnTheWayDataPageInfo %></span>--%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" align=center>
|
|
<div id="divFis">
|
|
<%=Model.FisDataHtml %>
|
|
<%--<table id="tblFis" cellspacing=0 cellpadding=0 style="width:99%;">
|
|
<tr>
|
|
<td class="tblFishead_td">
|
|
大众顺序号</td>
|
|
<td class="tblFishead_td">
|
|
车型</td>
|
|
<td class="tblFishead_td">
|
|
零件号</td>
|
|
<td class="tblFishead_td">
|
|
总成描述</td>
|
|
<td class="tblFishead_td">
|
|
上线时间
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tblFisbody_td_red">
|
|
017469</td>
|
|
<td class="tblFisbody_td_red">
|
|
NCS</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="tblFisbody_td_yellow">
|
|
017470</td>
|
|
<td class="tblFisbody_td_yellow">
|
|
NCS</td>
|
|
<td class="tblFisbody_td_yellow">
|
|
16D 857 002 A 6T6</td>
|
|
<td class="tblFisbody_td_yellow">
|
|
NCS仪表板总成</td>
|
|
<td class="tblFisbody_td_yellow">
|
|
20170506102</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tblFisbody_td_green">
|
|
017471
|
|
</td>
|
|
<td class="tblFisbody_td_green">
|
|
NCS
|
|
</td>
|
|
<td class="tblFisbody_td_green">
|
|
16D 857 002 A 6T6
|
|
</td>
|
|
<td class="tblFisbody_td_green">
|
|
NCS仪表板总成
|
|
</td>
|
|
<td class="tblFisbody_td_green">
|
|
20170506103
|
|
</td>
|
|
</tr>
|
|
</table>--%>
|
|
</div>
|
|
</td>
|
|
<td valign="top" align=center>
|
|
<div id="divQTY">
|
|
<%=Model.OnTheWayDataHtml %>
|
|
<%--<table cellpadding=0 cellspacing=0 id="tblQTY" style="width:99%;">
|
|
<tr>
|
|
<td class="tblQTYhead_td">
|
|
零件号</td>
|
|
<td class="tblQTYhead_td">
|
|
总成描述</td>
|
|
<td class="tblQTYhead_td">
|
|
数量</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tblQTYhead_td_blue">
|
|
|
|
</td>
|
|
<td class="tblQTYhead_td_blue">
|
|
|
|
</td>
|
|
<td class="tblQTYhead_td_blue">
|
|
|
|
</td>
|
|
</tr>
|
|
</table>--%>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<%=Html.HiddenFor(p=>p.FisDataPageIndex)%>
|
|
<%=Html.HiddenFor(p=>p.OnTheWayDataPageIndex)%>
|
|
<script language="javascript" type="text/javascript">
|
|
var count = 0;
|
|
$(function () {
|
|
showTime();
|
|
|
|
//刷新待发运FIS
|
|
setTimeout("RefreshFisTable()", 60000);
|
|
|
|
//刷新预计在途数据
|
|
setTimeout("RefreshOnTheWayTable()", 60000);
|
|
});
|
|
|
|
//刷新待发运FIS
|
|
function RefreshFisTable() {
|
|
if (count == 120) {
|
|
window.location.href = window.location.href;
|
|
}
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/ShipmentMonitor/ShowFisDatas?pageIndex=" + $("#FisDataPageIndex").val(),
|
|
dataType: "json",
|
|
data: {},
|
|
success: function (data) {
|
|
document.getElementById("divFis").innerHTML = data.FisDataHtml;
|
|
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("RefreshFisTable()", 10000);
|
|
//alert(errorThrown);
|
|
}
|
|
|
|
});
|
|
|
|
count = count + 1;
|
|
|
|
//50秒后定时提示及时消息
|
|
setTimeout("RefreshFisTable()", 60000);
|
|
}
|
|
|
|
//刷新预计在途数据
|
|
function RefreshOnTheWayTable() {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/ShipmentMonitor/ShowOnTheWayDatas?pageIndex=" + $("#OnTheWayDataPageIndex").val(),
|
|
dataType: "json",
|
|
data: {},
|
|
success: function (data) {
|
|
document.getElementById("divQTY").innerHTML = data.OnTheWayDataHtml;
|
|
if (data.OnTheWayDataPageIndex == data.OnTheWayDataPageCount) {
|
|
$("#OnTheWayDataPageIndex").val("0");
|
|
}
|
|
else {
|
|
$("#OnTheWayDataPageIndex").val(data.OnTheWayDataPageIndex);
|
|
}
|
|
document.getElementById("qtypage").innerHTML = data.OnTheWayDataPageInfo;
|
|
},
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
setTimeout("RefreshOnTheWayTable()", 10000);
|
|
//alert(errorThrown);
|
|
}
|
|
});
|
|
|
|
//80秒后定时提示及时消息
|
|
setTimeout("RefreshOnTheWayTable()", 60000);
|
|
}
|
|
|
|
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>
|
|
</body>
|
|
</html>
|
|
|