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

53 lines
2.1 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.WorkCellEquipmentModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
工位设备信息列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.MD.Web.Models.WorkCellEquipmentModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("WORKLOC_CODE")%>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
function ReloadPage() {
location.reload();
}
//添加
function AddEquipment() {
var workLocCode = $('#WORKLOC_CODE').val();
openAppWindow1('工序配置添加', 'WorkLocEquipmentEdit?WORKLOC_CODE_PARAM=' + workLocCode, '300', '280');
}
//删除
function DeleteEquipment() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("EquipmentDelete");
})
}
}
//返回
function Return() {
var returnUrl = "/WorkLoc/List";
window.location.href = returnUrl;
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonAdd("WorkLoc", "Add", "AddEquipment()", (s, f) => { return true; })%>
<%=Html.QTButtonDelete("WorkLoc", "Delete", "DeleteEquipment()", (s, f) => { return true; })%>
<%=Html.QTButton("return", "List", QMFrameWork.WebUI.IconCls.back, "Return();", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>