Пример #1
0
 /// <summary>
 /// FB 数据源
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void RoleClient_GetFBSysMenuByTypeCompleted(object sender, GetFBSysMenuByTypeCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result != null)
         {
             FBMenu = e.Result.ToList();
         }
     }
     //开始获取物流系统菜单
     tabfb.IsEnabled = true;//加载完菜单后启用FB标签
     RoleClient.GetLMSysMenuByTypeAsync("2");
 }
Пример #2
0
        /// <summary>
        /// FB 数据源
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void RoleClient_GetFBSysMenuByTypeCompleted(object sender, GetFBSysMenuByTypeCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result != null)
                {
                    FBMenu = e.Result.ToList();
                }

            }
            //开始获取物流系统菜单
            tabfb.IsEnabled = true;//加载完菜单后启用FB标签
            RoleClient.GetLMSysMenuByTypeAsync("2");
        }
Пример #3
0
        /// <summary>
        /// FB 数据源
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void RoleClient_GetFBSysMenuByTypeCompleted(object sender, GetFBSysMenuByTypeCompletedEventArgs e)
        {
            #region 龙康才修改
            if (this.DaGrFB.ItemsSource == null)
            {
                if (!e.Cancelled)
                {
                    if (e.Result != null)
                    {
                        List<T_SYS_ENTITYMENU> AA = e.Result.ToList();
                        this.DaGrFB.ItemsSource = AA;
                        if (this.DaGrFB.Columns.Count <= 2)
                        {
                            this.LoadDaGrFBDataRange();
                        }
                    }
                }
            }
            #endregion
            #region 原来代码
            //if (!e.Cancelled)
            //{
            //    if (e.Result != null)
            //    {
            //        List<T_SYS_ENTITYMENU> AA = e.Result.ToList();
            //        this.DaGrFB.ItemsSource = AA;
            //        LoadDaGrFBDataRange();

            //    }

            //}
            #endregion
          
            loadbar.Stop();
        }