internal RequestPage(IHasRequestPage container) { Container = container; Properties = new RequestPageProperties(this); Properties.ActionList.Page = this; Controls = new PageControls(this); }
protected void ProcessRequestPage(IHasRequestPage @object) { @object.RequestPage.Properties.AutoSplitKey = NullableBooleanFromSwitch(nameof(RequestPageAutoSplitKey)); @object.RequestPage.Properties.CaptionML.Set(RequestPageCaptionML); @object.RequestPage.Properties.CardPageID = RequestPageCardPageID; @object.RequestPage.Properties.DataCaptionExpr = RequestPageDataCaptionExpr; @object.RequestPage.Properties.DataCaptionFields.AddRange(RequestPageDataCaptionFields); @object.RequestPage.Properties.DeleteAllowed = NullableBooleanFromSwitch(nameof(RequestPageDeleteAllowed)); @object.RequestPage.Properties.Description = RequestPageDescription; @object.RequestPage.Properties.Editable = NullableBooleanFromSwitch(nameof(RequestPageEditable)); @object.RequestPage.Properties.InsertAllowed = NullableBooleanFromSwitch(nameof(RequestPageInsertAllowed)); @object.RequestPage.Properties.InstructionalTextML.Set(RequestPageInstructionalTextML); @object.RequestPage.Properties.LinksAllowed = NullableBooleanFromSwitch(nameof(RequestPageLinksAllowed)); @object.RequestPage.Properties.ModifyAllowed = NullableBooleanFromSwitch(nameof(RequestPageModifyAllowed)); @object.RequestPage.Properties.MultipleNewLines = NullableBooleanFromSwitch(nameof(RequestPageMultipleNewLines)); @object.RequestPage.Properties.OnAfterGetCurrRecord.Set(RequestPageOnAfterGetCurrRecord); @object.RequestPage.Properties.OnAfterGetRecord.Set(RequestPageOnAfterGetRecord); @object.RequestPage.Properties.OnClosePage.Set(RequestPageOnClosePage); @object.RequestPage.Properties.OnDeleteRecord.Set(RequestPageOnDeleteRecord); @object.RequestPage.Properties.OnFindRecord.Set(RequestPageOnFindRecord); @object.RequestPage.Properties.OnInit.Set(RequestPageOnInit); @object.RequestPage.Properties.OnInsertRecord.Set(RequestPageOnInsertRecord); @object.RequestPage.Properties.OnModifyRecord.Set(RequestPageOnModifyRecord); @object.RequestPage.Properties.OnNewRecord.Set(RequestPageOnNewRecord); @object.RequestPage.Properties.OnNextRecord.Set(RequestPageOnNextRecord); @object.RequestPage.Properties.OnOpenPage.Set(RequestPageOnOpenPage); @object.RequestPage.Properties.OnQueryClosePage.Set(RequestPageOnQueryClosePage); @object.RequestPage.Properties.Permissions.Set(RequestPagePermissions); @object.RequestPage.Properties.PopulateAllFields = NullableBooleanFromSwitch(nameof(RequestPagePopulateAllFields)); @object.RequestPage.Properties.SaveValues = NullableBooleanFromSwitch(nameof(RequestPageSaveValues)); @object.RequestPage.Properties.ShowFilter = NullableBooleanFromSwitch(nameof(RequestPageShowFilter)); @object.RequestPage.Properties.SourceTable = RequestPageSourceTable; @object.RequestPage.Properties.SourceTableTemporary = NullableBooleanFromSwitch(nameof(RequestPageSourceTableTemporary)); @object.RequestPage.Properties.SourceTableView.Key = RequestPageSourceTableViewKey; @object.RequestPage.Properties.SourceTableView.Order = RequestPageSourceTableViewOrder; var subObjects = RequestPageSubObjects.Invoke().Select(o => o.BaseObject); @object.RequestPage.Controls.AddRange(subObjects.OfType <PageControlBase>()); @object.RequestPage.Properties.ActionList.AddRange(subObjects.OfType <PageActionBase>()); @object.RequestPage.Properties.SourceTableView.TableFilter.AddRange(subObjects.OfType <TableFilterLine>()); }