Exemple #1
0
 void ServiceClient_GetSysUserRoleByUserCompleted(object sender, GetSysUserRoleByUserCompletedEventArgs e)
 {
     //throw new NotImplementedException();
     if (e.Result != null)
     {
         List<T_SYS_USERROLE> listuserrole = new List<T_SYS_USERROLE>();
         listuserrole = e.Result.ToList();
         foreach (T_SYS_USERROLE roleid in listuserrole)
         {
             tmpRoleList.Add(roleid);
         }
         SetUserRoleInfos();
     }
 }
Exemple #2
0
 void ServiceClient_GetSysUserRoleByUserCompleted(object sender, GetSysUserRoleByUserCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         List <T_SYS_USERROLE> listuserrole = new List <T_SYS_USERROLE>();
         listuserrole = e.Result.ToList();
         foreach (T_SYS_USERROLE roleid in listuserrole)
         {
             tmpRoleList.Add(roleid);
         }
         //SetUserRoleInfos();
         //this.DtGrid.Loaded += new RoutedEventHandler(DtGrid_Loaded);
     }
 }
Exemple #3
0
 void ServiceClient_GetSysUserRoleByUserCompleted(object sender, GetSysUserRoleByUserCompletedEventArgs e)
 {
     //throw new NotImplementedException();
     if (e.Result != null)
     {
         List <T_SYS_USERROLE> listuserrole = new List <T_SYS_USERROLE>();
         listuserrole = e.Result.ToList();
         foreach (T_SYS_USERROLE roleid in listuserrole)
         {
             tmpRoleList.Add(roleid);
         }
         SetUserRoleInfos();
     }
 }
Exemple #4
0
        void ServiceClient_GetSysUserRoleByUserCompleted(object sender, GetSysUserRoleByUserCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            PagedCollectionView pcv = null;

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

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

            dataPager.DataContext = pcv;
            DtGrid.ItemsSource    = pcv;

            HidePageStyle();
        }
Exemple #5
0
 void ServiceClient_GetSysUserRoleByUserCompleted(object sender, GetSysUserRoleByUserCompletedEventArgs e)
 {
     
     if (e.Result != null)
     {
         List<T_SYS_USERROLE> listuserrole = new List<T_SYS_USERROLE>();
         listuserrole = e.Result.ToList();
         foreach (T_SYS_USERROLE roleid in listuserrole)
         {
             tmpRoleList.Add(roleid);
         }
         //SetUserRoleInfos();
         //this.DtGrid.Loaded += new RoutedEventHandler(DtGrid_Loaded);
     }
 }
Exemple #6
0
        void ServiceClient_GetSysUserRoleByUserCompleted(object sender, GetSysUserRoleByUserCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            PagedCollectionView pcv = null;
            if (e.Result != null)
            {
                List<T_SYS_USERROLE> menulist = e.Result.ToList();
                var q = from ent in menulist
                        select ent;

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

            dataPager.DataContext = pcv;
            DtGrid.ItemsSource = pcv;

            HidePageStyle();

        }