Click or drag to resize

Form Class

A form defines how a data object is rendered in a web form.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelForm

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class Form : IObjectWithId, IObjectWithGuid, IObjectWithDataVersion, 
	ICloneable, IEntityObject, IObjectWithLastChangedInfo

The Form type exposes the following members.

Constructors
  NameDescription
Public methodForm
Form
Top
Properties
  NameDescription
Public propertyChangedBy
Change by
Public propertyChangeTime
Change time
Public propertyCreatedBy
Created by
Public propertyCreateTime
Create time
Public propertyDataObjectTypeId
Skal være angivet hvis form ikke er processpecifik.
Public propertyDataVersion
Data version
Public propertyDescription
Description
Public propertyDispButtons
Display buttons
Public propertyHtmlInclude
Html include
Public propertyId
Form Id
Public propertyName
Name
Public propertyNumber
Number
Public propertyOnInitHandlerId
Angiver et BrowserEventHandlerId. Kan være 0.
Public propertyOnSubmitHandlerId
Angiver et BrowserEventHandlerId. Kan være 0.
Public propertyProcessTemplateId
Skal være angivet hvis form er processpecifik. Angiver i givet fald den process template som form tilhører.
Public propertyScreenElements
States which elements will be displayed in the form screen: headline menu.
Public propertyScriptFiles
Rummer et antal javascript fil-stier der skal inkluderes. Stierne kan både være relative til OE applikationen eller absolutte.
Public propertySections
Form section bases read only
Public propertySettings
Contains a number of settings for the form. Setting keys are case-insensitive. The characters '=' and ';' are neither allowed in the setting keys nor in the values. Use AssignSettings(string) to assign a delimited string with settings.
Public propertyShowReferencePanel
Show panel with file attachments.
Public propertyUId
UId
Top
Methods
  NameDescription
Public methodAddFormSections
Adds a list of form section objects to the fomr.
Public methodAddNewFormSectionWithFields
Returns a new (empty) form section with fields.
Public methodAddNewFormSectionWithText
Returns a new (empty) form section with text.
Public methodAssignSettings
Assigns a delimited string with settings.
Public methodCalculateChildrenVOrder
(Re)beregner vorder på form sections.
Public methodClone
Clone
Public methodCompareItems
Performs commparison of FormSectionBases with another form.
Public methodContainsField(Int32)
Returnerer true hvis et af formens felter er for den angivne type.
Public methodContainsField(Int32, Int32)
Returnerer true hvis et af formens felter indeholder den angivne property, og feltet samtidig er for den angivne type.
Public methodContainsField(FixedField, Int32)
Returnerer true hvis et af formens felter indeholder det angivne fixedfield, og feltet samtidig er for den angivne type.
Public methodContainsFieldFromTemplateObject
Returnerer true hvis et af formens felter er for det angivne template object.
Public methodGetDataObjectType
Returnerer dataobjecttype objektet fra cachen p.b.a. m_dataObjectTypeId. Dataobjecttype objektet er ikke indlejret i klassen. Dette for at minske størrelsen af objektgraferne a.h.t. remoting/serializering.
Public methodGetFormField
Returnerer det af formens felter, som matcher det angivne fixed field og dataobjecttypeid. Hvis templateObjectId er > 0, skal feltet endvidere matche dette eller ikke have et templateobjectid angivet. Hvis templateObjectId er > 0 accepteres et felt uden angivelse af templateobjectid kun hvis acceptDefaultField er true. Hvis der findes et felt uden angivelse af templateobjectid (og dette accepteres) har dette højere prioritet end et felt med angivelse af templateobjectid. Hvis der ikke findes et felt der matcher returneres null.
Public methodGetFormFields
Returns all fields from all the form sections.
Public methodGetFormFields(IntegerList)
Get form fields
Public methodGetFormFields(IntegerList, IntegerList)
Returns all fields from all the form sections.
Public methodGetFormSectionsWithFields
Collection of form sections with fields
Public methodPassesFilter
Checks if object can pass a specified filter
Public methodRemoveFormSection
Removes the form section from the form and reduces all form section's vorder for those with vorder greater than the removed form section
Public methodResetAll
Resets all ID's in the object. Used when a copy of the a object must be saved to the database.
Public methodSortChildrenVOrder
Sort children vertical order
Public methodToString
To string
(Overrides ObjectToString.)
Public methodValidForDataObjectType
Returns true of the form can be used for the provided type.
Public methodValidForProcess
Returns true of the form can be sued for the provided process.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIObjectWithDataVersion.GetDataVersion
Explicit interface implementationPrivate methodIObjectWithGuid.GetGuid
Explicit interface implementationPrivate methodIObjectWithId.GetId
Explicit interface implementationPrivate propertyIEntityObjectDataVersion
The data version of an entity object is incremented every time it gets updated. If the entity object class embeds other objects (like a DataObjectType embeds a number of BaseProperty objects) then the DataVersion is also "touched" when an embedded object changes.
Explicit interface implementationPrivate propertyIEntityObjectId
Unique id of the entity object within its entity type.
Top
See Also