Class FormController
Represents form controller.
Inherited Members
Namespace: Mediachase.BusinessFoundation.MetaForm
Assembly: Mediachase.BusinessFoundation.dll
Version: 10.8.0Syntax
public class FormController : BaseFormController
Constructors
FormController(FormDocument)
Initializes a new instance of the FormController class.
Declaration
public FormController(FormDocument fDocument)
Parameters
Type | Name | Description |
---|---|---|
FormDocument | fDocument | The f document. |
Fields
BaseFormType
Declaration
public const string BaseFormType = "[MC_BaseForm]"
Field Value
Type | Description |
---|---|
System.String |
CreateFormType
Declaration
public const string CreateFormType = "[MC_CreateForm]"
Field Value
Type | Description |
---|---|
System.String |
CustomControlType
Declaration
public const string CustomControlType = "CustomControl"
Field Value
Type | Description |
---|---|
System.String |
CustomFormType
Declaration
public const string CustomFormType = "[MC_CustomForm]"
Field Value
Type | Description |
---|---|
System.String |
DefaultLabelValue
Declaration
public const string DefaultLabelValue = "[MC_DefaultLabel]"
Field Value
Type | Description |
---|---|
System.String |
GeneralViewFormType
Declaration
public const string GeneralViewFormType = "[MC_GeneralViewForm]"
Field Value
Type | Description |
---|---|
System.String |
GeneralViewHistoryFormType
Declaration
public const string GeneralViewHistoryFormType = "[MC_GeneralViewForm_History]"
Field Value
Type | Description |
---|---|
System.String |
MetaPrimitiveControlType
Declaration
public const string MetaPrimitiveControlType = "MetaPrimitive"
Field Value
Type | Description |
---|---|
System.String |
PublicEditFormType
Declaration
public const string PublicEditFormType = "[MC_PublicEditForm]"
Field Value
Type | Description |
---|---|
System.String |
ShortViewFormType
Declaration
public const string ShortViewFormType = "[MC_ShortViewForm]"
Field Value
Type | Description |
---|---|
System.String |
Methods
AddMetaPrimitive(String, String, String)
Adds the meta primitive.
Declaration
public static void AddMetaPrimitive(string metaClassName, string formName, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
System.String | fieldName | Name of the field. |
AutoCreateFields(String, MetaClass, ref Int32, List<FormItem>)
Creates meta class's title field.
Declaration
protected static void AutoCreateFields(string metaUITypeId, MetaClass mc, ref int rowIndex, List<FormItem> newFields)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaUITypeId | The meta form type to create. |
MetaClass | mc | The meta class to create its fields. |
System.Int32 | rowIndex | Index of the row. |
System.Collections.Generic.List<FormItem> | newFields | All created fields will be added to this list. |
CreateFormDocument(String, String)
Creates the form document.
Declaration
public static FormDocument CreateFormDocument(string metaClassName, string formName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
Returns
Type | Description |
---|---|
FormDocument |
CreateFormDocument(String, String, String)
Creates the form document.
Declaration
public static FormDocument CreateFormDocument(string metaClassName, string formName, string metaUITypeId)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
System.String | metaUITypeId | The meta UI type id. |
Returns
Type | Description |
---|---|
FormDocument |
CreateFormDocument(String, String, String, String, Unit, Int32)
Creates the form document.
Declaration
public static FormDocument CreateFormDocument(string metaClassName, string formName, string metaUITypeId, string columns, Unit width, int cellPadding)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
System.String | metaUITypeId | The meta UI type id. |
System.String | columns | The columns. |
System.Web.UI.WebControls.Unit | width | The width. |
System.Int32 | cellPadding | The cell padding. |
Returns
Type | Description |
---|---|
FormDocument |
CreateFormDocument(String, String, String, Unit, Int32)
Creates the form document.
Declaration
public static FormDocument CreateFormDocument(string metaClassName, string formName, string columns, Unit width, int cellPadding)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
System.String | columns | The columns. |
System.Web.UI.WebControls.Unit | width | The width. |
System.Int32 | cellPadding | The cell padding. |
Returns
Type | Description |
---|---|
FormDocument |
CreateFormItemPrimitive(Int32, Int32, Int32, Int32, Boolean, String, Unit, Int16, String, Boolean)
Creates the form item primitive.
Declaration
public static FormItem CreateFormItemPrimitive(int rowIndex, int cellIndex, int rowSpan, int colSpan, bool showTitle, string title, Unit labelWidth, short tabIndex, string sourceName, bool readOnly)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Index of the row. |
System.Int32 | cellIndex | Index of the cell. |
System.Int32 | rowSpan | The row span. |
System.Int32 | colSpan | The col span. |
System.Boolean | showTitle | if set to |
System.String | title | The title. |
System.Web.UI.WebControls.Unit | labelWidth | Width of the label. |
System.Int16 | tabIndex | Index of the tab. |
System.String | sourceName | Name of the source. |
System.Boolean | readOnly | if set to |
Returns
Type | Description |
---|---|
FormItem |
GetControlPath(String, String, String)
Gets the control path.
Declaration
public static string GetControlPath(string formType, string metaClassName, string mfName)
Parameters
Type | Name | Description |
---|---|---|
System.String | formType | Type of the form. |
System.String | metaClassName | Name of the meta class. |
System.String | mfName | Name of the mf. |
Returns
Type | Description |
---|---|
System.String |
GetControlPath(String, String, String, String)
Gets the control path.
Declaration
public static string GetControlPath(string formType, string metaClassName, string mfName, string placeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | formType | Type of the form. |
System.String | metaClassName | Name of the meta class. |
System.String | mfName | Name of the mf. |
System.String | placeName | Name of the place. |
Returns
Type | Description |
---|---|
System.String |
GetMetaField(String, String)
Gets the meta field.
Declaration
public static MetaField GetMetaField(string metaClassName, string mfName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | mfName | Name of the mf. |
Returns
Type | Description |
---|---|
MetaField |
Init()
Inits this instance.
Declaration
public static void Init()
LoadFormDocument(String, String)
Loads the form document.
Declaration
public static FormDocument LoadFormDocument(string metaClassName, string formName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
Returns
Type | Description |
---|---|
FormDocument |
ReCreateFormDocument(String, String)
Res the create form document.
Declaration
public static FormDocument ReCreateFormDocument(string metaClassName, string formName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
Returns
Type | Description |
---|---|
FormDocument |
ReCreateFormDocument(String, String, String, String, Int32)
Res the create form document.
Declaration
public static FormDocument ReCreateFormDocument(string metaClassName, string formName, string metaUITypeId, string columns, int cellpadding)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | formName | Name of the form. |
System.String | metaUITypeId | The meta UI type id. |
System.String | columns | The columns. |
System.Int32 | cellpadding | The cellpadding. |
Returns
Type | Description |
---|---|
FormDocument |