protected void Page_Load(object sender, EventArgs e) { B_Admin admin = new B_Admin(); M_LoginAdmin loginModel = admin.GetLoginModel(); if (loginModel != null) { M_Admin model = admin.GetModel(loginModel.UserId); model.LastLogoutTime = DateTime.Now; admin.UpdateInfo(model); } admin.ClearCookie(); Response.Redirect("~/system/Login.aspx"); }
public void Power_Judge(int ChId, int ColId, int TypeId, string ErrorTitle) { B_Admin admin = new B_Admin(); M_LoginAdmin loginModel = admin.GetLoginModel(); int groupId = admin.GetModel(loginModel.UserId).GroupId; if (!this.Power_Channel(ChId, ColId, groupId, TypeId)) { Ky.Common.Function.ShowSysMsg(0, ErrorTitle); } }
public void Power_Judge(int ChId) { B_Admin admin = new B_Admin(); M_LoginAdmin loginModel = admin.GetLoginModel(); int groupId = admin.GetModel(loginModel.UserId).GroupId; M_PowerColumn model = new B_PowerColumn().GetModel(ChId); if (!this.Power_Column(ChId, groupId)) { Ky.Common.Function.ShowSysMsg(0, model.ColumnErrorCodes); } }