Example #1
0
    private void PupolateControls()
    {
        int userId = 0;

        if (Request.QueryString["userId"] != "" && Request.QueryString["userId"] != null)
        {
            userId = Convert.ToInt32(Request.QueryString["userId"]);
        }

        DataTable user = user_bll.GetUserDataTableByUserId(userId);

        UserList.DataSource = user;
        UserList.DataBind();

        OAuthList.DataSource = oauth_bll.GetOAuthListDataTableByUserId(userId);
        OAuthList.DataBind();

        int categoryRate = Convert.ToInt32(user.Rows[0]["CategoryRate"]);

        UserCategoryList.DataSource = cat_bll.GetUserCategoryList(userId, categoryRate);
        UserCategoryList.DataBind();

        ZhuanTiList.DataSource = zt_bll.GetZhuanTiList(userId);
        ZhuanTiList.DataBind();

        CardList.DataSource = card_bll.GetCardList(userId);
        CardList.DataBind();

        List.DataSource = bll.GetItemListByUserId(userId);
        List.DataBind();
    }
Example #2
0
    protected void PupolateControls()
    {
        int userId = 0;

        if (Request.QueryString["userId"] != "" && Request.QueryString["userId"] != null)
        {
            userId = Int32.Parse(Request.QueryString["userId"]);
        }

        UserList.DataSource = UserAccess.GetAdminUserListById(userId);
        UserList.DataBind();

        OAuthList.DataSource = OAuthAccess.GetAdminOAuthList(userId);
        OAuthList.DataBind();

        UserCategoryList.DataSource = UserCategoryAccess.GetAdminUserCategoryList(userId);
        UserCategoryList.DataBind();

        ZhuanTiList.DataSource = ZhuanTiAccess.GetAdminZhuanTiList(userId);
        ZhuanTiList.DataBind();

        CardList.DataSource = CardAccess.GetAdminCardList(userId);
        CardList.DataBind();

        List.DataSource = ItemAccess.GetAdminItemListByUserId(userId);
        List.DataBind();
    }