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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdDocumentsGridHeaderClicked(int column) throws PresentationLogicException 
{
    PatientDocumentforDocumentWorklistVoCollection values = form.grdDocuments().getValues();
    form.grdDocuments().getRows().clear();

    switch (column)
    {
        case AUTHORING_HCP_COLUMN:
            form.getLocalContext().setAuthoringSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getAuthoringSortOrder()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new PatientDocAuthoringComparator(form.getLocalContext().getAuthoringSortOrder()));
        break;

        default:
        break;
    }

    populateScreenFromData(values);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdDocumentsGridHeaderClicked(int column) throws PresentationLogicException 
{
    PatientDocumentforDocumentWorklistVoCollection values = form.grdDocuments().getValues();
    form.grdDocuments().getRows().clear();

    switch (column)
    {
        case AUTHORING_HCP_COLUMN:
            form.getLocalContext().setAuthoringSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getAuthoringSortOrder()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new PatientDocAuthoringComparator(form.getLocalContext().getAuthoringSortOrder()));
        break;

        default:
        break;
    }

    populateScreenFromData(values);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onGrdDocumentsGridHeaderClicked(int column) throws PresentationLogicException 
{
    PatientDocumentforDocumentWorklistVoCollection values = form.grdDocuments().getValues();
    form.grdDocuments().getRows().clear();

    switch (column)
    {
        case AUTHORING_HCP_COLUMN:
            form.getLocalContext().setAuthoringSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getAuthoringSortOrder()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new PatientDocAuthoringComparator(form.getLocalContext().getAuthoringSortOrder()));
        break;

        default:
        break;
    }

    populateScreenFromData(values);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(PatientDocumentforDocumentWorklistVoCollection patDocs)
{
    clear();
    form.grdDocuments().setAuthorCaption(ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP")?"Responsible":"Author");
    for (int i = 0; patDocs != null && i < patDocs.size(); i++)
    {
        newPatDocRow(patDocs.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientDocumentforDocumentWorklistVoCollection patDocs)
{
    clear();
    form.grdDocuments().setAuthorCaption(ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP")?"Responsible":"Author");
    //WDEV-20193
    form.grdDocuments().setAuthorHeaderTooltip(ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP")?"Responsible":"Author");
    for (int i = 0; patDocs != null && i < patDocs.size(); i++)
    {
        newPatDocRow(patDocs.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientDocumentforDocumentWorklistVoCollection patDocs)
{
    clear();
    form.grdDocuments().setAuthorCaption(ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP")?"Responsible":"Author");
    for (int i = 0; patDocs != null && i < patDocs.size(); i++)
    {
        newPatDocRow(patDocs.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(PatientDocumentforDocumentWorklistVoCollection patDocs)
{
    clear();
    form.grdDocuments().setAuthorCaption(ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP")?"Responsible":"Author");
    for (int i = 0; patDocs != null && i < patDocs.size(); i++)
    {
        newPatDocRow(patDocs.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void sortColumn(int column)
{
    PatientDocumentforDocumentWorklistVoCollection values = form.grdDocuments().getValues();
    form.grdDocuments().getRows().clear();

    switch (column)
    {
        case SURNAME_COLUMN:
            form.getLocalContext().setSortOrderSurname(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderSurname()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new SurnameComparator(form.getLocalContext().getSortOrderSurname()));
            addColumnSortToSearchCriteriaGC(SURNAME_COLUMN, form.getLocalContext().getSortOrderSurname());
        break;
        case FORENAME_COLUMN:
            form.getLocalContext().setSortOrderForename(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderForename()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new ForenameComparator(form.getLocalContext().getSortOrderForename()));
            addColumnSortToSearchCriteriaGC(FORENAME_COLUMN, form.getLocalContext().getSortOrderForename());
        break;
        case NHS_COLUMN:
            form.getLocalContext().setSortOrderNHS(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderNHS()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new NHSComparator(form.getLocalContext().getSortOrderNHS()));
            addColumnSortToSearchCriteriaGC(NHS_COLUMN, form.getLocalContext().getSortOrderNHS());
        break;
        case TITLE_COLUMN:
            form.getLocalContext().setSortOrderTitle(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderTitle()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new TitleComparator(form.getLocalContext().getSortOrderTitle()));
            addColumnSortToSearchCriteriaGC(TITLE_COLUMN, form.getLocalContext().getSortOrderTitle());
        break;
        case AUTHORING_HCP_COLUMN:
            form.getLocalContext().setSortOrderAuthoring(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderAuthoring()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new PatientDocAuthoringComparator(form.getLocalContext().getSortOrderAuthoring()));
            addColumnSortToSearchCriteriaGC(AUTHORING_HCP_COLUMN, form.getLocalContext().getSortOrderAuthoring());
        break;
        case DATE_COLUMN:
            form.getLocalContext().setSortOrderDate(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderDate()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new DateComparator(form.getLocalContext().getSortOrderDate()));
            addColumnSortToSearchCriteriaGC(DATE_COLUMN, form.getLocalContext().getSortOrderDate());
        break;
        case STATUS_COLUMN:
            form.getLocalContext().setSortOrderStatus(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderStatus()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new StatusComparator(form.getLocalContext().getSortOrderStatus()));
            addColumnSortToSearchCriteriaGC(STATUS_COLUMN, form.getLocalContext().getSortOrderStatus());
        break;
        default:
        break;
    }

    populateScreenFromData(values);
}