Ejemplo n.º 1
0
 public MDScaleM1(MDAnswers mdAnswers, pBaseEntities GlobalEntities, MDScaleM1_1 groupA, MDScaleM1_2 groupB)
 {
     _answers = mdAnswers;
     _ge = GlobalEntities;
     _groupA = groupA;
     _groupB = groupB;
 }
Ejemplo n.º 2
0
 public MDScaleM1(MDAnswers mdAnswers, pBaseEntities GlobalEntities, MDScaleM1_1 groupA, MDScaleM1_2 groupB)
 {
     _answers = mdAnswers;
     _ge      = GlobalEntities;
     _groupA  = groupA;
     _groupB  = groupB;
 }
Ejemplo n.º 3
0
        public MDTestReport(human human, testresult testresult, pBaseEntities ge, fBaseEntities fe, bool WithResult)
        {
            _testresult = testresult;
            _human = human;
            _ge = ge;
            _fe = fe;
            _withresult = WithResult;
            _listscales = new List<IScale>();
            int ages = (_testresult.testdate.Date - _human.birthday.Value.Date).Days / 365;
            MDAnswers _answers = GetAnswersFromBase();
            MDScaleAnamnes _anamnes = new MDScaleAnamnes(_answers, _ge);
            MDScaleLie _lie = new MDScaleLie(_answers, _ge);
            MDScaleM1_1 _m1_1 = new MDScaleM1_1(_answers, _ge);
            MDScaleM1_2 _m1_2 = new MDScaleM1_2(_answers, _ge);
            MDScaleM1 _m1 = new MDScaleM1(_answers, _ge, _m1_1, _m1_2);

            MDScaleM2 _m2 = new MDScaleM2(_answers, _ge);
            MDScaleM2_1 _m2_1 = new MDScaleM2_1(_answers, _ge);
            MDScaleM2_2 _m2_2 = new MDScaleM2_2(_answers, _ge);
            MDScaleM2_3 _m2_3 = new MDScaleM2_3(_answers, _ge);

            MDScaleM3 _m3 = new MDScaleM3(_answers, _ge);
            MDScaleM3_1 _m3_1 = new MDScaleM3_1(_answers, _ge);
            MDScaleM3_2 _m3_2 = new MDScaleM3_2(_answers, _ge);
            MDScaleM3_3 _m3_3 = new MDScaleM3_3(_answers, _ge);
            MDScaleM3_4 _m3_4 = new MDScaleM3_4(_answers, _ge);
            MDScaleM3_5 _m3_5 = new MDScaleM3_5(_answers, _ge);
            MDScaleM3_6 _m3_6 = new MDScaleM3_6(_answers, _ge);

            MDScaleIntegral _integral = new MDScaleIntegral(_anamnes, _lie, _m1, _m2, _m3);

            _listscales.Add(_lie);
            _listscales.Add(_anamnes);
            _listscales.Add(_m1);
            if (_withresult == true)
            {
                _listscales.Add(_m1_1);
                _listscales.Add(_m1_2);
            }
            _listscales.Add(_m2);
            if (_withresult == true)
            {
                _listscales.Add(_m2_1);
                _listscales.Add(_m2_2);
                _listscales.Add(_m2_3);
            }
            _listscales.Add(_m3);
            if (_withresult == true)
            {
                _listscales.Add(_m3_1);
                _listscales.Add(_m3_2);
                _listscales.Add(_m3_3);
                _listscales.Add(_m3_4);
                _listscales.Add(_m3_5);
                _listscales.Add(_m3_6);
            }
            _listscales.Add(_integral);
        }