private void btnNext_Click(object sender, EventArgs e) { string questionResult = radCheckE01A.Checked ? "A" : radCheckE01B.Checked?"B":""; M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail(); question.QuestionCode = Public.QuestionnaireCode.ZaoAiRuXianAi + ".E01"; question.QuestionType = 1; //单选 question.QuestionResult = questionResult; ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiRuXianAi); 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.ZaoAiRuXianAi + ".E01.1"; questionA.QuestionType = 3; //单选 questionA.QuestionResult = questionResultA; ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi); } QuestionW1 questionW1 = new QuestionW1(); questionW1.TopMost = false; questionW1.ShowDialog(); this.Close(); }
private void btnBefore_Click(object sender, EventArgs e) { QuestionW1 questionW1 = new QuestionW1(); questionW1.TopMost = false; questionW1.ShowDialog(); this.Close(); }