private void btnRuXian_Click(object sender, EventArgs e)
        {
            Public.LoginInfo loginInfo = Public.LoginInfo.GetInstance();

            //同人同天同问卷做控制
            //if (ClientInfo.AlreadyExistQuestionnaire(QuestionnaireCode.ZaoAiRuXianAi, loginInfo.UserId))
            //{
            //    var msgBox = new CustomMessageBox("您今天已做乳腺癌筛查问卷!");
            //    msgBox.ShowDialog();
            //    return;
            //}

            Zaoai.ScreeningZaoaiSelect screeningZaoaiSelect = new ScreeningZaoaiSelect();

            XYS.Remp.Screening.Zaoai.Ruxian.QuestionA1 questionA1 = new Ruxian.QuestionA1();


            Model.M_QuestionnaireUserDetail questionnaire = new Model.M_QuestionnaireUserDetail();
            questionnaire.QuestionnaireCode   = QuestionnaireCode.ZaoAiRuXianAi;
            questionnaire.QuestionnaireName   = QuestionnaireCode.ZaoAiRuXianAiName;
            questionnaire.UserId              = loginInfo.UserId;
            questionnaire.FamilyMemberID      = loginInfo.FamilyMemberID;
            questionnaire.QuestionnaireStatus = 0;
            questionnaire.ActivityId          = Properties.Settings.Default.ActivityId;
            questionnaire.QuestionnaireScore  = 0;
            questionnaire.QuestionnaireType   = 0;
            questionnaire.ActivityName        = Properties.Settings.Default.ActivityName;
            questionnaire.AnswerTime          = DateTime.Now;

            ClientInfo.AddQuestionnaire(questionnaire);
            if (loginInfo.UserId > -2)
            {
                //如果已经登录,则先判断本次登录是否已经做过此问卷,否则产生用户的回答记录。

                //选择了足踝疾患问卷,则在添加一条问卷记录。


                questionA1.TopMost = false;
                questionA1.ShowDialog();
                this.Close();
            }
            else
            {
                //LoginForm frmLogin = new LoginForm(questionA1);
                //LoginForm frmLogin = new LoginForm(screeningZaoaiSelect);
                //frmLogin.Show();
                //this.Close();

                //新的登录
                LoginFormNew frmLoginFormNew = new LoginFormNew(screeningZaoaiSelect);
                frmLoginFormNew.Show();
                this.Hide();
            }
            //XYS.Remp.Screening.Zaoai.Ruxian.QuestionA1 questionA1 = new Ruxian.QuestionA1();
            //questionA1.Show();
            //this.Close();
        }
Beispiel #2
0
        //排尿异常筛查
        private void btnParuria_Click(object sender, EventArgs e)
        {
            Other.ScreenOtherSelect screenOtherSelect = new ScreenOtherSelect();

            Paruria.Paruria paruria = new Paruria.Paruria();

            if (loginInfo.UserId > -2)
            {
                //如果已经登录
                paruria.TopMost = false;
                paruria.Show();
                Close();
            }
            else
            {
                //新的登录
                LoginFormNew frmLoginFormNew = new LoginFormNew(screenOtherSelect);
                frmLoginFormNew.Show();
                this.Hide();
            }
        }
Beispiel #3
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            M_QuestionnaireUserDetail result = null;

            if (Properties.Settings.Default.ActivityId > 0)
            {
                //同人同天同问卷做控制
                result = ClientInfo.AlreadyExistQuestionnaire(QuestionnaireCode.NaoNianChiDai, loginInfo.UserId,
                                                              Properties.Settings.Default.ActivityId);
            }
            if (result != null)
            {
                //记录上次问卷Id
                Properties.Settings.Default.LastTimeQuestionnaireRecodId = result.QuestionnaireRecodId;
                Properties.Settings.Default.Save();

                string str = "会员" + LoginInfo.GetInstance().PatientAccount + "于" + result.AnswerTime +
                             "参加本活动,完成了老年痴呆认知筛查。若继续筛查,则上一次筛查数据将被清除。请参考信息登记表,选择";
                QuitComfirmFrm quitComfirmFrm = new QuitComfirmFrm(new FirstFrm(), this, str);
                DialogResult   dr             = quitComfirmFrm.ShowDialog();
                if (dr == DialogResult.Cancel)
                {
                    return;
                }
            }
            else
            {
                //清空上次问卷Id
                Properties.Settings.Default.LastTimeQuestionnaireRecodId = 0;
                Properties.Settings.Default.Save();
            }

            AD.FirstFrm firstFrm = new FirstFrm();

            QuestionOne frmNext = new QuestionOne();

            Model.M_QuestionnaireUserDetail questionnaire = new Model.M_QuestionnaireUserDetail();
            questionnaire.QuestionnaireCode   = QuestionnaireCode.NaoNianChiDai;
            questionnaire.QuestionnaireName   = QuestionnaireCode.NaoNianChiDaiName;
            questionnaire.UserId              = loginInfo.UserId;
            questionnaire.FamilyMemberID      = loginInfo.FamilyMemberID;
            questionnaire.QuestionnaireStatus = 0;
            questionnaire.ActivityId          = Properties.Settings.Default.ActivityId;
            questionnaire.QuestionnaireScore  = 0;
            questionnaire.QuestionnaireType   = 0;
            questionnaire.ActivityName        = Properties.Settings.Default.ActivityName;
            questionnaire.AnswerTime          = DateTime.Now;
            ClientInfo.AddQuestionnaire(questionnaire);
            if (loginInfo.UserId > -2)
            {
                //如果已经登录,则先判断本次登录是否已经做过此问卷,否则产生用户的回答记录。

                //选择了足踝疾患问卷,则在添加一条问卷记录。
                frmNext.TopMost = false;
                frmNext.Show();
                this.Close();
            }
            else
            {
                //LoginForm frmLogin = new LoginForm(frmNext);
                //旧的登录
                //LoginForm frmLogin = new LoginForm(firstFrm);
                //frmLogin.Show();
                //this.Hide();

                //新的登录
                LoginFormNew frmLoginFormNew = new LoginFormNew(firstFrm);
                frmLoginFormNew.Show();
                this.Hide();
            }
        }
