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

110 lines
4.0 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.SystemLockModel>" %>
<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">锁定时间</th>
<td><%=Html.QC(p => p.StartTime)%></td>
<th align="right"> ~</th>
<td><%=Html.QC(p => p.EndTime)%></td>
<th align="right"><%=Html.QV(p=>p.ValidFlg) %></th>
<td><%=Html.QC(p => p.ValidFlg)%></td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.Web.Models.Sys.SystemLockModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
//增加系统锁定信息
function Insert() {
openAppWindow1('添加系统功能锁定设置', '/SystemLock/SystemLockEdit', '500', '360');
}
//修改系统锁定信息
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
openAppWindow1('修改系统功能锁定设置', 'SystemLockEdit?PID=' + ids, '500', '360');
}
//删除系统锁定信息
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录。");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的锁定吗?", function () {
submitByButton("SystemLockDelete");
})
}
}
//解除系统锁定信息
function UnLock() {
//判断状态是否有效.无效状态不能解锁
var rows = $("#QDateGrid").datagrid("getSelections");
var bool = "1";
for (var i = 0; i < rows.length; i++) {
if (rows[i].ValidFlg == "否") {
bool = "0";
break;
}
}
if (bool == "0") {
alert("任务处于无效状态状态,不能解锁.");
return false;
}
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录。");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要解除选中的锁定吗?", function () {
submitByButton("SystemUnLock");
})
}
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table id="EditTable" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSearch("SystemLock", "SystemLockList", "List(1)")%>
<%=Html.QTButtonAdd("SystemLock", "SystemLockInsert", "Insert();")%>
<%=Html.QTButtonUpdate("SystemLock", "SystemLockUpdate", "Update()")%>
<%=Html.QTButtonDelete("SystemLock", "SystemLockDelete", "Delete()")%>
<%=Html.QTButton("unLock", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "UnLock()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("help", "", "help", "SysHelp('01080000','SystemLockModel')", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>