예제 #1
0
        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();
        }
예제 #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = this.radCheckC01A.Checked ? "A" : radCheckC01B.Checked?"B":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiFeiAi + ".C01";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiFeiAi);

            string questionResultB = this.radCheckC02A.Checked
                    ? "A"
                    : radCheckC02B.Checked ? "B" : radCheckC02C.Checked ? "C" : radCheckC02D.Checked?"D":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiFeiAi + ".C02";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiFeiAi);

            QuestionC2 questionC2 = new QuestionC2();

            questionC2.TopMost = false;
            questionC2.ShowDialog();
            this.Close();
        }
예제 #3
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string strResult = "";

            if (rdA.Checked)
            {
                strResult += "A,";
            }

            if (rdB.Checked)
            {
                strResult += "B,";
            }

            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.KangFuJiZhu + ".1";
            question.QuestionType   = 1;
            question.QuestionResult = strResult;
            //打分
            question.QuestionScore = strResult.Contains("A") ? 10 : 0;

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuJiZhu);
            QuestionTwo frmNext = new QuestionTwo();

            //frmNext.ShowDialog();
            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
예제 #4
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = this.radCheckB19A.Checked ? "A" : radCheckB19B.Checked ? "B" :radCheckB19C.Checked?"C":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.9";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiWeiAi);

            string questionResultB = this.radCheckB110A.Checked ? "A" : radCheckB110B.Checked ? "B" :radCheckB110C.Checked?"C":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.10";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiWeiAi);


            QuestionC1 questionC1 = new QuestionC1();

            questionC1.TopMost = false;
            questionC1.ShowDialog();
            this.Close();
        }
예제 #5
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResult = radCheckC04A.Checked ? "A" : radCheckC04B.Checked?"B":"";
            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.ZaoAiFeiAi + ".C04";
            question.QuestionType   = 1;   //单选
            question.QuestionResult = questionResult;
            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiFeiAi);

            if (radCheckC04A.Checked)
            {
                string questionResultA = radCheckC041A.Checked
                        ? "A"
                        : radCheckC041B.Checked ? "B" : radCheckC041C.Checked ? "C" : radCheckC041D.Checked ? "D" : "";
                M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();
                questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiFeiAi + ".C04.1";
                questionA.QuestionType   = 1;   //单选
                questionA.QuestionResult = questionResultA;
                ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiFeiAi);
            }

            QuestionE1 questionE1 = new QuestionE1();

            questionE1.TopMost = false;
            questionE1.ShowDialog();
            this.Close();
        }
예제 #6
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = radCheckW10A.Checked ? "A" : radCheckW10B.Checked?"B":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W10";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi);



            string questionResultB = radCheckW11A.Checked ? "A" : radCheckW11B.Checked?"B":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W11";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiRuXianAi);

            string questionResultC = radCheckW12A.Checked ? "A" : radCheckW12B.Checked?"B":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

            questionC.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W12";
            questionC.QuestionType   = 1;   //单选
            questionC.QuestionResult = questionResultC;
            ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiRuXianAi);

            QuestionW4 questionW4 = new QuestionW4();

            questionW4.TopMost = false;
            questionW4.ShowDialog();
            this.Close();
        }
예제 #7
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string strResult = "";

            if (rdYes.Checked)
            {
                strResult = "A";
            }
            if (rdNo.Checked)
            {
                strResult = "B";
            }

            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.KangFuZuHuai + ".3";
            question.QuestionType   = 1;//单选
            question.QuestionResult = strResult;
            //打分
            if (strResult.Contains("A"))
            {
                question.QuestionScore = 5;
            }

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuZuHuai);


            QuestionFour frmNext = new QuestionFour();

            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
예제 #8
0
        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 + ".3.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 + ".3.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 + ".3.B.3");

            QuestionSix frmNext = new QuestionSix();
            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
예제 #9
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = radCheckD01A.Checked ? "A" : radCheckD01B.Checked?"B":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".D01";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi);

            string questionResult = radCheckD02A.Checked ? "A" : radCheckD02B.Checked?"B":"";
            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".D02";
            question.QuestionType   = 1;   //单选
            question.QuestionResult = questionResult;
            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiRuXianAi);


            QuestionE1 questionE1 = new QuestionE1();

            questionE1.TopMost = false;
            questionE1.ShowDialog();
            this.Close();
        }
