private void btnBefore_Click(object sender, EventArgs e) { QuestionE2 questionE2 = new QuestionE2(); questionE2.TopMost = false; questionE2.ShowDialog(); this.Close(); }
private void btnNext_Click(object sender, EventArgs e) { string questionResultE01 = radCheckE01A.Checked?"A":radCheckE01B.Checked?"B":""; M_QuestionnaireResultDetail questionE01 = new M_QuestionnaireResultDetail(); questionE01.QuestionCode = Public.QuestionnaireCode.ZaoAiWeiAi + ".E01"; questionE01.QuestionType = 1; //单选 questionE01.QuestionResult = questionResultE01; ClientInfo.AddQuestionToQuestionnaire(questionE01, QuestionnaireCode.ZaoAiWeiAi); if (radCheckE01A.Checked) { if (string.IsNullOrEmpty(this.txtE011.Text)) { MessageBox.Show("请输入您有哪种癌症病史!"); this.label4.ForeColor = Color.Red; return; } string questionResultA = this.txtE011.Text; M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail(); questionA.QuestionCode = Public.QuestionnaireCode.ZaoAiWeiAi + ".E01.1"; questionA.QuestionType = 3; //填空 questionA.QuestionResult = questionResultA; ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiWeiAi); } string questionResult = radCheckE04A.Checked?"A":radCheckE04B.Checked?"B":""; M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail(); question.QuestionCode = Public.QuestionnaireCode.ZaoAiWeiAi + ".E04"; question.QuestionType = 1; //单选 question.QuestionResult = questionResult; ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiWeiAi); if (radCheckE04A.Checked) { string questionResultA = radCheckE041A.Checked ? "A" : radCheckE041B.Checked?"B":""; M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail(); questionA.QuestionCode = Public.QuestionnaireCode.ZaoAiWeiAi + ".E04.1"; questionA.QuestionType = 1; //单选 questionA.QuestionResult = questionResultA; ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiWeiAi); } QuestionE2 questionE2 = new QuestionE2(); questionE2.TopMost = false; questionE2.ShowDialog(); this.Close(); }