System.Data.DataTabledataTable=DAOHelp.GetDataBySQL($@"select * from pacs.DICOMSERVER.dbo.PatientSchedule where XMNo = {_feeItem.ID} and DelDate is NULL");
System.Data.DataTabledataTable=DAOHelp.GetDataBySQL($@"select * from pacs.DICOMSERVER.dbo.PatientSchedule where PatientID = 'T_{_feeItem.EID}' and XMNo = {_feeItem.ID} and DelDate is NULL");
if(dataTable.Rows.Count>0)
{
_isPacsRegist=true;
@ -864,7 +866,7 @@ namespace PEIS.View.Enrollment
// 检查项目是否已经登记,登记后无法删除
if(item.ItemClass=="检查")
{
List<EnrollmentFeeItem>_isPacsRegistes=DAOHelp.GetDataBySQL<EnrollmentFeeItem>($@"select * from Enrollment_FeeItem where ID = {item.ID} and EXISTS(select * from pacs.DICOMSERVER.dbo.PatientSchedule where XMNo = ID and DelDate is NULL)");
List<EnrollmentFeeItem>_isPacsRegistes=DAOHelp.GetDataBySQL<EnrollmentFeeItem>($@"select * from pacs.DICOMSERVER.dbo.PatientSchedule where PatientID = 'T_{item.EID}' and XMNo = {item.ID} and DelDate is NULL");
List<EnrollmentFeeItem>_isPacsRegistes=DAOHelp.GetDataBySQL<EnrollmentFeeItem>($@"select * from Enrollment_FeeItem where ID = {item.ID} and EXISTS(select * from pacs.DICOMSERVER.dbo.PatientSchedule where XMNo = ID and DelDate is NULL)");
List<EnrollmentFeeItem>_isPacsRegistes=DAOHelp.GetDataBySQL<EnrollmentFeeItem>($@"select * from pacs.DICOMSERVER.dbo.PatientSchedule where PatientID = 'T_{item.EID}' and XMNo = {item.ID} and DelDate is NULL");
List<EnrollmentFeeItem>_noResultItem=DAOHelp.GetDataBySQL<EnrollmentFeeItem>($@"select * from Enrollment_FeeItem where ItemClass = '检验' and DeptCode = '3001' and GiveUpTime is null and EID = {_patient.ID} and NOT exists (select * from lis.rmlis6.dbo.vw_checked_labresult_sq where req_id = id)");
List<EnrollmentFeeItem>_noResultItem=DAOHelp.GetDataBySQL<EnrollmentFeeItem>($@"select * from Enrollment_FeeItem where ItemClass = '检验' and GiveUpTime is null and EID = {_patient.ID} and NOT exists (select * from {_lisViewName} where req_id = id)");