예제 #10
0
        //下一页
        private void btnNext_Click(object sender, EventArgs e)
        {
            //第五题
            M_QuestionnaireResultDetail question5 = new M_QuestionnaireResultDetail();
            string strResult5 = "";

            if (rbQ5A.Checked)
            {
                strResult5 = "A,";
            }
            if (rbQ5B.Checked)
            {
                strResult5 = "B,";
            }

            question5.QuestionResult       = strResult5;
            question5.QuestionCode         = QuestionnaireCode.Copd + ".5";
            question5.PQuestionCode        = QuestionnaireCode.Copd + ".5";
            question5.QuestionType         = 1;
            question5.QuestionScore        = strResult5.Contains("A")?20:0;
            question5.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question5, QuestionnaireCode.Copd);

            //下一页
            var copdResult = new CopdResult();

            copdResult.TopMost = false;
            copdResult.Show();
            Close();
        }
예제 #11
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail();

            string strResult = "";

            if (rdA.Checked)
            {
                strResult = "A,";
            }

            if (rdB.Checked)
            {
                strResult = "B,";
            }

            question1.QuestionResult = strResult;
            question1.QuestionCode   = QuestionnaireCode.KangFuLunYi + ".5";
            question1.QuestionType   = 1;
            //打分
            question1.QuestionScore = strResult.Contains("B") ? 10 : 0;

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.KangFuLunYi);

            QuestionSix frmNext = new QuestionSix();

            frmNext.TopMost = false;
            frmNext.ShowDialog();

            this.Close();
        }
예제 #12
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = radCheckW03A.Checked ? "A" : radCheckW03B.Checked?"B":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W03";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi);
            if (radCheckW03A.Checked)
            {
                if (string.IsNullOrEmpty(this.txtAge.Text))
                {
                    MessageBox.Show("请输入您的年龄!");
                    this.label4.ForeColor = Color.Red;
                    return;
                }
                string questionResultB = this.txtAge.Text;
                M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();
                questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W03.1";
                questionB.QuestionType   = 3;   //单选
                questionB.QuestionResult = questionResultB;
                ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiRuXianAi);
            }

            string questionResultC = radCheckW04A.Checked ? "A" : radCheckW04B.Checked?"B":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

            questionC.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W04";
            questionC.QuestionType   = 1;   //单选
            questionC.QuestionResult = questionResultC;
            ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiRuXianAi);

            if (radCheckW04A.Checked)
            {
                string questionResult = radCheckW041A.Checked ? "A" : radCheckW041B.Checked ? "B" : "";
                M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();
                question.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W04.1";
                question.QuestionType   = 1; //单选
                question.QuestionResult = questionResult;
                ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiRuXianAi);
            }


            string questionResultD = radCheckW06A.Checked ? "A" : radCheckW06B.Checked?"B":"";
            M_QuestionnaireResultDetail questionD = new M_QuestionnaireResultDetail();

            questionD.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W06";
            questionD.QuestionType   = 1;   //单选
            questionD.QuestionResult = questionResultD;
            ClientInfo.AddQuestionToQuestionnaire(questionD, QuestionnaireCode.ZaoAiRuXianAi);


            QuestionW2 questionW2 = new QuestionW2();

            questionW2.TopMost = false;
            questionW2.ShowDialog();
            this.Close();
        }
예제 #13
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string strResult = "";

            if (chkA.Checked)
            {
                strResult += "A,";
            }
            if (chkB.Checked)
            {
                strResult += "B,";
            }
            if (chkC.Checked)
            {
                strResult += "C,";
            }
            if (chkD.Checked)
            {
                strResult += "D,";
            }

            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.KangFuZuHuai + ".2";
            question.QuestionType   = 2;//多选
            question.QuestionResult = strResult;
            //打分
            int tempScore = 0;

            if (strResult.Contains("A"))
            {
                tempScore += 3;
            }
            if (strResult.Contains("B"))
            {
                tempScore += 2;
            }
            if (strResult.Contains("C"))
            {
                tempScore += 5;
            }

            if (tempScore > 5)
            {
                tempScore = 5;
            }

            question.QuestionScore = tempScore;

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuZuHuai);

            QuestionThree frmNext = new QuestionThree();

            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
