Java 类ims.ocrr.vo.InvestigationIndexShortVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{
    for (int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdTestsRow row = form.grdTests().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Investigation);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if (item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if (color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");

        if (item.getActiveStatusIsNotNull())
            row.setcolStatus(item.getActiveStatus().getText());
        row.setValue(item);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdTestsGridHeaderClicked(int column) throws PresentationLogicException
{
    if (column == 4)
    {
        if (form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdTests().getValues();
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if (form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if (form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdTests().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}
项目:AvoinApotti    文件:Logic.java   
private OrderPriority getPriorityIfExists(InvestigationIndexShortVo investigationIndex, OrderInvestigationVoCollection orderInvestigations)
{
    if (orderInvestigations == null)
        return null;

    if (investigationIndex == null || investigationIndex.getID_InvestigationIndex() == null)
        return null;

    for (OrderInvestigationVo investigation : orderInvestigations)
    {
        if (investigation.getInvestigation() != null && investigation.getInvestigation().getInvestigationIndex() != null)
        {
            if (investigationIndex.getID_InvestigationIndex() == investigation.getInvestigation().getInvestigationIndex().getID_InvestigationIndex())
                return investigation.getOrderPriority();
        }
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{   
    for(int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdProfilesRow row = form.grdProfiles().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Profile);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if(item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if(color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");
        row.setcolStatus(item.getActiveStatusIsNotNull() ? item.getActiveStatus().getText() : "");
        row.setValue(item);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdProfilesGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 4)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdProfiles().getValues();    
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdProfiles().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{
    for (int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdTestsRow row = form.grdTests().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Investigation);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if (item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if (color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");

        if (item.getActiveStatusIsNotNull())
            row.setcolStatus(item.getActiveStatus().getText());
        row.setValue(item);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdTestsGridHeaderClicked(int column) throws PresentationLogicException
{
    if (column == 4)
    {
        if (form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdTests().getValues();
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if (form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if (form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdTests().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}
项目:openMAXIMS    文件:Logic.java   
private OrderPriority getPriorityIfExists(InvestigationIndexShortVo investigationIndex, OrderInvestigationVoCollection orderInvestigations)
{
    if (orderInvestigations == null)
        return null;

    if (investigationIndex == null || investigationIndex.getID_InvestigationIndex() == null)
        return null;

    for (OrderInvestigationVo investigation : orderInvestigations)
    {
        if (investigation.getInvestigation() != null && investigation.getInvestigation().getInvestigationIndex() != null)
        {
            if (investigationIndex.getID_InvestigationIndex() == investigation.getInvestigation().getInvestigationIndex().getID_InvestigationIndex())
                return investigation.getOrderPriority();
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{   
    for(int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdProfilesRow row = form.grdProfiles().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Profile);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if(item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if(color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");
        row.setcolStatus(item.getActiveStatusIsNotNull() ? item.getActiveStatus().getText() : "");
        row.setValue(item);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdProfilesGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 4)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdProfiles().getValues();    
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdProfiles().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{
    for (int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdTestsRow row = form.grdTests().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Investigation);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if (item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if (color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");

        if (item.getActiveStatusIsNotNull())
            row.setcolStatus(item.getActiveStatus().getText());
        row.setValue(item);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdTestsGridHeaderClicked(int column) throws PresentationLogicException
{
    if (column == 4)
    {
        if (form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdTests().getValues();
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if (form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if (form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdTests().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}
项目:openMAXIMS    文件:Logic.java   
private OrderPriority getPriorityIfExists(InvestigationIndexShortVo investigationIndex, OrderInvestigationVoCollection orderInvestigations)
{
    if (orderInvestigations == null)
        return null;

    if (investigationIndex == null || investigationIndex.getID_InvestigationIndex() == null)
        return null;

    for (OrderInvestigationVo investigation : orderInvestigations)
    {
        if (investigation.getInvestigation() != null && investigation.getInvestigation().getInvestigationIndex() != null)
        {
            if (investigationIndex.getID_InvestigationIndex() == investigation.getInvestigation().getInvestigationIndex().getID_InvestigationIndex())
                return investigation.getOrderPriority();
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{   
    for(int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdProfilesRow row = form.grdProfiles().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Profile);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if(item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if(color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");
        row.setcolStatus(item.getActiveStatusIsNotNull() ? item.getActiveStatus().getText() : "");
        row.setValue(item);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdProfilesGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 4)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdProfiles().getValues();    
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdProfiles().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{
    for (int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdTestsRow row = form.grdTests().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Investigation);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if (item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if (color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");

        if (item.getActiveStatusIsNotNull())
            row.setcolStatus(item.getActiveStatus().getText());
        row.setValue(item);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdTestsGridHeaderClicked(int column) throws PresentationLogicException
{
    if (column == 4)
    {
        if (form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdTests().getValues();
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if (form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if (form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdTests().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private OrderPriority getPriorityIfExists(InvestigationIndexShortVo investigationIndex, OrderInvestigationVoCollection orderInvestigations)
{
    if (orderInvestigations == null)
        return null;

    if (investigationIndex == null || investigationIndex.getID_InvestigationIndex() == null)
        return null;

    for (OrderInvestigationVo investigation : orderInvestigations)
    {
        if (investigation.getInvestigation() != null && investigation.getInvestigation().getInvestigationIndex() != null)
        {
            if (investigationIndex.getID_InvestigationIndex() == investigation.getInvestigation().getInvestigationIndex().getID_InvestigationIndex())
                return investigation.getOrderPriority();
        }
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(InvestigationIndexShortVoCollection coll)
{   
    for(int i = 0; i < coll.size(); i++)
    {
        InvestigationIndexShortVo item = coll.get(i);

        GenForm.grdProfilesRow row = form.grdProfiles().getRows().newRow();

        row.setcolImage(form.getImages().OCRR.Profile);
        row.setcolName(item.getName());
        row.setcolDescription(item.getDescription());
        if(item.getColourIsNotNull())
        {
            Color color = Color.getColor(item.getColour().getName());
            if(color != null)
                row.setcolColour(color.getImage());
        }
        row.setcolCategory(item.getCategoryIsNotNull() ? item.getCategory().getText() : "");
        row.setcolStatus(item.getActiveStatusIsNotNull() ? item.getActiveStatus().getText() : "");
        row.setValue(item);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdProfilesGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 4)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        InvestigationIndexShortVoCollection voCollInIndexShort = form.grdProfiles().getValues();    
        voCollInIndexShort.sort(InvestigationIndexShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdProfiles().getRows().clear();
        populateScreenFromData(voCollInIndexShort);
    }
}