StableVersion4.3/HL_FristAidPlatform_IService/Service/IT_Service_ChestPain_OutDru...

132 lines
4.1 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_ChestPain_OutDrugDetail
/// 出院带药 V2.1版
/// </summary>
public interface IT_Service_ChestPain_OutDrugDetail
{
#region 增
/// <summary>
/// 增加一条数据
/// </summary>
/// <param name="model">实体</param>
/// <returns></returns>
bool Add(T_Service_ChestPain_OutDrugDetail model);
/// <summary>
/// 新增 仅更新赋值的字段
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
int AddNotNullColumns(T_Service_ChestPain_OutDrugDetail model);
/// <summary>
/// 新增 仅更新赋值的字段
/// 用于移动端
/// </summary>
/// <param name="model">实体类</param>
/// <returns></returns>
int AddForApp(T_Service_ChestPain_OutDrugDetail model);
#endregion
#region 删
/// <summary>
/// 删除数据
/// </summary>
/// <param name="ID">ID</param>
/// <returns></returns>
bool Delete(long ID);
/// <summary>
/// 逻辑删除
/// </summary>
/// <param name="model">实体类</param>
/// <returns></returns>
int LogicalDelete(T_Service_ChestPain_OutDrugDetail model);
/// <summary>
/// 删除
/// 用于移动端
/// </summary>
/// <param name="model">实体类ID必填</param>
/// <returns></returns>
int DeleteForApp(T_Service_ChestPain_OutDrugDetail model);
#endregion
#region 改
/// <summary>
/// 更新一条数据
/// </summary>
/// <param name="model">实体</param>
/// <returns></returns>
bool Update(T_Service_ChestPain_OutDrugDetail model);
/// <summary>
/// 仅更新赋值的字段
/// </summary>
/// <param name="model">实体类</param>
/// <returns></returns>
int UpdateNotNullColumns(T_Service_ChestPain_OutDrugDetail model);
/// <summary>
/// 修改--仅更新赋值的字段
/// 用于移动端
/// </summary>
/// <param name="model">实体类</param>
/// <returns></returns>
int UpdateForApp(T_Service_ChestPain_OutDrugDetail model);
#endregion
#region 查
/// <summary>
/// 得到一个对象实体
/// </summary>
/// <param name="long ID">主键</param>
/// <returns></returns>
T_Service_ChestPain_OutDrugDetail GetModel(long ID);
/// <summary>
/// 得到一个对象实体
/// 用于移动端
/// </summary>
/// <param name="id">患者编号</param>
/// <param name="guid">GUID</param>
/// <returns></returns>
TableModel<T_Service_ChestPain_OutDrugDetail> GetModelForApp(long id, string guid);
/// <summary>
/// 根据分页获得数据列表
/// </summary>
/// <param name="pageIndex">起始页</param>
/// <param name="pageSize">每页条数</param>
/// <returns></returns>
TableModel<T_Service_ChestPain_OutDrugDetail> GetPageList(int PageSize, int PageIndex);
/// <summary>
/// 根据患者编号(GUID) 获取数据信息
/// </summary>
/// <param name="patientGuid">病人编号(GUID)</param>
/// <returns></returns>
string GetByPatientGuid(string patientGuid);
/// <summary>
/// 根据患者编号(GUID) 获取数据信息
/// 用于移动端
/// </summary>
/// <param name="patientGuid">病人编号(GUID)</param>
/// <returns></returns>
string GetByPatientGuidForApp(string patientGuid);
/// <summary>
/// 逻辑删除 出院带药
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool UpdateDelete(T_Service_ChestPain_OutDrugDetail model);
#endregion
}
}