예제 #14
0
        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.ZaoAiDaChangAi + ".E01";
            questionE01.QuestionType   = 1;   //单选
            questionE01.QuestionResult = questionResultE01;
            ClientInfo.AddQuestionToQuestionnaire(questionE01, QuestionnaireCode.ZaoAiDaChangAi);

            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.ZaoAiDaChangAi + ".E01.1";
                questionA.QuestionType   = 3;   //填空
                questionA.QuestionResult = questionResultA;
                ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiDaChangAi);
            }

            string questionResultB = radCheckE074A.Checked ? "A" : radCheckE074B.Checked?"B":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E07.4";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiDaChangAi);

            string questionResultC = radCheckE078A.Checked ? "A" : radCheckE078B.Checked?"B":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

            questionC.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E07.8";
            questionC.QuestionType   = 1;   //单选
            questionC.QuestionResult = questionResultC;
            ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiDaChangAi);

            string questionResultD = radCheckE079A.Checked ? "A" : radCheckE079B.Checked?"B":"";
            M_QuestionnaireResultDetail questionD = new M_QuestionnaireResultDetail();

            questionD.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E07.9";
            questionD.QuestionType   = 1;   //单选
            questionD.QuestionResult = questionResultD;
            ClientInfo.AddQuestionToQuestionnaire(questionD, QuestionnaireCode.ZaoAiDaChangAi);


            QuestionE2 questionE2 = new QuestionE2();

            questionE2.TopMost = false;
            questionE2.ShowDialog();
            this.Close();
        }
예제 #15
0
        //下一步
        private void btnNext_Click(object sender, EventArgs e)
        {
            //判断
            if ((!rbQ1A.Checked && !rbQ1B.Checked) || string.IsNullOrEmpty(txtQ2.Text))
            {
                var msgBox = new CustomMessageBox("请答完本页所有题目再进入下一题!");
                msgBox.ShowDialog();
                return;
            }
            if (double.Parse(txtQ2.Text) < 6 || double.Parse(txtQ2.Text) > 17)
            {
                var msgBox = new CustomMessageBox("年龄范围为6-17周岁!");
                msgBox.ShowDialog();
                txtQ2.Text = string.Empty;
                txtQ2.Focus();
                return;
            }


            //保存答案
            //第一题
            M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail
            {
                QuestionResult       = rbQ1A.Checked ? "A," : "B,",
                QuestionCode         = QuestionnaireCode.Thah + ".1",
                PQuestionCode        = QuestionnaireCode.Thah + ".1",
                QuestionType         = 1,
                QuestionScore        = 0,
                PQuestionWeightScore = 0
            };

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.Thah);

            //第二题
            M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail
            {
                QuestionResult       = (int)double.Parse(txtQ2.Text) + ",",
                QuestionCode         = QuestionnaireCode.Thah + ".2",
                PQuestionCode        = QuestionnaireCode.Thah + ".2",
                QuestionType         = 3,
                QuestionScore        = 0,
                PQuestionWeightScore = 0
            };

            ClientInfo.AddQuestionToQuestionnaire(question2, QuestionnaireCode.Thah);

            //跳转
            ThahTwo thahTwo = new ThahTwo {
                TopMost = false
            };

            thahTwo.Show();
            Close();
        }
예제 #16
0
        //下一页
        private void btnNext_Click(object sender, EventArgs e)
        {
            //第三题
            M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail();
            string strResult3 = "";

            if (rbQ3A.Checked)
            {
                strResult3 = "A,";
            }
            if (rbQ3B.Checked)
            {
                strResult3 = "B,";
            }

            question3.QuestionResult       = strResult3;
            question3.QuestionCode         = QuestionnaireCode.Copd + ".3";
            question3.PQuestionCode        = QuestionnaireCode.Copd + ".3";
            question3.QuestionType         = 1;
            question3.QuestionScore        = strResult3.Contains("A") ? 20 : 0;
            question3.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question3, QuestionnaireCode.Copd);

            //第四题
            M_QuestionnaireResultDetail question4 = new M_QuestionnaireResultDetail();
            string strResult4 = "";

            if (rbQ4A.Checked)
            {
                strResult4 = "A,";
            }
            if (rbQ4B.Checked)
            {
                strResult4 = "B,";
            }

            question4.QuestionResult       = strResult4;
            question4.QuestionCode         = QuestionnaireCode.Copd + ".4";
            question4.PQuestionCode        = QuestionnaireCode.Copd + ".4";
            question4.QuestionType         = 1;
            question4.QuestionScore        = strResult4.Contains("A") ? 20 : 0;
            question4.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question4, QuestionnaireCode.Copd);

            //下一页
            var copdThree = new CopdThree();

            copdThree.TopMost = false;
            copdThree.Show();
            Close();
        }
