RoleManager.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:2k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections.Generic;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using System.Text;
- public partial class RoleManager : System.Web.UI.Page
- {
- /// <summary>
- /// 模板
- /// </summary>
- List<Model.User_Priv> LMUP = new List<Model.User_Priv>();
- /// <summary>
- /// 业务
- /// </summary>
- BLL.User_Priv BUP = new BLL.User_Priv();
- public string User_Priv_List = "";
- protected void Page_Load(object sender, EventArgs e)
- {
- LoginLogic.MatchLoad("", "RoleManager");
- LMUP=BUP.GetList();
- foreach(Model.User_Priv MUP in LMUP)
- {
- User_Priv_List += ContentStr(MUP.PrivNo.ToString(), MUP.PrivName, MUP.ID.ToString());
- }
- }
- /// <summary>
- /// 获取一行内容
- /// </summary>
- /// <param name="No">排序号</param>
- /// <param name="Name">名称</param>
- /// <param name="Id">种子ID</param>
- /// <returns></returns>
- public string ContentStr(string No,string Name,string Id)
- {
- StringBuilder SBStr = new StringBuilder();
- SBStr.Append( @" <tr>
- <td class=""usertablerow2"" align=""center"" style=""width: 70px"">
- ");
- SBStr.Append(No);
- SBStr.Append(@"</td>
- <td class=""usertablerow2"" align=""center"" style=""width: 149px"">
- ");
- SBStr.Append(Name);
- SBStr.Append(@"</td>
- <td class=""usertablerow2"" align=""center""> <a href=""RoleEditor.aspx?id=" + Id + @""">编辑角色</a> <a href=""RoleLevelManager.aspx?id=" + Id + @""">编辑权限</a> <a href=""LeftMenuEdit.aspx?id=" + Id + @""">菜单编辑</a> <a href=""ResponseReBack/RoleDel.aspx?id=" + Id + @""">删除</a>
- </td>
- </tr>");
- return SBStr.ToString();
- }
- }