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

209 lines
7.8 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FeedInManage.WIPProductModel>" %>
<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.PRODUCTCODE) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCTCODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.STATUS)%>
</th>
<td>
<%=Html.QC(p => p.STATUS)%>
</td>
<th align="right">
<%=Html.QV(p => p.USINGSTATE)%>
</th>
<td>
<%=Html.QC(p => p.USINGSTATE)%>
</td>
<th align="right">
<%=Html.QV(p => p.PLAN_NO)%>
</th>
<td>
<%=Html.QC(p => p.PLAN_NO)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.STARTCREATEDATE)%>
</th>
<td>
<%=Html.QC(p => p.STARTCREATEDATE)%>
</td>
<th align="right">
<%=Html.QV(p => p.ENDCREATEDATE)%>
</th>
<td>
<%=Html.QC(p => p.ENDCREATEDATE)%>
</td>
<th align="right">
<%=Html.QV(p => p.MATERIAL_TYPE)%>
</th>
<td>
<%=Html.QC(p => p.MATERIAL_TYPE)%>
</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.ROUTE_CODE)%>
</th>
<td align="left" colspan="3">
<%=Html.QC(p => p.ROUTE_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.WORKCELL_CODE)%>
</th>
<td align="left" colspan="3">
<%=Html.QC(p => p.WORKCELL_CODE)%>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.FeedInManage.WIPProductModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName") %>
<%=Html.HiddenFor(o => o.GETDETAILINFO)%>
<%=Html.HiddenFor(o => o.SAVEURL)%>
<div id="matSelectWindow" class="easyui-window" title="零件号选择" iconcls="icon-save"
closed="true" style="width: 500px; height: 300px; padding: 5px;" data-options="onClose:function(){}">
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
<table id="Table2">
<tr>
<th align="right">
<%=Html.QV(p => p.MATERIALBATCH)%>
</th>
<td>
<%=Html.QC(p => p.MATERIALBATCH)%>
</td>
</tr>
<tr>
<td>
<%=Html.HiddenFor(p => p.PRODUCTINID)%>
<%=Html.HiddenFor(p => p.PRODUCTID)%>
</td>
</tr>
</table>
</div>
<div region="south" border="false" style="text-align: right; padding: 5px 0;">
<a class="easyui-linkbutton" iconcls="icon-ok" href="javascript:void(0)" onclick="MatSelectOK()">
确定</a> <a class="easyui-linkbutton" iconcls="icon-cancel" href="javascript:void(0)"
onclick="MatSelectCancel()">取消</a>
</div>
</div>
</div>
<script language="javascript" type="text/javascript" src="../../Scripts/FjcProductCommon.js"></script>
<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').combotree({
url: '/Dict/GetMaterialClassTree?attr=1',
panelHeight: '250',
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", "");
}
}
});
List(1);
});
//导出
function Export() {
var ids = getSelectKey();
document.getElementById("selectKey").value = ids;
//_showProgress();
$.get("/WIPProduct/ExportExcel", $("form").serializeArray(), function (data) {
//_closeProgress();
submitByButton("/WIPProduct/ExportFile?FileName=" + data);
});
}
//查询
function Search() {
if (parseDate($("#STARTCREATEDATE").val()) > parseDate($("#ENDCREATEDATE").val())) {
alert("开始时间不能大于结束时间!");
return;
}
List(1)
}
$(function () {
$('#ROUTE_CODE').combobox({
panelWidth: '300'
});
});
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("Duct", "List", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>