176 lines
5.3 KiB
C#
176 lines
5.3 KiB
C#
using dccdc.DAL;
|
||
using dccdc.Models;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Data;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace dccdc.BLL
|
||
{
|
||
public class occupation_reportBll
|
||
{
|
||
occupation_reportDal dal = new occupation_reportDal();
|
||
|
||
public List<occupation_reportModel> GetAllList(string id)
|
||
{
|
||
List <occupation_reportModel> list = dal.GetAllList(id);
|
||
if(list != null)
|
||
{
|
||
foreach(occupation_reportModel model in list)
|
||
{
|
||
//添加默认数据
|
||
if(model.evaluation_basic == null)
|
||
{
|
||
model.evaluation_basic = "《中华人民共和国职业病防治法》\r\n《职业健康监护技术规范》(GBZ188-2014)";
|
||
}
|
||
if(model.diagnostic_standard == null)
|
||
{
|
||
model.diagnostic_standard = "(1)GBZ XX-20XX 职业性XX诊断标准\r\n(2)GBZ XX-20XX职业性XX诊断标准";
|
||
}
|
||
}
|
||
}
|
||
return list;
|
||
}
|
||
|
||
public List<occupation_reportModel> GetAllList(string start, string end, string where, string sort)
|
||
{
|
||
return dal.GetAllList(start, end, where, sort);
|
||
}
|
||
|
||
public List<ProfessionalExamRegisterModel> GetRegesite(string start, string end, string where, string sort)
|
||
{
|
||
return dal.GetRegesite(start, end, where, sort);
|
||
}
|
||
|
||
public List<ProfessionalExamRegisterModel> GetRegesite(string personids)
|
||
{
|
||
return dal.GetRegesite(personids);
|
||
}
|
||
|
||
//2023-12-11 xulu 分页查询登记信息
|
||
public List<ProfessionalExamRegisterModel> GetRegesite(int page, int pagesize,string personids)
|
||
{
|
||
return dal.GetRegesite(page, pagesize, personids);
|
||
}
|
||
|
||
public List<DTO_target_factor_maintainModel> GetTargetFactor(string personids)
|
||
{
|
||
return dal.GetTargetFactor(personids);
|
||
}
|
||
|
||
public List<DTO_contraindicat_factor_maintainModel> GetContraindicatFactor(string personids)
|
||
{
|
||
return dal.GetContraindicatFactor(personids);
|
||
}
|
||
|
||
public List<ProfessionalExamProjectResultModel> GetRegesitePR(string personids, bool JYXM)
|
||
{
|
||
return dal.GetRegesitePR(personids, JYXM);
|
||
}
|
||
|
||
public int GetJobId(string job)
|
||
{
|
||
return dal.GetJobId(job);
|
||
}
|
||
|
||
public string GetGroups(string idsP)
|
||
{
|
||
return dal.GetGroups(idsP);
|
||
}
|
||
|
||
public List<ProfessionalExamProjectResultModel> GetRegesiteResult(string personids)
|
||
{
|
||
return dal.GetRegesiteResult(personids);
|
||
}
|
||
|
||
public object save(occupation_reportModel model)
|
||
{
|
||
return dal.save(model);
|
||
}
|
||
|
||
public object delete(string id)
|
||
{
|
||
return dal.delete(id);
|
||
}
|
||
|
||
public object changeStatus(string id, string sort, string descript, ERPUser user)
|
||
{
|
||
return dal.changeStatus(id, sort, descript, user);
|
||
}
|
||
|
||
//根据报表编码获取汇总报告数据
|
||
public List<occupation_reportModel> getReportByNum(string report_num)
|
||
{
|
||
return dal.getReportByNum(report_num);
|
||
}
|
||
|
||
//根据人员ID获取异常的体检结果
|
||
public List<ProfessionalExamProjectResultModel> getTjjgById(string pid)
|
||
{
|
||
return dal.getTjjgById(pid);
|
||
}
|
||
|
||
public DataTable getHazards(string ids)
|
||
{
|
||
string str = "";
|
||
string str1 = "";
|
||
DataTable dt = new DataTable();
|
||
dt.Columns.Add("Hazards");
|
||
if (string.IsNullOrEmpty(ids))
|
||
return dt;
|
||
var hazards = new occupation_reportBll().getRegisterById(ids.Trim(','));
|
||
foreach (var r in hazards)
|
||
{
|
||
str += r.hazards + ",";
|
||
}
|
||
var sss = str.Split(',').Distinct().ToArray();
|
||
foreach (var o in sss)
|
||
{
|
||
str1 += o + ',';
|
||
}
|
||
DataRow dr = dt.NewRow();
|
||
dr["Hazards"] = str1.Substring(0, str1.Length - 1).ToString();
|
||
dt.Rows.Add(dr);
|
||
return dt;
|
||
}
|
||
|
||
//根据人员编码获取人员列表
|
||
public List<ProfessionalExamRegisterModel> getRegisterById(string ids)
|
||
{
|
||
return dal.getRegisterById(ids);
|
||
}
|
||
|
||
//获取本次职业健康检查的目的
|
||
public string getZyjkjc(string str1, string str2)
|
||
{
|
||
return dal.getZyjkjc(str1, str2);
|
||
}
|
||
|
||
//获取化验项目
|
||
public List<ProfessionalExamProjectResultModel> getHyxm(string ids)
|
||
{
|
||
return dal.getHyxm(ids);
|
||
}
|
||
|
||
//获取单位信息
|
||
public List<EnterpriceInfoMaintainModel> getDw(string dwmc)
|
||
{
|
||
return dal.getDw(dwmc);
|
||
}
|
||
|
||
//获取检查项目
|
||
public string getJcxm(string str1, string str2)
|
||
{
|
||
return dal.getJcxm(str1, str2);
|
||
}
|
||
|
||
//2023-12-12 xulu 查询检查项目的参考值
|
||
public object GetRegesitePR1(string v1, bool v2)
|
||
{
|
||
return dal.GetRegesitePR1(v1, v2);
|
||
}
|
||
}
|
||
}
|