Java 类ims.core.vo.TemplateForReportTemplateSearchVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(TemplateForReportTemplateSearchVoCollection coll)
{

    if (coll == null)
        return;

    for (int i = 0; i < coll.size(); i++)
    {
        TemplateForReportTemplateSearchVo template = coll.get(i);

        grdResultRow row = form.grdResult().getRows().newRow();
        row.setcolReport(template.getReport().getReportName());
        row.setcolTemplate(template.getName());
        row.setValue(template);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(TemplateForReportTemplateSearchVoCollection coll)
{

    if (coll == null)
        return;

    for (int i = 0; i < coll.size(); i++)
    {
        TemplateForReportTemplateSearchVo template = coll.get(i);

        grdResultRow row = form.grdResult().getRows().newRow();
        row.setcolReport(template.getReport().getReportName());
        row.setcolTemplate(template.getName());
        row.setValue(template);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(TemplateForReportTemplateSearchVoCollection coll)
{

    if (coll == null)
        return;

    for (int i = 0; i < coll.size(); i++)
    {
        TemplateForReportTemplateSearchVo template = coll.get(i);

        grdResultRow row = form.grdResult().getRows().newRow();
        row.setcolReport(template.getReport().getReportName());
        row.setcolTemplate(template.getName());
        row.setValue(template);
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(TemplateForReportTemplateSearchVoCollection coll)
{

    if (coll == null)
        return;

    for (int i = 0; i < coll.size(); i++)
    {
        TemplateForReportTemplateSearchVo template = coll.get(i);

        grdResultRow row = form.grdResult().getRows().newRow();
        row.setcolReport(template.getReport().getReportName());
        row.setcolTemplate(template.getName());
        row.setValue(template);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void updateControlsState()
{
    form.ccReportTemplateSearch().setEnabled(FormMode.VIEW.equals(form.getMode()));
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.ccReportTemplateSearch().getSelectedTemplate() instanceof TemplateForReportTemplateSearchVo);

    //form.btnAdd().setVisible(FormMode.EDIT.equals(form.getMode()));
    //form.btnRemove().setVisible(FormMode.EDIT.equals(form.getMode()) && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);

    form.btnAdd().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());
    form.btnRemove().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue() && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);
    form.grdProblems().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());

    form.chkTemplateAvailable().setEnabled(FormMode.EDIT.equals(form.getMode()));

}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState()
{
    form.ccReportTemplateSearch().setEnabled(FormMode.VIEW.equals(form.getMode()));
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && (form.ccReportTemplateSearch().getSelectedTemplate() instanceof TemplateForReportTemplateSearchVo || form.grdPrePrintedAdviceLeafletSearch().getValue()!=null)); //WDEV-20437

    //form.btnAdd().setVisible(FormMode.EDIT.equals(form.getMode()));
    //form.btnRemove().setVisible(FormMode.EDIT.equals(form.getMode()) && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);

    form.btnAdd().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());
    form.btnRemove().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue() && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);
    form.grdProblems().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());

    form.chkTemplateAvailable().setEnabled(FormMode.EDIT.equals(form.getMode()));

    //WDEV-20437
    form.btnNewPrePrintedLeaflet1().setVisible(FormMode.VIEW.equals(form.getMode()) && !form.btnEdit().isVisible());
    form.btnNewPrePrintedLeaflet2().setVisible(FormMode.VIEW.equals(form.getMode()) && !form.btnNewPrePrintedLeaflet1().isVisible());

    form.lblTemplatePrePrintedLeafletName().setValue(form.getLocalContext().getselectedTemplate()!=null ? "Template Name:" : "Pre-Printed Advice Leaflet " );
    form.lblchkText().setValue(form.getLocalContext().getselectedTemplate()!=null ? "Template is always available regardless of Presenting Problem" : "Pre-Printed Advice Leaflet is always available regardless of Presenting Problem " );

    form.lblTemplateName().setVisible(form.getLocalContext().getselectedTemplate()!=null);
    form.txtPrePrintedAdviceLeaflet().setVisible(!form.lblTemplateName().isVisible());
    form.txtPrePrintedAdviceLeaflet().setEnabled(FormMode.EDIT.equals(form.getMode()) && form.txtPrePrintedAdviceLeaflet().isVisible());
    //WDEV-21653
    form.txtPrePrintedAdviceLeafletSearch().setEnabled(FormMode.VIEW.equals(form.getMode()));
    form.grdPrePrintedAdviceLeafletSearch().setEnabled(FormMode.VIEW.equals(form.getMode()));
    form.btnSearchPrePrintedAdviceLeafletSearch().setEnabled(FormMode.VIEW.equals(form.getMode()));
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState()
{
    form.ccReportTemplateSearch().setEnabled(FormMode.VIEW.equals(form.getMode()));
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.ccReportTemplateSearch().getSelectedTemplate() instanceof TemplateForReportTemplateSearchVo);

    //form.btnAdd().setVisible(FormMode.EDIT.equals(form.getMode()));
    //form.btnRemove().setVisible(FormMode.EDIT.equals(form.getMode()) && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);

    form.btnAdd().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());
    form.btnRemove().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue() && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);
    form.grdProblems().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());

    form.chkTemplateAvailable().setEnabled(FormMode.EDIT.equals(form.getMode()));

}
项目:openmaxims-linux    文件:Logic.java   
private void updateControlsState()
{
    form.ccReportTemplateSearch().setEnabled(FormMode.VIEW.equals(form.getMode()));
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.ccReportTemplateSearch().getSelectedTemplate() instanceof TemplateForReportTemplateSearchVo);

    //form.btnAdd().setVisible(FormMode.EDIT.equals(form.getMode()));
    //form.btnRemove().setVisible(FormMode.EDIT.equals(form.getMode()) && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);

    form.btnAdd().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());
    form.btnRemove().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue() && form.grdProblems().getValue() instanceof ClinicalProblemShortVo);
    form.grdProblems().setEnabled(FormMode.EDIT.equals(form.getMode()) && !form.chkTemplateAvailable().getValue());

    form.chkTemplateAvailable().setEnabled(FormMode.EDIT.equals(form.getMode()));

}
项目:AvoinApotti    文件:Logic.java   
public TemplateForReportTemplateSearchVo getSelectedTemplate()
{
    return form.getLocalContext().getselectedTemplate();
}
项目:openMAXIMS    文件:Logic.java   
public TemplateForReportTemplateSearchVo getSelectedTemplate()
{
    return form.getLocalContext().getselectedTemplate();
}
项目:openMAXIMS    文件:Logic.java   
public TemplateForReportTemplateSearchVo getSelectedTemplate()
{
    return form.getLocalContext().getselectedTemplate();
}
项目:openmaxims-linux    文件:Logic.java   
public TemplateForReportTemplateSearchVo getSelectedTemplate()
{
    return form.getLocalContext().getselectedTemplate();
}