Java 类ims.core.vo.ShiftDetailsVoCollection 实例源码

项目:AvoinApotti    文件:DailyFluidManagementChartImpl.java   
public ShiftDetailsVoCollection listShiftDetailsByCareContext(CareContextRefVo refCareContext) 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ShiftDetails t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (refCareContext == null)
        return null;

    hql.append(" t.careContext.id = :cc");
    markers.add("cc");
    values.add(refCareContext.getID_CareContext());
    query += " where ";

    query += hql.toString();
    List shiftList = factory.find(query, markers, values);
    return ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(shiftList).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:DailyFluidManagementChartImpl.java   
public ShiftDetailsVoCollection listShiftDetailsByCareContext(CareContextRefVo refCareContext) 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ShiftDetails t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (refCareContext == null)
        return null;

    hql.append(" t.careContext.id = :cc");
    markers.add("cc");
    values.add(refCareContext.getID_CareContext());
    query += " where ";

    query += hql.toString();
    List shiftList = factory.find(query, markers, values);
    return ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(shiftList).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:DailyFluidManagementChartImpl.java   
public ShiftDetailsVoCollection listShiftDetailsByCareContext(CareContextRefVo refCareContext) 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ShiftDetails t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (refCareContext == null)
        return null;

    hql.append(" t.careContext.id = :cc");
    markers.add("cc");
    values.add(refCareContext.getID_CareContext());
    query += " where ";

    query += hql.toString();
    List shiftList = factory.find(query, markers, values);
    return ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(shiftList).sort(SortOrder.DESCENDING);
}
项目:openmaxims-linux    文件:DailyFluidManagementChartImpl.java   
public ShiftDetailsVoCollection listShiftDetailsByCareContext(CareContextRefVo refCareContext) 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ShiftDetails t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (refCareContext == null)
        return null;

    hql.append(" t.careContext.id = :cc");
    markers.add("cc");
    values.add(refCareContext.getID_CareContext());
    query += " where ";

    query += hql.toString();
    List shiftList = factory.find(query, markers, values);
    return ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(shiftList).sort(SortOrder.DESCENDING);
}
项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetailsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    form.recbrRecords().clear();
    for (int i = 0; i < shiftDetailsColl.size(); i++)
        form.recbrRecords().newRow(shiftDetailsColl.get(i), "Shift from " + shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());

    if(shiftDetailsColl.size() > 0)
        previewReport(form.recbrRecords().getValue());
}
项目:AvoinApotti    文件:VitalSignsVentilationChartImpl.java   
public ShiftDetailsVoCollection listShiftDetails(CareContextRefVo refCareContext)
{
    DomainFactory factory = getDomainFactory();

    String query = "from ShiftDetails as s1_1 where (s1_1.id in (select distinct vc.shiftDetails.id from VentilationChart vc) and s1_1.careContext.id = :care) ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    markers.add("care");
    values.add(refCareContext.getID_CareContext());

    List lst = factory.find(query, markers, values);    
    ShiftDetailsVoCollection voShiftDetailsVoCollection = ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(lst).sort(SortOrder.DESCENDING);

    return voShiftDetailsVoCollection;
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetailsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    form.recbrRecords().clear();
    for (int i = 0; i < shiftDetailsColl.size(); i++)
        form.recbrRecords().newRow(shiftDetailsColl.get(i), "Shift from " + shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());

    if(shiftDetailsColl.size() > 0)
        previewReport(form.recbrRecords().getValue());
}
项目:openMAXIMS    文件:VitalSignsVentilationChartImpl.java   
public ShiftDetailsVoCollection listShiftDetails(CareContextRefVo refCareContext)
{
    DomainFactory factory = getDomainFactory();

    String query = "from ShiftDetails as s1_1 where (s1_1.id in (select distinct vc.shiftDetails.id from VentilationChart vc) and s1_1.careContext.id = :care) ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    markers.add("care");
    values.add(refCareContext.getID_CareContext());

    List lst = factory.find(query, markers, values);    
    ShiftDetailsVoCollection voShiftDetailsVoCollection = ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(lst).sort(SortOrder.DESCENDING);

    return voShiftDetailsVoCollection;
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetailsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    form.recbrRecords().clear();
    for (int i = 0; i < shiftDetailsColl.size(); i++)
        form.recbrRecords().newRow(shiftDetailsColl.get(i), "Shift from " + shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());

    if(shiftDetailsColl.size() > 0)
        previewReport(form.recbrRecords().getValue());
}
项目:openMAXIMS    文件:VitalSignsVentilationChartImpl.java   
public ShiftDetailsVoCollection listShiftDetails(CareContextRefVo refCareContext)
{
    DomainFactory factory = getDomainFactory();

    String query = "from ShiftDetails as s1_1 where (s1_1.id in (select distinct vc.shiftDetails.id from VentilationChart vc) and s1_1.careContext.id = :care) ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    markers.add("care");
    values.add(refCareContext.getID_CareContext());

    List lst = factory.find(query, markers, values);    
    ShiftDetailsVoCollection voShiftDetailsVoCollection = ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(lst).sort(SortOrder.DESCENDING);

    return voShiftDetailsVoCollection;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetailsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    form.recbrRecords().clear();
    for (int i = 0; i < shiftDetailsColl.size(); i++)
        form.recbrRecords().newRow(shiftDetailsColl.get(i), "Shift from " + shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());

    if(shiftDetailsColl.size() > 0)
        previewReport(form.recbrRecords().getValue());
}
项目:openmaxims-linux    文件:VitalSignsVentilationChartImpl.java   
public ShiftDetailsVoCollection listShiftDetails(CareContextRefVo refCareContext)
{
    DomainFactory factory = getDomainFactory();

    String query = "from ShiftDetails as s1_1 where (s1_1.id in (select distinct vc.shiftDetails.id from VentilationChart vc) and s1_1.careContext.id = :care) ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    markers.add("care");
    values.add(refCareContext.getID_CareContext());

    List lst = factory.find(query, markers, values);    
    ShiftDetailsVoCollection voShiftDetailsVoCollection = ShiftDetailsVoAssembler.createShiftDetailsVoCollectionFromShiftDetails(lst).sort(SortOrder.DESCENDING);

    return voShiftDetailsVoCollection;
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    populateBaseGrid();
    form.getGlobalContext().Core.setVentilationChartDateTime(null);
    // List ventilation chart for the given clinical contact
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetails(form.getGlobalContext().Core.getCurrentCareContext());
    form.cmbAllRecords().clear();
    DateTime[] dates = new DateTime[shiftDetailsColl.size()];
    for (int i=0; i<shiftDetailsColl.size(); i++)
    {
        DateTime dt = shiftDetailsColl.get(i).getStartDateTime();
        if ( dt != null )
            dates[i] = dt;

        form.cmbAllRecords().newRow(shiftDetailsColl.get(i), shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());
    }
    if (dates != null && dates.length > 0)
    {
        form.getGlobalContext().Core.setVentilationChartDateTime(dates);
        // For each date, populate it into the all Records combo
        /*
        form.cmbAllRecords().clear();
        for (int i=0; i<dates.length; i++)
        {
            DateTime curDate = dates[i];
            form.cmbAllRecords().newRow(curDate.getDate(), curDate.getDate().toString());
        }
        */

        // Set the combo value to the latest one
        //form.cmbAllRecords().setValue(dates[dates.length-1].getDate());
        if(shiftDetailsColl.size()>0)
            form.cmbAllRecords().setValue(shiftDetailsColl.get(0));

        // List all the ventilation chart records for the given Clinical Contact and this date
        VitalSignsVoCollection coll = domain.listVentilationCharts(form.getGlobalContext().Core.getCurrentCareContext(), form.cmbAllRecords().getValue());
        if (coll != null && coll.size() > 0)
        {
            populateGrid(coll);
            form.btnUpdate().setEnabled(false);
        }
        else
            form.cmbRecordToUpdate().clear();  //wdev-13637

    }

    updateControlsState();
}
项目:AvoinApotti    文件:DailyFluidManagementChartImpl.java   
/**
* listShiftDetails
*/
public ims.core.vo.ShiftDetailsVoCollection listShiftDetails(CareContextRefVo voCareContextRef)
{
    return ((VitalSignsVentilationChart)getDomainImpl(VitalSignsVentilationChartImpl.class)).listShiftDetails(voCareContextRef);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    populateBaseGrid();
    form.getGlobalContext().Core.setVentilationChartDateTime(null);
    // List ventilation chart for the given clinical contact
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetails(form.getGlobalContext().Core.getCurrentCareContext());
    form.cmbAllRecords().clear();
    DateTime[] dates = new DateTime[shiftDetailsColl.size()];
    for (int i=0; i<shiftDetailsColl.size(); i++)
    {
        DateTime dt = shiftDetailsColl.get(i).getStartDateTime();
        if ( dt != null )
            dates[i] = dt;

        form.cmbAllRecords().newRow(shiftDetailsColl.get(i), shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());
    }
    if (dates != null && dates.length > 0)
    {
        form.getGlobalContext().Core.setVentilationChartDateTime(dates);
        // For each date, populate it into the all Records combo
        /*
        form.cmbAllRecords().clear();
        for (int i=0; i<dates.length; i++)
        {
            DateTime curDate = dates[i];
            form.cmbAllRecords().newRow(curDate.getDate(), curDate.getDate().toString());
        }
        */

        // Set the combo value to the latest one
        //form.cmbAllRecords().setValue(dates[dates.length-1].getDate());
        if(shiftDetailsColl.size()>0)
            form.cmbAllRecords().setValue(shiftDetailsColl.get(0));

        // List all the ventilation chart records for the given Clinical Contact and this date
        VitalSignsVoCollection coll = domain.listVentilationCharts(form.getGlobalContext().Core.getCurrentCareContext(), form.cmbAllRecords().getValue());
        if (coll != null && coll.size() > 0)
        {
            populateGrid(coll);
            form.btnUpdate().setEnabled(false);
        }
        else
            form.cmbRecordToUpdate().clear();  //wdev-13637

    }

    updateControlsState();
}
项目:openMAXIMS    文件:DailyFluidManagementChartImpl.java   
/**
* listShiftDetails
*/
public ims.core.vo.ShiftDetailsVoCollection listShiftDetails(CareContextRefVo voCareContextRef)
{
    return ((VitalSignsVentilationChart)getDomainImpl(VitalSignsVentilationChartImpl.class)).listShiftDetails(voCareContextRef);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    populateBaseGrid();
    form.getGlobalContext().Core.setVentilationChartDateTime(null);
    // List ventilation chart for the given clinical contact
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetails(form.getGlobalContext().Core.getCurrentCareContext());
    form.cmbAllRecords().clear();
    DateTime[] dates = new DateTime[shiftDetailsColl.size()];
    for (int i=0; i<shiftDetailsColl.size(); i++)
    {
        DateTime dt = shiftDetailsColl.get(i).getStartDateTime();
        if ( dt != null )
            dates[i] = dt;

        form.cmbAllRecords().newRow(shiftDetailsColl.get(i), shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());
    }
    if (dates != null && dates.length > 0)
    {
        form.getGlobalContext().Core.setVentilationChartDateTime(dates);
        // For each date, populate it into the all Records combo
        /*
        form.cmbAllRecords().clear();
        for (int i=0; i<dates.length; i++)
        {
            DateTime curDate = dates[i];
            form.cmbAllRecords().newRow(curDate.getDate(), curDate.getDate().toString());
        }
        */

        // Set the combo value to the latest one
        //form.cmbAllRecords().setValue(dates[dates.length-1].getDate());
        if(shiftDetailsColl.size()>0)
            form.cmbAllRecords().setValue(shiftDetailsColl.get(0));

        // List all the ventilation chart records for the given Clinical Contact and this date
        VitalSignsVoCollection coll = domain.listVentilationCharts(form.getGlobalContext().Core.getCurrentCareContext(), form.cmbAllRecords().getValue());
        if (coll != null && coll.size() > 0)
        {
            populateGrid(coll);
            form.btnUpdate().setEnabled(false);
        }
        else
            form.cmbRecordToUpdate().clear();  //wdev-13637

    }

    updateControlsState();
}
项目:openMAXIMS    文件:DailyFluidManagementChartImpl.java   
/**
* listShiftDetails
*/
public ims.core.vo.ShiftDetailsVoCollection listShiftDetails(CareContextRefVo voCareContextRef)
{
    return ((VitalSignsVentilationChart)getDomainImpl(VitalSignsVentilationChartImpl.class)).listShiftDetails(voCareContextRef);
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    populateBaseGrid();
    form.getGlobalContext().Core.setVentilationChartDateTime(null);
    // List ventilation chart for the given clinical contact
    ShiftDetailsVoCollection shiftDetailsColl = domain.listShiftDetails(form.getGlobalContext().Core.getCurrentCareContext());
    form.cmbAllRecords().clear();
    DateTime[] dates = new DateTime[shiftDetailsColl.size()];
    for (int i=0; i<shiftDetailsColl.size(); i++)
    {
        DateTime dt = shiftDetailsColl.get(i).getStartDateTime();
        if ( dt != null )
            dates[i] = dt;

        form.cmbAllRecords().newRow(shiftDetailsColl.get(i), shiftDetailsColl.get(i).getStartDateTime().toString() + " to " + shiftDetailsColl.get(i).getEndDateTime().toString());
    }
    if (dates != null && dates.length > 0)
    {
        form.getGlobalContext().Core.setVentilationChartDateTime(dates);
        // For each date, populate it into the all Records combo
        /*
        form.cmbAllRecords().clear();
        for (int i=0; i<dates.length; i++)
        {
            DateTime curDate = dates[i];
            form.cmbAllRecords().newRow(curDate.getDate(), curDate.getDate().toString());
        }
        */

        // Set the combo value to the latest one
        //form.cmbAllRecords().setValue(dates[dates.length-1].getDate());
        if(shiftDetailsColl.size()>0)
            form.cmbAllRecords().setValue(shiftDetailsColl.get(0));

        // List all the ventilation chart records for the given Clinical Contact and this date
        VitalSignsVoCollection coll = domain.listVentilationCharts(form.getGlobalContext().Core.getCurrentCareContext(), form.cmbAllRecords().getValue());
        if (coll != null && coll.size() > 0)
        {
            populateGrid(coll);
            form.btnUpdate().setEnabled(false);
        }
        else
            form.cmbRecordToUpdate().clear();  //wdev-13637

    }

    updateControlsState();
}
项目:openmaxims-linux    文件:DailyFluidManagementChartImpl.java   
/**
* listShiftDetails
*/
public ims.core.vo.ShiftDetailsVoCollection listShiftDetails(CareContextRefVo voCareContextRef)
{
    return ((VitalSignsVentilationChart)getDomainImpl(VitalSignsVentilationChartImpl.class)).listShiftDetails(voCareContextRef);
}