Java 类ims.admin.vo.FormLookupVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onGrdFormsSelectionChanged() throws PresentationLogicException
{
    AppFormVo appForm = form.lyr1().Forms().grdForms().getValue();
    form.getLocalContext().setChosenForm(appForm);
    FormLookupVoCollection coll = domain.getFormLookups(appForm);
    populateFormLookupsGrid(coll);
}
项目:AvoinApotti    文件:Logic.java   
private void populateFormLookupsGrid(FormLookupVoCollection coll)
{
    form.lyr1().Forms().cmbDefInst().clear();
    form.lyr1().Forms().grdFormLookups().getRows().clear();
    GenForm.lyr1Layer.FormsContainer.grdFormLookupsRow row = null;
    for (int i = 0; i < coll.size(); i++)
    {
        row = form.lyr1().Forms().grdFormLookups().getRows().newRow();
        row.setValue(coll.get(i));
        row.setId(new Integer(coll.get(i).getLookupType().getId()));
        row.setLookup(coll.get(i).getLookupType().getName());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void displaySelectedRecord(IAppForm selectedForm) 
{   
    if (selectedForm == null)
        return;

    clearDetails();

    AppFormListVo appFormListVo = domain.getAppFormList(selectedForm.getFormId());      
    if (appFormListVo != null)
    {       
        form.lyrDetails().tabDetails().lblName().setValue(appFormListVo.getName());
        form.lyrDetails().tabDetails().lblCaption().setValue(appFormListVo.getCaption());
        form.lyrDetails().tabDetails().txtDescription().setValue(appFormListVo.getDescription());
        if (appFormListVo.getImage() != null)
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(true);
            form.lyrDetails().tabDetails().imgImage().setValue(appFormListVo.getImage());
        }
        else
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(false);
            form.lyrDetails().tabDetails().imgImage().setValue(null);
        }

        if (appFormListVo.getLookupsIsNotNull())
        {           
            FormLookupVoCollection lookups = appFormListVo.getLookups();
            populateLookupsGrid(lookups);           
        }

        form.lyrDetails().tabDetails().ccMappings().setValue(appFormListVo.getCodeMappings());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateLookupsGrid(FormLookupVoCollection lookups) 
{
    if (lookups == null || lookups.size() == 0)
        return;

    form.lyrDetails().tabDetails().grdLookups().getRows().clear();
    for (int i = 0; i < lookups.size(); i++) 
    {
        FormLookupVo lookup = lookups.get(i);           
        grdLookupsRow row = form.lyrDetails().tabDetails().grdLookups().getRows().newRow();
        row.setColName(lookup.getLookupType().getName());
        row.setColDesc(lookup.getLookupType().getDescription());
    }       
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdFormsSelectionChanged() throws PresentationLogicException
{
    AppFormVo appForm = form.lyr1().Forms().grdForms().getValue();
    form.getLocalContext().setChosenForm(appForm);
    FormLookupVoCollection coll = domain.getFormLookups(appForm);
    populateFormLookupsGrid(coll);
}
项目:openMAXIMS    文件:Logic.java   
private void populateFormLookupsGrid(FormLookupVoCollection coll)
{
    form.lyr1().Forms().cmbDefInst().clear();
    form.lyr1().Forms().grdFormLookups().getRows().clear();
    GenForm.lyr1Layer.FormsContainer.grdFormLookupsRow row = null;
    for (int i = 0; i < coll.size(); i++)
    {
        row = form.lyr1().Forms().grdFormLookups().getRows().newRow();
        row.setValue(coll.get(i));
        row.setId(new Integer(coll.get(i).getLookupType().getId()));
        row.setLookup(coll.get(i).getLookupType().getName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displaySelectedRecord(IAppForm selectedForm) 
{   
    if (selectedForm == null)
        return;

    clearDetails();

    AppFormListVo appFormListVo = domain.getAppFormList(selectedForm.getFormId());      
    if (appFormListVo != null)
    {       
        form.lyrDetails().tabDetails().lblName().setValue(appFormListVo.getName());
        form.lyrDetails().tabDetails().lblCaption().setValue(appFormListVo.getCaption());
        form.lyrDetails().tabDetails().txtDescription().setValue(appFormListVo.getDescription());
        if (appFormListVo.getImage() != null)
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(true);
            form.lyrDetails().tabDetails().imgImage().setValue(appFormListVo.getImage());
        }
        else
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(false);
            form.lyrDetails().tabDetails().imgImage().setValue(null);
        }

        if (appFormListVo.getLookupsIsNotNull())
        {           
            FormLookupVoCollection lookups = appFormListVo.getLookups();
            populateLookupsGrid(lookups);           
        }

        form.lyrDetails().tabDetails().ccMappings().setValue(appFormListVo.getCodeMappings());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateLookupsGrid(FormLookupVoCollection lookups) 
{
    if (lookups == null || lookups.size() == 0)
        return;

    form.lyrDetails().tabDetails().grdLookups().getRows().clear();
    for (int i = 0; i < lookups.size(); i++) 
    {
        FormLookupVo lookup = lookups.get(i);           
        grdLookupsRow row = form.lyrDetails().tabDetails().grdLookups().getRows().newRow();
        row.setColName(lookup.getLookupType().getName());
        row.setColDesc(lookup.getLookupType().getDescription());
    }       
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdFormsSelectionChanged() throws PresentationLogicException
{
    AppFormVo appForm = form.lyr1().Forms().grdForms().getValue();
    form.getLocalContext().setChosenForm(appForm);
    FormLookupVoCollection coll = domain.getFormLookups(appForm);
    populateFormLookupsGrid(coll);
}
项目:openMAXIMS    文件:Logic.java   
private void populateFormLookupsGrid(FormLookupVoCollection coll)
{
    form.lyr1().Forms().cmbDefInst().clear();
    form.lyr1().Forms().grdFormLookups().getRows().clear();
    GenForm.lyr1Layer.FormsContainer.grdFormLookupsRow row = null;
    for (int i = 0; i < coll.size(); i++)
    {
        row = form.lyr1().Forms().grdFormLookups().getRows().newRow();
        row.setValue(coll.get(i));
        row.setId(new Integer(coll.get(i).getLookupType().getId()));
        row.setLookup(coll.get(i).getLookupType().getName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displaySelectedRecord(IAppForm selectedForm) 
{   
    if (selectedForm == null)
        return;

    clearDetails();

    AppFormListVo appFormListVo = domain.getAppFormList(selectedForm.getFormId());      
    if (appFormListVo != null)
    {       
        form.lyrDetails().tabDetails().lblName().setValue(appFormListVo.getName());
        form.lyrDetails().tabDetails().lblCaption().setValue(appFormListVo.getCaption());
        form.lyrDetails().tabDetails().txtDescription().setValue(appFormListVo.getDescription());
        if (appFormListVo.getImage() != null)
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(true);
            form.lyrDetails().tabDetails().imgImage().setValue(appFormListVo.getImage());
        }
        else
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(false);
            form.lyrDetails().tabDetails().imgImage().setValue(null);
        }

        if (appFormListVo.getLookupsIsNotNull())
        {           
            FormLookupVoCollection lookups = appFormListVo.getLookups();
            populateLookupsGrid(lookups);           
        }

        form.lyrDetails().tabDetails().ccMappings().setValue(appFormListVo.getCodeMappings());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateLookupsGrid(FormLookupVoCollection lookups) 
{
    if (lookups == null || lookups.size() == 0)
        return;

    form.lyrDetails().tabDetails().grdLookups().getRows().clear();
    for (int i = 0; i < lookups.size(); i++) 
    {
        FormLookupVo lookup = lookups.get(i);           
        grdLookupsRow row = form.lyrDetails().tabDetails().grdLookups().getRows().newRow();
        row.setColName(lookup.getLookupType().getName());
        row.setColDesc(lookup.getLookupType().getDescription());
    }       
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdFormsSelectionChanged() throws PresentationLogicException
{
    AppFormVo appForm = form.lyr1().Forms().grdForms().getValue();
    form.getLocalContext().setChosenForm(appForm);
    FormLookupVoCollection coll = domain.getFormLookups(appForm);
    populateFormLookupsGrid(coll);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateFormLookupsGrid(FormLookupVoCollection coll)
{
    form.lyr1().Forms().cmbDefInst().clear();
    form.lyr1().Forms().grdFormLookups().getRows().clear();
    GenForm.lyr1Layer.FormsContainer.grdFormLookupsRow row = null;
    for (int i = 0; i < coll.size(); i++)
    {
        row = form.lyr1().Forms().grdFormLookups().getRows().newRow();
        row.setValue(coll.get(i));
        row.setId(new Integer(coll.get(i).getLookupType().getId()));
        row.setLookup(coll.get(i).getLookupType().getName());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void displaySelectedRecord(IAppForm selectedForm) 
{   
    if (selectedForm == null)
        return;

    clearDetails();

    AppFormListVo appFormListVo = domain.getAppFormList(selectedForm.getFormId());      
    if (appFormListVo != null)
    {       
        form.lyrDetails().tabDetails().lblName().setValue(appFormListVo.getName());
        form.lyrDetails().tabDetails().lblCaption().setValue(appFormListVo.getCaption());
        form.lyrDetails().tabDetails().txtDescription().setValue(appFormListVo.getDescription());
        if (appFormListVo.getImage() != null)
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(true);
            form.lyrDetails().tabDetails().imgImage().setValue(appFormListVo.getImage());
        }
        else
        {
            form.lyrDetails().tabDetails().imgImage().setVisible(false);
            form.lyrDetails().tabDetails().imgImage().setValue(null);
        }

        if (appFormListVo.getLookupsIsNotNull())
        {           
            FormLookupVoCollection lookups = appFormListVo.getLookups();
            populateLookupsGrid(lookups);           
        }

        form.lyrDetails().tabDetails().ccMappings().setValue(appFormListVo.getCodeMappings());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateLookupsGrid(FormLookupVoCollection lookups) 
{
    if (lookups == null || lookups.size() == 0)
        return;

    form.lyrDetails().tabDetails().grdLookups().getRows().clear();
    for (int i = 0; i < lookups.size(); i++) 
    {
        FormLookupVo lookup = lookups.get(i);           
        grdLookupsRow row = form.lyrDetails().tabDetails().grdLookups().getRows().newRow();
        row.setColName(lookup.getLookupType().getName());
        row.setColDesc(lookup.getLookupType().getDescription());
    }       
}
项目:AvoinApotti    文件:LookupTreeImpl.java   
public FormLookupVoCollection getFormLookups(AppFormRefVo formRef)
{
    DomainFactory factory = getDomainFactory();
    AppForm domForm = (AppForm) factory.getDomainObject(formRef);
    return FormLookupVoAssembler.createFormLookupVoCollectionFromAppFormLookup(domForm.getLookups());
}
项目:openMAXIMS    文件:LookupTreeImpl.java   
public FormLookupVoCollection getFormLookups(AppFormRefVo formRef)
{
    DomainFactory factory = getDomainFactory();
    AppForm domForm = (AppForm) factory.getDomainObject(formRef);
    return FormLookupVoAssembler.createFormLookupVoCollectionFromAppFormLookup(domForm.getLookups());
}
项目:openMAXIMS    文件:LookupTreeImpl.java   
public FormLookupVoCollection getFormLookups(AppFormRefVo formRef)
{
    DomainFactory factory = getDomainFactory();
    AppForm domForm = (AppForm) factory.getDomainObject(formRef);
    return FormLookupVoAssembler.createFormLookupVoCollectionFromAppFormLookup(domForm.getLookups());
}
项目:openmaxims-linux    文件:LookupTreeImpl.java   
public FormLookupVoCollection getFormLookups(AppFormRefVo formRef)
{
    DomainFactory factory = getDomainFactory();
    AppForm domForm = (AppForm) factory.getDomainObject(formRef);
    return FormLookupVoAssembler.createFormLookupVoCollectionFromAppFormLookup(domForm.getLookups());
}