예제 #1
0
        public CuteSurvey.SurveyFactory.Component.Question Duplicate(CuteSurvey.SurveyFactory.Component.Question question)
        {
            int key = Save(question);

            if (key > 0)
            {
                question.QuestionID = key;
                return(question);
            }
            else
            {
                return(null);
            }
        }
예제 #2
0
 public bool Remove(CuteSurvey.SurveyFactory.Component.Question question)
 {
     qust = new Data.Questions(conn);
     return(qust.Remove(question.TemplateID, question.QuestionID));
 }
예제 #3
0
 public bool AddQuestion(CuteSurvey.SurveyFactory.Component.Question question)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public bool Update(CuteSurvey.SurveyFactory.Component.Question question)
 {
     qust = new Data.Questions(conn);
     return(qust.Update(question.TemplateID, question.QuestionID, question.QuestionName, question.Comments, question.Note, question.IsRequired,
                        question.MaxLength, (int)question.SelectionChoice, question.EnableComment, question.PageNo, question.ValidationMessage));
 }