Пример #1
0
 void client_GetCustomerPermissionMenusCompleted(object sender, GetCustomerPermissionMenusCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Error == null)
     {
         if (e.Result == null)
         {
             return;
         }
         //根据类型过滤  2011-6-9
         var ents = from ent in e.Result
                    where ent.SYSTEMTYPE == StrSystemType
                    select ent;
         if (ents != null)
         {
             allMenu = ents.ToList();
         }
         //allMenu = e.Result.ToList();
         DataGridBindingPcv(DaGrMenu, allMenu);
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message);
     }
 }
Пример #2
0
        void client_GetCustomerPermissionMenusCompleted(object sender, GetCustomerPermissionMenusCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (e.Result == null)
                {
                    return;
                }
                //根据类型过滤  2011-6-9
                var ents = from ent in e.Result
                           where ent.SYSTEMTYPE == StrSystemType
                           select ent;
                if (ents != null)
                    allMenu = ents.ToList();
                //allMenu = e.Result.ToList();
                DataGridBindingPcv(DaGrMenu, allMenu);

            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message);
            }
        }