Browse Source

加料看板,增加27号料筒

master
ruoxing.wang 2 months ago
parent
commit
d778670d34
  1. 1358
      AddMaterial/App_Code/Function.cs
  2. 17
      AddMaterial/App_Code/JsonModel.cs
  3. 48
      AddMaterial/App_Code/Model.cs
  4. 89
      AddMaterial/Default1.html
  5. 88
      AddMaterial/Default2.html
  6. 73
      AddMaterial/DefaultNew.html
  7. 98
      AddMaterial/DefaultX.html
  8. 491
      AddMaterial/Handler.ashx

1358
AddMaterial/App_Code/Function.cs

File diff suppressed because it is too large

17
AddMaterial/App_Code/JsonModel.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// JsonModel 的摘要说明
/// </summary>
public class JsonModel
{
public JsonModel()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
}

48
AddMaterial/App_Code/Model.cs

@ -64,23 +64,49 @@ public class PlanModel
/// 零件号
/// </summary>
public string PartNo { get; set; }
/// <summary>
/// 计划数量
/// </summary>
public string PlanCount { get; set; }
/// <summary>
/// 生产数量
/// </summary>
public string CompleteCount { get; set; }
/// <summary>
/// 合格数量
/// </summary>
public string PassCount { get; set; }
/// <summary>
/// 塑件报废数
/// </summary>
public string BadCount1 { get; set; }
/// <summary>
/// 合格率
/// </summary>
public string CompleteRate { get; set; }
/// <summary>
/// 总成生产数量
/// </summary>
public string ZcCompleteCount { get; set; }
/// <summary>
/// 总成数量
/// </summary>
public string ZcPassCount { get; set; }
/// <summary>
/// 总成合格率
/// </summary>
public string ZcCompleteRate { get; set; }
/// <summary>
/// 总成报废数
/// </summary>
public string BadCount2 { get; set; }
/// <summary>
/// 零件号
@ -108,11 +134,29 @@ public class StockModel
}
public class PaintInfoModel
public class JsonModel<T> where T : class
{
public string BucketCode { get; set; }
//接口调用是否成功,0不成功,1成功
public string Result { get; set; }
//接口调用返回值类型
public string ResultType { get; set; }
//返回结果行数
public string ResultRowsCount { get; set; }
//接口调用不成原因
public string ErrReason { get; set; }
public List<T> DataList = new List<T>();
}
public class PaintRecordModel
{
public string PaintCode { get; set; }
public string BucketCode { get; set; }
public string CreateTime { get; set; }
public string BucketState { get; set; }
public string PaintName { get; set; }
}

89
AddMaterial/Default1.html

@ -0,0 +1,89 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>注塑车间塑料粒子加料目视看板</title>
<script src="jquery-1.8.0.min.js"></script>
<link href="StyleSheet.css" rel="stylesheet" />
<script>
$(function () {
setInterval("GetTime()", 1000);
setInterval("initTable()", 3000);
//initTable();
setTimeout(jumurl, 15000);
});
function jumurl() {
window.location.href = '/Default2.html';
}
function initTable() {
$.ajax({
type: "GET",
url: "/Handler.ashx?method=GetTable3",
dataType: "text",
success: function (result1) {
$("#table1").html(result1);
}
})
$.ajax({
type: "GET",
url: "/Handler.ashx?method=GetTable4",
dataType: "text",
success: function (result2) {
$("#table2").html(result2);
}
})
}
function GetTime() {
var today = new Date();
$("#DivTimer").html('<br>' + today.Format("yyyy-MM-dd hh:mm:ss") + '<br>');
}
// 对Date的扩展,将 Date 转化为指定格式的String
// 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
// 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
// 例子:
// (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
// (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
</script>
</head>
<body>
<table>
<tr>
<td>
<table id="TableTitle"><tr><td id="tdImg"><img id="Img"></td><td id="Title">注塑车间塑料粒子加料目视看板</td><td style="border-right:hidden;"><div id="DivTimer"></div></td></tr></table>
</td>
</tr>
<tr>
<td>
<div id="table1">
</div>
</td>
</tr>
<tr>
<td>
<div id="table2">
</div>
</td>
</tr>
</table>
</body>
</html>

88
AddMaterial/Default2.html

