C# Class OpenSlx.Lib.Web.Controls.SimpleLookup

Inheritance: LookupControl
Mostrar archivo Open project: nicocrm/OpenSlx

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Load the lookup properties from the lookup metadata

OnPreRender ( EventArgs e ) : void

Fix for the "clear" image. This image is not exposed like the lookup image, so we have to use a bit of javascript to replace it on the fly. Also, fix to enable default sort

Private Methods

Method Description
DecomposePath ( SessionFactoryImpl sf, AbstractEntityPersister root, String path, String format ) : String

Path represents path to a field, based at origin. Return the field object. A field path is normally of the form: Source Table:Path where Path is recursively defined as either: FieldName or From Field=To Field.To Table!Path

FindJoinedEntity ( SessionFactoryImpl sf, AbstractEntityPersister root, string toTable, string fromField, string &propertyName ) : AbstractEntityPersister

Find a join. Return the name of the corresponding property.

FormatProperty ( String propName, IType propType, String format ) : String

Attempt to fix up the property according to the format. If it fails, return null.

GetLookupFields ( ISession sess, String tableName, String lookupName ) : IEnumerable

Return array of fields for the lookup (a pair field name, caption)

GetLookupProperties ( String lookupName, String entityTypeName ) : LookupPropertyCollection

Attempt to extract properties from the lookup metadata. The result of this operation is cached.

Method Details

OnInit() protected method

Load the lookup properties from the lookup metadata
protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void

OnPreRender() protected method

Fix for the "clear" image. This image is not exposed like the lookup image, so we have to use a bit of javascript to replace it on the fly. Also, fix to enable default sort
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void