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

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(DementialManualClassAssemblyVoCollection list)
{
    form.dyngrdPatients().getRows().clear();

    if (list == null || list.size() == 0)
    {
        engine.showMessage("No records found.");
        form.imbRefresh().setEnabled(false); //wdev-16983

        return;
    }

    for (int i = 0; i < list.size(); i++)
    {
        if (list.get(i) == null)
            continue;

        addRowToGrid(list.get(i));
    }

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedInstance());

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(DementialManualClassAssemblyVoCollection list)
{
    form.dyngrdPatients().getRows().clear();

    if (list == null || list.size() == 0)
    {
        engine.showMessage("No records found.");
        form.imbRefresh().setEnabled(false); //wdev-16983

        return;
    }

    for (int i = 0; i < list.size(); i++)
    {
        if (list.get(i) == null)
            continue;

        addRowToGrid(list.get(i));
    }

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedInstance());

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(DementialManualClassAssemblyVoCollection list)
{
    form.dyngrdPatients().getRows().clear();

    if (list == null || list.size() == 0)
    {
        engine.showMessage("No records found.");
        form.imbRefresh().setEnabled(false); //wdev-16983

        return;
    }

    for (int i = 0; i < list.size(); i++)
    {
        if (list.get(i) == null)
            continue;

        addRowToGrid(list.get(i));
    }

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedInstance());

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(DementialManualClassAssemblyVoCollection list)
{
    form.dyngrdPatients().getRows().clear();

    if (list == null || list.size() == 0)
    {
        engine.showMessage("No records found.");
        form.imbRefresh().setEnabled(false); //wdev-16983

        return;
    }

    for (int i = 0; i < list.size(); i++)
    {
        if (list.get(i) == null)
            continue;

        addRowToGrid(list.get(i));
    }

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedInstance());

}
项目:AvoinApotti    文件:Logic.java   
private boolean search()
{
    initializeDynPatGrid();
    form.dyngrdPatients().getRows().clear();

    if (isSearchCriteriaValid())
    {
        form.getLocalContext().setConsultantSortOrder(SortOrder.DESCENDING);
        form.getLocalContext().setAdmissionDateSortOrder(SortOrder.ASCENDING);
        form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING);

        DementialManualClassAssemblyVoCollection listManual = domain.listPatientsManualAssembley(populateSearchCriteriaDataFromScreen());

        // sort collection - after Hours To Breach
        if (listManual!=null)
        {
            listManual.sort(new HoursToBreachComparator(SortOrder.ASCENDING));
            //list.sort(new DobComparator(SortOrder.ASCENDING));

            form.imbRefresh().setEnabled(true); //wdev-16983
        }
        populateScreenFromData(listManual);

        return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean search()
{
    initializeDynPatGrid();
    form.dyngrdPatients().getRows().clear();

    if (isSearchCriteriaValid())
    {
        form.getLocalContext().setConsultantSortOrder(SortOrder.DESCENDING);
        form.getLocalContext().setAdmissionDateSortOrder(SortOrder.ASCENDING);
        form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING);

        DementialManualClassAssemblyVoCollection listManual = domain.listPatientsManualAssembley(populateSearchCriteriaDataFromScreen());

        // sort collection - after Hours To Breach
        if (listManual!=null)
        {
            listManual.sort(new HoursToBreachComparator(SortOrder.ASCENDING));
            //list.sort(new DobComparator(SortOrder.ASCENDING));

            form.imbRefresh().setEnabled(true); //wdev-16983
        }
        populateScreenFromData(listManual);

        return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean search()
{
    initializeDynPatGrid();
    form.dyngrdPatients().getRows().clear();

    if (isSearchCriteriaValid())
    {
        form.getLocalContext().setConsultantSortOrder(SortOrder.DESCENDING);
        form.getLocalContext().setAdmissionDateSortOrder(SortOrder.ASCENDING);
        form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING);

        DementialManualClassAssemblyVoCollection listManual = domain.listPatientsManualAssembley(populateSearchCriteriaDataFromScreen());

        // sort collection - after Hours To Breach
        if (listManual!=null)
        {
            listManual.sort(new HoursToBreachComparator(SortOrder.ASCENDING));
            //list.sort(new DobComparator(SortOrder.ASCENDING));

            form.imbRefresh().setEnabled(true); //wdev-16983
        }
        populateScreenFromData(listManual);

        return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean search()
{
    initializeDynPatGrid();
    form.dyngrdPatients().getRows().clear();

    if (isSearchCriteriaValid())
    {
        form.getLocalContext().setConsultantSortOrder(SortOrder.DESCENDING);
        form.getLocalContext().setAdmissionDateSortOrder(SortOrder.ASCENDING);
        form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING);

        DementialManualClassAssemblyVoCollection listManual = domain.listPatientsManualAssembley(populateSearchCriteriaDataFromScreen());

        // sort collection - after Hours To Breach
        if (listManual!=null)
        {
            listManual.sort(new HoursToBreachComparator(SortOrder.ASCENDING));
            //list.sort(new DobComparator(SortOrder.ASCENDING));

            form.imbRefresh().setEnabled(true); //wdev-16983
        }
        populateScreenFromData(listManual);

        return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onDyngrdPatientsColumnHeaderClicked(DynamicGridColumn column)
{
    DementialManualClassAssemblyVoCollection values = new DementialManualClassAssemblyVoCollection();
    for (int i=0;i<form.dyngrdPatients().getRows().size();i++)
    {
        values.add((DementialManualClassAssemblyVo) form.dyngrdPatients().getRows().get(i).getValue());
    }

    if (values==null || values.size()<=1)
        return;

    switch((Integer)column.getIdentifier())
    {
        case COL_CONSULTANT:
            form.getLocalContext().setConsultantSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getConsultantSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new ConsultantComparator(form.getLocalContext().getConsultantSortOrder()));
        break;

        case COL_DOB:
            form.getLocalContext().setDOBSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDOBSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DobComparator(form.getLocalContext().getDOBSortOrder()));
        break;

        case COL_HOURSTOBREACH:
            form.getLocalContext().setHoursToBreachSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getHoursToBreachSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new HoursToBreachComparator(form.getLocalContext().getHoursToBreachSortOrder()));
        break;
        case COL_ICON:
            form.getLocalContext().setIconSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getIconSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new IconComparator(form.getLocalContext().getIconSortOrder()));
        break;
        case COL_DISCHARGEDATE:
            form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDDSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DischargeDateComparator(form.getLocalContext().getDDSortOrder()));
        break;


    }

    populateScreenFromData(values);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onDyngrdPatientsColumnHeaderClicked(DynamicGridColumn column)
{
    DementialManualClassAssemblyVoCollection values = new DementialManualClassAssemblyVoCollection();
    for (int i=0;i<form.dyngrdPatients().getRows().size();i++)
    {
        values.add((DementialManualClassAssemblyVo) form.dyngrdPatients().getRows().get(i).getValue());
    }

    if (values==null || values.size()<=1)
        return;

    switch((Integer)column.getIdentifier())
    {
        case COL_CONSULTANT:
            form.getLocalContext().setConsultantSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getConsultantSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new ConsultantComparator(form.getLocalContext().getConsultantSortOrder()));
        break;

        case COL_DOB:
            form.getLocalContext().setDOBSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDOBSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DobComparator(form.getLocalContext().getDOBSortOrder()));
        break;

        case COL_HOURSTOBREACH:
            form.getLocalContext().setHoursToBreachSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getHoursToBreachSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new HoursToBreachComparator(form.getLocalContext().getHoursToBreachSortOrder()));
        break;
        case COL_ICON:
            form.getLocalContext().setIconSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getIconSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new IconComparator(form.getLocalContext().getIconSortOrder()));
        break;
        case COL_DISCHARGEDATE:
            form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDDSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DischargeDateComparator(form.getLocalContext().getDDSortOrder()));
        break;


    }

    populateScreenFromData(values);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onDyngrdPatientsColumnHeaderClicked(DynamicGridColumn column)
{
    DementialManualClassAssemblyVoCollection values = new DementialManualClassAssemblyVoCollection();
    for (int i=0;i<form.dyngrdPatients().getRows().size();i++)
    {
        values.add((DementialManualClassAssemblyVo) form.dyngrdPatients().getRows().get(i).getValue());
    }

    if (values==null || values.size()<=1)
        return;

    switch((Integer)column.getIdentifier())
    {
        case COL_CONSULTANT:
            form.getLocalContext().setConsultantSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getConsultantSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new ConsultantComparator(form.getLocalContext().getConsultantSortOrder()));
        break;

        case COL_DOB:
            form.getLocalContext().setDOBSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDOBSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DobComparator(form.getLocalContext().getDOBSortOrder()));
        break;

        case COL_HOURSTOBREACH:
            form.getLocalContext().setHoursToBreachSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getHoursToBreachSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new HoursToBreachComparator(form.getLocalContext().getHoursToBreachSortOrder()));
        break;
        case COL_ICON:
            form.getLocalContext().setIconSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getIconSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new IconComparator(form.getLocalContext().getIconSortOrder()));
        break;
        case COL_DISCHARGEDATE:
            form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDDSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DischargeDateComparator(form.getLocalContext().getDDSortOrder()));
        break;


    }

    populateScreenFromData(values);

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onDyngrdPatientsColumnHeaderClicked(DynamicGridColumn column)
{
    DementialManualClassAssemblyVoCollection values = new DementialManualClassAssemblyVoCollection();
    for (int i=0;i<form.dyngrdPatients().getRows().size();i++)
    {
        values.add((DementialManualClassAssemblyVo) form.dyngrdPatients().getRows().get(i).getValue());
    }

    if (values==null || values.size()<=1)
        return;

    switch((Integer)column.getIdentifier())
    {
        case COL_CONSULTANT:
            form.getLocalContext().setConsultantSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getConsultantSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new ConsultantComparator(form.getLocalContext().getConsultantSortOrder()));
        break;

        case COL_DOB:
            form.getLocalContext().setDOBSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDOBSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DobComparator(form.getLocalContext().getDOBSortOrder()));
        break;

        case COL_HOURSTOBREACH:
            form.getLocalContext().setHoursToBreachSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getHoursToBreachSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new HoursToBreachComparator(form.getLocalContext().getHoursToBreachSortOrder()));
        break;
        case COL_ICON:
            form.getLocalContext().setIconSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getIconSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new IconComparator(form.getLocalContext().getIconSortOrder()));
        break;
        case COL_DISCHARGEDATE:
            form.getLocalContext().setDDSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDDSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DischargeDateComparator(form.getLocalContext().getDDSortOrder()));
        break;


    }

    populateScreenFromData(values);

}