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

95 lines
3.1 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.QPEdit("系统功能锁定设置", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
<table id="editTable">
<tr>
<th align="right">
<%=Html.QV(p => p.StartTime)%>
</th>
<td>
<%=Html.QC(p => p.StartTime)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.EndTime)%>
</th>
<td>
<%=Html.QC(p => p.EndTime)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.LockReason)%>
</th>
<td>
<%=Html.QC(p => p.LockReason)%>
</td>
</tr>
<tr>
<th align="right" valign="top">
<%=Html.QV(p => p.ValidFlg)%>
</th>
<td>
<%-- <%=Html.QC(p => p.ValidFlg)%>--%>
<%=Html.CheckBoxFor(p =>p.IsValid)%>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.PID) %>
<%=Html.HiddenFor(p=>p.CreateUser) %>
<%=Html.HiddenFor(p=>p.CreateTime) %>
<%=Html.QPEnd() %>
<script type="text/javascript">
//保存
function Save() {
var StartTime = $("#StartTime").val();
if (StartTime == "") {
MSI("提示", "开始时间不能为空!");
$("#StartTime").focus();
return false;
}
var EndTime = $("#EndTime").val();
if ($("#EndTime").val() == "") {
MSI("提示", "结束时间不能为空!");
$("#EndTime").focus();
return false;
}
var start = new Date(StartTime.replace("-", "/"));
var end = new Date(EndTime.replace("-", "/"));
//较验起始和结束时间
if (start > end) {
MSI("提示", "结束时间必须大于或者等于起始时间。");
return false;
}
//校验基本信息合法性
if (isValidate() == false) {
return false;
}
submitByButton("SystemLockSave");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSave("SystemLock", "SystemLockSave", "Save()")%>
<%=Html.QTButton("close", "OrgaizationList","close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>