当前位置: 首页>>代码示例>>C#>>正文


C# EntityBrowser.Close方法代码示例

本文整理汇总了C#中SMT.SaaS.FrameworkUI.EntityBrowser.Close方法的典型用法代码示例。如果您正苦于以下问题:C# EntityBrowser.Close方法的具体用法?C# EntityBrowser.Close怎么用?C# EntityBrowser.Close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SMT.SaaS.FrameworkUI.EntityBrowser的用法示例。


在下文中一共展示了EntityBrowser.Close方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ShowEditForm

        private void ShowEditForm(OrderEntity orderEntity, OperationTypes operationType)
        {
            //OrderForm caForm = CommonFunction.GetOrderForm(orderEntity);
            //caForm.Width = this.ActualWidth;
            //caForm.Height = this.ActualHeight;
            //caForm.Closed += (o, e) =>
            //{
            //    if (caForm.IsNeedToRefresh)
            //    {
            //        this.GetOrders();
            //    }
            //};
            //caForm.Show();
            FBPage page = FBPage.GetPage(orderEntity);
            page.EditForm.OperationType = operationType;
            FrameworkElement plRoot = CommonFunction.ParentLayoutRoot;
            EntityBrowser eb = new EntityBrowser(page);
            eb.EntityScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            eb.Show<string>(DialogMode.Default, plRoot, "", (result) => { });


            page.RefreshData += (o, e) =>
            {
                this.GetOrders();
            };
            page.PageClosing += (o, e) =>
            {
                eb.Close();
            };
        }
开发者ID:JuRogn,项目名称:OA,代码行数:30,代码来源:CommonView.xaml.cs

示例2: ShowEditForm

        private void ShowEditForm(OrderEntity orderEntity, OperationTypes operationType)
        {
           
            FBPage page = FBPage.GetPage(orderEntity);
            page.EditForm.OperationType = operationType;
            FrameworkElement plRoot = CommonFunction.ParentLayoutRoot;
            EntityBrowser eb = new EntityBrowser(page);
            eb.Show<string>(DialogMode.Default, plRoot, "", (result) => { });


            eb.MinWidth = 400;
            eb.MinHeight = 300;
                        
            page.PageClosing += (o, e) =>
            {
                eb.Close();
            };
        }
开发者ID:JuRogn,项目名称:OA,代码行数:18,代码来源:QueryOrder.xaml.cs

示例3: btnNew_Click

 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     BorrowAppForm AddWin = new BorrowAppForm(FormTypes.New,"" );
     
     EntityBrowser browser = new EntityBrowser(AddWin);
     browser.MinWidth = 800;
     browser.MinHeight = 500;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     
     var obj = SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot;
     browser.Show<string>(DialogMode.Default, obj, "", (result) => { }, true);
     AddWin.Deleted += (ss, ee) => { browser.Close(); GetData(); };
 }
开发者ID:JuRogn,项目名称:OA,代码行数:13,代码来源:BorrowApplyManagement.xaml.cs

示例4: btnEdit_Click

        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (BorrowApply != null)
            {
                if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(BorrowApply, "T_FB_BORROWAPPLYMASTER", OperationType.Edit, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID))
                {

                    if (BorrowApply.CHECKSTATES == (int)CheckStates.UnSubmit)
                    {
                        BorrowAppForm AddWin = new BorrowAppForm(FormTypes.Edit, BorrowApply.BORROWAPPLYMASTERID);
                        EntityBrowser browser = new EntityBrowser(AddWin);
                        browser.FormType = FormTypes.Edit;
                        browser.MinWidth = 800;
                        browser.MinHeight = 500;
                        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                        browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }, true, BorrowApply.BORROWAPPLYMASTERID);
                        //BorrowApply = null;
                        AddWin.Deleted += (ss, ee) => { browser.Close(); GetData(); };
                    }
                    else
                    {
                        ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ONLYEDITUNSUBMITDATA"),
                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);//只能修改未提交的数据
                    }
                }
                else
                {
                    //Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"));
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                }

            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

        }
开发者ID:JuRogn,项目名称:OA,代码行数:40,代码来源:BorrowApplyManagement.xaml.cs

示例5: btnNew_Click

        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            //SMT.FBAnalysis.UI.Common.Utility.CreateFormFromEngine("143f3aa5-7c52-48d5-abfb-4a9bef57063c", "SMT.FBAnalysis.UI.Form.RepayApplyForm", "Edit");
            RepayApplyForm AddWin = new RepayApplyForm(FormTypes.New, "");
            EntityBrowser browser = new EntityBrowser(AddWin);
            browser.MinWidth = 800;
            browser.MinHeight = 500;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }, true);
            AddWin.Deleted += (ss, ee) => { browser.Close(); GetData(); };

        }
开发者ID:JuRogn,项目名称:OA,代码行数:12,代码来源:RepayApplyManagement.xaml.cs


注:本文中的SMT.SaaS.FrameworkUI.EntityBrowser.Close方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。