@ -0,0 +1,88 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>注塑车间塑料粒子加料目视看板</title>
<script src="jquery-1.8.0.min.js"></script>
<link href="StyleSheet.css" rel="stylesheet" />
<script>
$(function () {
setInterval("GetTime()", 1000);
setInterval("initTable()", 3000);
setTimeout(jumurl, 15000);
});
function jumurl() {
window.location.href = '/Default.html';
}
function initTable() {
$.ajax({
type: "GET",
url: "/Handler.ashx?method=GetTable5",
dataType: "text",
success: function (result1) {
$("#table1").html(result1);
}
})
$.ajax({
type: "GET",
url: "/Handler.ashx?method=GetTable6",
dataType: "text",
success: function (result2) {
$("#table2").html(result2);
}
})
}
function GetTime() {
var today = new Date();
$("#DivTimer").html('<br>' + today.Format("yyyy-MM-dd hh:mm:ss") + '<br>');
}
// 对Date的扩展,将 Date 转化为指定格式的String
// 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
// 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
// 例子:
// (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
// (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
</script>
</head>
<body>
<table>
<tr>
<td>
<table id="TableTitle"><tr><td id="tdImg"><img id="Img"></td><td id="Title">注塑车间塑料粒子加料目视看板</td><td style="border-right:hidden;"><div id="DivTimer"></div></td></tr></table>
</td>
</tr>
<tr>
<td>
<div id="table1">
</div>
</td>
</tr>
<tr>
<td>
<div id="table2">
</div>
</td>
</tr>
</table>
</body>
</html>

73
AddMaterial/DefaultNew.html

@ -0,0 +1,73 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>注塑车间塑料粒子加料目视看板</title>
<script src="jquery-1.8.0.min.js"></script>
<link href="StyleSheet.css" rel="stylesheet" />
<script>
$(function () {
initTableY(0);
});
function initTableY(j) {
$.ajax({
type: "GET",
url: "/Handler.ashx?method=GetTableY&pa=" + j,
dataType: "text",
success: function (result) {
$("#table1").html(result);
}
})
}
function GetTime() {
var today = new Date();
$("#DivTimer").html('<br>' + today.Format("yyyy-MM-dd hh:mm:ss") + '<br>');
}
// 对Date的扩展,将 Date 转化为指定格式的String
// 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
// 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
// 例子:
// (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
// (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
</script>
</head>
<body>
<table>
<tr>
<td>
<table id="TableTitle"><tr><td id="tdImg"><img id="Img"></td><td id="Title">注塑车间塑料粒子加料目视看板</td><td style="border-right:hidden;"><div id="DivTimer"></div></td></tr></table>
</td>
</tr>
<tr>
<td>
<div id="table1">
</div>
</td>
</tr>
<tr>
<!--<td>
<div id="table2">
</div>
</td>-->
</tr>
</table>
</body>
</html>

98
AddMaterial/DefaultX.html

@ -0,0 +1,98 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>注塑车间塑料粒子加料目视看板</title>
<script src="jquery-1.8.0.min.js"></script>
<link href="StyleSheet.css" rel="stylesheet" />
<script>
$(function () {
//setInterval("GetTime()", 1000);
initTable();
//setInterval("initTable()", 15000);
//initTableX(20);
});
function initTable() {
var i = new Array("0", "10", "20");
for (var j = 0; j < 3; j++)
{
(
function (j)
{
setTimeout(
function ()
{
initTableX(i[j]);
}, (j + 1) * 5000 );
}
)(j)
}
}
function initTableX(j) {
$.ajax({
type: "GET",
url: "/Handler.ashx?method=GetTableX&pa=" + j,
dataType: "text",
success: function (result) {
var str = result.split(';');
$("#table1").html(str[0]);
$("#table2").html(str[1]);
}
})
}
function GetTime() {
var today = new Date();
$("#DivTimer").html('<br>' + today.Format("yyyy-MM-dd hh:mm:ss") + '<br>');
}
// 对Date的扩展,将 Date 转化为指定格式的String
// 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
// 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
// 例子:
// (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
// (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
</script>
</head>
<body>
<table>
<tr>
<td>
<table id="TableTitle"><tr><td id="tdImg"><img id="Img"></td><td id="Title">注塑车间塑料粒子加料目视看板</td><td style="border-right:hidden;"><div id="DivTimer"></div></td></tr></table>
</td>
</tr>
<tr>
<td>
<div id="table1">
</div>
</td>
</tr>
<tr>
<td>
<div id="table2">
</div>
</td>
</tr>
</table>
</body>
</html>

491
AddMaterial/Handler.ashx

