Exemplo n.º 1
0
 private void CButton_Click(object sender, EventArgs e)
 {
     OverallResilience.Hide();
     WalkViolation.Hide();
     MalnutriciaPart1.Hide();
     MalnutriciaPart2.Hide();
     Cognitive.Show();
 }
Exemplo n.º 2
0
        private void Main_Load(object sender, EventArgs e)
        {
            NewPatient np = new NewPatient();

            np.ShowDialog();
            Program.patient.Reflesh = false;
            patientDataLabel.Text   = Program.patient.Surname + " " + Program.patient.Name + " " + Program.patient.Otchestvo + " " + Program.patient.BirthDate.ToShortDateString();
            //Изначально все лайоуты скрыты
            OverallResilience.Hide();
            WalkViolation.Hide();
            MalnutriciaPart1.Hide();
            MalnutriciaPart2.Hide();
            Cognitive.Hide();
        }
Exemplo n.º 3
0
        private void NewPatientButton_Click(object sender, EventArgs e)
        {
            //Вызов окна создания нового пациента
            NewPatient np = new NewPatient();

            np.ShowDialog();
            patientDataLabel.Text = Program.patient.Surname + " " + Program.patient.Name + " " + Program.patient.Otchestvo + " " + Program.patient.BirthDate.ToShortDateString();
            if (Program.patient.Reflesh)
            {
                s1.Text              = null;
                s2.Text              = null;
                s3.Text              = null;
                s4.Text              = null;
                s5.Text              = null;
                orcb1.SelectedIndex  = -1;
                orcb2.SelectedIndex  = -1;
                orcb3.SelectedIndex  = -1;
                orcb4.SelectedIndex  = -1;
                orcb5.SelectedIndex  = -1;
                orcb6.SelectedIndex  = -1;
                orcb7.SelectedIndex  = -1;
                orcb8.SelectedIndex  = -1;
                orcb9.SelectedIndex  = -1;
                orcb10.SelectedIndex = -1;
                orcb11.SelectedIndex = -1;
                orcb12.SelectedIndex = -1;
                orcb13.SelectedIndex = -1;
                orcb14.SelectedIndex = -1;
                orcb15.SelectedIndex = -1;
                OverallResilience.Hide();

                wvcb12.SelectedIndex = -1;
                wvcb11.SelectedIndex = -1;
                wvcb10.SelectedIndex = -1;
                wvcb9.SelectedIndex  = -1;
                wvcb8.SelectedIndex  = -1;
                wvcb7.SelectedIndex  = -1;
                wvcb6.SelectedIndex  = -1;
                wvcb5.SelectedIndex  = -1;
                wvcb4.SelectedIndex  = -1;
                wvcb3.SelectedIndex  = -1;
                wvcb2.SelectedIndex  = -1;
                wvcb1.SelectedIndex  = -1;
                WalkViolation.Hide();

                mcb6.SelectedIndex = -1;
                mcb5.SelectedIndex = -1;
                mcb4.SelectedIndex = -1;
                mcb3.SelectedIndex = -1;
                mcb2.SelectedIndex = -1;
                mcb1.SelectedIndex = -1;
                MalnutriciaPart1.Hide();

                m2cb12.SelectedIndex = -1;
                m2cb11.SelectedIndex = -1;
                m2cb10.SelectedIndex = -1;
                m2cb9.SelectedIndex  = -1;
                m2cb8.SelectedIndex  = -1;
                m2cb7.SelectedIndex  = -1;
                m2cb6.SelectedIndex  = -1;
                m2cb5.SelectedIndex  = -1;
                m2cb4.SelectedIndex  = -1;
                m2cb3.SelectedIndex  = -1;
                m2cb2.SelectedIndex  = -1;
                m2cb1.SelectedIndex  = -1;
                MalnutriciaPart2.Hide();

                ccb1.SelectedIndex  = -1;
                ccb2.SelectedIndex  = -1;
                ccb3.SelectedIndex  = -1;
                ccb4.SelectedIndex  = -1;
                ccb5.SelectedIndex  = -1;
                ccb6.SelectedIndex  = -1;
                ccb7.SelectedIndex  = -1;
                ccb8.SelectedIndex  = -1;
                ccb9.SelectedIndex  = -1;
                ccb10.SelectedIndex = -1;
                ccb11.SelectedIndex = -1;
                Cognitive.Hide();


                Program.patient.Reflesh = false;
            }
        }
Exemplo n.º 4
0
        //Мальнутриции 2
        private void M2SaveButton_Click(object sender, EventArgs e)
        {
            if (m2cb12.SelectedIndex > -1 &&
                m2cb11.SelectedIndex > -1 &&
                m2cb10.SelectedIndex > -1 &&
                m2cb9.SelectedIndex > -1 &&
                m2cb8.SelectedIndex > -1 &&
                m2cb7.SelectedIndex > -1 &&
                m2cb6.SelectedIndex > -1 &&
                m2cb5.SelectedIndex > -1 &&
                m2cb4.SelectedIndex > -1 &&
                m2cb3.SelectedIndex > -1 &&
                m2cb2.SelectedIndex > -1 &&
                m2cb1.SelectedIndex > -1)
            {
                MalnutriciaPart2.Hide();

                Program.patient.Malnutrition2 =
                    m2cb12.SelectedIndex +
                    m2cb11.SelectedIndex / 2 +
                    m2cb10.SelectedIndex / 2 +
                    m2cb8.SelectedIndex +
                    m2cb7.SelectedIndex +
                    m2cb6.SelectedIndex / 2 + //0-3 /5
                    m2cb5.SelectedIndex / 2 + // 0- 3  |2
                    m2cb4.SelectedIndex +     // 0- 2
                    m2cb3.SelectedIndex +     // 0 -1
                    m2cb2.SelectedIndex +     //0 -1
                    m2cb1.SelectedIndex;      //0 - 1

                //Распределение очков для этого параметра  0-0.5-1-2
                if (m2cb9.SelectedIndex == 0)
                {
                    Program.patient.Malnutrition2 += 0;
                }
                if (m2cb9.SelectedIndex == 1)
                {
                    Program.patient.Malnutrition2 += 0.5;
                }
                if (m2cb9.SelectedIndex == 2)
                {
                    Program.patient.Malnutrition2 += 1;
                }
                if (m2cb9.SelectedIndex == 3)
                {
                    Program.patient.Malnutrition2 += 2;
                }

                //Максимальное количество очков - 16
                if (Program.patient.Malnutrition2 > 16)
                {
                    Program.patient.Malnutrition2 = 16;
                }

                Program.patient.Malnutrition2Passed = true;

                MessageBox.Show("Набрано баллов: " + Program.patient.Malnutrition2);
                s4.Text = Program.patient.Malnutrition2.ToString();
                checkMalnutrition();
            }
            else
            {
                MessageBox.Show("Не все параметры выбраны!");
            }
        }