本文整理汇总了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();
};
}
示例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();
};
}
示例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(); };
}
示例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;
}
}
示例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(); };
}