Пример #1
0
        public bool Insert(int FormFieldId, string FieldValue, string FieldValueHelp, int FieldGrade, bool IsOther, decimal ScaleStart, decimal ScaleEnd)
        {
            FormFieldValueDAC formfieldvalueComponent = new FormFieldValueDAC();
            int FormFieldValueId = 0;

            return(formfieldvalueComponent.InsertNewFormFieldValue(ref FormFieldValueId, FormFieldId, FieldValue, FieldValueHelp, FieldGrade, IsOther, ScaleStart, ScaleEnd));
        }
Пример #2
0
        public bool Insert(FormFieldValue formfieldvalue)
        {
            int autonumber = 0;
            FormFieldValueDAC formfieldvalueComponent = new FormFieldValueDAC();
            bool endedSuccessfuly = formfieldvalueComponent.InsertNewFormFieldValue(ref autonumber, formfieldvalue.FormFieldId, formfieldvalue.FieldValue, formfieldvalue.FieldValueHelp, formfieldvalue.FieldGrade, formfieldvalue.IsOther, formfieldvalue.ScaleStart, formfieldvalue.ScaleEnd);

            if (endedSuccessfuly)
            {
                formfieldvalue.FormFieldValueId = autonumber;
            }
            return(endedSuccessfuly);
        }