/*获取病例的疾病温馨提示*/ public NoticeEntity GetDiseaseNotice(Guid gCaseID) { if (confirmed == false) { NoticeEntity noticeEntity = new NoticeEntity(); noticeEntity.ErrorMessage = "xzf Not Logged in Yet! @Logic"; return noticeEntity; } else { return userDAO.GetDiseaseNotice(gCaseID); } }
/*获取药品的疾病温馨提示*/ public NoticeEntity GetPhysicNotice(Guid gPrescriptionID) { if (confirmed == false) { NoticeEntity noticeEntity = new NoticeEntity(); noticeEntity.ErrorMessage = "x信息f Not Logged in Yet! @Logic"; return noticeEntity; } else { return userDAO.GetPhysicNotice(gPrescriptionID); } }
/*将Notice的Entity翻译为数据契约*/ private void TranslateNoticeEntityToNoticeInfoContractData(NoticeEntity noticeEntity, Notice notice) { notice.ErrorMessage = noticeEntity.ErrorMessage; notice.Count = noticeEntity.Count; notice.notice = noticeEntity.notice; }