/// <summary> /// 显示审核界面 /// </summary> /// <param name="modelCode"></param> /// <param name="orderID"></param> public static void ShowEditForm(string orderID, string modelCode, string formType) { try { OrderInitManager om = new OrderInitManager(); om.InitCompleted += (o, e) => { EntityBrowser eb = GetEditPage(modelCode, orderID, formType) as EntityBrowser; eb.EntityScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; FrameworkElement plRoot = CommonFunction.ParentLayoutRoot; eb.MinHeight = 400; eb.Show <string>(DialogMode.Default, plRoot, "", (result) => { }, true, orderID); }; om.Init(); } catch (Exception ex) { MessageBox.Show(string.Format("Code: {0}, ID: {1} ,Exception :{2} ", modelCode, orderID, ex.ToString())); } }
/// <summary> /// 显示审核界面 /// </summary> /// <param name="modelCode"></param> /// <param name="orderID"></param> public static void ShowEditForm(string orderID, string modelCode, string formType, Border parent) { try { OrderInitManager om = new OrderInitManager(); om.InitCompleted += (o, e) => { EntityBrowser eb = GetEditPage(modelCode, orderID, formType) as EntityBrowser; eb.EntityScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; eb.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }, true, orderID); if (eb.ParentWindow != null) { WindowsManager.MaxWindow(eb.ParentWindow); } eb.MinHeight = 400; }; om.Init(); } catch (Exception ex) { MessageBox.Show(string.Format("Code: {0}, ID: {1} ,Exception :{2} ", modelCode, orderID, ex.ToString())); } }