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

234 lines
9.8 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.ProductPetrospect.MainOperationModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
加工记录查询
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(130,true) %>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p => p.PRODUCTCODETXT)%>
</th>
<td align="left">
<%=Html.QC(p => p.PRODUCTCODETXT)%>
</td>
<th align="right">
<%=Html.QV(p => p.PRODUCESHIFTTCODE)%>
</th>
<td align="left">
<%=Html.QC(p => p.PRODUCESHIFTTCODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.MACHINECODDE)%>
</th>
<td align="left">
<%=Html.QC(p => p.MACHINECODDE)%>
</td>
<th align="right">
<%=Html.QV(p => p.STATUS)%>
</th>
<td align="left">
<%=Html.QC(p => p.STATUS)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.MATERIAL_TYPE_CODE)%>
</th>
<td align="left">
<%=Html.QC(p => p.MATERIAL_TYPE_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.MATERIAL_CODE)%>
</th>
<td align="left">
<%=Html.QC(p => p.MATERIAL_CODE)%>
</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.ROUTE_CODE)%>
</th>
<td align="left">
<%=Html.QC(p => p.ROUTE_CODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.WORKCELL_CODE)%>
</th>
<td align="left">
<%=Html.QC(p => p.WORKCELL_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.CREATEDATESTART)%>
</th>
<td align="left">
<%=Html.QC(p => p.CREATEDATESTART)%>
</td>
<th align="right">
<%=Html.QV(p => p.CREATEDATEEND)%>
</th>
<td align="left">
<%=Html.QC(p => p.CREATEDATEEND)%>
</td>
</tr>
</table>
<div style="left: 1px; position: relative;">
</div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.ProductPetrospect.MainOperationModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.HiddenFor(p => p.PRODUCTCODE)%>
<%=Html.Hidden("Json", Model.json)%>
<script language="javascript" type="text/javascript">
$(function () {
//工艺路线
$('#ROUTE_CODE').combobox({
onSelect: function () {
var routecode = $('#ROUTE_CODE').combobox('getValue');
if (routecode != "") {
//获取工序下拉数据源
$('#WORKCELL_CODE').combobox({
url: "/Dict/GetWorkCellBasicWithTypeComboxSource?routecode=" + routecode,
editable: 'false',
valueField: 'WORKCELL_CODE',
textField: 'WORKCELL_NAME'
});
$('#WORKCELL_CODE').combobox("setValue", "");
}
else {
//清空工序下拉框
var plantData = [{ 'WORKCELL_CODE': "", 'WORKCELL_NAME': ""}];
$('#WORKCELL_CODE').combobox("loadData", plantData);
$('#WORKCELL_CODE').combobox("select", "");
}
}
});
//物料号
$('#MATERIAL_TYPE_CODE').combotree({
url: '/Dict/GetMaterialClassTree?attr=1',
panelHeight: '250',
panelWidth: '300',
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", "");
}
}
});
$('#WORKCELL_CODE').combobox({
onSelect: function () {
var productcodetxt = $('#PRODUCTCODETXT').val();
var productshiftcode = $('#PRODUCESHIFTTCODE').combobox('getValue');
var machinecode = $('#MACHINECODDE').combobox('getValue');
var status = $('#STATUS').combobox('getValue');
var materialtypecode = $('#MATERIAL_TYPE_CODE').combobox('getValue');
var materialcode = $('#MATERIAL_CODE').combobox('getValue');
var workcentercode = $('#WORKCENTER_CODE').combobox('getValue');
var routecode = $('#ROUTE_CODE').combobox('getValue');
var workcellcode = $('#WORKCELL_CODE').combobox('getValue');
var star = $('#CREATEDATESTART').val();
var end = $('#CREATEDATEEND').val();
window.location.href = "/MainOperation/List?callBack=false&PRODUCTCODETXT=" + productcodetxt + "&PRODUCESHIFTTCODE=" + productshiftcode + "&MACHINECODDE=" + machinecode + "&STATUS=" + status + "&MATERIAL_TYPE_CODE=" + materialtypecode + "&MATERIAL_CODE=" + materialcode + "&WORKCENTER_CODE=" + workcentercode + "&ROUTE_CODE=" + routecode + "&WORKCELL_CODE=" + workcellcode + "&CREATEDATESTART=" + star + "&CREATEDATEEND=" + end;
}
});
var routecode = $('#ROUTE_CODE').combobox('getValue');
if (routecode != "") {
$('#WORKCELL_CODE').combobox({
url: "/Dict/GetWorkCellBasicWithTypeComboxSource?routecode=" + routecode,
editable: 'false',
valueField: 'WORKCELL_CODE',
textField: 'WORKCELL_NAME'
});
var workcellcode = $('#WORKCELL_CODE').combobox('getValue');
$('#WORKCELL_CODE').combobox("setValue", workcellcode);
}
List(1);
});
//导出
function Export() {
$.get("/MainOperation/ExportExcel", $("form").serializeArray(), function (data) {
submitByButton("/MainOperation/ExportFile?FileName=" + data);
});
}
//查询
function Search() {
var productcodetxt = $('#PRODUCTCODETXT').val();
var productshiftcode = $('#PRODUCESHIFTTCODE').combobox('getValue');
var machinecode = $('#MACHINECODDE').combobox('getValue');
var status = $('#STATUS').combobox('getValue');
var materialtypecode = $('#MATERIAL_TYPE_CODE').combobox('getValue');
var materialcode = $('#MATERIAL_CODE').combobox('getValue');
var workcentercode = $('#WORKCENTER_CODE').combobox('getValue');
var routecode = $('#ROUTE_CODE').combobox('getValue');
var workcellcode = $('#WORKCELL_CODE').combobox('getValue');
var star = $('#CREATEDATESTART').val();
var end = $('#CREATEDATEEND').val();
if (workcellcode != "") {
window.location.href = "/MainOperation/List?callBack=false&PRODUCTCODETXT=" + productcodetxt + "&PRODUCESHIFTTCODE=" + productshiftcode + "&MACHINECODDE=" + machinecode + "&STATUS=" + status + "&MATERIAL_TYPE_CODE=" + materialtypecode + "&MATERIAL_CODE=" + materialcode + "&WORKCENTER_CODE=" + workcentercode + "&ROUTE_CODE=" + routecode + "&WORKCELL_CODE=" + workcellcode + "&CREATEDATESTART=" + star + "&CREATEDATEEND=" + end;
}
List(1);
}
$(function () {
$('#ROUTE_CODE').combobox({
panelWidth: '250'
});
});
$(function () {
$('#MACHINECODDE').combobox({
panelWidth: '250'
});
});
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("MainOperation", "List", "Search()")%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>