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.
207 lines
7.7 KiB
207 lines
7.7 KiB
6 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlatingPolish.aspx.cs" Inherits="MESWebSite.Manage.PlatingPolish" %>
|
||
|
|
||
|
|
||
|
<!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;
|
||
|
padding: 0px;
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
padding: 0px 5px;
|
||
|
font-size: small;
|
||
|
font-family: 微软雅黑;
|
||
|
margin: 0px;
|
||
|
}
|
||
|
|
||
|
.tree-folder-open, .tree-folder, .tree-file {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.datagrid {
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.ttb {
|
||
|
width: 180px;
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
#ReportTable_div table {
|
||
|
border: 1px solid #000000;
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
</style>
|
||
|
<title>抛光统计</title>
|
||
|
<script>
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<form id="form1" runat="server">
|
||
|
<div class="top">
|
||
|
<table cellpadding="0" cellspacing="0" style="width: 100%">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td><span class="title">抛光统计</span></td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td style="width: 415px;">位置:<select name="side" id="side" class="easyui-combobox">
|
||
|
<option value="A/B双侧">A/B双侧</option>
|
||
|
<option value="A侧">A侧</option>
|
||
|
<option value="B侧">B侧</option>
|
||
|
</select>
|
||
|
|
||
|
时间:
|
||
|
<input id="start_time" class="easyui-datetimebox" data-options="onShowPanel:function(){ $(this).datetimebox('spinner').timespinner('setValue','07:30:00');}" /> 至
|
||
|
<input id="end_time" class="easyui-datetimebox" data-options="onShowPanel:function(){ $(this).datetimebox('spinner').timespinner('setValue','07:30:00');}" />
|
||
|
|
||
|
型号:
|
||
|
<select id="Project" class="easyui-combobox" data-options="valueField: 'Project',textField: 'Project'" style="width: 100px; height: 30px;"></select>
|
||
|
|
||
|
颜色:
|
||
|
<select id="color" class="easyui-combobox" data-options="valueField: 'valueField',textField: 'valueField'" style="width: 150px; height: 30px;"></select>
|
||
|
|
||
|
<a class="topsearchBtn">查询</a>
|
||
|
|
||
|
<a class="topexcelBtn" id="exportbtn">导出</a>
|
||
|
</td>
|
||
|
<td style="width: 75px;"></td>
|
||
|
<td style="width: 75px;"></td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div id="ReportTable_div" style="float: left; margin-top: 20px;">
|
||
|
</div>
|
||
|
<script>
|
||
|
|
||
|
$(function () {
|
||
|
|
||
|
var curr_time = new Date();
|
||
|
var str = curr_time.getFullYear() + "-";
|
||
|
str += curr_time.getMonth() + 1 + "-";
|
||
|
str += curr_time.getDate()
|
||
|
|
||
|
|
||
|
var str2 = curr_time.getFullYear() + "-";
|
||
|
str2 += curr_time.getMonth() + 1 + "-";
|
||
|
str2 += curr_time.getDate() + 1;
|
||
|
|
||
|
$('#start_time').datetimebox('setValue', str + " 07:30:00");
|
||
|
$('#end_time').datetimebox('setValue', str2 + " 07:30:00");
|
||
|
|
||
|
|
||
|
//搜索按钮
|
||
|
$('.topsearchBtn').first().click(function () {
|
||
|
SearchInfo();
|
||
|
});
|
||
|
|
||
|
$.ajaxSetup({
|
||
|
cache: false //关闭AJAX缓存
|
||
|
});
|
||
|
|
||
|
//下拉框加载
|
||
|
reloadfl_ids();
|
||
|
reloadcolor();
|
||
|
|
||
|
$("#exportbtn").bind('click', function () {
|
||
|
|
||
|
var side = $('#side').combobox('getValue');
|
||
|
var StartTime = $('#start_time').datetimebox('getValue');
|
||
|
var EndTime = $('#end_time').datetimebox('getValue');
|
||
|
|
||
|
var queryParams = {
|
||
|
side: side,
|
||
|
StartTime: StartTime,
|
||
|
EndTime: EndTime,
|
||
|
Project: Project,
|
||
|
color: color
|
||
|
};
|
||
|
|
||
|
post('<%=ResolveUrl("~/HttpHandlers/PlatingPolishHandler.ashx?method=QueryExcel") %>', queryParams);
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
function SearchInfo() {
|
||
|
|
||
|
var side = $('#side').combobox('getValue');
|
||
|
var StartTime = $('#start_time').datetimebox('getValue');
|
||
|
var EndTime = $('#end_time').datetimebox('getValue');
|
||
|
var Project = $('#Project').combobox('getValue');
|
||
|
var color = $('#color').combobox('getValue');
|
||
|
|
||
|
|
||
|
$.ajax({
|
||
|
url: "PlatingPolish.aspx/GetDate",
|
||
|
datatype: 'json',
|
||
|
type: "Post",
|
||
|
data: "{'StartTime':'" + StartTime + "','EndTime':'" + EndTime + "','side':'" + side + "','Project':'" + Project + "','color':'" + color + "'}",
|
||
|
contentType: "application/json; charset=utf-8",
|
||
|
success: function (data) {
|
||
|
if (data != null && data.d != "") {
|
||
|
|
||
|
$('#ReportTable_div').html(data.d);
|
||
|
}
|
||
|
else {
|
||
|
$('#ReportTable_div').html('');
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function post(url, PARAMS) {
|
||
|
var temp_form = document.createElement("form");
|
||
|
temp_form.action = url;
|
||
|
temp_form.target = "_blank";
|
||
|
temp_form.method = "post";
|
||
|
temp_form.style.display = "none"; for (var x in PARAMS) {
|
||
|
var opt = document.createElement("textarea");
|
||
|
opt.name = x;
|
||
|
opt.value = PARAMS[x];
|
||
|
temp_form.appendChild(opt);
|
||
|
}
|
||
|
document.body.appendChild(temp_form);
|
||
|
temp_form.submit();
|
||
|
}
|
||
|
|
||
|
function reloadfl_ids() {
|
||
|
$('#Project').combobox('reload', '/HttpHandlers/ProjectHandler.ashx?method=QueryForCombobox');
|
||
|
}
|
||
|
|
||
|
function reloadcolor() {
|
||
|
$('#color').combobox('reload', '/HttpHandlers/ColorHandler.ashx?method=QueryForCombobox');
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|