private void btnBefore_Click(object sender, EventArgs e) { QuestionA1 questionA1 = new QuestionA1(); questionA1.TopMost = false; questionA1.ShowDialog(); this.Close(); }
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(); }