예제 #17
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            //B01.4
            string questionResultA = this.radCheckB014A.Checked ? "A" : radCheckB014B.Checked ? "B" : radCheckB014C.Checked?"C":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".B01.4";
            questionA.QuestionType   = 1;  //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiDaChangAi);

            //B01.5
            string questionResultB = this.radCheckB015A.Checked ? "A" : radCheckB015B.Checked ? "B" : radCheckB015C.Checked?"C":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".B01.5";
            questionB.QuestionType   = 1;  //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiDaChangAi);

            //B01.6
            string questionResultC = this.radCheckB016A.Checked ? "A" : radCheckB016B.Checked ? "B" : radCheckB016C.Checked?"C":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

            questionC.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".B01.6";
            questionC.QuestionType   = 1;  //单选
            questionC.QuestionResult = questionResultC;
            ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiDaChangAi);

            //B01.7
            string questionResultD = this.radCheckB017A.Checked ? "A" : radCheckB017B.Checked ? "B" : radCheckB017C.Checked?"C":"";
            M_QuestionnaireResultDetail questionD = new M_QuestionnaireResultDetail();

            questionD.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".B01.7";
            questionD.QuestionType   = 1;  //单选
            questionD.QuestionResult = questionResultD;
            ClientInfo.AddQuestionToQuestionnaire(questionD, QuestionnaireCode.ZaoAiDaChangAi);

            //B01.8
            string questionResultE = this.radCheckB018A.Checked ? "A" : radCheckB018B.Checked ? "B" : radCheckB018C.Checked?"C":"";
            M_QuestionnaireResultDetail questionE = new M_QuestionnaireResultDetail();

            questionE.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".B01.8";
            questionE.QuestionType   = 1;  //单选
            questionE.QuestionResult = questionResultE;
            ClientInfo.AddQuestionToQuestionnaire(questionE, QuestionnaireCode.ZaoAiDaChangAi);

            QuestionC1 questionC1 = new QuestionC1();

            questionC1.TopMost = false;
            questionC1.ShowDialog();
            this.Close();
        }
예제 #18
0
        //下一页
        private void btnNext_Click(object sender, EventArgs e)
        {
            //第一题
            M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail();
            string strResult1 = "";

            if (rbQ1A.Checked)
            {
                strResult1 = "A,";
            }
            if (rbQ1B.Checked)
            {
                strResult1 = "B,";
            }

            question1.QuestionResult       = strResult1;
            question1.QuestionCode         = QuestionnaireCode.Copd + ".1";
            question1.PQuestionCode        = QuestionnaireCode.Copd + ".1";
            question1.QuestionType         = 1;
            question1.QuestionScore        = strResult1.Contains("A") ? 20 : 0;
            question1.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.Copd);

            //第二题
            M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail();
            string strResult2 = "";

            if (rbQ2A.Checked)
            {
                strResult2 = "A,";
            }
            if (rbQ2B.Checked)
            {
                strResult2 = "B,";
            }

            question2.QuestionResult       = strResult2;
            question2.QuestionCode         = QuestionnaireCode.Copd + ".2";
            question2.PQuestionCode        = QuestionnaireCode.Copd + ".2";
            question2.QuestionType         = 1;
            question2.QuestionScore        = strResult2.Contains("A") ? 20 : 0;
            question2.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question2, QuestionnaireCode.Copd);

            //下一页
            var copdTwo = new CopdTwo();

            copdTwo.TopMost = false;
            copdTwo.Show();
            Close();
        }
예제 #19
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string strResult = "";

            if (rdA.Checked)
            {
                strResult = "A";
            }
            if (rdB.Checked)
            {
                strResult = "B";
            }
            if (rdC.Checked)
            {
                strResult = "C";
            }
            if (rdD.Checked)
            {
                strResult = "D";
            }


            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.KangFuZuHuai + ".10";
            question.QuestionType   = 1;//单选
            question.QuestionResult = strResult;
            //打分
            int score = 0;

            if (strResult.Contains("B"))
            {
                score += 5;
            }
            if (strResult.Contains("C"))
            {
                score += 10;
            }
            if (strResult.Contains("D"))
            {
                score += 15;
            }
            question.QuestionScore = score;

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuZuHuai);

            ResultForm frmNext = new ResultForm();

            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
