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

118 lines
5.2 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.ProduceManage.UnQualityModel>" %>
<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)%>--%>
<input class="easyui-combobox" id="MATERIAL_TYPE_CODE" name="MATERIAL_TYPE_CODE" type="text"/>
<script type="text/javascript" language="javascript">
$(function () {
$('#MATERIAL_TYPE_CODE').combotree({
url: '/Dict/GetMaterialClassTree?attr=1',
panelHeight: '150',
panelWidth: '500',
onBeforeSelect: function (node) {
if (!$(this).tree('isLeaf', node.target)) {
return false;
}
},
onSelect: function (node) {
var materialtype = node.id;
if (materialtype != "") {
//获取物料下拉数据源
$('#MATERIAL_CODE').combobox({
url: "/Dict/GetMaterialWithTypeComboxSource?materialtype=" + materialtype,
panelHeight: '200',
panelWidth: '350',
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", "");
}
}
});
});
</script>
</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.ProduceManage.UnQualityModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName") %>
<script language="javascript" type="text/javascript">
// $(function () {
// //物料号
// $('#MATERIAL_TYPE_CODE').combobox({
// onSelect: function () {
// var materialtype = $('#MATERIAL_TYPE_CODE').combobox('getValue');
// if (materialtype != "") {
// //获取物料下拉数据源
// $('#MATERIAL_CODE').combobox({
// url: "/Dict/GetMaterialWithTypeComboxSource?materialtype=" + materialtype,
// 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 = getSelectKey();
document.getElementById("selectKey").value = ids;
//_showProgress();
$.get("/UnQuality/ExportExcel", $("form").serializeArray(), function (data) {
//_closeProgress();
submitByButton("/UnQuality/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("UnQuality", "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>