protected override void InitPageMakers() { AddPageMaker(new PageMakerInfo(InternalRazorUtil.IsEditStyle(true), CreateEditPostPageMaker())); PageMakers.Add(new PageMakerInfo(InternalRazorUtil.IsOperation(DbListSource.TAB_STYLE_OPERATION), new JsonObjectPageMaker())); AddPageMaker(new PageMakerInfo(InternalRazorUtil.IsStyle(PageStyle.Delete), CreateDeletePostPageMaker())); }
protected override void InitPageTemplate() { AddPageTemplate(new PageTemplateInfo( InternalRazorUtil.IsStyle(PageStyle.List), ListTemplate)); AddPageTemplate(new PageTemplateInfo( InternalRazorUtil.IsStyle(PageStyle.Detail), DetailTemplate)); AddPageTemplate(new PageTemplateInfo( InternalRazorUtil.IsEditStyle(false), EditTemplate)); }
protected override void InitPageTemplate() { AddPageTemplate(new PageTemplateInfo( InternalRazorUtil.IsOperation("", null), TreeTemplate)); AddPageTemplate(new PageTemplateInfo( InternalRazorUtil.IsStyle(PageStyle.Detail), DetailTemplate)); AddPageTemplate(new PageTemplateInfo( InternalRazorUtil.IsEditStyle(false), EditTemplate)); }
public override void SetPageData(ISource source, IInputData input, OutputData outputData, object pageData) { PageStyle style = input.Style.Style; if (style == PageStyle.Insert || style == PageStyle.Update) { InternalRazorUtil.SetDialogMode(pageData, true); } }
protected override void InitPageMakers() { AddPageMaker(new PageMakerInfo(InternalRazorUtil.IsStyle(PageStyle.List), new JsonObjectPageMaker())); AddPageMaker(new PageMakerInfo(InternalRazorUtil.IsOperation( TreeOperationSource.MOVE_NODE, TreeOperationSource.MOVE_UP_DOWN), new PostPageMaker(ContentDataType.Json, PageStyle.Custom, new CustomUrlConfig()))); AddPageMaker(new PageMakerInfo(InternalRazorUtil.IsEditStyle(true, PageStyle.Insert), CreateEditPostPageMaker(PageStyle.Insert))); AddPageMaker(new PageMakerInfo(InternalRazorUtil.IsEditStyle(true, PageStyle.Update), CreateEditPostPageMaker(PageStyle.Update))); AddPageMaker(new PageMakerInfo(InternalRazorUtil.IsStyle(PageStyle.Delete), new PostPageMaker(ContentDataType.Json, PageStyle.Custom, new CustomUrlConfig(false, false, "ListRefresh")))); }
public override void SetPageData(ISource source, IInputData input, OutputData outputData, object pageData) { InternalRazorUtil.SetDialogMode(pageData, true); }