using HL_FristAidPlatform_DataBase; using HL_FristAidPlatform_Help; using HL_FristAidPlatform_IDataBase; using HL_FristAidPlatform_Models; namespace HL_FristAidPlatform_Bussiness { /// /// 健康教育记录 /// public class T_Service_Apoplexy_HATBLL { private IT_Service_Apoplexy_HAT IService = new T_Service_Apoplexy_HATDB(); public int AddorUpdate(T_Service_Apoplexy_HAT model) { int id = IService.GetIDByPatientGuid(model.PatientGuid); if (id != 0) { model.ID = id; return IService.Update(model); } else { return IService.Add(model); } } public MessageModel Delete(int id) { if (IService.Delete(id)) { return new MessageModel { Success = true, Msg = "操作成功" }; } else { return new MessageModel { Success = false, Msg = "操作失败" }; } } public T_Service_Apoplexy_HAT Get(long id) { return IService.Get(id); } public TableModel GetPageList(int pageIndex, int pageSize) { return IService.GetPageList(pageIndex, pageSize); } /// /// /// /// /// public TableModel GetByPatientGuid(string patientGuid) { return IService.GetByPatientGuid(patientGuid); } } }