private void btnBefore_Click(object sender, EventArgs e) { QuestionB1 questionB1 = new QuestionB1(); questionB1.TopMost = false; questionB1.ShowDialog(); this.Close(); }
private void btnNext_Click(object sender, EventArgs e) { string questionResultA = ""; if (radCheckA03A.Checked) { questionResultA = "A"; } if (radCheckA03B.Checked) { questionResultA = "B"; } M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail(); questionA.QuestionCode = Public.QuestionnaireCode.ZaoAiWeiAi + ".A03"; questionA.QuestionType = 1; //单选 questionA.QuestionResult = questionResultA; ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiWeiAi); string questionResultB = this.radCheckA09A.Checked ? "A" : radCheckA09B.Checked?"B":""; M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail(); questionB.QuestionCode = Public.QuestionnaireCode.ZaoAiWeiAi + ".A09"; questionB.QuestionType = 1; //单选 questionB.QuestionResult = questionResultB; ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiWeiAi); if (radCheckA09A.Checked) { string strResult = ""; if (chk1.Checked) { strResult += "A,"; } if (chk2.Checked) { strResult += "B,"; } if (chk3.Checked) { strResult += "C,"; } if (chk4.Checked) { strResult += "D,"; } if (chk5.Checked) { strResult += "E,"; } if (chk6.Checked) { strResult += "F,"; } if (chk7.Checked) { strResult += "G,"; } if (chk8.Checked) { strResult += "H"; } var question = new M_QuestionnaireResultDetail(); question.QuestionCode = Public.QuestionnaireCode.ZaoAiWeiAi + ".A09.1"; question.QuestionType = 2; //单选 question.QuestionResult = strResult; ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiWeiAi); } var questionB1 = new QuestionB1(); questionB1.TopMost = false; questionB1.ShowDialog(); this.Close(); }