public KettellATestReport(human human, testresult testresult, pBaseEntities ge, fBaseEntities fe, bool WithResult) { _testresult = testresult; _human = human; _ge = ge; _fe = fe; _withresult = WithResult; _listscales = new List<IScale>(); _listscales.Add(new KettellScaleA(this.GetAnswersFromBase(), _ge,EnumKettellType.AForm)); _listscales.Add(new KettellScaleB(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleC(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleE(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleF(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleG(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleH(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleI(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleL(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleM(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleN(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleO(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleQ1(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleQ2(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleQ3(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); _listscales.Add(new KettellScaleQ4(this.GetAnswersFromBase(), _ge, EnumKettellType.AForm)); }
public DTestReport(human human, testresult testresult, pBaseEntities ge, fBaseEntities fe, bool WithResult) { _testresult = testresult; _human = human; _ge = ge; _fe = fe; _withresult = WithResult; _listscales = new List<IScale>(); // 1 level _listscales.Add(new DScaleL(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleF(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleK(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleHS(GetAnswersFromBase(), _ge, new DScaleK(GetAnswersFromBase(), _ge))); _listscales.Add(new DScaleD(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleHY(GetAnswersFromBase(), _ge)); _listscales.Add(new DScalePD(GetAnswersFromBase(), _ge, new DScaleK(GetAnswersFromBase(), _ge))); _listscales.Add(new DScaleMF(GetAnswersFromBase(), _ge)); _listscales.Add(new DScalePA(GetAnswersFromBase(), _ge)); _listscales.Add(new DScalePT(GetAnswersFromBase(), _ge, new DScaleK(GetAnswersFromBase(), _ge))); _listscales.Add(new DScaleSC(GetAnswersFromBase(), _ge, new DScaleK(GetAnswersFromBase(), _ge))); _listscales.Add(new DScaleMA(GetAnswersFromBase(), _ge, new DScaleK(GetAnswersFromBase(), _ge))); _listscales.Add(new DScaleSI(GetAnswersFromBase(), _ge)); //2 level _listscales.Add(new DScaleAC(GetAnswersFromBase(), _ge)); _listscales.Add(new DScalePC(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleDAN(GetAnswersFromBase(), _ge)); //3 level _listscales.Add(new DScaleDS(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleNPU(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleCS(GetAnswersFromBase(), _ge)); _listscales.Add(new DScaleMN(GetAnswersFromBase(), _ge)); //4 level _listscales.Add(new DScaleLAP(GetAnswersFromBase(), _ge)); // _listscales.Add(new DScaleKL(GetAnswersFromBase(),_human, _ge)); }
private void AddHuman(human newhuman) { int newdepartmentid; department newdep = _departmens.FirstOrDefault(ndep => ndep.idd == (int)newhuman.departmentid); department basedep = _fe.departments.FirstOrDefault(dep => dep.description == newdep.description); if (basedep == null) { newdepartmentid = this.AddDepartment(_departmens.First(dep => dep.idd == newhuman.departmentid)); } else { newdepartmentid = basedep.idd; } human createdhuman = human.Createhuman(0, newhuman.secondname); createdhuman.additinfo = newhuman.additinfo; createdhuman.birthday = newhuman.birthday; createdhuman.departmentid = newdepartmentid; createdhuman.educationid = newhuman.educationid; createdhuman.firstname = newhuman.firstname; createdhuman.genderid = newhuman.genderid; createdhuman.lastname = newhuman.lastname; foreach (testresult tresult in newhuman.testresults) { testresult createdtresult = testresult.Createtestresult(0, createdhuman.idh, tresult.testdate, tresult.testid, tresult.teststream, tresult.mode); createdhuman.testresults.Add(createdtresult); } _fe.humans.AddObject(createdhuman); _fe.SaveChanges(); }
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); }
public ContrastsTestReport(human human, testresult testresult, pBaseEntities ge, fBaseEntities fe) { _testresult = testresult; _human = human; _ge = ge; _fe = fe; _listscales = new List<IScale>(); _listscales.Add(new ContrastsScale(this.GetAnswersFromBase())); }
public TimeLineForm(testresult TestResult) { InitializeComponent(); _testresult = TestResult; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "result_character.htm#speed_view"); }
/// <summary> /// Создание нового объекта testresult. /// </summary> /// <param name="idtr">Исходное значение свойства idtr.</param> /// <param name="idh">Исходное значение свойства idh.</param> /// <param name="testdate">Исходное значение свойства testdate.</param> /// <param name="testid">Исходное значение свойства testid.</param> /// <param name="teststream">Исходное значение свойства teststream.</param> /// <param name="mode">Исходное значение свойства mode.</param> public static testresult Createtestresult(global::System.Int32 idtr, global::System.Int32 idh, global::System.DateTime testdate, global::System.Int32 testid, global::System.String teststream, global::System.String mode) { testresult testresult = new testresult(); testresult.idtr = idtr; testresult.idh = idh; testresult.testdate = testdate; testresult.testid = testid; testresult.teststream = teststream; testresult.mode = mode; return(testresult); }
private void UpgradeHuman(human oldhuman, human newhuman) { foreach (testresult tresult in newhuman.testresults) { if (oldhuman.testresults.FirstOrDefault(oldrestest => oldrestest.testid == tresult.testid & oldrestest.testdate == tresult.testdate) == null) { testresult createdtresult = testresult.Createtestresult(0, oldhuman.idh, tresult.testdate, tresult.testid, tresult.teststream, tresult.mode); oldhuman.testresults.Add(createdtresult); _fe.SaveChanges(); } } }
public PTestReport(human human, testresult testresult, pBaseEntities ge, fBaseEntities fe, bool WithResult) { _testresult = testresult; _human = human; _ge = ge; _fe = fe; _withresult = WithResult; _listscales = new List<IScale>(); _listscales.Add(new PScaleI(GetAnswersFromBase(), _ge)); _listscales.Add(new PScaleNPU(GetAnswersFromBase(), _ge)); }
public TestResultForm(testresult tstresult, int humanid, pBaseEntities ge, fBaseEntities fe) { InitializeComponent(); _ge = ge; _fe = fe; _testresult = tstresult; _humanid = humanid; RemarkToolTip = new ToolTip(); RemarkToolTip.ToolTipIcon = ToolTipIcon.Info; RemarkToolTip.ToolTipTitle = "Вопрос:"; RemarkToolTip.IsBalloon = true; HelpProvider help = new HelpProvider(); help.HelpNamespace = "Recog_help.chm"; help.SetHelpNavigator(this, HelpNavigator.Topic); help.SetHelpKeyword(this, "result_character.htm#test_view"); }
public LTestReport(human human, testresult testresult, pBaseEntities ge, fBaseEntities fe, bool WithResult) { _testresult = testresult; _human = human; _ge = ge; _fe = fe; _withresult = WithResult; _listscales = new List<IScale>(); _listscales.Add(new LScaleG1(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG2(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG3(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG4(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG5(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG6(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG7(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG8(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG9(GetAnswersFromBase(), _ge)); _listscales.Add(new LScaleG10(GetAnswersFromBase(), _ge)); }
public FPITestReport(human human, testresult testresult, pBaseEntities ge, fBaseEntities fe, bool WithResult) { _testresult = testresult; _human = human; _ge = ge; _fe = fe; _withresult = WithResult; _listscales = new List<IScale>(); _listscales.Add(new FPIScaleI(this.GetAnswersFromBase(),_ge)); _listscales.Add(new FPIScaleII(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleIII(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleIV(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleV(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleVI(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleVII(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleVIII(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleIX(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleX(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleXI(this.GetAnswersFromBase(), _ge)); _listscales.Add(new FPIScaleXII(this.GetAnswersFromBase(), _ge)); }
public IScalesCollection(pBaseEntities ge, testresult testresult, human human) { _listscales = new List<IScale>(); }
/// <summary> /// Устаревший метод для добавления новых объектов в набор EntitySet testresults. Взамен можно использовать метод .Add связанного свойства ObjectSet<T>. /// </summary> public void AddTotestresults(testresult testresult) { base.AddObject("testresults", testresult); }
/// <summary> /// Создание нового объекта testresult. /// </summary> /// <param name="idtr">Исходное значение свойства idtr.</param> /// <param name="idh">Исходное значение свойства idh.</param> /// <param name="testdate">Исходное значение свойства testdate.</param> /// <param name="testid">Исходное значение свойства testid.</param> /// <param name="teststream">Исходное значение свойства teststream.</param> /// <param name="mode">Исходное значение свойства mode.</param> public static testresult Createtestresult(global::System.Int32 idtr, global::System.Int32 idh, global::System.DateTime testdate, global::System.Int32 testid, global::System.String teststream, global::System.String mode) { testresult testresult = new testresult(); testresult.idtr = idtr; testresult.idh = idh; testresult.testdate = testdate; testresult.testid = testid; testresult.teststream = teststream; testresult.mode = mode; return testresult; }
private void btn_addtobase_Click(object sender, EventArgs e) { ITest tst = TestFactory.CreateTest((EnumPTests)_testid, _ge, _fe, true); tst.HumanID = _humanid; _testresult = tst.ResultsToBase(this.ag_answers.Answers); this.Close(); }
void btn_addtobase_Click(object sender, EventArgs e) { _testresult = _recogform.TestResult; if (_printing == true) { this.PrintReference(); } this.Start(); }