Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        PermissionHelpers         permission = new PermissionHelpers();
        List <TB_Admin_Resources> resources  = permission.Permission(true);

        resourcesJson = JsonHelper.GetJSON <List <TB_Admin_Resources> >(resources);
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        PermissionHelpers         permission = new PermissionHelpers();
        List <TB_Admin_Resources> list       = permission.Permission(true);

        foreach (TB_Admin_Resources entity in list)
        {
            menu += "{ 'id': '" + entity.ID + "', 'name': '" + entity.ResourceName + "', 'url': '" + entity.Url + "', 'IcoClass': 'ico_database', 'open': true,";
            if (entity.ChildTree.Count > 0)
            {
                menu += "'ChildItem': [";
                foreach (TB_Admin_Resources entity2 in entity.ChildTree)
                {
                    menu += "{ 'id': '" + entity2.ID + "', 'name': '" + entity2.ResourceName + "', 'url': '" + entity2.Url + "','IcoClass': 'ico_tabel', 'ChildItem': null },";
                }

                menu  = menu.TrimEnd(',');
                menu += "]},";
            }
            else
            {
                menu += "'ChildItem':null },";
            }
        }

        menu = menu.TrimEnd(',');
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LblLogIP.Text    = Request.UserHostAddress;
        LblFbl.Text      = Request.Browser.Browser + Request.Browser.Version;
        LblRealName.Text = AdminUserName;

        if (!IsPostBack)
        {
            RepInfoList.DataSource = YK.Service.EmployeeService.InfoCategoryService.Search();
            RepInfoList.DataBind();
        }

        PermissionHelpers permission = new PermissionHelpers();

        resources = permission.Permission(true);
    }
Ejemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        PermissionHelpers permission = new PermissionHelpers();

        resources = permission.Permission(true);
    }