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

项目:AvoinApotti    文件:Logic.java   
private void addComponent(OrderSetComponentEditVo component, boolean select)
{
    if(component == null || component.getInvestigation() == null)
        return;

    GenForm.grdComponentsRow row = form.grdComponents().getRows().newRow(select);
    row.setValue(component);

    // investigation or profile     
    if(component.getInvestigation().getInvestigationIndexIsNotNull())
    {
        row.setcolName(component.getInvestigation().getNameWithLocationInfo());
        row.setcolStatus(component.getInvestigation().getActiveStatus());
        if(component.getInvestigation().getInvestigationIndexIsNotNull() && component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
            row.setcolImage(form.getImages().OCRR.Profile);             
        else
            row.setcolImage(form.getImages().OCRR.Investigation);           
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateItemsAlreadySelected()
{
    InvestShortVoCollection investigations = new InvestShortVoCollection();
    InvestShortVoCollection profiles = new InvestShortVoCollection();

    for(int x = 0; x < form.grdComponents().getRows().size(); x++)
    {
        OrderSetComponentEditVo item = form.grdComponents().getRows().get(x).getValue();
        if(item != null)
        {
            if(item.getInvestigationIsNotNull() && item.getInvestigation().getInvestigationIndexIsNotNull())
            {
                if(item.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull() && item.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
                    profiles.add(item.getInvestigation());
                else                        
                    investigations.add(item.getInvestigation());
            }
        }       
    }

    form.getGlobalContext().OCRR.setPreselectedInvestigations(investigations);
    form.getGlobalContext().OCRR.setPreselectedProfiles(profiles);

}
项目:openMAXIMS    文件:Logic.java   
private void addComponent(OrderSetComponentEditVo component, boolean select)
{
    if(component == null || component.getInvestigation() == null)
        return;

    GenForm.grdComponentsRow row = form.grdComponents().getRows().newRow(select);
    row.setValue(component);

    // investigation or profile     
    if(component.getInvestigation().getInvestigationIndexIsNotNull())
    {
        row.setcolName(component.getInvestigation().getNameWithLocationInfo());
        row.setcolStatus(component.getInvestigation().getActiveStatus());
        if(component.getInvestigation().getInvestigationIndexIsNotNull() && component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
            row.setcolImage(form.getImages().OCRR.Profile);             
        else
            row.setcolImage(form.getImages().OCRR.Investigation);           
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateItemsAlreadySelected()
{
    InvestShortVoCollection investigations = new InvestShortVoCollection();
    InvestShortVoCollection profiles = new InvestShortVoCollection();

    for(int x = 0; x < form.grdComponents().getRows().size(); x++)
    {
        OrderSetComponentEditVo item = form.grdComponents().getRows().get(x).getValue();
        if(item != null)
        {
            if(item.getInvestigationIsNotNull() && item.getInvestigation().getInvestigationIndexIsNotNull())
            {
                if(item.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull() && item.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
                    profiles.add(item.getInvestigation());
                else                        
                    investigations.add(item.getInvestigation());
            }
        }       
    }

    form.getGlobalContext().OCRR.setPreselectedInvestigations(investigations);
    form.getGlobalContext().OCRR.setPreselectedProfiles(profiles);

}
项目:openMAXIMS    文件:Logic.java   
private void addComponent(OrderSetComponentEditVo component, boolean select)
{
    if(component == null || component.getInvestigation() == null)
        return;

    GenForm.grdComponentsRow row = form.grdComponents().getRows().newRow(select);
    row.setValue(component);

    // investigation or profile     
    if(component.getInvestigation().getInvestigationIndexIsNotNull())
    {
        row.setcolName(component.getInvestigation().getNameWithLocationInfo());
        row.setcolStatus(component.getInvestigation().getActiveStatus());
        if(component.getInvestigation().getInvestigationIndexIsNotNull() && component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
            row.setcolImage(form.getImages().OCRR.Profile);             
        else
            row.setcolImage(form.getImages().OCRR.Investigation);           
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateItemsAlreadySelected()
{
    InvestShortVoCollection investigations = new InvestShortVoCollection();
    InvestShortVoCollection profiles = new InvestShortVoCollection();

    for(int x = 0; x < form.grdComponents().getRows().size(); x++)
    {
        OrderSetComponentEditVo item = form.grdComponents().getRows().get(x).getValue();
        if(item != null)
        {
            if(item.getInvestigationIsNotNull() && item.getInvestigation().getInvestigationIndexIsNotNull())
            {
                if(item.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull() && item.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
                    profiles.add(item.getInvestigation());
                else                        
                    investigations.add(item.getInvestigation());
            }
        }       
    }

    form.getGlobalContext().OCRR.setPreselectedInvestigations(investigations);
    form.getGlobalContext().OCRR.setPreselectedProfiles(profiles);

}
项目:openmaxims-linux    文件:Logic.java   
private void addComponent(OrderSetComponentEditVo component, boolean select)
{
    if(component == null || component.getInvestigation() == null)
        return;

    GenForm.grdComponentsRow row = form.grdComponents().getRows().newRow(select);
    row.setValue(component);

    // investigation or profile     
    if(component.getInvestigation().getInvestigationIndexIsNotNull())
    {
        row.setcolName(component.getInvestigation().getNameWithLocationInfo());
        row.setcolStatus(component.getInvestigation().getActiveStatus());
        if(component.getInvestigation().getInvestigationIndexIsNotNull() && component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
            row.setcolImage(form.getImages().OCRR.Profile);             
        else
            row.setcolImage(form.getImages().OCRR.Investigation);           
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateItemsAlreadySelected()
{
    InvestShortVoCollection investigations = new InvestShortVoCollection();
    InvestShortVoCollection profiles = new InvestShortVoCollection();

    for(int x = 0; x < form.grdComponents().getRows().size(); x++)
    {
        OrderSetComponentEditVo item = form.grdComponents().getRows().get(x).getValue();
        if(item != null)
        {
            if(item.getInvestigationIsNotNull() && item.getInvestigation().getInvestigationIndexIsNotNull())
            {
                if(item.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull() && item.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue())
                    profiles.add(item.getInvestigation());
                else                        
                    investigations.add(item.getInvestigation());
            }
        }       
    }

    form.getGlobalContext().OCRR.setPreselectedInvestigations(investigations);
    form.getGlobalContext().OCRR.setPreselectedProfiles(profiles);

}
项目:AvoinApotti    文件:Logic.java   
private String[] validateData(OrderSetEditVo record) 
{       
    if(record == null)
        throw new CodingRuntimeException("Invalid order set record");

    if(record.getActiveStatus() == null || !record.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
        return null;

    ArrayList errors = new ArrayList();

    if(record.getComponent() == null || record.getComponent().size() == 0)
    {
        errors.add("No order set components configured");
    }
    else
    {
        boolean exist = false;
        for(int x = 0; x < record.getComponent().size(); x++)
        {
            OrderSetComponentEditVo component = record.getComponent().get(x);
            if(component == null || (component.getInvestigation() == null && component.getOrderSet() == null))
            {
                errors.add("Invalid order set component at position #" + String.valueOf(x + 1));
            }               
            else if(component.getInvestigation() != null || component.getOrderSet() != null)
            {
                exist = true;
                break;
            }
        }

        if(!exist)
            errors.add("No order set components configured");
    }

    if(errors.size() == 0)
        return null;

    String[] err = new String[errors.size()];
    for(int x = 0; x < errors.size(); x++)
    {
        err[x] = (String)errors.get(x);
    }

    return err;
}
项目:openMAXIMS    文件:Logic.java   
private String[] validateData(OrderSetEditVo record) 
{       
    if(record == null)
        throw new CodingRuntimeException("Invalid order set record");

    if(record.getActiveStatus() == null || !record.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
        return null;

    ArrayList errors = new ArrayList();

    if(record.getComponent() == null || record.getComponent().size() == 0)
    {
        errors.add("No order set components configured");
    }
    else
    {
        boolean exist = false;
        for(int x = 0; x < record.getComponent().size(); x++)
        {
            OrderSetComponentEditVo component = record.getComponent().get(x);
            if(component == null || (component.getInvestigation() == null && component.getOrderSet() == null))
            {
                errors.add("Invalid order set component at position #" + String.valueOf(x + 1));
            }               
            else if(component.getInvestigation() != null || component.getOrderSet() != null)
            {
                exist = true;
                break;
            }
        }

        if(!exist)
            errors.add("No order set components configured");
    }

    if(errors.size() == 0)
        return null;

    String[] err = new String[errors.size()];
    for(int x = 0; x < errors.size(); x++)
    {
        err[x] = (String)errors.get(x);
    }

    return err;
}
项目:openMAXIMS    文件:Logic.java   
private String[] validateData(OrderSetEditVo record) 
{       
    if(record == null)
        throw new CodingRuntimeException("Invalid order set record");

    if(record.getActiveStatus() == null || !record.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
        return null;

    ArrayList errors = new ArrayList();

    if(record.getComponent() == null || record.getComponent().size() == 0)
    {
        errors.add("No order set components configured");
    }
    else
    {
        boolean exist = false;
        for(int x = 0; x < record.getComponent().size(); x++)
        {
            OrderSetComponentEditVo component = record.getComponent().get(x);
            if(component == null || (component.getInvestigation() == null && component.getOrderSet() == null))
            {
                errors.add("Invalid order set component at position #" + String.valueOf(x + 1));
            }               
            else if(component.getInvestigation() != null || component.getOrderSet() != null)
            {
                exist = true;
                break;
            }
        }

        if(!exist)
            errors.add("No order set components configured");
    }

    if(errors.size() == 0)
        return null;

    String[] err = new String[errors.size()];
    for(int x = 0; x < errors.size(); x++)
    {
        err[x] = (String)errors.get(x);
    }

    return err;
}
项目:openmaxims-linux    文件:Logic.java   
private String[] validateData(OrderSetEditVo record) 
{       
    if(record == null)
        throw new CodingRuntimeException("Invalid order set record");

    if(record.getActiveStatus() == null || !record.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
        return null;

    ArrayList errors = new ArrayList();

    if(record.getComponent() == null || record.getComponent().size() == 0)
    {
        errors.add("No order set components configured");
    }
    else
    {
        boolean exist = false;
        for(int x = 0; x < record.getComponent().size(); x++)
        {
            OrderSetComponentEditVo component = record.getComponent().get(x);
            if(component == null || (component.getInvestigation() == null && component.getOrderSet() == null))
            {
                errors.add("Invalid order set component at position #" + String.valueOf(x + 1));
            }               
            else if(component.getInvestigation() != null || component.getOrderSet() != null)
            {
                exist = true;
                break;
            }
        }

        if(!exist)
            errors.add("No order set components configured");
    }

    if(errors.size() == 0)
        return null;

    String[] err = new String[errors.size()];
    for(int x = 0; x < errors.size(); x++)
    {
        err[x] = (String)errors.get(x);
    }

    return err;
}