本文整理汇总了C#中Recog.Data.pBaseEntities类的典型用法代码示例。如果您正苦于以下问题:C# pBaseEntities类的具体用法?C# pBaseEntities怎么用?C# pBaseEntities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
pBaseEntities类属于Recog.Data命名空间,在下文中一共展示了pBaseEntities类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadFBForm
public LoadFBForm(pBaseEntities ge, fBaseEntities fe)
{
InitializeComponent();
_ge = ge;
_fe = fe;
dp_maxdate.ValueChanged += new EventHandler(dp_maxdate_ValueChanged);
dp_mindate.ValueChanged += new EventHandler(dp_maxdate_ValueChanged);
HelpProvider help = new HelpProvider();
help.HelpNamespace = "Recog_help.chm";
help.SetHelpNavigator(this, HelpNavigator.Topic);
help.SetHelpKeyword(this, "menu_excel.htm");
}
示例2: MDScaleM1
public MDScaleM1(MDAnswers mdAnswers, pBaseEntities GlobalEntities, MDScaleM1_1 groupA, MDScaleM1_2 groupB)
{
_answers = mdAnswers;
_ge = GlobalEntities;
_groupA = groupA;
_groupB = groupB;
}
示例3: GetMark
public static int GetMark(pBaseEntities GlobalEntities, AAnswers aAnswers, List<int> AnswersYes, List<int> AnswersNo)
{
int m = 0;
testsparam t = GlobalEntities.testsparams.First(tp => tp.idt == (int)EnumPTests.Addictive);
t.answersparams.Load();
for (int i = 0; i < AnswersYes.Count; i++)
{
answersparam a = t.answersparams.First(ap => ap.num == AnswersYes[i]);
a.cellsparams.Load();
if (aAnswers[(int)a.num - 1].SelectedCellDescription.Trim() != "")
{
cellsparam c = a.cellsparams.First(cp => cp.description.Trim() == aAnswers[(int)a.num - 1].SelectedCellDescription.Trim());
if (c.mark == 1) { m++; }
}
}
for (int i = 0; i < AnswersNo.Count; i++)
{
answersparam a = t.answersparams.First(ap => ap.num == AnswersNo[i]);
a.cellsparams.Load();
if (aAnswers[(int)a.num - 1].SelectedCellDescription.Trim() != "")
{
cellsparam c = a.cellsparams.First(cp => cp.description.Trim() == aAnswers[(int)a.num - 1].SelectedCellDescription.Trim());
if (c.mark == 0) { m++; }
}
}
return m;
}
示例4: DTestReport
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));
}
示例5: NPNTestLoader
public NPNTestLoader(pBaseEntities GlobalEntities, TwoButtonsControl Control)
{
_ge = GlobalEntities;
_ktc = Control;
_answers = new LAnswers(_ge);
arg = new TestDoneEventArgs();
}
示例6: Recognizer
public Recognizer(pBaseEntities GlobalEntities,Bitmap image,int testid)
{
_ge = GlobalEntities;
_image = image;
_testid = testid;
arg = new EventArgs();
}
示例7: KettellATestLoader
public KettellATestLoader(pBaseEntities GlobalEntities, ThreeButtonsControl Control)
{
_ge = GlobalEntities;
_ktc = Control;
_answers = new KettellAnswers(_ge);
arg = new TestDoneEventArgs();
}
示例8: BaseManager
public BaseManager()
{
_pbconnectionisvalid = false;
_fbconnectionisvalid = false;
if (Settings.Default.ServerType == FbServerType.Embedded.ToString())
{
_servertype = FbServerType.Embedded;
}
else
{
_servertype = FbServerType.Default;
}
_serverip = Settings.Default.ServerIP;
_pdatabase = Settings.Default.pBaseAlias;
_fdatabase = Settings.Default.fBaseAlias;
string pconnstring = pConnectionString();
string fconnstring = fConnectionString();
if (_pbconnectionisvalid == true & _fbconnectionisvalid == true)
{
_ge = new pBaseEntities(pconnstring);
_fe = new fBaseEntities(fconnstring);
}
else
{
_ge = null;
_fe = null;
}
}
示例9: KettellATestReport
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));
}
示例10: RecogAutomator
public RecogAutomator(EnumPTests test, pBaseEntities ge,fBaseEntities fe, EnumPReferences reference=EnumPReferences.NoReference,bool printing=true )
{
_test = test;
_reference = reference;
_fe = fe;
_ge = ge;
_printing = printing;
}
示例11: TestPnn
public TestPnn(pBaseEntities ge, fBaseEntities fe, bool IsAlone)
{
arg = new TestDoneEventArgs();
_ge = ge;
_fe = fe;
_alone = IsAlone;
_tstfrm = new TestPnnForm();
}
示例12: MDTestReport
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);
}
示例13: ContrastsTestReport
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()));
}
示例14: ReferenceFactory
public ReferenceFactory(human human,pBaseEntities ge, fBaseEntities fe)
{
_ge = ge;
_fe = fe;
_human = human;
_human.testresults.Load();
_evalrefs = new List<string[]>();
this.GetEvalRefs();
}
示例15: ExcelReport
public ExcelReport(pBaseEntities ge, fBaseEntities fe, EnumPTests test)
{
_ge = ge;
_fe = fe;
_test = test;
_worker = new BackgroundWorker();
_worker.DoWork += new DoWorkEventHandler(_worker_DoWork);
_worker.WorkerReportsProgress = true;
_worker.WorkerSupportsCancellation = true;
}