using System; using System.Data; using System.Text; using Swift.DAL.BL.System.UserManagement; using Swift.DAL.SwiftDAL; using Swift.web.Library; namespace Swift.web.SwiftSystem.UserManagement.AdminUserSetup { public partial class UserRole : System.Web.UI.Page { private const string ViewFunctionId = "10101350"; private readonly SwiftLibrary _sl = new SwiftLibrary(); protected void Page_Load(object sender, EventArgs e) { Authenticate(); btnBack.Visible = false; if (!IsPostBack) { LoadGrid(); } } protected string GetUserName() { return GetStatic.ReadQueryString("userName", ""); } protected long GetMode() { return GetStatic.ReadNumericDataFromQueryString("mode"); } public void LoadGrid() { string userId = GetStatic.ReadQueryString("userId", ""); var roleDao = new ApplicationRoleDao(); DataTable dt = roleDao.GetRoleList(userId, GetStatic.GetUser()); if (dt.Rows.Count == 0) { rpt_grid.InnerHtml = "
" + dt.Columns[0].ColumnName + " | "); str.Append("
---|
" + dr[0] + " | "); str.Append("