void SendSpreadSumEmail(string today) { PlatformManagerFacade aidePlatformManagerFacade = new PlatformManagerFacade(); aidePlatformManagerFacade.AddSpreadSumEmail(today); aidePlatformManagerFacade.AddAgentReveneSumEmail(today); }
protected void Page_Load(object sender, EventArgs e) { //登录判断 PlatformManagerFacade aidePlatformManagerFacade = new PlatformManagerFacade(); userExt = aidePlatformManagerFacade.GetUserInfoFromCache(); if (userExt == null || userExt.UserID <= 0 || (userExt.UserID != ApplicationConfig.SUPER_ADMINISTRATOR_ID && userExt.RoleID <= 0)) { Response.Redirect("Login.aspx"); } if (userExt.UserID == ApplicationConfig.SUPER_ADMINISTRATOR_ID || userExt.RoleID == 1) { roleName = "超级管理员"; } else { roleName = aidePlatformManagerFacade.GetRolenameByRoleID(userExt.RoleID); } Utility.ClearPageClientCache(); }
public ActionResult Index() { base.ViewData["munetb"] = null; base.ViewData["muneitemtb"] = null; base.ViewData["user"] = null; base.ViewBag.RoleName = ""; base.ViewBag.Username = ""; base.ViewBag.IsBand = 0; base.ViewBag.ID = 0; DataSet dataSet = null; if (user != null && user.UserID > 0) { if (user != null && user.UserID > 0) { base.ViewBag.Username = user.Username; base.ViewBag.IsBand = user.IsBand; if (user.UserID == 1 || user.RoleID == 1) { base.ViewBag.RoleName = "超级管理员"; user.RoleID = 1; } else { PlatformManagerFacade platformManagerFacade = new PlatformManagerFacade(); base.ViewBag.RoleName = platformManagerFacade.GetRolenameByRoleID(user.RoleID); } dataSet = FacadeManage.aidePlatformManagerFacade.GetMenuByRoleID(user.RoleID); if (dataSet != null && dataSet.Tables.Count > 0) { DataView dataView = new DataView(dataSet.Tables[0]); dataView.Sort = "OrderNo asc"; dataView.ToTable(); base.ViewData["muneitemtb"] = dataView.ToTable(); } } base.ViewBag.ID = user.UserID; } return(View()); }