Beispiel #4
0
        //糖尿病筛查
        private void btnDiabetes_Click(object sender, EventArgs e)
        {
            M_QuestionnaireUserDetail result = null;

            if (Properties.Settings.Default.ActivityId > 0)
            {
                //同人同天同问卷做控制
                result = ClientInfo.AlreadyExistQuestionnaire(QuestionnaireCode.Diabetes, loginInfo.UserId,
                                                              Properties.Settings.Default.ActivityId);
            }

            if (result != null)
            {
                //记录上次问卷Id
                Properties.Settings.Default.LastTimeQuestionnaireRecodId = result.QuestionnaireRecodId;
                Properties.Settings.Default.Save();

                string         str            = "会员" + LoginInfo.GetInstance().PatientAccount + "于" + result.AnswerTime + "参加本活动,完成了糖尿病筛查。若继续筛查,则上一次筛查数据将被清除。请参考信息登记表,选择";
                QuitComfirmFrm quitComfirmFrm = new QuitComfirmFrm(new ScreenOtherSelect(), this, str);
                DialogResult   dr             = quitComfirmFrm.ShowDialog();
                if (dr == DialogResult.Cancel)
                {
                    return;
                }
            }
            else
            {
                //清空上次问卷Id
                Properties.Settings.Default.LastTimeQuestionnaireRecodId = 0;
                Properties.Settings.Default.Save();
            }

            var questionnaire = new Model.M_QuestionnaireUserDetail
            {
                QuestionnaireCode   = QuestionnaireCode.Diabetes,
                QuestionnaireName   = QuestionnaireCode.DiabetesName,
                UserId              = loginInfo.UserId,
                FamilyMemberID      = loginInfo.FamilyMemberID,
                QuestionnaireStatus = 0,
                ActivityId          = Settings.Default.ActivityId,
                QuestionnaireScore  = 0,
                QuestionnaireType   = 0,
                ActivityName        = Settings.Default.ActivityName,
                AnswerTime          = DateTime.Now
            };

            ClientInfo.AddQuestionnaire(questionnaire);

            if (loginInfo.UserId > -2)
            {
                var question = new QuestionOne {
                    TopMost = false
                };
                question.Show();
                Close();
            }
            else
            {
                var loginForm = new LoginFormNew(this);
                loginForm.Show();
                Hide();
            }
        }
Beispiel #5
0
        private void btnShouShangZhi_Click(object sender, EventArgs e)
        {
            M_QuestionnaireUserDetail result = null;

            if (Properties.Settings.Default.ActivityId > 0)
            {
                //同人同天同问卷做控制
                result = ClientInfo.AlreadyExistQuestionnaire(QuestionnaireCode.KangFuShouShangZhi, loginInfo.UserId,
                                                              Properties.Settings.Default.ActivityId);
            }

            if (result != null)
            {
                //记录上次问卷Id
                Properties.Settings.Default.LastTimeQuestionnaireRecodId = result.QuestionnaireRecodId;
                Properties.Settings.Default.Save();

                string         str            = "会员" + LoginInfo.GetInstance().PatientAccount + "于" + result.AnswerTime + "参加本活动,完成了手上肢筛查。若继续筛查,则上一次筛查数据将被清除。请参考信息登记表,选择";
                QuitComfirmFrm quitComfirmFrm = new QuitComfirmFrm(new ScreeningSelect(), this, str);
                DialogResult   dr             = quitComfirmFrm.ShowDialog();
                if (dr == DialogResult.Cancel)
                {
                    return;
                }
            }
            else
            {
                //清空上次问卷Id
                Properties.Settings.Default.LastTimeQuestionnaireRecodId = 0;
                Properties.Settings.Default.Save();
            }

            var screeningSelect = new ScreeningSelect();

            var frmOne        = new ShouShangZhi.QuestionOne();
            var questionnaire = new Model.M_QuestionnaireUserDetail();

            questionnaire.QuestionnaireCode   = QuestionnaireCode.KangFuShouShangZhi;
            questionnaire.QuestionnaireName   = QuestionnaireCode.KangFuShouShangZhiName;
            questionnaire.UserId              = loginInfo.UserId;
            questionnaire.FamilyMemberID      = loginInfo.FamilyMemberID;
            questionnaire.QuestionnaireStatus = 0;
            questionnaire.ActivityId          = Settings.Default.ActivityId;
            questionnaire.QuestionnaireScore  = 0;
            questionnaire.QuestionnaireType   = 0;
            questionnaire.ActivityName        = Settings.Default.ActivityName;
            questionnaire.AnswerTime          = DateTime.Now;
            ClientInfo.AddQuestionnaire(questionnaire);
            if (loginInfo.UserId > -2)
            {
                //如果已经登录,则先判断本次登录是否已经做过此问卷,否则产生用户的回答记录。

                //选择了手上支问卷,则在添加一条问卷记录。
                frmOne.TopMost = false;
                frmOne.Show();
                Close();
            }
            else
            {
                //LoginForm frmLogin=new LoginForm(frmOne);
                //LoginForm frmLogin = new LoginForm(screeningSelect);
                //frmLogin.Show();
                //Close();

                //新的登录
                var frmLoginFormNew = new LoginFormNew(screeningSelect);
                frmLoginFormNew.Show();
                Hide();
            }
        }