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.
158 lines
5.9 KiB
158 lines
5.9 KiB
3 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BucketState.aspx.cs" Inherits="MESWebSite.Manage.BucketState" %>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head runat="server">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<link href="/CSS/Basics.css" rel="stylesheet" />
|
||
|
<link href="/Scripts/jquery-easyui-1.4.3/themes/metro/easyui.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="/Scripts/jquery-easyui-1.4.3/themes/icon.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="/Scripts/jquery-easyui-1.4.3/themes/color.css" rel="stylesheet" type="text/css" />
|
||
|
<script src="/Scripts/jquery-easyui-1.4.3/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="/Scripts/jquery-easyui-1.4.3/jquery.easyui.min.js" type="text/javascript"></script>
|
||
|
<script src="/Scripts/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
|
||
|
<script src="/Scripts/MyJs.js" type="text/javascript"></script>
|
||
|
<style>
|
||
|
#w td {
|
||
|
padding: 5px 5px;
|
||
|
text-align: left;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
|
||
|
#w .title {
|
||
|
vertical-align: middle;
|
||
|
text-align: right;
|
||
|
width: 80px;
|
||
|
height: 40px;
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
padding: 5px;
|
||
|
font-size: small;
|
||
|
font-family: 微软雅黑;
|
||
|
}
|
||
|
|
||
|
.datagrid {
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.search_first{
|
||
|
margin-left: 33%
|
||
|
}
|
||
|
|
||
|
/* 中等屏幕 桌面显示器 992至1400 */
|
||
|
@media screen and (min-width:992px) and (max-width:1400px){
|
||
|
.search_first{
|
||
|
margin-left: 1%
|
||
|
}
|
||
|
|
||
|
}
|
||
|
</style>
|
||
|
<title>工厂信息</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<form id="form1" runat="server">
|
||
|
<div class="top">
|
||
|
<table style="width: 100%">
|
||
|
<tr style="display: flex;flex-direction: row; flex-wrap: wrap;">
|
||
|
|
||
|
<td><span class="title" style="width: 100px">工厂信息</span>
|
||
|
</td>
|
||
|
<td style="width: 260px;"></td>
|
||
|
<%--<td style="width: 235px;"></td>--%>
|
||
|
<td style="width: 270px;">油漆系统编号:
|
||
|
<input type="text" id="BucketCode" style="width: 140px;" /></td>
|
||
|
<td style="width: 270px;">油漆零件号:
|
||
|
<input type="text" id="PaintCode" style="width: 140px;" /></td>
|
||
|
<td style="width: 80px"><a class="topsearchBtn">查询</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<table id="tb" title="油漆桶实时状态" style="width: 99%;">
|
||
|
</table>
|
||
|
|
||
|
<script>
|
||
|
/**************** 全局变量 ***************/
|
||
|
var dg = $('#tb'); //表格
|
||
|
|
||
|
/**************** DOM加载 ***************/
|
||
|
$(function() {
|
||
|
$.ajaxSetup({
|
||
|
cache: false //关闭AJAX缓存
|
||
|
});
|
||
|
|
||
|
//搜索按钮
|
||
|
$('.topsearchBtn').first().click(function () {
|
||
|
SearchInfo();
|
||
|
});
|
||
|
|
||
|
dg = $('#tb').datagrid({
|
||
|
fitColumns: true,
|
||
|
nowrap: false,
|
||
|
striped: true,
|
||
|
collapsible: false,
|
||
|
url: "/HttpHandlers/BucketStateHandler.ashx?method=QueryList",
|
||
|
//sortName: 'sortNumber',
|
||
|
//sortOrder: 'asc',
|
||
|
remoteSort: false,
|
||
|
columns: [[
|
||
|
{ field: 'ID', title: 'ID', hidden: true },
|
||
|
{ field: 'BucketCode', title: '油漆系统编号', sortable: 'true', width: 10 },
|
||
|
{ field: 'PaintCode', title: '油漆零件号', sortable: 'true', width: 10 },
|
||
|
{ field: 'CreateTime', title: '操作时间', sortable: 'true', width: 10 },
|
||
|
{
|
||
|
field: 'State', title: '状态', sortable: 'true', width: 10,
|
||
|
formatter: function (value) {
|
||
|
if (value == 0 ) {
|
||
|
return "解绑";
|
||
|
}
|
||
|
else if (value == 1) {
|
||
|
return "绑定";
|
||
|
}
|
||
|
else if (value == 2) {
|
||
|
return "清洗";
|
||
|
}
|
||
|
else {
|
||
|
return "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]],
|
||
|
|
||
|
pagination: true,//表示在datagrid设置分页
|
||
|
rownumbers: true,
|
||
|
singleSelect: true
|
||
|
});
|
||
|
|
||
|
dg.datagrid('getPager').pagination({
|
||
|
pageSize: 10,
|
||
|
pageNumber: 1,
|
||
|
pageList: [10, 20, 30, 40, 50],
|
||
|
beforePageText: '第',//页数文本框前显示的汉字
|
||
|
afterPageText: '页 共 {pages} 页',
|
||
|
displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
|
||
|
});
|
||
|
});
|
||
|
|
||
|
/**************** 主要业务程序 ***************/
|
||
|
//查询方法
|
||
|
function SearchInfo() {
|
||
|
|
||
|
var bucketCode = $('#BucketCode').val();
|
||
|
var paintCode = $('#PaintCode').val();
|
||
|
|
||
|
var queryParams = {
|
||
|
bucketCode: bucketCode,
|
||
|
paintCode: paintCode
|
||
|
};
|
||
|
dg.datagrid({
|
||
|
queryParams: queryParams
|
||
|
});
|
||
|
dg.datagrid('reload');
|
||
|
}
|
||
|
</script>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|