Java 类ims.admin.vo.lookups.FormReadWrite 实例源码

项目:AvoinApotti    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:AvoinApotti    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}
项目:openmaxims-linux    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:openmaxims-linux    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}
项目:AvoinApotti    文件:Logic.java   
private void setReadWriteForEpisEnd()
{

    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForEPISE(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:AvoinApotti    文件:Logic.java   
private void setReadOnlyForEpisEnd()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForEPISE(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForEPISE().equals(FormReadWrite.READ))
        rights.setAccessForEPISE(FormReadWrite.WRITE);
    else
        rights.setAccessForEPISE(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:AvoinApotti    文件:Logic.java   
/**
 * 
 */
private void setReadWriteForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForRIP(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());
}
项目:AvoinApotti    文件:Logic.java   
private void setReadOnlyForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForRIP(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForRIP().equals(FormReadWrite.READ))
        rights.setAccessForRIP(FormReadWrite.WRITE);
    else
        rights.setAccessForRIP(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:AvoinApotti    文件:Logic.java   
private void setInaccessibleForEpisEnd()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForEpisEnd().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    else
        navForm.setAccessForEpisEnd(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:AvoinApotti    文件:Logic.java   
private void setInaccessibleForRIP()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForRip().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForRip(FormReadWrite.WRITE);
    else
        navForm.setAccessForRip(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:openMAXIMS    文件:Logic.java   
private void setReadWriteForEpisEnd()
{

    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForEPISE(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openMAXIMS    文件:Logic.java   
private void setReadOnlyForEpisEnd()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForEPISE(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForEPISE().equals(FormReadWrite.READ))
        rights.setAccessForEPISE(FormReadWrite.WRITE);
    else
        rights.setAccessForEPISE(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 */
private void setReadWriteForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForRIP(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());
}
项目:openMAXIMS    文件:Logic.java   
private void setReadOnlyForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForRIP(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForRIP().equals(FormReadWrite.READ))
        rights.setAccessForRIP(FormReadWrite.WRITE);
    else
        rights.setAccessForRIP(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openMAXIMS    文件:Logic.java   
private void setInaccessibleForEpisEnd()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForEpisEnd().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    else
        navForm.setAccessForEpisEnd(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:openMAXIMS    文件:Logic.java   
private void setInaccessibleForRIP()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForRip().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForRip(FormReadWrite.WRITE);
    else
        navForm.setAccessForRip(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:openMAXIMS    文件:Logic.java   
private void setReadWriteForEpisEnd()
{

    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForEPISE(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openMAXIMS    文件:Logic.java   
private void setReadOnlyForEpisEnd()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForEPISE(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForEPISE().equals(FormReadWrite.READ))
        rights.setAccessForEPISE(FormReadWrite.WRITE);
    else
        rights.setAccessForEPISE(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 */
private void setReadWriteForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForRIP(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());
}
项目:openMAXIMS    文件:Logic.java   
private void setReadOnlyForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForRIP(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForRIP().equals(FormReadWrite.READ))
        rights.setAccessForRIP(FormReadWrite.WRITE);
    else
        rights.setAccessForRIP(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openMAXIMS    文件:Logic.java   
private void setInaccessibleForEpisEnd()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForEpisEnd().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    else
        navForm.setAccessForEpisEnd(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:openMAXIMS    文件:Logic.java   
private void setInaccessibleForRIP()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForRip().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForRip(FormReadWrite.WRITE);
    else
        navForm.setAccessForRip(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:openmaxims-linux    文件:Logic.java   
private void setReadWriteForEpisEnd()
{

    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForEPISE(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openmaxims-linux    文件:Logic.java   
private void setReadOnlyForEpisEnd()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForEPISE(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForEPISE().equals(FormReadWrite.READ))
        rights.setAccessForEPISE(FormReadWrite.WRITE);
    else
        rights.setAccessForEPISE(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openmaxims-linux    文件:Logic.java   
/**
 * 
 */
private void setReadWriteForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    rights.setAccessForRIP(FormReadWrite.WRITE);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());
}
项目:openmaxims-linux    文件:Logic.java   
private void setReadOnlyForRIP()
{
    INavigationNode val = (INavigationNode) form.treNav().getValue();
    AppNavAccessRightsVo rights = new AppNavAccessRightsVo();
    if (val.getAccessRightsNode() == null)
        rights.setAccessForRIP(FormReadWrite.READ);
    else if (val.getAccessRightsNode().getAccessForRIP().equals(FormReadWrite.READ))
        rights.setAccessForRIP(FormReadWrite.WRITE);
    else
        rights.setAccessForRIP(FormReadWrite.READ);
    val.setAccessRightsNode(rights);
    populateTree(form.getLocalContext().getSelectedNav());

}
项目:openmaxims-linux    文件:Logic.java   
private void setInaccessibleForEpisEnd()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForEpisEnd().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    else
        navForm.setAccessForEpisEnd(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:openmaxims-linux    文件:Logic.java   
private void setInaccessibleForRIP()
{
    AppNavFormVo navForm = (AppNavFormVo) form.treNav().getValue();
    if (navForm.getFormAccessForRip().equals(FormAccess.NO_ACCESS))
        navForm.setAccessForRip(FormReadWrite.WRITE);
    else
        navForm.setAccessForRip(FormReadWrite.DENIED);
    populateScreenFromData(form.getLocalContext().getSelectedNav());
}
项目:AvoinApotti    文件:Logic.java   
private AppNavFormVo addAppNavFormVo(AppFormVo formVo, Object parentObject)
{
    if (formVo == null)
        return null;



    AppNavFormVo navForm = new AppNavFormVo();
    navForm.setForm(formVo);
    navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    navForm.setAccessForRip(FormReadWrite.WRITE);
    navForm.setIsReadOnly(Boolean.FALSE);

    if(form.treNav().getSelectedNode()!= null && form.treNav().getSelectedNode().getNodes()!= null)
    {

        navForm.setPosIndex(new Integer(form.treNav().getSelectedNode().getNodes().size()));

    }
    else engine.showMessage("Please select a node to add your selected form to");

    if (formVo.isAlias())
        navForm.setNodeText(formVo.getAliasName());
    else
        navForm.setNodeText(formVo.getName());

    if (parentObject instanceof AppNavRootGroupVo)
    {
        AppNavRootGroupVo rootGrp = (AppNavRootGroupVo)parentObject;
        if (rootGrp.getForms() == null)
            rootGrp.setForms(new AppNavFormVoCollection());

        rootGrp.getForms().add(navForm);
    }
    else if (parentObject instanceof AppNavSecondGroupVo)
    {
        AppNavSecondGroupVo secGrp = (AppNavSecondGroupVo)parentObject;
        if (secGrp.getForms() == null)
            secGrp.setForms(new AppNavFormVoCollection());

        secGrp.getForms().add(navForm);             
    }
    return navForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo addAppNavFormVo(AppFormVo formVo, Object parentObject)
{
    if (formVo == null)
        return null;



    AppNavFormVo navForm = new AppNavFormVo();
    navForm.setForm(formVo);
    navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    navForm.setAccessForRip(FormReadWrite.WRITE);
    navForm.setIsReadOnly(Boolean.FALSE);

    if(form.treNav().getSelectedNode()!= null && form.treNav().getSelectedNode().getNodes()!= null)
    {

        navForm.setPosIndex(new Integer(form.treNav().getSelectedNode().getNodes().size()));

    }
    else engine.showMessage("Please select a node to add your selected form to");

    if (formVo.isAlias())
        navForm.setNodeText(formVo.getAliasName());
    else
        navForm.setNodeText(formVo.getName());

    if (parentObject instanceof AppNavRootGroupVo)
    {
        AppNavRootGroupVo rootGrp = (AppNavRootGroupVo)parentObject;
        if (rootGrp.getForms() == null)
            rootGrp.setForms(new AppNavFormVoCollection());

        rootGrp.getForms().add(navForm);
    }
    else if (parentObject instanceof AppNavSecondGroupVo)
    {
        AppNavSecondGroupVo secGrp = (AppNavSecondGroupVo)parentObject;
        if (secGrp.getForms() == null)
            secGrp.setForms(new AppNavFormVoCollection());

        secGrp.getForms().add(navForm);             
    }
    return navForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo addAppNavFormVo(AppFormVo formVo, Object parentObject)
{
    if (formVo == null)
        return null;



    AppNavFormVo navForm = new AppNavFormVo();
    navForm.setForm(formVo);
    navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    navForm.setAccessForRip(FormReadWrite.WRITE);
    navForm.setIsReadOnly(Boolean.FALSE);

    if(form.treNav().getSelectedNode()!= null && form.treNav().getSelectedNode().getNodes()!= null)
    {

        navForm.setPosIndex(new Integer(form.treNav().getSelectedNode().getNodes().size()));

    }
    else engine.showMessage("Please select a node to add your selected form to");

    if (formVo.isAlias())
        navForm.setNodeText(formVo.getAliasName());
    else
        navForm.setNodeText(formVo.getName());

    if (parentObject instanceof AppNavRootGroupVo)
    {
        AppNavRootGroupVo rootGrp = (AppNavRootGroupVo)parentObject;
        if (rootGrp.getForms() == null)
            rootGrp.setForms(new AppNavFormVoCollection());

        rootGrp.getForms().add(navForm);
    }
    else if (parentObject instanceof AppNavSecondGroupVo)
    {
        AppNavSecondGroupVo secGrp = (AppNavSecondGroupVo)parentObject;
        if (secGrp.getForms() == null)
            secGrp.setForms(new AppNavFormVoCollection());

        secGrp.getForms().add(navForm);             
    }
    return navForm;
}
项目:openmaxims-linux    文件:Logic.java   
private AppNavFormVo addAppNavFormVo(AppFormVo formVo, Object parentObject)
{
    if (formVo == null)
        return null;



    AppNavFormVo navForm = new AppNavFormVo();
    navForm.setForm(formVo);
    navForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    navForm.setAccessForRip(FormReadWrite.WRITE);
    navForm.setIsReadOnly(Boolean.FALSE);

    if(form.treNav().getSelectedNode()!= null && form.treNav().getSelectedNode().getNodes()!= null)
    {

        navForm.setPosIndex(new Integer(form.treNav().getSelectedNode().getNodes().size()));

    }
    else engine.showMessage("Please select a node to add your selected form to");

    if (formVo.isAlias())
        navForm.setNodeText(formVo.getAliasName());
    else
        navForm.setNodeText(formVo.getName());

    if (parentObject instanceof AppNavRootGroupVo)
    {
        AppNavRootGroupVo rootGrp = (AppNavRootGroupVo)parentObject;
        if (rootGrp.getForms() == null)
            rootGrp.setForms(new AppNavFormVoCollection());

        rootGrp.getForms().add(navForm);
    }
    else if (parentObject instanceof AppNavSecondGroupVo)
    {
        AppNavSecondGroupVo secGrp = (AppNavSecondGroupVo)parentObject;
        if (secGrp.getForms() == null)
            secGrp.setForms(new AppNavFormVoCollection());

        secGrp.getForms().add(navForm);             
    }
    return navForm;
}