private static List <DynamicObj> PrepareFieldList(IDBEntity entity) { var fields = entity.GetLayoutFields(EntityLayoutType.None); var coll = new List <DynamicObj>(); foreach (var f in fields) { var d = new DynamicObj(); d.Add("Name", f.Name); d.Add("Text", f.Text); d.Add("Type", f.Type); d.Add("WidgetType", f.ControlType); d.Add("Isrequired", f.IsRequired); d.Add("ShouldFullRow", EntityLayoutService.IsWidgetOnFullRow(f.ControlType)); coll.Add(d); } return(coll); }
public virtual TView Build() { var service = new EntityLayoutService(Context, EntityId); return(View = service.PrepareView(this.ItemTypeId, EntityLayoutType.None)); }
public virtual Model.Layout.TView GetDefaultLayoutView(EntityLayoutType layoutType) { return(EntityLayoutService.CreateDefault(this, layoutType)); }