StableVersion4.3/HL_FristAidPlatform_Bussiness/Service/T_Service_FirstAid_FileInfo...

64 lines
2.1 KiB
C#

using HL_FristAidPlatform_DataBase;
using HL_FristAidPlatform_Help;
using HL_FristAidPlatform_IDataBase;
using HL_FristAidPlatform_Models;
using System.Collections.Generic;
namespace HL_FristAidPlatform_Bussiness
{
/// <summary>
/// 院前急救 文件信息
/// </summary>
public class T_Service_FirstAid_FileInfoBLL
{
private IT_Service_FirstAid_FileInfo IService = new T_Service_FirstAid_FileInfoDB();
/// <summary>
/// 批量 新增文件信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public int AddList(List<T_Service_FirstAid_FileInfo> model)
{
return IService.AddList(model);
}
/// <summary>
/// 院前急救 分页列表
/// </summary>
/// <param name="fileName"></param>
/// <param name="suffix"></param>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <returns></returns>
public TableModel<T_Service_FirstAid_FileInfo> GetPageList(string hospitalGuid, string fileName,string suffix,string startTime,string endTime,int pageIndex, int pageSize)
{
return IService.GetPageList(hospitalGuid,fileName,suffix,startTime,endTime, pageIndex, pageSize);
}
/// <summary>
/// 获取文件类型
/// </summary>
/// <returns></returns>
public List<string> GetSuffixList()
{
return IService.GetSuffixList();
}
public MessageModel<T_Service_FirstAid_FileInfo> Delete(List<T_Service_FirstAid_FileInfo> list)
{
if (IService.Delete(list)>0)
{
return new MessageModel<T_Service_FirstAid_FileInfo> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_FirstAid_FileInfo> { Success = false, Msg = "操作失败" };
}
}
}
}