Пример #1
0
        private void GetInfo(Foresight.DataAccess.User user)
        {
            var data = new Foresight.DataAccess.Wechat_SurveyQuestion();

            data.SurveyID            = SurveyID;
            data.QuestionContent     = user.NickName;
            data.QuestionType        = 1;
            data.SortOrder           = 1;
            data.AddTime             = DateTime.Now;
            data.AddMan              = WebUtil.GetUser(this.Context).LoginName;
            data.CoverImg            = user.HeadImg;
            data.QuestionDescription = user.Summary;
            data.QuestionDescription = user.Summary;
            data.IsDisabled          = false;
            data.IsDeleted           = false;
            data.UserID              = user.UserID;
            data.Save();
            this.QuestionID = data.ID;
            this.tdQuestionContent.Value = data.QuestionContent;
            this.tdSortOrder.Value       = data.SortOrder.ToString();
            this.SurveyID = data.SurveyID;
            this.tdQuestionSummary.Value = data.QuestionSummary;
            this.hdContent.Value         = data.QuestionDescription;
            this.tdIsDisabled.Checked    = !data.IsDisabled;
        }
 private void SetInfo(Foresight.DataAccess.Wechat_SurveyQuestion data)
 {
     this.tdQuestionContent.Value = data.QuestionContent;
     this.tdQuestionType.Value    = data.QuestionType.ToString();
     this.tdSortOrder.Value       = data.SortOrder.ToString();
     this.SurveyID = data.SurveyID;
 }
Пример #3
0
 private void SetInfo(Foresight.DataAccess.Wechat_SurveyQuestion data)
 {
     this.tdQuestionContent.Value = data.QuestionContent;
     this.tdSortOrder.Value       = data.SortOrder.ToString();
     this.SurveyID = data.SurveyID;
     this.tdQuestionSummary.Value = data.QuestionSummary;
     this.hdContent.Value         = data.QuestionDescription;
 }