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

191 lines
7.0 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.ProduceManage.MendRecorderModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
报废件记录查询
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(100,true) %>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p => p.PRODUCTCODE)%>
</th>
<td>
<%=Html.QC(p => p.PRODUCTCODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.MENDREASON)%>
</th>
<td>
<%=Html.QC(p => p.MENDREASON)%>
</td>
<th align="right">
<%=Html.QV(p => p.PRODUCESHIFTTCODE)%>
</th>
<td>
<%=Html.QC(p => p.PRODUCESHIFTTCODE)%>
</td>
<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>
<tr>
<th align="right">
<%=Html.QV(p => p.MOLDNUMBER)%>
</th>
<td>
<%=Html.QC(p => p.MOLDNUMBER)%>
</td>
<th align="right">
<%=Html.QV(p => p.CREATEDATESTART)%>
</th>
<td>
<%=Html.QC(p => p.CREATEDATESTART)%>
</td>
<th align="right">
<%=Html.QV(p => p.CREATEDATEEND)%>
</th>
<td>
<%=Html.QC(p => p.CREATEDATEEND)%>
</td>
<th align="right">
<%=Html.QV(p => p.VERTICAL)%>
</th>
<td>
<%=Html.QC(p => p.VERTICAL)%>
<%=Html.QC(p => p.HORIZONTAL)%>
</td>
</tr>
</table>
<div style="left: 1px; position: relative;">
</div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.ProduceManage.MendRecorderModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.HiddenFor(o => o.GETDETAILINFO)%>
<script language="javascript" type="text/javascript" src="../../Scripts/GetMendReason.js"></script>
<script language="javascript" type="text/javascript">
$(function () {
//隐藏字段列
$('#QDateGrid').datagrid('hideColumn', 'MENDTEST');
$('#QDateGrid').datagrid('hideColumn', 'MENDDUTY');
$('#QDateGrid').datagrid('hideColumn', 'OUTSOURCE');
$('#QDateGrid').datagrid('hideColumn', 'HANDLEMETHODTXT');
//物料号
$('#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;
// var materialtype = $('#MATERIAL_TYPE_CODE').combobox('getValue');
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", "");
}
}
});
List(1);
});
//导出
function Export() {
document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel");
}
$(function () {
$('#VERTICAL').combobox({
onSelect: function () {
var vertical = $('#VERTICAL').combobox('getValue');
if (vertical == "") {
$('#HORIZONTAL').combobox('setValue', '');
}
else {
var horizotal = $('#HORIZONTAL').combobox('getValue');
if (horizotal == "") {
$('#HORIZONTAL').combobox('setValue', 'A');
}
}
}
});
$('#HORIZONTAL').combobox({
onSelect: function () {
var horizotal = $('#HORIZONTAL').combobox('getValue');
if (horizotal == "") {
$('#VERTICAL').combobox('setValue', '');
}
else {
var vertical = $('#VERTICAL').combobox('getValue');
if (vertical == "") {
$('#VERTICAL').combobox('setValue', '1');
}
}
}
});
List(1);
});
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("Delete");
})
}
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("ScrapRecorder", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonDelete("ScrapRecorder", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>