205 lines
6.4 KiB
C#
205 lines
6.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using dccdc.DAL;
|
|
using dccdc.Models;
|
|
|
|
namespace dccdc.BLL
|
|
{
|
|
public class ExamProjectMaintainBll
|
|
{
|
|
public ExamProjectMaintainDal Dal = new ExamProjectMaintainDal();
|
|
|
|
/// <summary>
|
|
/// 根据id获取体检项目
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> GetAllList(string id)
|
|
{
|
|
return Dal.GetAllList(id);
|
|
}
|
|
|
|
public List<ExamProjectMaintainModel> GetAllList2(string id, string teamid, string personid)
|
|
{
|
|
return Dal.GetAllList2(id, teamid, personid);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据personid获取异常项目
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="personid"></param>
|
|
/// <returns></returns>
|
|
public List<ProfessionalExamProjectResultModel> GetAllList3(string id, string personid)
|
|
{
|
|
return Dal.GetAllList3(id, personid);
|
|
}
|
|
/// <summary>
|
|
/// 根据personid获取其体检项目
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="personid"></param>
|
|
/// <returns></returns>
|
|
public List<ProfessionalExamProjectResultModel> GetAllList4(string id, string teamid, string personid)
|
|
{
|
|
return Dal.GetAllList4(id, teamid, personid);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据项目编号/项目名称/项目拼音编码查询
|
|
/// </summary>
|
|
/// <param name="where"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> GetAllList4(string where)
|
|
{
|
|
return Dal.GetAllList4(where);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据项目名称查询
|
|
/// </summary>
|
|
/// <param name="where"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> GetAllListByName(string where)
|
|
{
|
|
return Dal.GetAllListByName(where);
|
|
}
|
|
|
|
public List<ExamProjectMaintainModel> GetAllListByprojectid(string id)
|
|
{
|
|
return Dal.GetAllListByprojectid(id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据体检项目查询该体检项目的检查科室
|
|
/// </summary>
|
|
/// <param name="ids"></param>
|
|
/// <returns></returns>
|
|
public List<DtoRoom> GetRooms(string ids)
|
|
{
|
|
return Dal.GetRooms(ids);
|
|
}
|
|
|
|
public List<ExamProjectMaintainModel> GetAllListByprojectids(string id)
|
|
{
|
|
return Dal.GetAllListByprojectids(id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据拼音码或体检小组查询列表
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> GetAllBypytjxz(string groupid, string py,string name,bool status)
|
|
{
|
|
return Dal.GetAllBypytjxz(groupid, py,name, status);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据有害因素、在岗状态查询体检项目
|
|
/// 2023-11-24 xulu
|
|
/// </summary>
|
|
/// <param name="job_status_id"></param>
|
|
/// <param name="yhys_id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> GetAllByyhys(string job_status_id, string yhys_id)
|
|
{
|
|
return Dal.GetAllByyhys(job_status_id, yhys_id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据体检方案里的体检项目列查询明细
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> GetTjfnmxByIDs(string id)
|
|
{
|
|
return Dal.GetTjfnmxByIDs(id);
|
|
}
|
|
|
|
public bool Update(ExamProjectMaintainModel model)
|
|
{
|
|
return Dal.Update(model);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 增加体检项目
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
public List<string> Add(ExamProjectMaintainModel model)
|
|
{
|
|
return Dal.Add(model);
|
|
}
|
|
|
|
public bool Delete(int id)
|
|
{
|
|
return Dal.Delete(id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据person_id获取检查项目
|
|
/// 2023-11-22 xulu
|
|
/// </summary>
|
|
/// <param name="tjxz"></param>
|
|
/// <param name="py"></param>
|
|
/// <param name="name"></param>
|
|
/// <param name="person_id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> getCheckItemsByPersonId(string tjxz, string py, string name, string person_id)
|
|
{
|
|
return Dal.getCheckItemsByPersonId(tjxz, py, name, person_id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据person_id获取打印项目
|
|
/// 2023-11-22 xulu
|
|
/// </summary>
|
|
/// <param name="person_id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> getPrintItemsByPersonId(string person_id)
|
|
{
|
|
return Dal.getPrintItemsByPersonId(person_id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据scheme_id获取检查项目
|
|
/// 2023-11-22 xulu
|
|
/// </summary>
|
|
/// <param name="tjxz"></param>
|
|
/// <param name="py"></param>
|
|
/// <param name="name"></param>
|
|
/// <param name="scheme_id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> getCheckItemsBySchemeId(string tjxz, string py, string name, string scheme_id,string check_item_ids)
|
|
{
|
|
return Dal.getCheckItemsBySchemeId(tjxz, py, name, scheme_id, check_item_ids);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据scheme_id获取打印项目
|
|
/// 2023-11-22 xulu
|
|
/// </summary>
|
|
/// <param name="scheme_id"></param>
|
|
/// <returns></returns>
|
|
public List<ExamProjectMaintainModel> getPrintItemsBySchemeId(string scheme_id)
|
|
{
|
|
return Dal.getPrintItemsBySchemeId(scheme_id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据打印项目ids获取所有项目列表
|
|
/// 2023-11-22 xulu
|
|
/// </summary>
|
|
/// <param name="print_item_ids"></param>
|
|
/// <returns></returns>
|
|
public object GetTjfnByPrintItemIds(string print_item_ids)
|
|
{
|
|
return Dal.GetTjfnByPrintItemIds(print_item_ids);
|
|
}
|
|
}
|
|
}
|