Exemplo n.º 1
0
        private void WindowClosing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            XSANVM SAN = new XSANVM();
            if (this.RadioButtonGroupFeeling.CheckedValue() != null)
                SAN.Feeling = (Int16?)(8 - this.RadioButtonGroupFeeling.CheckedValue().Value);
            else
                SAN.Feeling = null;

            if (this.RadioButtonGroupFullForceExhausted.CheckedValue() != null)
                SAN.FullForceExhausted = (Int16?)(8 - this.RadioButtonGroupFullForceExhausted.CheckedValue().Value);
            else
                SAN.FullForceExhausted = null;

            if (this.RadioButtonGroupRestedTired.CheckedValue() != null)
                SAN.RestedTired = (Int16?)(8 - this.RadioButtonGroupRestedTired.CheckedValue().Value);
            else
                SAN.RestedTired = null;

            SAN.PassivActiv = this.RadioButtonGroupPassivActiv.CheckedValue();
            SAN.SlepyHorny = this.RadioButtonGroupSlepyHorny.CheckedValue();
            SAN.DesireToWork = this.RadioButtonGroupDesireToWork.CheckedValue();

            if (this.RadioButtonGroupMoody.CheckedValue() != null)
                SAN.Mood = (Int16?)(8 - this.RadioButtonGroupMoody.CheckedValue().Value);
            else
                SAN.Mood = null;

            if (this.RadioButtonGroupCalmHorny.CheckedValue() != null)
                SAN.CalmHorny = (Int16?)(8 - this.RadioButtonGroupCalmHorny.CheckedValue().Value);
            else
                SAN.CalmHorny = null;

            if (this.RadioButtonGroupOptimismPessimism.CheckedValue() != null)
                SAN.OptimismPessimism = (Int16?)(8 - RadioButtonGroupOptimismPessimism.CheckedValue().Value);
            else
                SAN.OptimismPessimism = null;

            _mwin.Exam.SAN = SAN;

            XSubjectivParametersVM subj = new XSubjectivParametersVM();

            subj.Headache = this.one.HeadPainStack.GetChoiceResult();
            subj.HeartPain = this.one.HeartPainStack.GetChoiceResult();
            subj.RheumaticPain = this.one.BonePainStack.GetChoiceResult();

            _mwin.Exam.SubjParams = subj;

            _mwin.SaveChanges();
        }
Exemplo n.º 2
0
 public XExamVM()
 {
     _exam = new XExam();
     _exam.ObjParams = new XObjectivParameters();
     _exam.SANTest = new XSANTest();
     _exam.SubjParams = new XSubjectivParameters();
     _exam.Weather = new XWeather();
     _heartRate = new XHeartRateVM();
     _san = new XSANVM(new XSANTest());
     _subjParams = new XSubjectivParametersVM(new XSubjectivParameters());
     _bodyTemp = new XBodyTempVM();
     _sBP = new XSistolicBloodPressureVM();
     _dBP = new XDiastolicBloodPressureVM();
     _weather = new XWeatherVM(new XWeather());
     _breathRate = new XBreathRateVM();
 }
Exemplo n.º 3
0
 public XExamVM(XExam exam)
 {
     _exam = exam;
     _heartRate = new XHeartRateVM(exam.ObjParams.HeartRate);
        // _heartRate.Value = exam.ObjParams.HeartRate;
     _san = new XSANVM(exam.SANTest);
     _subjParams = new XSubjectivParametersVM(exam.SubjParams);
     _weather = new XWeatherVM(exam.Weather);
     _bodyTemp = new XBodyTempVM(exam.ObjParams.BodyTemp);
     //_bodyTemp.Value = exam.ObjParams.BodyTemp;
     _sBP = new XSistolicBloodPressureVM(exam.ObjParams.SistolicBloodPressure);
     //_sBP.Value = exam.ObjParams.SistolicBloodPressure;
     _dBP = new XDiastolicBloodPressureVM(exam.ObjParams.DiastolicBloodPressure);
     //_dBP.Value = exam.ObjParams.DiastolicBloodPressure;
     _breathRate = new XBreathRateVM(exam.ObjParams.BreathRate);
 }