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

项目:AvoinApotti    文件:Logic.java   
private void addRole(AppRoleShortVo role)
{
    if(role == null)
        return;

    GenForm.lyrDetailsLayer.tabRolesContainer.grdRolesRow row = form.lyrDetails().tabRoles().grdRoles().getRows().newRow();
    TemplateRoleShortVo voTemplateRole = new TemplateRoleShortVo();
    voTemplateRole.setIsActive(Boolean.TRUE);
    voTemplateRole.setAppRole(role);
    row.setcolImage(form.getImages().OCRR.Role);
    row.setcolRole(role.getName());
    row.setValue(voTemplateRole);
}
项目:AvoinApotti    文件:Logic.java   
private boolean roleExists(TemplateRoleShortVoCollection roles, AppRoleShortVo appRoleVo)
{
    if(roles == null || appRoleVo == null)
        return false;

    for(int i = 0; i < roles.size(); i++)
    {
        TemplateRoleShortVo voTemplateRoleShort = roles.get(i);
        if(voTemplateRoleShort != null && voTemplateRoleShort.getAppRoleIsNotNull() && voTemplateRoleShort.getAppRole().equals(appRoleVo))
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void addRole(AppRoleShortVo role)
{
    if(role == null)
        return;

    GenForm.lyrDetailsLayer.tabRolesContainer.grdRolesRow row = form.lyrDetails().tabRoles().grdRoles().getRows().newRow();
    TemplateRoleShortVo voTemplateRole = new TemplateRoleShortVo();
    voTemplateRole.setIsActive(Boolean.TRUE);
    voTemplateRole.setAppRole(role);
    row.setcolImage(form.getImages().OCRR.Role);
    row.setcolRole(role.getName());
    row.setValue(voTemplateRole);
}
项目:openMAXIMS    文件:Logic.java   
private boolean roleExists(TemplateRoleShortVoCollection roles, AppRoleShortVo appRoleVo)
{
    if(roles == null || appRoleVo == null)
        return false;

    for(int i = 0; i < roles.size(); i++)
    {
        TemplateRoleShortVo voTemplateRoleShort = roles.get(i);
        if(voTemplateRoleShort != null && voTemplateRoleShort.getAppRoleIsNotNull() && voTemplateRoleShort.getAppRole().equals(appRoleVo))
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void addRole(AppRoleShortVo role)
{
    if(role == null)
        return;

    GenForm.lyrDetailsLayer.tabRolesContainer.grdRolesRow row = form.lyrDetails().tabRoles().grdRoles().getRows().newRow();
    TemplateRoleShortVo voTemplateRole = new TemplateRoleShortVo();
    voTemplateRole.setIsActive(Boolean.TRUE);
    voTemplateRole.setAppRole(role);
    row.setcolImage(form.getImages().OCRR.Role);
    row.setcolRole(role.getName());
    row.setValue(voTemplateRole);
}
项目:openMAXIMS    文件:Logic.java   
private boolean roleExists(TemplateRoleShortVoCollection roles, AppRoleShortVo appRoleVo)
{
    if(roles == null || appRoleVo == null)
        return false;

    for(int i = 0; i < roles.size(); i++)
    {
        TemplateRoleShortVo voTemplateRoleShort = roles.get(i);
        if(voTemplateRoleShort != null && voTemplateRoleShort.getAppRoleIsNotNull() && voTemplateRoleShort.getAppRole().equals(appRoleVo))
            return true;
    }
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void addRole(AppRoleShortVo role)
{
    if(role == null)
        return;

    GenForm.lyrDetailsLayer.tabRolesContainer.grdRolesRow row = form.lyrDetails().tabRoles().grdRoles().getRows().newRow();
    TemplateRoleShortVo voTemplateRole = new TemplateRoleShortVo();
    voTemplateRole.setIsActive(Boolean.TRUE);
    voTemplateRole.setAppRole(role);
    row.setcolImage(form.getImages().OCRR.Role);
    row.setcolRole(role.getName());
    row.setValue(voTemplateRole);
}
项目:openmaxims-linux    文件:Logic.java   
private boolean roleExists(TemplateRoleShortVoCollection roles, AppRoleShortVo appRoleVo)
{
    if(roles == null || appRoleVo == null)
        return false;

    for(int i = 0; i < roles.size(); i++)
    {
        TemplateRoleShortVo voTemplateRoleShort = roles.get(i);
        if(voTemplateRoleShort != null && voTemplateRoleShort.getAppRoleIsNotNull() && voTemplateRoleShort.getAppRole().equals(appRoleVo))
            return true;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(ims.ocrr.vo.OrderEntryTemplateVo value)
{
    clearScreen();
    if(value == null)
        return;

    this.form.cmbCategory().setValue(value.getTemplateCategoryIsNotNull() ? value.getTemplateCategory() : null);
    this.form.txtDescription().setValue(value.getDescriptionIsNotNull() ? value.getDescription(): null);
    this.form.txtMenuName().setValue(value.getMenuNameIsNotNull() ? value.getMenuName(): null);
    this.form.txtFormName().setValue(value.getFormNameIsNotNull() ? value.getFormName(): null);
    this.form.cmbStatus().setValue(value.getActiveStatusIsNotNull() ? value.getActiveStatus() : null);
    this.form.lyrDetails().tabText().richFormText().setValue(value.getFormTextIsNotNull()? value.getFormText() : null);

    // ----- Start of grdComponents Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateComponentShortVoCollection fieldgrdComponents = value.getComponentsIsNotNull() ? value.getComponents() : null;
    if(fieldgrdComponents != null)
    {
        fieldgrdComponents.sort();
        for(int x = 0; x < fieldgrdComponents.size(); x++)
        {
            if(fieldgrdComponents.get(x) != null)
            {
                this.addComponent(fieldgrdComponents.get(x), false);
            }
        }
    }
    // ----- End of grdComponents Grid ----------------------------

    // ----- Start of grdColumnNames Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateColumnVoCollection fieldgrdColumnNames = value.getColumnsIsNotNull() ? value.getColumns() : null;
    if(fieldgrdColumnNames != null)
    {
        fieldgrdColumnNames.sort();

        GenForm.lyrDetailsLayer.tabComponentsContainer.grdColumnNamesRow rowgrdColumnNames;
        for(int x = 0; x < fieldgrdColumnNames.size(); x++)
        {
            if(fieldgrdColumnNames.get(x) != null)
            {
                rowgrdColumnNames = this.form.lyrDetails().tabComponents().grdColumnNames().getRows().newRow();
                rowgrdColumnNames.setcolImage(form.getImages().OCRR.ColumnSeparator);
                rowgrdColumnNames.setcolName(fieldgrdColumnNames.get(x).getColName());                  
            }
        }
    }
    // ----- End of grdColumnNames Grid ----------------------------

    // Start Locations --------------   
    loadLocations();

    if(value.getTemplatesLocationsIsNotNull())
    {
        for(int x = 0; x < value.getTemplatesLocations().size(); x++)
        {               
            TemplateLocationShortVo tlItem = value.getTemplatesLocations().get(x); 
            if(tlItem != null && tlItem.getIsActiveIsNotNull() && tlItem.getIsActive().booleanValue())
                selectLocation(value.getTemplatesLocations().get(x).getLocation());
        }
    }       
    // End Locations ----------------

    // Start Roles -------------------
    loadRoles();

    if(value.getTemplateRolesIsNotNull())
    {
        for(int i = 0; i < value.getTemplateRoles().size(); i++)
        {
            TemplateRoleShortVo voTemplateShort = value.getTemplateRoles().get(i);
            if(voTemplateShort != null && voTemplateShort.getIsActiveIsNotNull() && voTemplateShort.getIsActive().booleanValue())
            {
                selectRole(voTemplateShort.getAppRole());
            }
        }
    }
    // End Roles ---------------------
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ims.ocrr.vo.OrderEntryTemplateVo value)
{
    clearScreen();
    if(value == null)
        return;

    this.form.cmbCategory().setValue(value.getTemplateCategoryIsNotNull() ? value.getTemplateCategory() : null);
    this.form.txtDescription().setValue(value.getDescriptionIsNotNull() ? value.getDescription(): null);
    this.form.txtMenuName().setValue(value.getMenuNameIsNotNull() ? value.getMenuName(): null);
    this.form.txtFormName().setValue(value.getFormNameIsNotNull() ? value.getFormName(): null);
    this.form.cmbStatus().setValue(value.getActiveStatusIsNotNull() ? value.getActiveStatus() : null);
    this.form.lyrDetails().tabText().richFormText().setValue(value.getFormTextIsNotNull()? value.getFormText() : null);

    // ----- Start of grdComponents Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateComponentShortVoCollection fieldgrdComponents = value.getComponentsIsNotNull() ? value.getComponents() : null;
    if(fieldgrdComponents != null)
    {
        fieldgrdComponents.sort();
        for(int x = 0; x < fieldgrdComponents.size(); x++)
        {
            if(fieldgrdComponents.get(x) != null)
            {
                this.addComponent(fieldgrdComponents.get(x), false);
            }
        }
    }
    // ----- End of grdComponents Grid ----------------------------

    // ----- Start of grdColumnNames Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateColumnVoCollection fieldgrdColumnNames = value.getColumnsIsNotNull() ? value.getColumns() : null;
    if(fieldgrdColumnNames != null)
    {
        fieldgrdColumnNames.sort();

        GenForm.lyrDetailsLayer.tabComponentsContainer.grdColumnNamesRow rowgrdColumnNames;
        for(int x = 0; x < fieldgrdColumnNames.size(); x++)
        {
            if(fieldgrdColumnNames.get(x) != null)
            {
                rowgrdColumnNames = this.form.lyrDetails().tabComponents().grdColumnNames().getRows().newRow();
                rowgrdColumnNames.setcolImage(form.getImages().OCRR.ColumnSeparator);
                rowgrdColumnNames.setcolName(fieldgrdColumnNames.get(x).getColName());                  
            }
        }
    }
    // ----- End of grdColumnNames Grid ----------------------------

    // Start Locations --------------   
    loadLocations();

    if(value.getTemplatesLocationsIsNotNull())
    {
        for(int x = 0; x < value.getTemplatesLocations().size(); x++)
        {               
            TemplateLocationShortVo tlItem = value.getTemplatesLocations().get(x); 
            if(tlItem != null && tlItem.getIsActiveIsNotNull() && tlItem.getIsActive().booleanValue())
                selectLocation(value.getTemplatesLocations().get(x).getLocation());
        }
    }       
    // End Locations ----------------

    // Start Roles -------------------
    loadRoles();

    if(value.getTemplateRolesIsNotNull())
    {
        for(int i = 0; i < value.getTemplateRoles().size(); i++)
        {
            TemplateRoleShortVo voTemplateShort = value.getTemplateRoles().get(i);
            if(voTemplateShort != null && voTemplateShort.getIsActiveIsNotNull() && voTemplateShort.getIsActive().booleanValue())
            {
                selectRole(voTemplateShort.getAppRole());
            }
        }
    }
    // End Roles ---------------------
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ims.ocrr.vo.OrderEntryTemplateVo value)
{
    clearScreen();
    if(value == null)
        return;

    this.form.cmbCategory().setValue(value.getTemplateCategoryIsNotNull() ? value.getTemplateCategory() : null);
    this.form.txtDescription().setValue(value.getDescriptionIsNotNull() ? value.getDescription(): null);
    this.form.txtMenuName().setValue(value.getMenuNameIsNotNull() ? value.getMenuName(): null);
    this.form.txtFormName().setValue(value.getFormNameIsNotNull() ? value.getFormName(): null);
    this.form.cmbStatus().setValue(value.getActiveStatusIsNotNull() ? value.getActiveStatus() : null);
    this.form.lyrDetails().tabText().richFormText().setValue(value.getFormTextIsNotNull()? value.getFormText() : null);

    // ----- Start of grdComponents Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateComponentShortVoCollection fieldgrdComponents = value.getComponentsIsNotNull() ? value.getComponents() : null;
    if(fieldgrdComponents != null)
    {
        fieldgrdComponents.sort();
        for(int x = 0; x < fieldgrdComponents.size(); x++)
        {
            if(fieldgrdComponents.get(x) != null)
            {
                this.addComponent(fieldgrdComponents.get(x), false);
            }
        }
    }
    // ----- End of grdComponents Grid ----------------------------

    // ----- Start of grdColumnNames Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateColumnVoCollection fieldgrdColumnNames = value.getColumnsIsNotNull() ? value.getColumns() : null;
    if(fieldgrdColumnNames != null)
    {
        fieldgrdColumnNames.sort();

        GenForm.lyrDetailsLayer.tabComponentsContainer.grdColumnNamesRow rowgrdColumnNames;
        for(int x = 0; x < fieldgrdColumnNames.size(); x++)
        {
            if(fieldgrdColumnNames.get(x) != null)
            {
                rowgrdColumnNames = this.form.lyrDetails().tabComponents().grdColumnNames().getRows().newRow();
                rowgrdColumnNames.setcolImage(form.getImages().OCRR.ColumnSeparator);
                rowgrdColumnNames.setcolName(fieldgrdColumnNames.get(x).getColName());                  
            }
        }
    }
    // ----- End of grdColumnNames Grid ----------------------------

    // Start Locations --------------   
    loadLocations();

    if(value.getTemplatesLocationsIsNotNull())
    {
        for(int x = 0; x < value.getTemplatesLocations().size(); x++)
        {               
            TemplateLocationShortVo tlItem = value.getTemplatesLocations().get(x); 
            if(tlItem != null && tlItem.getIsActiveIsNotNull() && tlItem.getIsActive().booleanValue())
                selectLocation(value.getTemplatesLocations().get(x).getLocation());
        }
    }       
    // End Locations ----------------

    // Start Roles -------------------
    loadRoles();

    if(value.getTemplateRolesIsNotNull())
    {
        for(int i = 0; i < value.getTemplateRoles().size(); i++)
        {
            TemplateRoleShortVo voTemplateShort = value.getTemplateRoles().get(i);
            if(voTemplateShort != null && voTemplateShort.getIsActiveIsNotNull() && voTemplateShort.getIsActive().booleanValue())
            {
                selectRole(voTemplateShort.getAppRole());
            }
        }
    }
    // End Roles ---------------------
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(ims.ocrr.vo.OrderEntryTemplateVo value)
{
    clearScreen();
    if(value == null)
        return;

    this.form.cmbCategory().setValue(value.getTemplateCategoryIsNotNull() ? value.getTemplateCategory() : null);
    this.form.txtDescription().setValue(value.getDescriptionIsNotNull() ? value.getDescription(): null);
    this.form.txtMenuName().setValue(value.getMenuNameIsNotNull() ? value.getMenuName(): null);
    this.form.txtFormName().setValue(value.getFormNameIsNotNull() ? value.getFormName(): null);
    this.form.cmbStatus().setValue(value.getActiveStatusIsNotNull() ? value.getActiveStatus() : null);
    this.form.lyrDetails().tabText().richFormText().setValue(value.getFormTextIsNotNull()? value.getFormText() : null);

    // ----- Start of grdComponents Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateComponentShortVoCollection fieldgrdComponents = value.getComponentsIsNotNull() ? value.getComponents() : null;
    if(fieldgrdComponents != null)
    {
        fieldgrdComponents.sort();
        for(int x = 0; x < fieldgrdComponents.size(); x++)
        {
            if(fieldgrdComponents.get(x) != null)
            {
                this.addComponent(fieldgrdComponents.get(x), false);
            }
        }
    }
    // ----- End of grdComponents Grid ----------------------------

    // ----- Start of grdColumnNames Grid --------------------------
    ims.ocrr.vo.OrderEntryTemplateColumnVoCollection fieldgrdColumnNames = value.getColumnsIsNotNull() ? value.getColumns() : null;
    if(fieldgrdColumnNames != null)
    {
        fieldgrdColumnNames.sort();

        GenForm.lyrDetailsLayer.tabComponentsContainer.grdColumnNamesRow rowgrdColumnNames;
        for(int x = 0; x < fieldgrdColumnNames.size(); x++)
        {
            if(fieldgrdColumnNames.get(x) != null)
            {
                rowgrdColumnNames = this.form.lyrDetails().tabComponents().grdColumnNames().getRows().newRow();
                rowgrdColumnNames.setcolImage(form.getImages().OCRR.ColumnSeparator);
                rowgrdColumnNames.setcolName(fieldgrdColumnNames.get(x).getColName());                  
            }
        }
    }
    // ----- End of grdColumnNames Grid ----------------------------

    // Start Locations --------------   
    loadLocations();

    if(value.getTemplatesLocationsIsNotNull())
    {
        for(int x = 0; x < value.getTemplatesLocations().size(); x++)
        {               
            TemplateLocationShortVo tlItem = value.getTemplatesLocations().get(x); 
            if(tlItem != null && tlItem.getIsActiveIsNotNull() && tlItem.getIsActive().booleanValue())
                selectLocation(value.getTemplatesLocations().get(x).getLocation());
        }
    }       
    // End Locations ----------------

    // Start Roles -------------------
    loadRoles();

    if(value.getTemplateRolesIsNotNull())
    {
        for(int i = 0; i < value.getTemplateRoles().size(); i++)
        {
            TemplateRoleShortVo voTemplateShort = value.getTemplateRoles().get(i);
            if(voTemplateShort != null && voTemplateShort.getIsActiveIsNotNull() && voTemplateShort.getIsActive().booleanValue())
            {
                selectRole(voTemplateShort.getAppRole());
            }
        }
    }
    // End Roles ---------------------
}