コード例 #1
0
        public bool Insert( int FormSubmissionId,  int FormFieldId,  string Answer,  int FormFieldColumnId,  int FormFieldValueId,  int Grade)
        {
            FormSubmissionAnswerDAC formsubmissionanswerComponent = new FormSubmissionAnswerDAC();
            int FormSubmissionAnswerId = 0;

            return formsubmissionanswerComponent.InsertNewFormSubmissionAnswer( ref FormSubmissionAnswerId,  FormSubmissionId,  FormFieldId,  Answer,  FormFieldColumnId,  FormFieldValueId,  Grade);
        }
コード例 #2
0
 public bool Insert(FormSubmissionAnswer formsubmissionanswer)
 {
     int autonumber = 0;
     FormSubmissionAnswerDAC formsubmissionanswerComponent = new FormSubmissionAnswerDAC();
     bool endedSuccessfuly = formsubmissionanswerComponent.InsertNewFormSubmissionAnswer( ref autonumber,  formsubmissionanswer.FormSubmissionId,  formsubmissionanswer.FormFieldId,  formsubmissionanswer.Answer,  formsubmissionanswer.FormFieldColumnId,  formsubmissionanswer.FormFieldValueId,  formsubmissionanswer.Grade);
     if(endedSuccessfuly)
     {
         formsubmissionanswer.FormSubmissionAnswerId = autonumber;
     }
     return endedSuccessfuly;
 }