private void btnBefore_Click(object sender, EventArgs e) { QuestionE1 questionE1 = new QuestionE1(); questionE1.TopMost = false; questionE1.ShowDialog(); this.Close(); }
private void btnNext_Click(object sender, EventArgs e) { string questionResult = this.radCheckC05A.Checked ? "A" : radCheckC05B.Checked ? "B" : radCheckC05C.Checked?"C":""; M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail(); question.QuestionCode = Public.QuestionnaireCode.ZaoAiGanAi + ".C05"; question.QuestionType = 1; //单选 question.QuestionResult = questionResult; ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiGanAi); if (radCheckC05B.Checked) { if (string.IsNullOrEmpty(this.txtC051.Text)) { MessageBox.Show("请输入您的酒精摄入量!"); this.label2.ForeColor = Color.Red; return; } string questionResultB = this.txtC051.Text; M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail(); questionB.QuestionCode = Public.QuestionnaireCode.ZaoAiGanAi + ".C05.1"; questionB.QuestionType = 3; //单选 questionB.QuestionResult = questionResultB; ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiGanAi); } if (radCheckC05C.Checked) { string questionResultC = this.radCheckC052A.Checked ? "A" : radCheckC052B.Checked ? "B" : radCheckC052C.Checked ? "C" : radCheckC052D.Checked?"D":""; M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail(); questionC.QuestionCode = Public.QuestionnaireCode.ZaoAiGanAi + ".C05.2"; questionC.QuestionType = 1; //单选 questionC.QuestionResult = questionResultC; ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiGanAi); } QuestionE1 questionE1 = new QuestionE1(); questionE1.TopMost = false; questionE1.ShowDialog(); //questionE1.Show(); this.Close(); }