天津投入产出系统后端
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.
 
 
 
 
 
 

172 lines
6.4 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.SendManage.PastCardModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
贴车单查询
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(80,true) %>
<table id="condiTable" >
<tr>
<th align="right">
<%=Html.QV(p => p.PASTECARDNO)%>
</th>
<td align="left" >
<%=Html.QC(p => p.PASTECARDNO)%>
</td>
<th align="right">
<%=Html.QV(p => p.WORKCENTER_CODE)%>
</th>
<td align="left" >
<%=Html.QC(p => p.WORKCENTER_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.STARTCREATEDATE)%>
</th>
<td align="left" >
<%=Html.QC(p => p.STARTCREATEDATE)%>
</td>
<th align="right">
<%=Html.QV(p => p.ENDCREATEDATE)%>
</th>
<td align="left" >
<%=Html.QC(p => p.ENDCREATEDATE)%>
</td>
</tr>
</table>
<div style="left: 1px; position: relative;"></div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.SendManage.PastCardModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<div id="matSelectWindow" class="easyui-window" title="贴车单信息" iconcls="icon-save"
closed="true" style="width: 1700px; height: 320px; padding: 5px;">
<div region="north" border="false" style="text-align: left;">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "ExportDetail()", (s, f) => { return true; })%>
</td>
</tr>
</table>
</div>
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="padding: 1px; background: #fff; border: 1px solid #ccc;">
<table id="Items"></table>
</div>
</div>
</div>
<script language="javascript" type="text/javascript">
$(function () {
$('#Items').datagrid({
title: '',
width: 680,
height: 'auto',
fit: true,
rownumbers:true,
idField: 'Items',
columns: [[
{ field: 'PASTECARDNO', title: '贴车单号', width: 150, align: 'center' },
{ field: 'SANBARCODE', title: '条码', width: 130, align: 'center' },
{ field: 'KIN', title: 'KIN号', width: 100, align: 'center' },
{ field: 'VIN', title: 'VIN号', width: 150, align: 'center' },
{ field: 'ONLINEDATE', title: '上线时间', width: 150, align: 'center' }
]]
});
});
//打开
function ShowWindow() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择查询记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能查询一条记录。");
return;
}
$('#matSelectWindow').window({
title: '贴车单信息',
modal: true,
shadow: false,
closed: true,
left: 200,
top: 50,
width: 700,
closable: true,
minimizable: false,
maximizable: false,
height: 485,
collapsible: false
});
$('#matSelectWindow').window('open');
ShowView();
}
function ShowView() {
var ids = getSelectKey();
$('#Items').datagrid('loadData', new Array())
var dataInfo = $('#Items').datagrid('getData');
$.ajax({
url: "/SendPlanRecord/DetailedInformation",
data: {
'PASTECARDNO': ids
},
type: "POST",
cache: false,
dataType: "json",
async: false,
success: function (data) {
var dataResult = eval(data);
if (dataResult.IsSuccess == "False" || dataResult.Result.length == 0) {
$('#Items').datagrid("loadData", new Array());
} else {
for (var i = 0; i < dataResult.Result.length; i++) {
var insertInfo = {
PASTECARDNO: dataResult.Result[i].PASTECARDNO,
SANBARCODE: dataResult.Result[i].SANBARCODE,
KIN: dataResult.Result[i].KIN,
VIN: dataResult.Result[i].VIN,
ONLINEDATE: dataResult.Result[i].ONLINEDATE
};
dataInfo.rows.push(insertInfo);
}
$('#Items').datagrid('loadData', dataInfo);
}
}
});
}
//导出
function Export() {
document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel");
}
//导出
function ExportDetail() {
document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel2");
}
$(function () { List(1); });
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("SendPlanRecord", "List", "List(1)")%>
<%=Html.QTButton("showDetail", "ShowWindow", QMFrameWork.WebUI.IconCls.detail, "ShowWindow()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>