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

88 lines
3.5 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Operation.MainProductCountModel>" %>
<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.MATERIAL_TYPE_CODE)%>
</th>
<td>
<%=Html.QC(p => p.MATERIAL_TYPE_CODE)%>
</td>
<th align="right">
<%=Html.QV(p=>p.MATERIAL_CODE) %>
</th>
<td>
<%=Html.QC(p => p.MATERIAL_CODE)%>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Operation.MainProductCountModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName") %>
<%=Html.HiddenFor(o => o.MATERIAL_ATTRIBUTE)%>
<script language="javascript" type="text/javascript">
$(function () {
//物料号
var attribute = document.getElementById("MATERIAL_ATTRIBUTE").value;
$('#MATERIAL_TYPE_CODE').combobox({
url: "/Dict/GetMaterialClassByAttributeComboxSource?attribute=" + attribute,
panelHeight: '150',
//panelWidth: '170',
editable: 'false',
valueField: 'MATERIAL_TYPE_CODE',
textField: 'MATERIAL_TYPE_NAME'
});
$('#MATERIAL_TYPE_CODE').combobox({
onSelect: function () {
var materialtype = $('#MATERIAL_TYPE_CODE').combobox('getValue');
if (materialtype != "") {
//获取物料下拉数据源
$('#MATERIAL_CODE').combobox({
url: "/Dict/GetMaterialWithTypeComboxSource?materialtype=" + materialtype,
panelHeight: '150',
panelWidth: '370',
editable: 'false',
valueField: 'MATERIAL_CODE',
textField: 'MATERIAL_NAME'
});
$('#MATERIAL_CODE').combobox("setValue", "");
}
else {
//清空物料下拉框
var plantData = [{ 'MATERIAL_CODE': "", 'MATERIAL_NAME': ""}];
$('#MATERIAL_CODE').combobox("loadData", plantData);
$('#MATERIAL_CODE').combobox("select", "");
}
}
});
List(1);
});
//导出
function Export() {
var ids = document.getElementById("selectKey").value;
$.get("/MainProductCount/ExportExcel", $("form").serializeArray(), function (data) {
submitByButton("/MainProductCount/ExportFile?FileName=" + data);
});
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("MainProductCount", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>