Exemple #1
0
        void ServiceClient_GetSysRoleInfosByCompanyIdAndDepartmentIdCompleted(object sender, GetSysRoleInfosByCompanyIdAndDepartmentIdCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            PagedCollectionView pcv = null;

            if (e.Result != null)
            {
                List <T_SYS_ROLE> menulist = e.Result.ToList();
                var q = from ent in menulist
                        select ent;

                pcv          = new PagedCollectionView(q);
                pcv.PageSize = 200;
            }
            dataPager.DataContext   = pcv;
            DtGrid_user.ItemsSource = pcv;

            ServiceClient.GetSysUserRoleByUserAsync(tmpUser.SYSUSERID);
        }
Exemple #2
0
        void SysRoleClient_GetSysRoleInfosCompleted(object sender, GetSysRoleInfosCompletedEventArgs e)
        {
            PagedCollectionView pcv = null;

            if (e.Result != null)
            {
                List <T_SYS_ROLE> menulist = e.Result.ToList();
                var q = from ent in menulist
                        select ent;

                pcv          = new PagedCollectionView(q);
                pcv.PageSize = 100;
            }

            DtGrid.ItemsSource = pcv;
            GetUserRoleInfo(tmpUser);
            ServiceClient.GetSysUserRoleByUserAsync(tmpUser.SYSUSERID);
        }
Exemple #3
0
 private void LoadData()
 {
     //ServiceClient.GetSysUserRoleByTypeAsync(this.txtSearchSystemType.Text.Trim());
     RefreshUI(RefreshedTypes.ShowProgressBar);
     ServiceClient.GetSysUserRoleByUserAsync(tmpUserID);
 }