@ -47,9 +47,21 @@ public class Handler : IHttpHandler {
case "GetTableX":
GetTableX(Convert.ToInt16(j));
break;
case "GetTableY":
GetTableY(Convert.ToInt16(j));
break;
case "GetPlanTable":
GetPlanTable();
break;
case "GetDatetime":
GetDatetime();
break;
case "GetPlanTable16":
GetPlanTable16();
break;
case "GetPlanTable17":
GetPlanTable17();
break;
default:
break;
}
@ -716,112 +728,239 @@ public class Handler : IHttpHandler {
string GetTableX1(int k)
{
string html = "<table id='TableTop'>";
List<Model> list = Function.GetData();
//List<Model> list = Function.GetData();
List<Model> list = Function.GetDataX();
int tmp = 0;
if (list.Count > 0)
{
for (int j = 0; j <= 5; j++)
{
html += "<tr>";
for (int i = 0; i <= 4; i++)
if (k != 20)
//if (k == 0)
{
if (k < 20)
{
switch (j)
for (int i = 0; i <= 4; i++)
{
case 0:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "烘干料筒" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Drum + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Drum + "</td>";
}
break;
case 1:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "注塑机号" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Station + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Station + "</td>";
}
break;
case 2:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "产品名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].ProductName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].ProductName + "</td>";
}
break;
case 3:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "原料名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].MaterialName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].MaterialName + "</td>";
}
break;
case 4:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料批次" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].BatchNo + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].BatchNo + "</td>";
}
break;
case 5:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料时间" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Time1 + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Time1 + "</td>";
}
break;
switch (j)
{
case 0:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "烘干料筒" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Drum + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Drum + "</td>";
}
break;
case 1:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "注塑机号" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Station + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Station + "</td>";
}
break;
case 2:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "产品名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].ProductName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].ProductName + "</td>";
}
break;
case 3:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "原料名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].MaterialName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].MaterialName + "</td>";
}
break;
case 4:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料批次" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].BatchNo + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].BatchNo + "</td>";
}
break;
case 5:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料时间" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Time1 + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Time1 + "</td>";
}
break;
}
}
}
else
{
for (int i = 0; i <= 3; i++)
{
switch (j)
{
case 0:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "烘干料筒" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Drum + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Drum + "</td>";
}
break;
case 1:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "注塑机号" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Station + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Station + "</td>";
}
break;
case 2:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "产品名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].ProductName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].ProductName + "</td>";
}
break;
case 3:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "原料名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].MaterialName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].MaterialName + "</td>";
}
break;
case 4:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料批次" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].BatchNo + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].BatchNo + "</td>";
}
break;
case 5:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料时间" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Time1 + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Time1 + "</td>";
}
break;
}
}
}
html += "</tr>";
}
}
@ -835,7 +974,8 @@ public class Handler : IHttpHandler {
string GetTableX2(int k)
{
string html = "<table id='TableBottom'>";
List<Model> list = Function.GetData();
//List<Model> list = Function.GetData();
List<Model> list = Function.GetDataX();
int tmp = 0;
if (list.Count >= 5)
{
@ -844,7 +984,7 @@ public class Handler : IHttpHandler {
html += "<tr>";
for (int i = 5; i < 10; i++)
{
if(k<20)
if (k < 20)
{
switch (j)
{
@ -940,7 +1080,7 @@ public class Handler : IHttpHandler {
break;
}
}
}
html += "</tr>";
}
@ -952,18 +1092,142 @@ public class Handler : IHttpHandler {
return html;
}
void GetTableX(int k)
{
string result1 = GetTableX1(k);
string result2 = GetTableX2(k);
//defaultX result = new defaultX();
//result.result1 = result1;
//result.result2 = result2;
//Response.Write(Tools.JSONTools.ScriptSerialize<defaultX>(result));
//Response.End();
Response.Write(result1 + ";" + result2);
Response.End();
}
void GetTableY(int k)
{
string result1 = GetTableY1(k);
//string result2 = GetTableX2(k);
Response.Write(result1 );
Response.End();
}
string GetTableY1(int k)
{
string html = "<table id='TableTop'>";
//List<Model> list = Function.GetData();
List<Model> list = Function.GetDataY();
int tmp = 0;
if (list.Count > 0)
{
for (int j = 0; j <= 5; j++)
{
html += "<tr>";
for (int i = 0; i <= 2; i++)
{
switch (j)
{
case 0:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "烘干料筒" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Drum + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Drum + "</td>";
}
break;
case 1:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "注塑机号" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Station + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Station + "</td>";
}
break;
case 2:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "产品名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].ProductName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].ProductName + "</td>";
}
break;
case 3:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "原料名称" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].MaterialName + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].MaterialName + "</td>";
}
break;
case 4:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料批次" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].BatchNo + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].BatchNo + "</td>";
}
break;
case 5:
tmp = k + i;
if ((tmp == 0) || (tmp == 10) || (tmp == 20))
{
html += "<td class='TableTitle'>" + "加料时间" + "</td>";
}
if (tmp % 2 == 0)
{
html += "<td class='tdWhite'>" + list[tmp].Time1 + "</td>";
}
else
{
html += "<td class='tdGreen'>" + list[tmp].Time1 + "</td>";
}
break;
}
}
html += "</tr>";
}
}
html += "</table>";
//Response.Write(html);
//Response.End();
return html;
}
#endregion
@ -972,6 +1236,27 @@ public class Handler : IHttpHandler {
Response.Write(Function.GetPlanTable());
Response.End();
}
void GetPlanTable16()
{
Response.Write(Function.GetPlanTable16());
Response.End();
}
void GetPlanTable17()
{
Response.Write(Function.GetPlanTable17());
Response.End();
}
void GetDatetime()
{
string aa = "<div style='color:white;'>" + Function.GetDatetime() + "</div>";
Response.Write(aa);
Response.End();
}
}
//public class defaultX

Loading…
Cancel
Save