You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.4 KiB
38 lines
1.4 KiB
using PEIS.Entity;
|
|
using PEIS.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace PEIS.Model.Exam
|
|
{
|
|
public class CareerHisInqModel
|
|
{
|
|
public EnrollmentPatient GetPatient(Int64 eID)
|
|
{
|
|
var item = DAOHelp.GetDataBySQL<EnrollmentPatient>($@"Select * From Enrollment_Patient a WHERE a.ID = {eID}");
|
|
return item.Count != 0 ? item[0] : null;
|
|
}
|
|
public ExamCareerHisInq GetExamCareerHisInqByEid(Int64 eID)
|
|
{
|
|
var item= DAOHelp.GetDataBySQL<ExamCareerHisInq>($@"Select * From Exam_CareerHisInq a WHERE a.PID = {eID}");
|
|
return item.Count != 0 ? item[0] : null;
|
|
}
|
|
public List<ExamEmploymentHis> GetEmploymentHises(Int64 eID)
|
|
{
|
|
var list = DAOHelp.GetDataBySQL<ExamEmploymentHis>($@"Select * From Exam_EmploymentHis a WHERE a.PID = {eID}");
|
|
return list;
|
|
}
|
|
public List<BaseSymptom> GetBaseSymptom()
|
|
{
|
|
var list = DAOHelp.GetDataBySQL<BaseSymptom>($@"Select * From Base_Symptom a where a.Enable=1 ");
|
|
return list;
|
|
}
|
|
public List<ExamCareerHisInqSymptom> GetCareerHisInqSymptom(Int64 eID)
|
|
{
|
|
var list = DAOHelp.GetDataBySQL<ExamCareerHisInqSymptom>($@"Select * From Exam_CareerHisInqSymptom a where a.PID={eID} ");
|
|
return list;
|
|
}
|
|
}
|
|
}
|
|
|