예제 #20
0
        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";
            }
            if (rd1C.Checked)
            {
                question1.QuestionResult = "C";
            }

            AddResult(question1, QuestionnaireCode.NaoCuZhong + ".3", 1);

            M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail();

            //question2.QuestionResult = dtpConfirm.Value.ToString();
            question2.QuestionResult = cbxYear.Text + "/" + cbxMonth.Text + "/" + cbxDay.Text + " " + DateTime.Now.TimeOfDay;
            AddResult(question2, QuestionnaireCode.NaoCuZhong + ".3.1", 3);


            M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail();

            if (rd2A.Checked)
            {
                question3.QuestionResult = "A";
            }
            if (rd2B.Checked)
            {
                question3.QuestionResult = "B";
            }
            AddResult(question3, QuestionnaireCode.NaoCuZhong + ".3.2", 1);

            M_QuestionnaireResultDetail question4 = new M_QuestionnaireResultDetail();

            question4.QuestionResult = txtSugar.Text.Trim();
            AddResult(question4, QuestionnaireCode.NaoCuZhong + ".3.3", 3);

            QuestionFour frmNext = new QuestionFour();

            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
예제 #21
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail();

            string strResult = "";

            if (rdA.Checked)
            {
                strResult = "A,";
            }

            if (rdB.Checked)
            {
                strResult = "B,";
            }

            if (rdC.Checked)
            {
                strResult = "C,";
            }

            if (rdD.Checked)
            {
                strResult = "D,";
            }

            question1.QuestionResult = strResult;
            question1.QuestionCode   = QuestionnaireCode.KangFuLunYi + ".6";
            question1.QuestionType   = 1;
            if (strResult.Contains("A") || strResult.Contains("B"))
            {
                question1.QuestionScore = 5;
            }
            else
            {
                question1.QuestionScore = 0;
            }

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.KangFuLunYi);

            QuestionSeven frmNext = new QuestionSeven();

            frmNext.TopMost = false;
            frmNext.ShowDialog();

            this.Close();
        }
예제 #22
0
        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();
        }
예제 #23
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResult = radCheckW08A.Checked ? "A" : radCheckW08B.Checked?"B":"";
            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W08";
            question.QuestionType   = 1;   //单选
            question.QuestionResult = questionResult;
            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiRuXianAi);
            if (radCheckW08A.Checked)
            {
                string questionResultA = radCheckW081A.Checked ? "A" : radCheckW081B.Checked?"B":"";
                if (string.IsNullOrEmpty(questionResultA))
                {
                    MessageBox.Show("请选择是否您的二级内血缘亲属");
                    return;
                }
                M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();
                questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W08.1";
                questionA.QuestionType   = 1;   //单选
                questionA.QuestionResult = questionResultA;
                ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi);

                string questionResultB = radCheckW082A.Checked ? "A" : radCheckW082B.Checked?"B":"";
                if (string.IsNullOrEmpty(questionResultB))
                {
                    MessageBox.Show("请选择是否您的一级内血缘亲属");
                    return;
                }
                M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();
                questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W08.2";
                questionB.QuestionType   = 1;   //单选
                questionB.QuestionResult = questionResultB;
                ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiRuXianAi);
            }


            QuestionW3 questionW3 = new QuestionW3();

            questionW3.TopMost = false;
            questionW3.ShowDialog();
            this.Close();
        }
예제 #24
0
 /// <summary>
 /// 保存答案
 /// </summary>
 protected virtual void SavaAnswer()
 {
     if (Question == null || !Question.Any())
     {
         return;
     }
     foreach (var item in Question)
     {
         var result   = item.Item2.Checked ? "A," : item.Item3.Checked ? "B," : string.Empty;
         var question = new M_QuestionnaireResultDetail
         {
             QuestionResult = result,
             QuestionScore  = result.Contains("A") ? 10 : 0,
             QuestionType   = 1,
             QuestionCode   = item.Item1
         };
         ClientInfo.AddQuestionToQuestionnaire(question, Code);
     }
 }
