Esempio n. 1
0
        void ServiceClient_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result != null)
                {
                    //List<T_SYS_ENTITYMENU> menulist = e.Result.ToList();
                    ViewMenuList = e.Result.ToList();
                    AddTreeNode("f0c5324c-9f23-4a22-8ee6-8a1446c23749", null);
                    tvRoleMenu.ItemContainerStyle = this.Resources["RedItemStyle"] as Style;
                    //if (menulist.Count > 0)
                    //{
                    //    foreach (SMT.SaaS.Permission.UI.PermissionService.T_SYS_ENTITYMENU tmpmenu in menulist)
                    //    {
                    //        TreeViewItem objTreenode = new TreeViewItem();
                    //        objTreenode.Header = tmpmenu.MENUNAME;
                    //        objTreenode.DataContext = tmpmenu;
                    //        if (TreeViewItem == null)
                    //        { 

                    //        }
                    //    }

                    //}
                }
            }
        }
Esempio n. 2
0
        void ServiceClient_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result != null)
                {
                    //List<T_SYS_ENTITYMENU> menulist = e.Result.ToList();
                    ViewMenuList = e.Result.ToList();
                    AddTreeNode("f0c5324c-9f23-4a22-8ee6-8a1446c23749", null);
                    tvRoleMenu.ItemContainerStyle = this.Resources["RedItemStyle"] as Style;
                    //if (menulist.Count > 0)
                    //{
                    //    foreach (SMT.SaaS.Permission.UI.PermissionService.T_SYS_ENTITYMENU tmpmenu in menulist)
                    //    {
                    //        TreeViewItem objTreenode = new TreeViewItem();
                    //        objTreenode.Header = tmpmenu.MENUNAME;
                    //        objTreenode.DataContext = tmpmenu;
                    //        if (TreeViewItem == null)
                    //        {

                    //        }
                    //    }

                    //}
                }
            }
        }
Esempio n. 3
0
 void client_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         allMenu = e.Result.ToList();
     }
     BindTree();
 }
Esempio n. 4
0
 void client_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         allMenu = e.Result.ToList();
     }
     BindTree();
 }
        /// <summary>
        /// 获取指定系统下的功能项集合,并加载到树控件上
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.Result == null)
                {
                    return;
                }

                allMenu = e.Result.ToList();
                BindTree();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message);
            }
        }
Esempio n. 6
0
        /// <summary>
        /// 获取指定系统下的功能项集合,并加载到树控件上
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (e.Result == null)
                {
                    return;
                }

                allMenu = e.Result.ToList();
                DataGridBindingPcv(DaGrMenu, allMenu);
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message);
            }
        }
Esempio n. 7
0
        //void ServiceClient_SysMenuDeleteCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
        //{
        //    if (e.Error != null && e.Error.Message != "")
        //    {
        //        ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Error.Message, Utility.GetResourceStr("CONFIRMBUTTON"));
        //    }
        //    else
        //    {
        //        ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("DELETESUCCESSEDCONFIRM"), Utility.GetResourceStr("CONFIRMBUTTON"));
        //        //刷新数据
        //        ShowPageStyle();

        //        LoadData();
        //    }
        //}

        void ServiceClient_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            PagedCollectionView pcv = null;

            if (e.Result != null)
            {
                List <T_SYS_ENTITYMENU> 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;
            loadbar.Stop();
            HidePageStyle();
        }
Esempio n. 8
0
        /// <summary>
        /// 获取指定系统下的功能项集合,并加载到树控件上
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (e.Result == null)
                {
                    return;
                }

                allMenu = e.Result.ToList();
                DataGridBindingPcv(DaGrMenu, allMenu);

            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message);
            }
        }
Esempio n. 9
0
        //void ServiceClient_SysMenuDeleteCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
        //{
        //    if (e.Error != null && e.Error.Message != "")
        //    {
        //        ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Error.Message, Utility.GetResourceStr("CONFIRMBUTTON"));
        //    }
        //    else
        //    {
        //        ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("DELETESUCCESSEDCONFIRM"), Utility.GetResourceStr("CONFIRMBUTTON"));
        //        //刷新数据
        //        ShowPageStyle();

        //        LoadData();
        //    }
        //}

        void ServiceClient_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            PagedCollectionView pcv = null;
            if (e.Result != null)
            {
                List<T_SYS_ENTITYMENU> 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;
            loadbar.Stop();
            HidePageStyle();
        }
Esempio n. 10
0
        /// <summary>
        /// 获取指定系统下的功能项集合,并加载到树控件上
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetSysMenuByTypeCompleted(object sender, GetSysMenuByTypeCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.Result == null)
                {
                    return;
                }

                allMenu = e.Result.ToList();
                BindTree();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message);
            }
        }