124 lines
3.7 KiB
C#
124 lines
3.7 KiB
C#
using HL_FristAidPlatform_Help;
|
||
using HL_FristAidPlatform_Models;
|
||
|
||
namespace HL_FristAidPlatform_IDataBase
|
||
{
|
||
/// <summary>
|
||
/// 接口层T_Service_Pathography
|
||
/// 患者电子病历信息表
|
||
/// </summary>
|
||
public interface IT_Service_Pathography
|
||
{
|
||
#region 增
|
||
/// <summary>
|
||
/// 增加一条数据
|
||
/// </summary>
|
||
/// <param name="model">实体</param>
|
||
/// <returns></returns>
|
||
bool Add(T_Service_Pathography model);
|
||
|
||
/// <summary>
|
||
/// 新增 仅更新赋值的字段
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
int AddNotNullColumns(T_Service_Pathography model);
|
||
|
||
/// <summary>
|
||
/// 新增 仅更新赋值的字段
|
||
/// 用于移动端
|
||
/// </summary>
|
||
/// <param name="model">实体类</param>
|
||
/// <returns></returns>
|
||
int AddForApp(T_Service_Pathography model);
|
||
#endregion
|
||
|
||
#region 删
|
||
/// <summary>
|
||
/// 删除数据
|
||
/// </summary>
|
||
bool Delete(long ID);
|
||
|
||
/// <summary>
|
||
/// 逻辑删除
|
||
/// </summary>
|
||
/// <param name="model">实体类</param>
|
||
/// <returns></returns>
|
||
int LogicalDelete(T_Service_Pathography model);
|
||
|
||
/// <summary>
|
||
/// 删除
|
||
/// 用于移动端
|
||
/// </summary>
|
||
/// <param name="model">实体类,ID必填</param>
|
||
/// <returns></returns>
|
||
int DeleteForApp(T_Service_Pathography model);
|
||
#endregion
|
||
|
||
#region 改
|
||
/// <summary>
|
||
/// 更新一条数据
|
||
/// </summary>
|
||
/// <param name="model">实体</param>
|
||
/// <returns></returns>
|
||
bool Update(T_Service_Pathography model);
|
||
|
||
/// <summary>
|
||
/// 仅更新赋值的字段
|
||
/// </summary>
|
||
/// <param name="model">实体类</param>
|
||
/// <returns></returns>
|
||
int UpdateNotNullColumns(T_Service_Pathography model);
|
||
|
||
/// <summary>
|
||
/// 修改--仅更新赋值的字段
|
||
/// 用于移动端
|
||
/// </summary>
|
||
/// <param name="model">实体类</param>
|
||
/// <returns></returns>
|
||
int UpdateForApp(T_Service_Pathography model);
|
||
#endregion
|
||
|
||
#region 查
|
||
/// <summary>
|
||
/// 得到一个对象实体
|
||
/// </summary>
|
||
/// <param name="long ID">主键</param>
|
||
/// <returns></returns>
|
||
T_Service_Pathography GetModel(long ID);
|
||
|
||
/// <summary>
|
||
/// 得到一个对象实体
|
||
/// 用于移动端
|
||
/// </summary>
|
||
/// <param name="id">患者编号</param>
|
||
/// <param name="guid">GUID</param>
|
||
/// <returns></returns>
|
||
TableModel<T_Service_Pathography> GetModelForApp(long id, string guid);
|
||
|
||
/// <summary>
|
||
/// 根据分页获得数据列表
|
||
/// </summary>
|
||
/// <param name="pageIndex">起始页</param>
|
||
/// <param name="pageSize">每页条数</param>
|
||
/// <returns></returns>
|
||
TableModel<T_Service_Pathography> GetPageList(int PageSize, int PageIndex);
|
||
|
||
/// <summary>
|
||
/// 根据患者编号(GUID) 获取数据信息
|
||
/// </summary>
|
||
/// <param name="patientGuid">病人编号(GUID)</param>
|
||
/// <returns></returns>
|
||
TableModel<T_Service_Pathography> GetByPatientGuid(string patientGuid);
|
||
|
||
/// <summary>
|
||
/// 根据患者编号(GUID) 获取数据信息
|
||
/// 用于移动端
|
||
/// </summary>
|
||
/// <param name="patientGuid">病人编号(GUID)</param>
|
||
/// <returns></returns>
|
||
TableModel<T_Service_Pathography> GetByPatientGuidForApp(string patientGuid);
|
||
#endregion
|
||
}
|
||
}
|