From 1dc02f434cb29edcf447385be0d305f680d1b0f8 Mon Sep 17 00:00:00 2001 From: lsm Date: Wed, 24 Jul 2024 10:21:58 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A4=B4=E5=83=8F=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=A9=BA=E5=80=BC=E5=92=8C=E7=A9=BA=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PEIS/Model/ReportModel.cs | 2 +- PEIS/Utils/ReportHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PEIS/Model/ReportModel.cs b/PEIS/Model/ReportModel.cs index 776f2fb..6163a89 100644 --- a/PEIS/Model/ReportModel.cs +++ b/PEIS/Model/ReportModel.cs @@ -187,7 +187,7 @@ namespace PEIS.Model public List GetPacsPhoto(Int64 Eid) { var pacs = DAOHelp.GetDataBySQL($"select ReportImage from Report where EID = { Eid } AND ReportImage IS NOT NULL"); - var heart = DAOHelp.GetDataBySQL($"select ReportData AS ReportImage from Report_GSEXD where PatientNo = {Eid}"); + var heart = DAOHelp.GetDataBySQL($"select ReportData AS ReportImage from Report_GSEXD where PatientNo = {Eid} AND ReportData IS NOT NULL"); if (heart.Count == 0) { diff --git a/PEIS/Utils/ReportHelper.cs b/PEIS/Utils/ReportHelper.cs index 707e310..10d5890 100644 --- a/PEIS/Utils/ReportHelper.cs +++ b/PEIS/Utils/ReportHelper.cs @@ -242,7 +242,7 @@ namespace PEIS.Utils rpt.SetParameterValue("HospitalName", Global._hospital.Name); rpt.SetParameterValue("DeptName", patient.DeptName); - if(patient.Photo == null) + if(string.IsNullOrEmpty(patient.Photo)) { rpt.SetParameterValue("Avatar", patient.Photo); }