} //END getFormFieldColumns //=================================================================================== /// <summary> /// This method appends the column objects for a list of form fields. /// </summary> /// <param name="Field">Evado.Digital.Model.EvFormField object</param> /// <param name="ResultData"> Evado.Integration.Model.EiData object</param> //----------------------------------------------------------------------------------- //private void getCheckBoxFieldColumn ( public void getCheckBoxFieldColumn( Evado.Digital.Model.EdRecordField Field, Evado.Integration.Model.EiData ResultData) { this.LogMethod("getCheckBoxFieldColumn method."); // // Iterate through the list of checkbox options // for (int count = 0; count < Field.Design.OptionList.Count; count++) { // // get the option // Evado.Model.EvOption option = Field.Design.OptionList [count]; // //The default data type is text. // ResultData.AddColumn( Evado.Integration.Model.EiDataTypes.Boolean, Field.FieldId + "_" + count + "_" + option.Value); } //END option iteration loop. } //END getFormFieldColumns method
}//END Query method. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #endregion #region general form field methods. //=================================================================================== /// <summary> /// This method appends the column objects for a list of form fields. /// </summary> /// <param name="FieldList">List of Evado.Digital.Model.EvFormField objects</param> /// <param name="ResultData"> Evado.Integration.Model.EiData object</param> //----------------------------------------------------------------------------------- public void getFormFieldColumns( List <Evado.Digital.Model.EdRecordField> FieldList, Evado.Integration.Model.EiData ResultData) { this.LogMethod("getFormFieldColumns method."); this.LogDebug("FieldList.Count: " + FieldList.Count); // // Iterate through the field list creating column object for each field object. // foreach (Evado.Digital.Model.EdRecordField field in FieldList) { this.LogDebug("Field: " + field.FieldId + ", Type: " + field.TypeId); // // add the correct column type for the field data type. // switch (field.TypeId) { case Evado.Model.EvDataTypes.Boolean: { this.LogDebug("ADD: Boolean Column"); // //The default data type is text. // ResultData.AddColumn( Evado.Integration.Model.EiDataTypes.Boolean, field.FieldId); break; } case Evado.Model.EvDataTypes.Numeric: { this.LogDebug("ADD: Floating_Point Column"); // //The default data type is text. // ResultData.AddColumn( Evado.Integration.Model.EiDataTypes.Floating_Point, field.FieldId); break; } case Evado.Model.EvDataTypes.Date: { this.LogDebug("ADD: DateTime Column"); // //The default data type is text. // ResultData.AddColumn( Evado.Integration.Model.EiDataTypes.Date, field.FieldId); break; } case Evado.Model.EvDataTypes.Check_Box_List: { this.LogDebug("ADD: Check_Button_List columns"); this.getCheckBoxFieldColumn(field, ResultData); break; } case Evado.Model.EvDataTypes.Table: case Evado.Model.EvDataTypes.Special_Matrix: { this.LogDebug("ADD: Table columns"); this.getTableFieldColumn(field, ResultData); break; } default: { this.LogDebug("ADD: Text Column"); // //The default data type is text. // ResultData.Columns.Add(new Evado.Integration.Model.EiColumnParameters( Evado.Integration.Model.EiDataTypes.Text, field.FieldId)); break; } } //END data type switch } //END field iteration loop } //END getFormFieldColumns