Exemplo n.º 1
0
        public bool Insert(int FormDocumentId, int FormFieldTypeId, int FieldParentId, string Title, string HelpText, int FormFieldOrder, int FieldDegree, bool HasOther, string DefaultValue, bool IsRequired, string RegularExpValidation, string ErrorText, bool IsContactEmail, bool IsContactMobile, int ColumnCount, bool IsSection, bool IsPageBreak)
        {
            FormFieldDAC formfieldComponent = new FormFieldDAC();
            int          FormFieldId        = 0;

            return(formfieldComponent.InsertNewFormField(ref FormFieldId, FormDocumentId, FormFieldTypeId, FieldParentId, Title, HelpText, FormFieldOrder, FieldDegree, HasOther, DefaultValue, IsRequired, RegularExpValidation, ErrorText, IsContactEmail, IsContactMobile, ColumnCount, IsSection, IsPageBreak));
        }
Exemplo n.º 2
0
        public bool Insert(FormField formfield)
        {
            int          autonumber         = 0;
            FormFieldDAC formfieldComponent = new FormFieldDAC();
            bool         endedSuccessfuly   = formfieldComponent.InsertNewFormField(ref autonumber, formfield.FormDocumentId, formfield.FormFieldTypeId, formfield.FieldParentId, formfield.Title, formfield.HelpText, formfield.FormFieldOrder, formfield.FieldDegree, formfield.HasOther, formfield.DefaultValue, formfield.IsRequired, formfield.RegularExpValidation, formfield.ErrorText, formfield.IsContactEmail, formfield.IsContactMobile, formfield.ColumnCount, formfield.IsSection, formfield.IsPageBreak);

            if (endedSuccessfuly)
            {
                formfield.FormFieldId = autonumber;
            }
            return(endedSuccessfuly);
        }