private void btnBefore_Click(object sender, EventArgs e) { QuestionFour frmBefore = new QuestionFour(); frmBefore.TopMost = false; frmBefore.ShowDialog(); this.Close(); }
private void btnNext_Click(object sender, EventArgs e) { M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail(); if (rd1A.Checked) { question1.QuestionResult = "A,"; } if (rd1B.Checked) { question1.QuestionResult = "B,"; } //打分 question1.QuestionScore = !string.IsNullOrEmpty(question1.QuestionResult) ? (question1.QuestionResult.Contains("A") ? 10 : 0) : 0; AddResult(question1, QuestionnaireCode.KangFuJiZhu + ".2.B.1"); M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail(); if (rd2A.Checked) { question2.QuestionResult = "A,"; } if (rd2B.Checked) { question2.QuestionResult = "B,"; } //打分 question2.QuestionScore = !string.IsNullOrEmpty(question2.QuestionResult) ? (question2.QuestionResult.Contains("A") ? 10 : 0) : 0; AddResult(question2, QuestionnaireCode.KangFuJiZhu + ".2.B.2"); M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail(); if (rd3A.Checked) { question3.QuestionResult = "A,"; } if (rd3B.Checked) { question3.QuestionResult = "B,"; } //打分 question3.QuestionScore = !string.IsNullOrEmpty(question3.QuestionResult) ? (question3.QuestionResult.Contains("A") ? 10 : 0) : 0; AddResult(question3, QuestionnaireCode.KangFuJiZhu + ".2.B.3"); M_QuestionnaireResultDetail question4 = new M_QuestionnaireResultDetail(); if (rd4A.Checked) { question4.QuestionResult = "A,"; } if (rd4B.Checked) { question4.QuestionResult = "B,"; } //打分 question4.QuestionScore = !string.IsNullOrEmpty(question4.QuestionResult) ? (question4.QuestionResult.Contains("A") ? 10 : 0) : 0; AddResult(question4, QuestionnaireCode.KangFuJiZhu + ".2.B.4"); QuestionFour frmNext = new QuestionFour(); frmNext.TopMost = false; //frmNext.Show(); frmNext.ShowDialog(); this.Close(); }