예제 #25
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = this.radCheckB13A.Checked ? "A" : radCheckB13B.Checked ? "B" : radCheckB13C.Checked?"C":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.3";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiWeiAi);

            string questionResultB = this.radCheckB15A.Checked ? "A" : radCheckB15B.Checked ? "B" : radCheckB15C.Checked?"C":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.5";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiWeiAi);

            string questionResultC = this.radCheckB16A.Checked ? "A" : radCheckB16B.Checked ? "B" : radCheckB16C.Checked?"C":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

            questionC.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.6";
            questionC.QuestionType   = 1;   //单选
            questionC.QuestionResult = questionResultC;
            ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiWeiAi);


            string questionResultD = this.radCheckB17A.Checked ? "A" : radCheckB17B.Checked ? "B" : radCheckB17C.Checked?"C":"";
            M_QuestionnaireResultDetail questionD = new M_QuestionnaireResultDetail();

            questionD.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.7";
            questionD.QuestionType   = 1;   //单选
            questionD.QuestionResult = questionResultD;
            ClientInfo.AddQuestionToQuestionnaire(questionD, QuestionnaireCode.ZaoAiWeiAi);


            QuestionB2 questionB2 = new QuestionB2();

            questionB2.TopMost = false;
            questionB2.ShowDialog();
            this.Close();
        }
예제 #26
0
        /// <summary>
        /// 保存问题
        /// </summary>
        /// <param name="mQuestionnaireResultDetail">问题对象</param>
        /// <returns></returns>
        public int AddQuestionResult(M_QuestionnaireResultDetail mQuestionnaireResultDetail)
        {
            var httpClient = new OAuthHttpClient(OAuthToken);
            var uri        = new Uri(string.Format("{0}/ATM/AddQuestionResult", "http://rempapi.e24health.com/Screen"));
            var data       = JsonConvert.SerializeObject(mQuestionnaireResultDetail);
            var content    = new StringContent(data, Encoding.UTF8, "application/json");
            var response   = httpClient.PostAsync(uri, content).Result;

            var subResult = response.StatusCode == HttpStatusCode.OK
                ? response.Content.ReadAsStringAsync().Result
                : response.ToString();

            int result = 0;

            if (subResult != null)
            {
                subResult = subResult.Substring(1, subResult.Length - 2);
                int.TryParse(subResult, out result);
            }

            return(result);
        }
예제 #27
0
        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,";
            }
            AddResult(question1, QuestionnaireCode.NaoCuZhong + ".10", 1);

            M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail();

            if (rd2A.Checked)
            {
                question2.QuestionResult = "A,";
            }
            if (rd2B.Checked)
            {
                question2.QuestionResult = "B,";
            }
            if (rd2C.Checked)
            {
                question2.QuestionResult = "C,";
            }
            AddResult(question2, QuestionnaireCode.NaoCuZhong + ".10.1", 1);

            ResultFrm result = new ResultFrm();

            result.TopMost = false;
            result.ShowDialog();
            this.Close();
        }
예제 #28
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = radCheckW13A.Checked ? "A" : radCheckW13B.Checked?"B":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W13";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi);

            string questionResultB = radCheckW14A.Checked ? "A" : radCheckW14B.Checked?"B":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W14";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiRuXianAi);

            RuxianResult ruxianResult = new RuxianResult();

            ruxianResult.TopMost = false;
            ruxianResult.ShowDialog();
            this.Close();
        }
예제 #29
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail();

            if (rdA.Checked)
            {
                question1.QuestionResult = "A,";
            }
            if (rdB.Checked)
            {
                question1.QuestionResult = "B,";
            }
            //打分
            question1.QuestionScore = !string.IsNullOrEmpty(question1.QuestionResult) ? (question1.QuestionResult.Contains("A") ? 10 : 0) : 0;

            AddResult(question1, QuestionnaireCode.KangFuJiZhu + ".4");

            Result frmNext = new Result();

            frmNext.TopMost = false;
            frmNext.ShowDialog();

            this.Close();
        }
예제 #30
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA10 = this.radCheckA10A.Checked ? "A" : radCheckA10B.Checked?"B":"";
            M_QuestionnaireResultDetail questionA10 = new M_QuestionnaireResultDetail();

            questionA10.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".A10";
            questionA10.QuestionType   = 1;  //单选
            questionA10.QuestionResult = questionResultA10;
            ClientInfo.AddQuestionToQuestionnaire(questionA10, QuestionnaireCode.ZaoAiRuXianAi);

            string questionResult = this.radCheckB014A.Checked ? "A" : radCheckB014B.Checked ? "B" : radCheckB014C.Checked?"C":"";
            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".B01.4";
            question.QuestionType   = 1;   //单选
            question.QuestionResult = questionResult;
            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiRuXianAi);

            QuestionC1 questionC1 = new QuestionC1();

            questionC1.TopMost = false;
            questionC1.ShowDialog();
            this.Close();
        }