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

124 lines
3.8 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FIS.OrderPlanTraceModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
计划操作记录
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(110, true)%>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p => p.PLAN_NO)%>
</th>
<td>
<%=Html.QC(p => p.PLAN_NO)%>
</td>
<th align="right">
<%=Html.QV(p => p.MATERIAL_CODE)%>
</th>
<td>
<%=Html.QC(p => p.MATERIAL_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.MACHINECODDE)%>
</th>
<td>
<%=Html.QC(p => p.MACHINECODDE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.PLANTIMESTART)%>
</th>
<td>
<%=Html.QC(p => p.PLANTIMESTART)%>
</td>
<th align="right">
<%=Html.QV(p => p.PLANTIMEEND)%>
</th>
<td>
<%=Html.QC(p => p.PLANTIMEEND)%>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.FIS.OrderPlanTraceModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName")%>
<%=Html.Hidden("ORDER_TYPE")%>
<script language="javascript" type="text/javascript">
$(function () {
//var type = document.getElementById("ORDER_TYPE").value;
var type = "";
//获取物料下拉数据源
$('#MATERIAL_CODE').combobox({
url: "/Dict/GetMaterialSource?ordertype=" + type,
editable: 'false',
valueField: 'MATERIAL_CODE',
textField: 'MATERIAL_NAME'
});
$('#MATERIAL_CODE').combobox("setValue", "");
//获取设备MACHINE下拉数据源
$('#MACHINECODDE').combobox({
url: "/Dict/GetMachineForOrder?ordertype=" + type,
editable: 'false',
valueField: 'MACHINECODDE',
textField: 'MACHINENAME'
});
$('#MACHINECODDE').combobox("setValue", "");
List(1);
});
//导出
function Export() {
document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel");
}
//查询
function Search() {
var endtime = document.getElementById("PLANTIMEEND").value;
if (parseDate($("#PLANTIMESTART").val()) > parseDate($("#PLANTIMEEND").val()) && endtime != "") {
alert("开始时间不能大于结束时间!");
return;
}
List(1);
}
$(function () {
$('#MATERIAL_CODE').combobox({
panelWidth: '370'
});
});
$(function () {
$('#MACHINECODDE').combobox({
panelWidth: '280'
});
});
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("OrderPlan", "List", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>