public override void LayoutDetailView() { DetailViewLayout.ClearNodes(); HGroup(10, x => x.Caption); HGroup(20, x => x.From, x => x.To); HGroup(30, x => x.MultiGenerate, x => x.明细生效条件); HGroup(40, x => x.生效条件, x => x.Disable); HGroup(50, x => x.动作类型, x => x.触发动作条件); HGroup(55, x => x.目标类型); HGroup(60, x => x.显示编辑界面, x => x.自动保存); HGroup(70, x => x.改变状态条件, x => x.改变状态); HGroup(80, x => x.目标单据状态条件, x => x.目标单据状态); HGroup(90, x => x.序号, x => x.分组标记); TabbedGroup(100, x => x.MasterMapping, x => x.ItemsMapping); var masterMappinListView = GetChildListView(x => x.MasterMapping); (masterMappinListView as IModelListViewSetting).DisableShowDetailView = true; masterMappinListView.AllowEdit = true; masterMappinListView.SetNewItemRow(DevExpress.ExpressApp.NewItemRowPosition.Bottom); LayoutListViewColumns <MasterPropertyMapping>(masterMappinListView, x => x.ToProperty, x => x.FromProperty, x => x.Expression); var detailMappingListView = GetChildListView(x => x.ItemsMapping); (detailMappingListView as IModelListViewSetting).DisableShowDetailView = true; detailMappingListView.AllowEdit = true; detailMappingListView.SetNewItemRow(DevExpress.ExpressApp.NewItemRowPosition.Bottom); LayoutListViewColumns <ItemsPropertyMapping>(detailMappingListView, x => x.ToProperty, x => x.FromProperty, x => x.Expression); GetChildListView(x => x.MasterMapping).DataAccessMode = DevExpress.ExpressApp.CollectionSourceDataAccessMode.Client; GetChildListView(x => x.ItemsMapping).DataAccessMode = DevExpress.ExpressApp.CollectionSourceDataAccessMode.Client; base.LayoutDetailView(); }
public override void LayoutDetailView() { DetailViewLayout.ClearNodes(); LayoutDetailViewCore(); base.LayoutDetailView(); }
public override void LayoutDetailView() { DetailViewLayout.ClearNodes(); HGroup(10, x => x.称); //var tabbed = TabbedGroup(20, x => x.Variants); //var parameters = tabbed[0][0]; //parameters.RelativeSize = 20; //parameters.Index = 20; //var codes = tabbed[0].AddNode<IModelLayoutViewItem>("Codes"); //codes.RelativeSize = 80; //codes.Index = 10; //tabbed[0].Caption = "内容"; //HGroup(30, x => x.创建时间, x => x.创建者, x => x.修改时间, x => x.修改者); }
public override void LayoutDetailView() { DetailViewLayout.ClearNodes(); var mst = DetailView.Items["StaticText"]; if (mst == null) { var t = DetailView.Items.AddNode <IModelStaticText>("StaticText"); t.Text = "请在菜单中[填加指令],并选择相应的子级项目."; mst = t; } var msg = DetailViewLayout.AddNode <IModelLayoutViewItem>("Message"); msg.ViewItem = mst; base.LayoutDetailView(); }
protected virtual void LayoutDetailViewCore() { DetailViewLayout.ClearNodes(); //默认详细视图 LayoutDetailViewBaseInfo(); HGroup(90, t => t.备注); var tg = TabbedGroup(100, this.ItemsPropertyName, "单据流程"); SetItemsPropertyEditor(tg[0]); HGroup(1000, x => x.创建者, x => x.创建时间, x => x.修改者, x => x.修改时间); var statusListView = GetChildListView(p => p.单据流程); LayoutListViewColumns <单据流程状态记录>(statusListView, x => x.创建者, x => x.创建时间, x => x.修改者, x => x.修改时间); }
public override void LayoutDetailView() { DetailViewLayout.ClearNodes(); //var mst = DetailView.Items["StaticText"]; //if (mst == null) //{ // var t = DetailView.Items.AddNode<IModelStaticText>("StaticText"); // t.Text = "请在菜单中[填加指令],并选择相应的子级项目."; // mst = t; //} //var msg = DetailViewLayout.AddNode<IModelLayoutViewItem>("Message"); //msg.ViewItem = mst; var group = HGroup(100, x => x.Code); var item = group.First() as IModelLayoutViewItem; item.ShowCaption = false; base.LayoutDetailView(); }
public override void LayoutDetailView() { base.LayoutDetailView(); DetailViewLayout.ClearNodes(); }
public override void LayoutDetailView() { DetailViewLayout.ClearNodes(); var mc = DetailView.Items["MasterConverter.Code"]; if (mc == null) { mc = DetailView.Items.AddNode <IModelPropertyEditor>("MasterConverter.Code"); mc.SetValue("PropertyName", mc.Id); } var cc = DetailView.Items["ChildrenConverter.Code"]; if (cc == null) { cc = DetailView.Items.AddNode <IModelPropertyEditor>("ChildrenConverter.Code"); cc.SetValue("PropertyName", cc.Id); } HGroup(10, x => x.Caption); HGroup(20, x => x.From, x => x.To); HGroup(30, x => x.MultiGenerate, x => x.明细生效条件); HGroup(40, x => x.生效条件, x => x.Disable); HGroup(50, x => x.动作类型, x => x.序号); HGroup(55, x => x.目标类型); HGroup(60, x => x.显示编辑界面, x => x.自动保存); var tabs = TabbedGroup(80, x => x.MasterConverter.Code, x => x.ChildrenConverter.Code); var t1 = tabs.First(); var t2 = tabs.Last(); t1.Caption = "主表映射"; t2.Caption = "明细映射"; var viewItem = tabs.First().First() as IModelLayoutViewItem; viewItem.CaptionLocation = DevExpress.Utils.Locations.Top; viewItem.ShowCaption = false; var v2 = tabs.Last().First() as IModelLayoutViewItem; v2.CaptionLocation = DevExpress.Utils.Locations.Top; v2.ShowCaption = false; //HGroup(70, x => x.改变状态条件, x => x.改变状态); //HGroup(80, x => x.目标单据状态条件, x => x.目标单据状态); //HGroup(90, x => x.序号, x => x.分组标记); //TabbedGroup(100, x => x.MasterMapping, x => x.ItemsMapping); //var masterMappinListView = GetChildListView(x => x.MasterMapping); //(masterMappinListView as IModelListViewSetting).DisableShowDetailView = true; //masterMappinListView.AllowEdit = true; //masterMappinListView.SetNewItemRow(DevExpress.ExpressApp.NewItemRowPosition.Bottom); //LayoutListViewColumns<MasterPropertyMapping>(masterMappinListView, x => x.ToProperty, x => x.FromProperty, x => x.Expression); //var detailMappingListView = GetChildListView(x => x.ItemsMapping); //(detailMappingListView as IModelListViewSetting).DisableShowDetailView = true; //detailMappingListView.AllowEdit = true; //detailMappingListView.SetNewItemRow(DevExpress.ExpressApp.NewItemRowPosition.Bottom); //LayoutListViewColumns<ItemsPropertyMapping>(detailMappingListView, x => x.ToProperty, x => x.FromProperty, x => x.Expression); //GetChildListView(x => x.MasterMapping).DataAccessMode = DevExpress.ExpressApp.CollectionSourceDataAccessMode.Client; //GetChildListView(x => x.ItemsMapping).DataAccessMode = DevExpress.ExpressApp.CollectionSourceDataAccessMode.Client; base.LayoutDetailView(); }