/ Assembly List / LJCFacilityManager / PersonModule

Namespace - LJCFacilityManager


Syntax

C#
public class PersonModule : UserControl

The Tab Composite User Controls

Remarks

The Person Module Tab contains the PersonGrid control. This grid is populated based on a Data View.

A Data View is a user query that defines the retrieved data. It defines the retrieved columns, joins, filters and row order. A DbRequest object is created from the View definition. The DbRequest object is then used to retrieve the data. The ViewHelper object is used to access the View definition.

A Data View also defines the displayed grid columns and column order.

A custom View object is created that manages the Views for a specific table. It is normally named "ViewTableName" where TableName is the name of the base table for the view. So in this case the View object is named ViewPerson.

If a View for a table is not available, then a default view is created and selected. The ViewPerson object has a CreateStandardView() method to create a default view.

A static grid setup method is called in the InitializeControls() method. In this case the grid is dynamically configured based on the View. So the private SetupGridPerson() method is called when the View is selected.

If the View does not have grid columns defined, then the ViewPerson object SaveDefaultGridColumns() method is called to create the default grid columns.

The grid column values are not restored until after the grid has been configured from the View.

The DataRetrievePersonView() method is called to populate the control.

Public Methods
#ctor Initializes an object instance.
ClosePage Closes the current page.
LJCInit Initializes the module.
LJCTabs Returns a reference to the module tab control.
4 Methods

Private Methods
Dispose Clean up any resources being used.
InitializeComponent Required method for Designer support - do not modify the contents of this method with the code editor.
OnPageClose Calls the PageClose event handlers.
3 Methods

Properties
CloseTabPage Gets or sets the close tab page.
ControlValues Gets or sets the ControlValues item.
LJCHelpFile The help file name.
LJCProgramName Gets the module assembly name.

Fields
components Required designer variable.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.