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.
136 lines
5.1 KiB
136 lines
5.1 KiB
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BarCodeRepeatSearch.aspx.cs" Inherits="MESWebSite.Manage.BarCodeRepeatSearch" %>
|
|
|
|
<!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;
|
|
}
|
|
</style>
|
|
<title>注塑重复条码校验</title>
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<div class="top">
|
|
<table cellpadding="0" cellspacing="0" style="width: 100%">
|
|
<tr>
|
|
|
|
<td><span class="title">重复条码校验</span>
|
|
</td>
|
|
|
|
<td style="width: 500px;">时间:
|
|
<input id="StartTime_s"class="easyui-datetimebox" data-options="onShowPanel:function(){ $(this).datetimebox('spinner').timespinner('setValue','00:00:00');}" /> 至
|
|
<input id="EndTime_s" class="easyui-datetimebox" data-options="onShowPanel:function(){ $(this).datetimebox('spinner').timespinner('setValue','23:59:59');}" />
|
|
</td>
|
|
<td style="width: 80px;"><a class="topsearchBtn" id="searchBtn1">查询</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table id="tb" title="重复记录" style="width: 99%;">
|
|
</table>
|
|
<input id="UserID" type="text" hidden="hidden" runat="server" />
|
|
|
|
<script>
|
|
/**************** 全局变量 ***************/
|
|
var PrimaryID; //要编辑的id
|
|
var dg = $('#tb'); //表格
|
|
var isEdit = false; //是否为编辑状态
|
|
|
|
/**************** DOM加载 ***************/
|
|
$(function() {
|
|
$.ajaxSetup({
|
|
cache: false //关闭AJAX缓存
|
|
});
|
|
|
|
var curr_time = new Date();
|
|
var str = curr_time.getFullYear() + "-";
|
|
str += curr_time.getMonth() + 1 + "-";
|
|
str += curr_time.getDate();
|
|
$('#StartTime_s').datetimebox('setValue', str + " 08:00:00");
|
|
$('#EndTime_s').datetimebox('setValue', str + " 20:00:00");
|
|
|
|
//查询
|
|
$('#searchBtn1').first().click(function () {
|
|
SearchInfo1();
|
|
});
|
|
|
|
dg = $('#tb').datagrid({
|
|
fitColumns: true,
|
|
nowrap: false,
|
|
striped: true,
|
|
collapsible: false,
|
|
url: "/HttpHandlers/BarCodeReportnHandler.ashx?method=QueryList1",
|
|
remoteSort: false,
|
|
columns: [[
|
|
{ field: 'OneBarCode', title: '条码', width: 10 }
|
|
]],
|
|
|
|
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 SearchInfo1() {
|
|
|
|
var startTime = $('#StartTime_s').datetimebox('getValue');
|
|
var endTime = $('#EndTime_s').datetimebox('getValue');
|
|
|
|
var queryParams = {
|
|
startTime: startTime,
|
|
endTime: endTime
|
|
};
|
|
|
|
dg.datagrid({
|
|
queryParams: queryParams
|
|
});
|
|
|
|
dg.datagrid('reload');
|
|
|
|
}
|
|
</script>
|
|
</form>
|
|
</body>
|
|
</html>
|
|
|