Java 类ims.clinical.vo.HospitalAtNightListandDatesVo 实例源码

项目:AvoinApotti    文件:HospitalAtNightPatientDetailImpl.java   
private HospitalAtNightListandDatesVo getCurrentHospitalNightList(HospitalAtNightCutOverPointsConfigRefVo hospitalConfig, DateTime startDateTime, DateTime endDateTime) 
{
    DomainFactory factory = getDomainFactory();

    String query = "select h from HospitalAtNightListandDates as h where h.cutOverPoints.id = :HospitalConfig and h.shiftStartDate = :StartDate and h.shiftEndDate = :EndDate";
    List<?> list = factory.find(query, new String[] {"HospitalConfig", "StartDate", "EndDate"}, new Object[] {hospitalConfig.getID_HospitalAtNightCutOverPointsConfig(), startDateTime.getJavaDate(), endDateTime.getJavaDate()});

    HospitalAtNightListandDatesVoCollection currentList = HospitalAtNightListandDatesVoAssembler.createHospitalAtNightListandDatesVoCollectionFromHospitalAtNightListandDates(list);

    if(currentList == null || currentList.size() == 0)
        return null;

    return currentList.get(0);
}
项目:openMAXIMS    文件:HospitalAtNightPatientDetailImpl.java   
private HospitalAtNightListandDatesVo getCurrentHospitalNightList(HospitalAtNightCutOverPointsConfigRefVo hospitalConfig, DateTime startDateTime, DateTime endDateTime) 
{
    DomainFactory factory = getDomainFactory();

    String query = "select h from HospitalAtNightListandDates as h where h.cutOverPoints.id = :HospitalConfig and h.shiftStartDate = :StartDate and h.shiftEndDate = :EndDate";
    List<?> list = factory.find(query, new String[] {"HospitalConfig", "StartDate", "EndDate"}, new Object[] {hospitalConfig.getID_HospitalAtNightCutOverPointsConfig(), startDateTime.getJavaDate(), endDateTime.getJavaDate()});

    HospitalAtNightListandDatesVoCollection currentList = HospitalAtNightListandDatesVoAssembler.createHospitalAtNightListandDatesVoCollectionFromHospitalAtNightListandDates(list);

    if(currentList == null || currentList.size() == 0)
        return null;

    return currentList.get(0);
}
项目:openMAXIMS    文件:HospitalAtNightPatientDetailImpl.java   
private HospitalAtNightListandDatesVo getCurrentHospitalNightList(HospitalAtNightCutOverPointsConfigRefVo hospitalConfig, DateTime startDateTime, DateTime endDateTime) 
{
    DomainFactory factory = getDomainFactory();

    String query = "select h from HospitalAtNightListandDates as h where h.cutOverPoints.id = :HospitalConfig and h.shiftStartDate = :StartDate and h.shiftEndDate = :EndDate";
    List<?> list = factory.find(query, new String[] {"HospitalConfig", "StartDate", "EndDate"}, new Object[] {hospitalConfig.getID_HospitalAtNightCutOverPointsConfig(), startDateTime.getJavaDate(), endDateTime.getJavaDate()});

    HospitalAtNightListandDatesVoCollection currentList = HospitalAtNightListandDatesVoAssembler.createHospitalAtNightListandDatesVoCollectionFromHospitalAtNightListandDates(list);

    if(currentList == null || currentList.size() == 0)
        return null;

    return currentList.get(0);
}
项目:openmaxims-linux    文件:HospitalAtNightPatientDetailImpl.java   
private HospitalAtNightListandDatesVo getCurrentHospitalNightList(HospitalAtNightCutOverPointsConfigRefVo hospitalConfig, DateTime startDateTime, DateTime endDateTime) 
{
    DomainFactory factory = getDomainFactory();

    String query = "select h from HospitalAtNightListandDates as h where h.cutOverPoints.id = :HospitalConfig and h.shiftStartDate = :StartDate and h.shiftEndDate = :EndDate";
    List<?> list = factory.find(query, new String[] {"HospitalConfig", "StartDate", "EndDate"}, new Object[] {hospitalConfig.getID_HospitalAtNightCutOverPointsConfig(), startDateTime.getJavaDate(), endDateTime.getJavaDate()});

    HospitalAtNightListandDatesVoCollection currentList = HospitalAtNightListandDatesVoAssembler.createHospitalAtNightListandDatesVoCollectionFromHospitalAtNightListandDates(list);

    if(currentList == null || currentList.size() == 0)
        return null;

    return currentList.get(0);
}