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.
205 lines
7.4 KiB
205 lines
7.4 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FIS.OrderPlanModel>" %>
|
||
|
|
||
|
<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.FACTORY_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.FACTORY_CODE)%>
|
||
|
</td>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.SHIFT_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.SHIFT_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.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>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.MACHINECODDE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.MACHINECODDE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.QPEnd()%>
|
||
|
<%=Html.QPList() %>
|
||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.FIS.OrderPlanModel>(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;
|
||
|
//获取物料下拉数据源
|
||
|
$('#MATERIAL_CODE').combotree({
|
||
|
panelHeight: '250',
|
||
|
panelWidth: '500',
|
||
|
url: "/Dict/GetFisMaterialTree?ordertype=" + type,
|
||
|
});
|
||
|
//获取设备MACHINE下拉数据源
|
||
|
$('#MACHINECODDE').combobox({
|
||
|
url: "/Dict/GetMachineForOrder?ordertype=" + type,
|
||
|
editable: 'false',
|
||
|
valueField: 'MACHINECODDE',
|
||
|
textField: 'MACHINENAME'
|
||
|
});
|
||
|
$('#MACHINECODDE').combobox("setValue", "");
|
||
|
List(1);
|
||
|
});
|
||
|
//添加
|
||
|
function Add() {
|
||
|
var type = document.getElementById("ORDER_TYPE").value;
|
||
|
openAppWindow1('信息添加', 'Edit?ORDER_TYPE=' + type, '500', '380');
|
||
|
}
|
||
|
|
||
|
//修改
|
||
|
function Update() {
|
||
|
var ids = getSelectKey();
|
||
|
if (ids == "") {
|
||
|
MSI("提示", "请选择修改记录。");
|
||
|
return;
|
||
|
}
|
||
|
if (ids.indexOf(":") > 0) {
|
||
|
MSI("提示", "每次只能修改一条记录。");
|
||
|
return;
|
||
|
}
|
||
|
var type = document.getElementById("ORDER_TYPE").value;
|
||
|
document.getElementById("selectKey").value = ids;
|
||
|
openAppWindow1('修改', 'Edit?PID=' + ids + "&ORDER_TYPE=" + type, '500', '380');
|
||
|
}
|
||
|
//删除
|
||
|
function Delete() {
|
||
|
var ids = getSelectKey();
|
||
|
if (ids == "") {
|
||
|
MSI("错误", "至少选择一条记录");
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("selectKey").value = ids;
|
||
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
||
|
submitByButton("Delete");
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
//导入
|
||
|
function Import() {
|
||
|
var fileName = window.showModalDialog("/File/UploadFile", "", "dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: Yes;status: Yes;");
|
||
|
|
||
|
if (fileName == null)
|
||
|
return;
|
||
|
document.getElementById("fileName").value = fileName;
|
||
|
//处理等待
|
||
|
submitByButton("ImportExcel");
|
||
|
}
|
||
|
//导出
|
||
|
function Export() {
|
||
|
document.getElementById("selectKey").value = getSelectKey();
|
||
|
submitByButton("ExportExcel");
|
||
|
}
|
||
|
//下载模板
|
||
|
function getTemplate() {
|
||
|
submitByButton("GetTemplate");
|
||
|
}
|
||
|
//查询
|
||
|
function Search() {
|
||
|
var endtime = document.getElementById("PLANTIMEEND").value;
|
||
|
if (parseDate($("#PLANTIMESTART").val()) > parseDate($("#PLANTIMEEND").val()) && endtime != "") {
|
||
|
alert("开始时间不能大于结束时间!");
|
||
|
return;
|
||
|
}
|
||
|
List(1);
|
||
|
}
|
||
|
//发布
|
||
|
function Publish() {
|
||
|
var ids = getSelectKey();
|
||
|
if (ids == "") {
|
||
|
MSI("错误", "至少选择一条记录");
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("selectKey").value = ids;
|
||
|
MSQ("提示", "确定要发布选中的记录吗?", function () {
|
||
|
submitByButton("PutOut");
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//人员设置
|
||
|
function FisPlanRecord() {
|
||
|
var ids = getSelectKey();
|
||
|
if (ids == "") {
|
||
|
MSI("提示", "请选择需要查看的订单。");
|
||
|
return;
|
||
|
}
|
||
|
if (ids.indexOf(":") > 0) {
|
||
|
MSI("提示", "每次只能查看一条订单历史记录。");
|
||
|
return;
|
||
|
}
|
||
|
document.getElementById("selectKey").value = ids;
|
||
|
window.location.href = "/OrderPlan/FisPlanRecord?MID=" + ids;
|
||
|
}
|
||
|
|
||
|
$(function () {
|
||
|
|
||
|
$('#FACTORY_CODE').combobox({
|
||
|
panelWidth: '350'
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
</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.QTButtonAdd("OrderPlan", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonUpdate("OrderPlan", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonDelete("OrderPlan", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButton("publish", "PutOut", "detail", "Publish()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButton("FisPlanRecord", "FisPlanRecord", "detail", "FisPlanRecord()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButton("import", "ImportExcel", QMFrameWork.WebUI.IconCls.undo, "Import()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButton("template", "TemplateExcel", QMFrameWork.WebUI.IconCls.template, "getTemplate()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</asp:Content>
|
||
|
|