63 lines
1.5 KiB
C#
63 lines
1.5 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 TargetDiseaseMaintainBll
|
|
{
|
|
public TargetDiseaseMaintainDal dal = new TargetDiseaseMaintainDal();
|
|
|
|
public int getCount(string key)
|
|
{
|
|
return dal.getCount(key);
|
|
}
|
|
|
|
public List<TargetDiseaseMaintainModel> GetAllList(string id)
|
|
{
|
|
return dal.GetAllList(id);
|
|
}
|
|
|
|
public List<TargetDiseaseMaintainModel> GetAllList2()
|
|
{
|
|
return dal.GetAllList2();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据目标疾病名称获取目标疾病列表
|
|
/// </summary>
|
|
/// <param name="page"></param>
|
|
/// <param name="pagesize"></param>
|
|
/// <param name="key"></param>
|
|
/// <returns></returns>
|
|
public List<TargetDiseaseMaintainModel> getList(int page, int pagesize, string key)
|
|
{
|
|
return dal.getList(page, pagesize, key);
|
|
}
|
|
|
|
public bool Add(TargetDiseaseMaintainModel model)
|
|
{
|
|
return dal.Add(model);
|
|
}
|
|
|
|
public bool Update(TargetDiseaseMaintainModel model)
|
|
{
|
|
return dal.Update(model);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据id删除目标疾病
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
public object delMbjb(string id)
|
|
{
|
|
return dal.del(id);
|
|
}
|
|
}
|
|
}
|