113 lines
5.4 KiB
C#
113 lines
5.4 KiB
C#
|
using HL_FristAidPlatform_DataBase;
|
|||
|
using HL_FristAidPlatform_Help;
|
|||
|
using HL_FristAidPlatform_IDataBase;
|
|||
|
using HL_FristAidPlatform_IDataBase.Service;
|
|||
|
using HL_FristAidPlatform_Models;
|
|||
|
using HL_FristAidPlatform_Models.Sercice;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Transactions;
|
|||
|
|
|||
|
namespace HL_FristAidPlatform_Bussiness
|
|||
|
{
|
|||
|
public class T_Service_Apoplexy_ThrombolysisRateBLL
|
|||
|
{
|
|||
|
private IT_Service_Apoplexy_ThrombolysisRate IService = new T_Service_Apoplexy_ThrombolysisRateDB();
|
|||
|
|
|||
|
|
|||
|
public Tuple<int, int> GetThrombolysisRate(string hospitalGuid, string startTime, string endTime)
|
|||
|
{
|
|||
|
return IService.GetThrombolysisRate(hospitalGuid, startTime, endTime);
|
|||
|
}
|
|||
|
public Tuple<int, int> GetInterveneRate(string hospitalGuid, string startTime, string endTime)
|
|||
|
{
|
|||
|
return IService.GetInterveneRate(hospitalGuid, startTime, endTime);
|
|||
|
}
|
|||
|
public Tuple<int, int, int, int> GetYYTiaoZhi(string hospitalGuid, string startTime, string endTime)
|
|||
|
{
|
|||
|
return IService.GetYYTiaoZhi(hospitalGuid, startTime, endTime);
|
|||
|
}
|
|||
|
|
|||
|
public Tuple<int, int> GetTreatmentRate(string hospitalGuid, string startTime, string endTime)
|
|||
|
{
|
|||
|
return IService.GetTreatmentRate(hospitalGuid, startTime, endTime);
|
|||
|
}
|
|||
|
|
|||
|
public Tuple<int, int> GetReperfusionRate(string hospitalGuid, string startTime, string endTime)
|
|||
|
{
|
|||
|
return IService.GetReperfusionRate(hospitalGuid, startTime, endTime);
|
|||
|
}
|
|||
|
|
|||
|
public Tuple<int, int> GetIntracranialHemorrhageRate(string hospitalGuid, string startTime, string endTime)
|
|||
|
{
|
|||
|
return IService.GetIntracranialHemorrhageRate(hospitalGuid, startTime, endTime);
|
|||
|
}
|
|||
|
public TableModel<ApoplexyRateListModel> GetIntracranialHemorrhageRateList(string hospitalGuid, string startTime, string endTime, string type, int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetIntracranialHemorrhageRateList(hospitalGuid, startTime, endTime, type, pageIndex, pageSize);
|
|||
|
}
|
|||
|
|
|||
|
public TableModel<ApoplexyRateListModel> GetThrombolysisRateList(string hospitalGuid, string startTime, string endTime, string type, int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetThrombolysisRateList(hospitalGuid, startTime, endTime, type, pageIndex, pageSize);
|
|||
|
}
|
|||
|
|
|||
|
public TableModel<ApoplexyRateListModel> GetInterveneRateList(string hospitalGuid, string startTime, string endTime, string type, int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetInterveneRateList(hospitalGuid, startTime, endTime, type, pageIndex, pageSize);
|
|||
|
}
|
|||
|
|
|||
|
public TableModel<ApoplexyRateListModel> GetYYTiaoZhiList(string hospitalGuid, string startTime, string endTime, string type, string flag, int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetYYTiaoZhiList(hospitalGuid, startTime, endTime, type, flag, pageIndex, pageSize);
|
|||
|
}
|
|||
|
public TableModel<ApoplexyRateListModel> GetTreatmentRateList(string hospitalGuid, string startTime, string endTime, string type, int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetTreatmentRateList(hospitalGuid, startTime, endTime, type, pageIndex, pageSize);
|
|||
|
}
|
|||
|
public TableModel<ApoplexyRateListModel> GetReperfusionRateList(string hospitalGuid, string startTime, string endTime, string type, int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetReperfusionRateList(hospitalGuid, startTime, endTime, type, pageIndex, pageSize);
|
|||
|
}
|
|||
|
public List<DictionaryModel> GetAverageHospitalizationRate(string startTime, string endTime, string type)
|
|||
|
{
|
|||
|
if (type == "0")
|
|||
|
{
|
|||
|
string start = new DateTime(Convert.ToDateTime(DateTime.Now).Year, 1, 1).ToString("yyyy-MM-dd") + " 00:00:00";
|
|||
|
string end = new DateTime(Convert.ToDateTime(DateTime.Now).Year, 12, 31).ToString("yyyy-MM-dd") + " 23:59:59";
|
|||
|
return IService.GetAverageHospitalizationRate(start, end);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return IService.GetAverageHospitalizationRate(startTime, endTime);
|
|||
|
}
|
|||
|
}
|
|||
|
public List<DictionaryModel> GetAverageONTRate(string startTime, string endTime, string type)
|
|||
|
{
|
|||
|
if (type == "0")
|
|||
|
{
|
|||
|
string start = new DateTime(Convert.ToDateTime(DateTime.Now).Year, 1, 1).ToString("yyyy-MM-dd") + " 00:00:00";
|
|||
|
string end = new DateTime(Convert.ToDateTime(DateTime.Now).Year, 12, 31).ToString("yyyy-MM-dd") + " 23:59:59";
|
|||
|
return IService.GetAverageONTRate(start, end);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return IService.GetAverageONTRate(startTime, endTime);
|
|||
|
}
|
|||
|
}
|
|||
|
public List<DiseaseModel> GetAverageEntityRate(string startTime, string endTime, string type)
|
|||
|
{
|
|||
|
if (type == "0")
|
|||
|
{
|
|||
|
string start = new DateTime(Convert.ToDateTime(DateTime.Now).Year, 1, 1).ToString("yyyy-MM-dd") + " 00:00:00";
|
|||
|
string end = new DateTime(Convert.ToDateTime(DateTime.Now).Year, 12, 31).ToString("yyyy-MM-dd") + " 23:59:59";
|
|||
|
return IService.GetAverageEntityRate(start, end);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return IService.GetAverageEntityRate(startTime, endTime);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|