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.
116 lines
4.1 KiB
116 lines
4.1 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Basic.WorkCenterModel>" %>
|
|
|
|
<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.WORKCENTER_CODE) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.WORKCENTER_CODE)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.WORKCENTER_NAME) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.WORKCENTER_NAME)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.FACTORY_PID) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.FACTORY_PID)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Basic.WorkCenterModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("PID")%>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<%=Html.Hidden("fileName") %>
|
|
<script language="javascript" type="text/javascript">
|
|
//添加
|
|
function Add() {
|
|
openAppWindow1('信息添加', 'Edit', '350', '360');
|
|
}
|
|
//修改
|
|
function Update() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择修改记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能修改一条记录。");
|
|
return;
|
|
}
|
|
document.getElementById("selectKey").value = ids;
|
|
openAppWindow1('修改', 'Edit?PID=' + ids, '350', '300');
|
|
}
|
|
//删除
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("错误", "至少选择一条记录");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
|
submitByButton("Delete");
|
|
})
|
|
}
|
|
}
|
|
//配置设备信息
|
|
function SetMachine() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择配置设备信息的记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能配置一条记录。");
|
|
return;
|
|
}
|
|
|
|
openAppWindow1('配置设备信息', 'SetMachine?PID=' + ids, '480', '450');
|
|
}
|
|
|
|
//设置产能
|
|
function SetCapacity() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择配置产能信息的记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能配置一条记录。");
|
|
return;
|
|
}
|
|
|
|
openAppWindow1('配置产能信息', '/Capacity/CapacityList?workcenterid=' + ids, '480', '450');
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center">
|
|
<%=Html.QTButtonSearch("WorkCenter", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonAdd("WorkCenter", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonUpdate("WorkCenter", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonDelete("WorkCenter", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("SetCapacity", "SetCapacity", "add", "SetCapacity()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|