StableVersion4.3/HL_FristAidPlatform_IService/Service/IT_Service_Image.cs

64 lines
2.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using HL_FristAidPlatform_Help;
using HL_FristAidPlatform_Models;
namespace HL_FristAidPlatform_IDataBase
{
/// <summary>
/// 接口层T_Service_Image
/// </summary>
public interface IT_Service_Image
{
#region 成员方法
/// <summary>
/// 增加一条数据
/// </summary>
bool Add(T_Service_Image model);
/// <summary>
/// 更新一条数据
/// </summary>
bool Update(T_Service_Image model);
/// <summary>
/// 删除数据
/// </summary>
bool Delete(long ID);
/// <summary>
/// 逻辑删除
/// </summary>
/// <param name="id">编号:大于0删除当前编号的数据小于或等于0删除当前病人+当前模块+当前图片类型的所有图片</param>
/// <param name="patientGuid">患者编号(GUID)</param>
/// <param name="systemModuleID">所属系统模块编号</param>
/// <param name="fileType">图片类型1CT检查2院前首份心电图;3:院内首份心电图</param>
/// <returns></returns>
int LogicalDelete(long id, string patientGuid, long systemModuleID, int fileType);
/// <summary>
/// 获取单个数据
/// </summary>
T_Service_Image Get(string id);
/// <summary>
/// 分页
/// </summary>
/// <param name="pageIndex">起始页</param>
/// <param name="pageSize">每页大小</param>
/// <param name="patientGuid">患者编号(Guid)</param>
/// <param name="systemModuleID">所属系统编号</param>
/// <returns></returns>
TableModel<T_Service_Image> GetPageList(int pageIndex, int pageSize, string patientGuid, long systemModuleID);
/// <summary>
/// 获取所有
/// </summary>
/// <param name="patientGuid">患者编号(Guid)</param>
/// <param name="systemModuleID">所属系统编号</param>
/// <param name="fileType">查看图片类型0查询所有</param>
/// <returns></returns>
TableModel<T_Service_Image> GetList(string patientGuid, long systemModuleID, int fileType);
/// <summary>
/// 获取指定图片
/// </summary>
/// <param name="guid">图片编号(Guid)</param>
/// <returns></returns>
TableModel<T_Service_Image> GetByGuid(string guid);
#endregion 成员方法
}
}