Beispiel #1
0
 /// <summary>
 /// oa 数据源
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void RoleClient_GetOASysMenuByTypeCompleted(object sender, GetOASysMenuByTypeCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result != null)
         {
             OAMenu = e.Result.ToList();
             DataGridBindingPcv(DaGrOA, OAMenu);
             //d.ItemsSource = pcv;
         }
     }
     //开始获取FB系统菜单
     taboa.IsEnabled = true;//加载完菜单后启用OA标签
     RoleClient.GetFBSysMenuByTypeAsync("3", Common.CurrentLoginUserInfo.EmployeeID);
 }
Beispiel #2
0
 /// <summary>
 /// oa 数据源
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void RoleClient_GetOASysMenuByTypeCompleted(object sender, GetOASysMenuByTypeCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result != null)
         {
             OAMenu = e.Result.ToList();
             DataGridBindingPcv(DaGrOA,OAMenu);
             //d.ItemsSource = pcv;
         }
     }
     //开始获取FB系统菜单
     taboa.IsEnabled = true;//加载完菜单后启用OA标签
     RoleClient.GetFBSysMenuByTypeAsync("3",Common.CurrentLoginUserInfo.EmployeeID);
 }
Beispiel #3
0
        /// <summary>
        /// oa 数据源
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void RoleClient_GetOASysMenuByTypeCompleted(object sender, GetOASysMenuByTypeCompletedEventArgs e)
        {
            #region 龙康才修改
            if (this.DaGrOA.ItemsSource == null)
            {
                if (!e.Cancelled)
                {
                    if (e.Result != null)
                    {
                        List<T_SYS_ENTITYMENU> AA = e.Result.ToList();
                        this.DaGrOA.ItemsSource = AA;
                        if (this.DaGrOA.Columns.Count <= 2)
                        {
                            this.LoadDaGrOADataRange();
                        }
                    }
                }
            }
            #endregion
            #region 原来代码
            //if (!e.Cancelled)
            //{
            //    if (e.Result != null)
            //    {
            //        List<T_SYS_ENTITYMENU> AA = e.Result.ToList();
            //        this.DaGrOA.ItemsSource = AA;
            //       this.LoadDaGrOADataRange();

            //    }
            //}
#endregion
        }