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

113 lines
4.1 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.ProcessRouteModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
工艺线路信息列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(80,true) %>
<table id="condiTable">
<tr>
<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.ROUTE_CODE)%>
</th>
<td>
<%=Html.QC(p => p.ROUTE_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.ROUTE_NAME)%>
</th>
<td>
<%=Html.QC(p => p.ROUTE_NAME)%>
</td>
</tr>
</table>
<div style="left: 1px; position: relative;">
</div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.MD.Web.Models.ProcessRouteModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("PID")%>
<script language="javascript" type="text/javascript">
//添加
function Add() {
openAppWindow1('工艺路线添加', 'Edit', '450', '350');
}
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1('工艺路线修改', 'Edit?PID=' + ids, '450', '350');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("Delete");
})
}
}
//工序配置
function SetProcess() {
//var ids = getSelectKey();
var ids = getSelectColumnValues("ROUTE_CODE");
var vers = getSelectColumnValues("ROUTE_VER");
var factory = getSelectColumnValues("FACTORY_CODE");
//getSelect
if (ids == "") {
MSI("提示", "请选择要配置工序的记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能配置一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
window.location.href = "/ProcessRoute/ProcessRouteWorkCellList?ROUTE_CODE_PARAM=" + ids + "&ROUTE_VER_PARAM=" + vers + "&FACTORY_CODE=" + factory;
}
$(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("ProcessRoute", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonAdd("ProcessRoute", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonUpdate("ProcessRoute", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonDelete("ProcessRoute", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("setProcess", "SetProcess", QMFrameWork.WebUI.IconCls.add, "SetProcess()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>