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

项目:AvoinApotti    文件:Logic.java   
private boolean isDFT(NewResultsSearchListVo newResult) //WDEV-16232
{
    if(newResult == null || newResult.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(newResult.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDFT(NewResultsSearchListVo newResult) //WDEV-16232
{
    if(newResult == null || newResult.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(newResult.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDFT(NewResultsSearchListVo newResult) //WDEV-16232
{
    if(newResult == null || newResult.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(newResult.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isDFT(NewResultsSearchListVo newResult) //WDEV-16232
{
    if(newResult == null || newResult.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(newResult.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean search(boolean fromTimer, boolean showMessages, boolean checkForWarning) 
{
    resetResults();

    NewResultsCriteriaVo criteria = getCriteria(fromTimer);

    if(criteria == null)
        return false;

    if (checkWarning(criteria) && checkForWarning)
    {
        engine.showMessage("You are about to perform a search with limited filters in place, this could result in a large number of resulted investigations being returned. Do you wish to proceed?", "Warning", MessageButtons.YESNO);
        return false;
    }

    NewResultsSearchListVoCollection newResults = domain.listNewResults(criteria);
    if (newResults == null || newResults.size() == 0)
    {
        if(showMessages)
        {
            engine.showMessage("No results found.", "Message");
        }

        if (!criteria.getSelectedTab().equals(PATIENT))
            form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

        return true;
    }


    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (NewResultsSearchListVo newResult : newResults)
        addNewResult(newResult, dateUnseen);

    if (!criteria.getSelectedTab().equals(PATIENT))
        form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

    updateSearchTotal(form.grdResults().getAllRows().length);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean search(boolean fromTimer, boolean showMessages, boolean checkForWarning) 
{
    resetResults();

    NewResultsCriteriaVo criteria = getCriteria(fromTimer);

    if(criteria == null)
        return false;

    if (checkWarning(criteria) && checkForWarning)
    {
        engine.showMessage("You are about to perform a search with limited filters in place, this could result in a large number of resulted investigations being returned. Do you wish to proceed?", "Warning", MessageButtons.YESNO);
        return false;
    }

    NewResultsSearchListVoCollection newResults = domain.listNewResults(criteria);
    if (newResults == null || newResults.size() == 0)
    {
        if(showMessages)
        {
            engine.showMessage("No results found.", "Message");
        }

        if (!criteria.getSelectedTab().equals(PATIENT))
            form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

        return true;
    }


    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (NewResultsSearchListVo newResult : newResults)
        addNewResult(newResult, dateUnseen);

    if (!criteria.getSelectedTab().equals(PATIENT))
        form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

    updateSearchTotal(form.grdResults().getAllRows().length);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean search(boolean fromTimer, boolean showMessages, boolean checkForWarning) 
{
    resetResults();

    NewResultsCriteriaVo criteria = getCriteria(fromTimer);

    if(criteria == null)
        return false;

    if (checkWarning(criteria) && checkForWarning)
    {
        engine.showMessage("You are about to perform a search with limited filters in place, this could result in a large number of resulted investigations being returned. Do you wish to proceed?", "Warning", MessageButtons.YESNO);
        return false;
    }

    NewResultsSearchListVoCollection newResults = domain.listNewResults(criteria);
    if (newResults == null || newResults.size() == 0)
    {
        if(showMessages)
        {
            engine.showMessage("No results found.", "Message");
        }

        if (!criteria.getSelectedTab().equals(PATIENT))
            form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

        return true;
    }


    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (NewResultsSearchListVo newResult : newResults)
        addNewResult(newResult, dateUnseen);

    if (!criteria.getSelectedTab().equals(PATIENT))
        form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

    updateSearchTotal(form.grdResults().getAllRows().length);

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean search(boolean fromTimer, boolean showMessages, boolean checkForWarning) 
{
    resetResults();

    NewResultsCriteriaVo criteria = getCriteria(fromTimer);

    if(criteria == null)
        return false;

    if (checkWarning(criteria) && checkForWarning)
    {
        engine.showMessage("You are about to perform a search with limited filters in place, this could result in a large number of resulted investigations being returned. Do you wish to proceed?", "Warning", MessageButtons.YESNO);
        return false;
    }

    NewResultsSearchListVoCollection newResults = domain.listNewResults(criteria);
    if (newResults == null || newResults.size() == 0)
    {
        if(showMessages)
        {
            engine.showMessage("No results found.", "Message");
        }

        if (!criteria.getSelectedTab().equals(PATIENT))
            form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

        return true;
    }


    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (NewResultsSearchListVo newResult : newResults)
        addNewResult(newResult, dateUnseen);

    if (!criteria.getSelectedTab().equals(PATIENT))
        form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

    updateSearchTotal(form.grdResults().getAllRows().length);

    return true;
}