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

项目:AvoinApotti    文件:Logic.java   
private boolean checkCancelledInvestions(OcsOrderInvVo voOcsOrder)
{
    boolean flag = true;
    if( voOcsOrder == null )
        return false;
    if(!voOcsOrder.getInvestigationsIsNotNull())
        return false;
    if(voOcsOrder.getInvestigations().size() < 1)
        return false;
    for(OrderInvestigationOcsOrderVo item : voOcsOrder.getInvestigations())
    {
        if(OrderInvStatus.CANCELLED.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus() : null) || OrderInvStatus.CANCEL_REQUEST.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus():null))
        {

        }
        else
        {
            flag = false;
        }
    }
    return flag;

}
项目:openMAXIMS    文件:Logic.java   
private boolean checkCancelledInvestions(OcsOrderInvVo voOcsOrder)
{
    boolean flag = true;
    if( voOcsOrder == null )
        return false;
    if(!voOcsOrder.getInvestigationsIsNotNull())
        return false;
    if(voOcsOrder.getInvestigations().size() < 1)
        return false;
    for(OrderInvestigationOcsOrderVo item : voOcsOrder.getInvestigations())
    {
        if(OrderInvStatus.CANCELLED.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus() : null) || OrderInvStatus.CANCEL_REQUEST.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus():null))
        {

        }
        else
        {
            flag = false;
        }
    }
    return flag;

}
项目:openMAXIMS    文件:Logic.java   
private boolean checkCancelledInvestions(OcsOrderInvVo voOcsOrder)
{
    boolean flag = true;
    if( voOcsOrder == null )
        return false;
    if(!voOcsOrder.getInvestigationsIsNotNull())
        return false;
    if(voOcsOrder.getInvestigations().size() < 1)
        return false;
    for(OrderInvestigationOcsOrderVo item : voOcsOrder.getInvestigations())
    {
        if(OrderInvStatus.CANCELLED.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus() : null) || OrderInvStatus.CANCEL_REQUEST.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus():null))
        {

        }
        else
        {
            flag = false;
        }
    }
    return flag;

}
项目:openmaxims-linux    文件:Logic.java   
private boolean checkCancelledInvestions(OcsOrderInvVo voOcsOrder)
{
    boolean flag = true;
    if( voOcsOrder == null )
        return false;
    if(!voOcsOrder.getInvestigationsIsNotNull())
        return false;
    if(voOcsOrder.getInvestigations().size() < 1)
        return false;
    for(OrderInvestigationOcsOrderVo item : voOcsOrder.getInvestigations())
    {
        if(OrderInvStatus.CANCELLED.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus() : null) || OrderInvStatus.CANCEL_REQUEST.equals(item.getOrdInvCurrentStatusIsNotNull() ? item.getOrdInvCurrentStatus().getOrdInvStatus():null))
        {

        }
        else
        {
            flag = false;
        }
    }
    return flag;

}
项目:AvoinApotti    文件:Logic.java   
private String getOrderTooltip(OcsOrderInvVo voOcsOrder)
{
    if(voOcsOrder == null)
        return "";

    StringBuffer tooltip = new StringBuffer();
    String htmlSeparator = "<br>";
    for (int i = 0; voOcsOrder.getInvestigationsIsNotNull() && i < voOcsOrder.getInvestigations().size(); i++)
    {
        OrderInvestigationOcsOrderVo orderInvestigationOcsOrderVo = voOcsOrder.getInvestigations().get(i);
        if(OrderInvStatus.CANCELLED.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null) || OrderInvStatus.CANCEL_REQUEST.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null))   //wdev-13275
            continue;
        String invName = orderInvestigationOcsOrderVo.getInvestigationIsNotNull() && orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndexIsNotNull()?orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndex().getName():null;
        if(invName != null)
        {
            tooltip.append(invName);
            tooltip.append(htmlSeparator);
        }
    }

    if(tooltip.length() > 0)
    {
        tooltip.insert(0, "<b>Investigations:</b>" + htmlSeparator);

        //remove last <br>
        int lastIndex = tooltip.lastIndexOf(htmlSeparator);
        if (lastIndex >= 0)
            tooltip.replace(lastIndex, lastIndex + htmlSeparator.length(), "");
    }

    return tooltip.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getOrderTooltip(OcsOrderInvVo voOcsOrder)
{
    if(voOcsOrder == null)
        return "";

    StringBuffer tooltip = new StringBuffer();
    String htmlSeparator = "<br>";
    for (int i = 0; voOcsOrder.getInvestigationsIsNotNull() && i < voOcsOrder.getInvestigations().size(); i++)
    {
        OrderInvestigationOcsOrderVo orderInvestigationOcsOrderVo = voOcsOrder.getInvestigations().get(i);
        if(OrderInvStatus.CANCELLED.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null) || OrderInvStatus.CANCEL_REQUEST.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null))   //wdev-13275
            continue;
        String invName = orderInvestigationOcsOrderVo.getInvestigationIsNotNull() && orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndexIsNotNull()?orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndex().getName():null;
        if(invName != null)
        {
            tooltip.append(invName);
            tooltip.append(htmlSeparator);
        }
    }

    if(tooltip.length() > 0)
    {
        tooltip.insert(0, "<b>Investigations:</b>" + htmlSeparator);

        //remove last <br>
        int lastIndex = tooltip.lastIndexOf(htmlSeparator);
        if (lastIndex >= 0)
            tooltip.replace(lastIndex, lastIndex + htmlSeparator.length(), "");
    }

    return tooltip.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getOrderTooltip(OcsOrderInvVo voOcsOrder)
{
    if(voOcsOrder == null)
        return "";

    StringBuffer tooltip = new StringBuffer();
    String htmlSeparator = "<br>";
    for (int i = 0; voOcsOrder.getInvestigationsIsNotNull() && i < voOcsOrder.getInvestigations().size(); i++)
    {
        OrderInvestigationOcsOrderVo orderInvestigationOcsOrderVo = voOcsOrder.getInvestigations().get(i);
        if(OrderInvStatus.CANCELLED.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null) || OrderInvStatus.CANCEL_REQUEST.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null))   //wdev-13275
            continue;
        String invName = orderInvestigationOcsOrderVo.getInvestigationIsNotNull() && orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndexIsNotNull()?orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndex().getName():null;
        if(invName != null)
        {
            tooltip.append(invName);
            tooltip.append(htmlSeparator);
        }
    }

    if(tooltip.length() > 0)
    {
        tooltip.insert(0, "<b>Investigations:</b>" + htmlSeparator);

        //remove last <br>
        int lastIndex = tooltip.lastIndexOf(htmlSeparator);
        if (lastIndex >= 0)
            tooltip.replace(lastIndex, lastIndex + htmlSeparator.length(), "");
    }

    return tooltip.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String getOrderTooltip(OcsOrderInvVo voOcsOrder)
{
    if(voOcsOrder == null)
        return "";

    StringBuffer tooltip = new StringBuffer();
    String htmlSeparator = "<br>";
    for (int i = 0; voOcsOrder.getInvestigationsIsNotNull() && i < voOcsOrder.getInvestigations().size(); i++)
    {
        OrderInvestigationOcsOrderVo orderInvestigationOcsOrderVo = voOcsOrder.getInvestigations().get(i);
        if(OrderInvStatus.CANCELLED.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null) || OrderInvStatus.CANCEL_REQUEST.equals(orderInvestigationOcsOrderVo.getOrdInvCurrentStatusIsNotNull() ? orderInvestigationOcsOrderVo.getOrdInvCurrentStatus().getOrdInvStatus():null))   //wdev-13275
            continue;
        String invName = orderInvestigationOcsOrderVo.getInvestigationIsNotNull() && orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndexIsNotNull()?orderInvestigationOcsOrderVo.getInvestigation().getInvestigationIndex().getName():null;
        if(invName != null)
        {
            tooltip.append(invName);
            tooltip.append(htmlSeparator);
        }
    }

    if(tooltip.length() > 0)
    {
        tooltip.insert(0, "<b>Investigations:</b>" + htmlSeparator);

        //remove last <br>
        int lastIndex = tooltip.lastIndexOf(htmlSeparator);
        if (lastIndex >= 0)
            tooltip.replace(lastIndex, lastIndex + htmlSeparator.length(), "");
    }

    return tooltip.toString();
}