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

项目:AvoinApotti    文件:Logic.java   
private void populateGrid() 
{
    form.dyngrdHeaders().getRows().clear();

    ReportTemplateVoCollection templateColl = domain.listTemplates(null);

    if(templateColl == null)
        return;

    DynamicGridRow row;
    for(int i=0; i<templateColl.size(); i++)
    {
        if(templateColl.get(i) != null)
        {
            row = form.dyngrdHeaders().getRows().newRow();
            row.setValue(templateColl.get(i));
            row.setExpanded(true);
            row.setBackColor(Color.Beige);
            updateRowTemplate(row, templateColl.get(i));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{

    //open the template selection dialog if more than one template
    PasEventVo voPasEvent = domain.getPasEvent(form.getGlobalContext().Core.getPasEvent());
    ReportTemplateVoCollection voCollRepTemplates = domain.listTemplates(new Boolean(true),getConsultantId(voPasEvent),getLocationId(voPasEvent),getSpecialtyId(voPasEvent));

    if ((voCollRepTemplates != null) && (voCollRepTemplates.size() > 0))
    {
        GenForm.grdTemplateRow row;
        for(int i=0;i<voCollRepTemplates.size();i++)
        {
            row = form.grdTemplate().getRows().newRow();
            row.setValue(voCollRepTemplates.get(i));
            row.setcolTemplate(voCollRepTemplates.get(i).getName());
        }
    }

    form.btnSave().setEnabled(false);

}
项目:AvoinApotti    文件:Logic.java   
/**
 * @param collection
 */
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    if (voTemplateColl == null)
        return;

    form.grdTemplate().getRows().clear();
    form.grdTemplate().setValue(null);

    GenForm.grdTemplateRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplate().getRows().newRow();
        row.setValue(voTemplateColl.get(i));            
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
    }

}
项目:AvoinApotti    文件:WebServicesIntegrationImpl.java   
private ReportTemplateVo getTemplateByName(String templateName)
{
    StringBuffer hql = new StringBuffer();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<String> values = new ArrayList<String>();

    hql.append("from TemplateBo as template where UPPER(template.name) like UPPER(:templateName)");
    markers.add("templateName");
    values.add(templateName);

    DomainFactory factory = getDomainFactory();
    List list = factory.find(hql.toString(), markers, values);
    ReportTemplateVoCollection result = ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(list);

    return result != null ? result.get(0) : null;       
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid() 
{
    form.dyngrdHeaders().getRows().clear();

    ReportTemplateVoCollection templateColl = domain.listTemplates(null);

    if(templateColl == null)
        return;

    DynamicGridRow row;
    for(int i=0; i<templateColl.size(); i++)
    {
        if(templateColl.get(i) != null)
        {
            row = form.dyngrdHeaders().getRows().newRow();
            row.setValue(templateColl.get(i));
            row.setExpanded(true);
            row.setBackColor(Color.Beige);
            updateRowTemplate(row, templateColl.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{

    //open the template selection dialog if more than one template
    PasEventVo voPasEvent = domain.getPasEvent(form.getGlobalContext().Core.getPasEvent());
    ReportTemplateVoCollection voCollRepTemplates = domain.listTemplates(new Boolean(true),getConsultantId(voPasEvent),getLocationId(voPasEvent),getSpecialtyId(voPasEvent));

    if ((voCollRepTemplates != null) && (voCollRepTemplates.size() > 0))
    {
        GenForm.grdTemplateRow row;
        for(int i=0;i<voCollRepTemplates.size();i++)
        {
            row = form.grdTemplate().getRows().newRow();
            row.setValue(voCollRepTemplates.get(i));
            row.setcolTemplate(voCollRepTemplates.get(i).getName());
        }
    }

    form.btnSave().setEnabled(false);

}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param collection
 */
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    if (voTemplateColl == null)
        return;

    form.grdTemplate().getRows().clear();
    form.grdTemplate().setValue(null);

    GenForm.grdTemplateRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplate().getRows().newRow();
        row.setValue(voTemplateColl.get(i));            
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
    }

}
项目:openMAXIMS    文件:WebServicesIntegrationImpl.java   
private ReportTemplateVo getTemplateByName(String templateName)
{
    StringBuffer hql = new StringBuffer();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<String> values = new ArrayList<String>();

    hql.append("from TemplateBo as template where UPPER(template.name) like UPPER(:templateName)");
    markers.add("templateName");
    values.add(templateName);

    DomainFactory factory = getDomainFactory();
    List list = factory.find(hql.toString(), markers, values);
    ReportTemplateVoCollection result = ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(list);

    return result != null ? result.get(0) : null;       
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid() 
{
    form.dyngrdHeaders().getRows().clear();

    ReportTemplateVoCollection templateColl = domain.listTemplates(null);

    if(templateColl == null)
        return;

    DynamicGridRow row;
    for(int i=0; i<templateColl.size(); i++)
    {
        if(templateColl.get(i) != null)
        {
            row = form.dyngrdHeaders().getRows().newRow();
            row.setValue(templateColl.get(i));
            row.setExpanded(true);
            row.setBackColor(Color.Beige);
            updateRowTemplate(row, templateColl.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{

    //open the template selection dialog if more than one template
    PasEventVo voPasEvent = domain.getPasEvent(form.getGlobalContext().Core.getPasEvent());
    ReportTemplateVoCollection voCollRepTemplates = domain.listTemplates(new Boolean(true),getConsultantId(voPasEvent),getLocationId(voPasEvent),getSpecialtyId(voPasEvent));

    if ((voCollRepTemplates != null) && (voCollRepTemplates.size() > 0))
    {
        GenForm.grdTemplateRow row;
        for(int i=0;i<voCollRepTemplates.size();i++)
        {
            row = form.grdTemplate().getRows().newRow();
            row.setValue(voCollRepTemplates.get(i));
            row.setcolTemplate(voCollRepTemplates.get(i).getName());
        }
    }

    form.btnSave().setEnabled(false);

}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param collection
 */
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    if (voTemplateColl == null)
        return;

    form.grdTemplate().getRows().clear();
    form.grdTemplate().setValue(null);

    GenForm.grdTemplateRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplate().getRows().newRow();
        row.setValue(voTemplateColl.get(i));            
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
    }

}
项目:openMAXIMS    文件:WebServicesIntegrationImpl.java   
private ReportTemplateVo getTemplateByName(String templateName)
{
    StringBuffer hql = new StringBuffer();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<String> values = new ArrayList<String>();

    hql.append("from TemplateBo as template where UPPER(template.name) like UPPER(:templateName)");
    markers.add("templateName");
    values.add(templateName);

    DomainFactory factory = getDomainFactory();
    List list = factory.find(hql.toString(), markers, values);
    ReportTemplateVoCollection result = ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(list);

    return result != null ? result.get(0) : null;       
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid() 
{
    form.dyngrdHeaders().getRows().clear();

    ReportTemplateVoCollection templateColl = domain.listTemplates(null);

    if(templateColl == null)
        return;

    DynamicGridRow row;
    for(int i=0; i<templateColl.size(); i++)
    {
        if(templateColl.get(i) != null)
        {
            row = form.dyngrdHeaders().getRows().newRow();
            row.setValue(templateColl.get(i));
            row.setExpanded(true);
            row.setBackColor(Color.Beige);
            updateRowTemplate(row, templateColl.get(i));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{

    //open the template selection dialog if more than one template
    PasEventVo voPasEvent = domain.getPasEvent(form.getGlobalContext().Core.getPasEvent());
    ReportTemplateVoCollection voCollRepTemplates = domain.listTemplates(new Boolean(true),getConsultantId(voPasEvent),getLocationId(voPasEvent),getSpecialtyId(voPasEvent));

    if ((voCollRepTemplates != null) && (voCollRepTemplates.size() > 0))
    {
        GenForm.grdTemplateRow row;
        for(int i=0;i<voCollRepTemplates.size();i++)
        {
            row = form.grdTemplate().getRows().newRow();
            row.setValue(voCollRepTemplates.get(i));
            row.setcolTemplate(voCollRepTemplates.get(i).getName());
        }
    }

    form.btnSave().setEnabled(false);

}
项目:openmaxims-linux    文件:Logic.java   
/**
 * @param collection
 */
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    if (voTemplateColl == null)
        return;

    form.grdTemplate().getRows().clear();
    form.grdTemplate().setValue(null);

    GenForm.grdTemplateRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplate().getRows().newRow();
        row.setValue(voTemplateColl.get(i));            
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
    }

}
项目:openmaxims-linux    文件:WebServicesIntegrationImpl.java   
private ReportTemplateVo getTemplateByName(String templateName)
{
    StringBuffer hql = new StringBuffer();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<String> values = new ArrayList<String>();

    hql.append("from TemplateBo as template where UPPER(template.name) like UPPER(:templateName)");
    markers.add("templateName");
    values.add(templateName);

    DomainFactory factory = getDomainFactory();
    List list = factory.find(hql.toString(), markers, values);
    ReportTemplateVoCollection result = ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(list);

    return result != null ? result.get(0) : null;       
}
项目:AvoinApotti    文件:Logic.java   
/**
 * List available tempaltes
 * 
 */ 
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    form.grdTemplates().getRows().clear();
    form.grdTemplates().setValue(null);
    GenForm.grdTemplatesRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplates().getRows().newRow();
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
        row.setValue(voTemplateColl.get(i));
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onImbSearchClick() throws PresentationLogicException
{
    ReportTemplateVoCollection coll = domain.listTemplates("%" + (form.txtSearch().getValue() == null || form.txtSearch().getValue().trim().length() == 0 ? "%" : form.txtSearch().getValue()) + "%");
    form.grdTemplates().getRows().clear();
    GenForm.grdTemplatesRow row;
    for (int i=0; i<coll.size(); i++)
    {
        ReportTemplateVo vo = coll.get(i);

        grdTemplatesRow parentRow = form.grdTemplates().getRowByValue(vo.getReport());

        if(parentRow == null)
        {
            parentRow = form.grdTemplates().getRows().newRow();
            parentRow.setValue(vo.getReport());
            parentRow.setTemplateName(vo.getReport().getReportName());
        }

        row = parentRow.getRows().newRow();
        row.setValue(vo);
        row.setTemplateName(vo.getName());
        row.setSelectedImage(form.getImages().Core.Memo);
        row.setCollapsedImage(form.getImages().Core.Memo);
        row.setExpandedImage(form.getImages().Core.Memo);
    }

    for (int i = 0; i < form.grdTemplates().getRows().size(); i++)
    {
        form.grdTemplates().getRows().get(i).setExpanded(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * List available tempaltes
 * 
 */ 
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    form.grdTemplates().getRows().clear();
    form.grdTemplates().setValue(null);
    GenForm.grdTemplatesRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplates().getRows().newRow();
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
        row.setValue(voTemplateColl.get(i));
    }

}
项目:openMAXIMS    文件:Logic.java   
private void addGeneralTemplates(ReportVoCollection coll) 
{
    if (coll != null)
    {
        for(int i = 0; i < coll.size(); i++)
        {
            ReportVo report = coll.get(i);

            if(canBeSeeded(report) && report.getTemplatesIsNotNull() && report.getTemplates().size() > 0)
            {

                grdGeneralTemplateRow row = form.grdGeneralTemplate().getRows().newRow();

                row.setBackColor(Color.Beige);
                row.setcolName(report.getReportName());
                row.setcolDescription(report.getReportDescription());
                row.setValue(report);

                //WDEV-18311
                ReportTemplateVoCollection collTemplates = report.getTemplates().sort( new TemplatesComparator(SortOrder.ASCENDING)); 

                for (int j = 0; j < collTemplates.size(); j++)
                {
                    ReportTemplateVo template = collTemplates.get(j);

                    grdGeneralTemplateRow templateRow = row.getRows().newRow();
                    templateRow.setcolName(template.getName());
                    templateRow.setcolDescription(template.getDescription());
                    templateRow.setValue(template);
                }

                row.setExpanded(true);
            }
        }

        if(form.grdGeneralTemplate().getRows().size() == 1 && form.grdGeneralTemplate().getRows().get(0).getRows().size() == 1)
            form.grdGeneralTemplate().setValue(form.grdGeneralTemplate().getRows().get(0).getRows().get(0).getValue());

    }       
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbSearchClick() throws PresentationLogicException
{
    ReportTemplateVoCollection coll = domain.listTemplates("%" + (form.txtSearch().getValue() == null || form.txtSearch().getValue().trim().length() == 0 ? "%" : form.txtSearch().getValue()) + "%");
    form.grdTemplates().getRows().clear();
    GenForm.grdTemplatesRow row;
    for (int i=0; i<coll.size(); i++)
    {
        ReportTemplateVo vo = coll.get(i);

        grdTemplatesRow parentRow = form.grdTemplates().getRowByValue(vo.getReport());

        if(parentRow == null)
        {
            parentRow = form.grdTemplates().getRows().newRow();
            parentRow.setValue(vo.getReport());
            parentRow.setTemplateName(vo.getReport().getReportName());
        }

        row = parentRow.getRows().newRow();
        row.setValue(vo);
        row.setTemplateName(vo.getName());
        row.setSelectedImage(form.getImages().Core.Memo);
        row.setCollapsedImage(form.getImages().Core.Memo);
        row.setExpandedImage(form.getImages().Core.Memo);
    }

    for (int i = 0; i < form.grdTemplates().getRows().size(); i++)
    {
        form.grdTemplates().getRows().get(i).setExpanded(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * List available tempaltes
 * 
 */ 
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    form.grdTemplates().getRows().clear();
    form.grdTemplates().setValue(null);
    GenForm.grdTemplatesRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplates().getRows().newRow();
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
        row.setValue(voTemplateColl.get(i));
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onImbSearchClick() throws PresentationLogicException
{
    ReportTemplateVoCollection coll = domain.listTemplates("%" + (form.txtSearch().getValue() == null || form.txtSearch().getValue().trim().length() == 0 ? "%" : form.txtSearch().getValue()) + "%");
    form.grdTemplates().getRows().clear();
    GenForm.grdTemplatesRow row;
    for (int i=0; i<coll.size(); i++)
    {
        ReportTemplateVo vo = coll.get(i);

        grdTemplatesRow parentRow = form.grdTemplates().getRowByValue(vo.getReport());

        if(parentRow == null)
        {
            parentRow = form.grdTemplates().getRows().newRow();
            parentRow.setValue(vo.getReport());
            parentRow.setTemplateName(vo.getReport().getReportName());
        }

        row = parentRow.getRows().newRow();
        row.setValue(vo);
        row.setTemplateName(vo.getName());
        row.setSelectedImage(form.getImages().Core.Memo);
        row.setCollapsedImage(form.getImages().Core.Memo);
        row.setExpandedImage(form.getImages().Core.Memo);
    }

    for (int i = 0; i < form.grdTemplates().getRows().size(); i++)
    {
        form.grdTemplates().getRows().get(i).setExpanded(true);
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * List available tempaltes
 * 
 */ 
private void populateTemplateGrid(ReportTemplateVoCollection voTemplateColl) 
{
    form.grdTemplates().getRows().clear();
    form.grdTemplates().setValue(null);
    GenForm.grdTemplatesRow row = null;
    for(int i=0;i<voTemplateColl.size();i++)
    {
        row = form.grdTemplates().getRows().newRow();
        row.setcolTemplate(voTemplateColl.get(i).getName().toString());
        row.setValue(voTemplateColl.get(i));
    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void onImbSearchClick() throws PresentationLogicException
{
    ReportTemplateVoCollection coll = domain.listTemplates("%" + (form.txtSearch().getValue() == null || form.txtSearch().getValue().trim().length() == 0 ? "%" : form.txtSearch().getValue()) + "%");
    form.grdTemplates().getRows().clear();
    GenForm.grdTemplatesRow row;
    for (int i=0; i<coll.size(); i++)
    {
        ReportTemplateVo vo = coll.get(i);

        grdTemplatesRow parentRow = form.grdTemplates().getRowByValue(vo.getReport());

        if(parentRow == null)
        {
            parentRow = form.grdTemplates().getRows().newRow();
            parentRow.setValue(vo.getReport());
            parentRow.setTemplateName(vo.getReport().getReportName());
        }

        row = parentRow.getRows().newRow();
        row.setValue(vo);
        row.setTemplateName(vo.getName());
        row.setSelectedImage(form.getImages().Core.Memo);
        row.setCollapsedImage(form.getImages().Core.Memo);
        row.setExpandedImage(form.getImages().Core.Memo);
    }

    for (int i = 0; i < form.grdTemplates().getRows().size(); i++)
    {
        form.grdTemplates().getRows().get(i).setExpanded(true);
    }
}
项目:AvoinApotti    文件:CorrespondenceDetailImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:AvoinApotti    文件:CorrespondenceDetailsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:AvoinApotti    文件:TemplateAssociationsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly) 
{
    DomainFactory factory = getDomainFactory();     
    List templates  = factory.find("from TemplateBo");
    return ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(templates); 
}
项目:openMAXIMS    文件:CorrespondenceDetailImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:openMAXIMS    文件:CorrespondenceDetailsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:openMAXIMS    文件:TemplateAssociationsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly) 
{
    DomainFactory factory = getDomainFactory();     
    List templates  = factory.find("from TemplateBo");
    return ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(templates); 
}
项目:openMAXIMS    文件:Logic.java   
private void addPatientReportLetter(ReportVoCollection coll) 
{
    if (coll != null)
    {
        for(int i = 0; i < coll.size(); i++)
        {
            ReportVo report = coll.get(i);

            if (report.getReportNameIsNotNull() 
                    && ((report.getReportName().equalsIgnoreCase("Scheduler - Patient Letters") && form.getGlobalContext().CcoSched.getSelectLetterType().equals("BOOKING"))
                            || (report.getReportName().equalsIgnoreCase("Scheduler - Rebooking Patient Letters") && form.getGlobalContext().CcoSched.getSelectLetterType().equals("REBOOKING"))
                            || (report.getReportName().equalsIgnoreCase("Scheduler - Patient Letters") && form.getGlobalContext().CcoSched.getSelectLetterType().equals("BOOKINGCONFIRM")))
                            )
            {
                if(canBeSeeded(report) && report.getTemplatesIsNotNull() && report.getTemplates().size() > 0)
                {

                    grdPatientLettersRow row = form.grdPatientLetters().getRows().newRow();

                    row.setBackColor(Color.Beige);
                    row.setcolName(report.getReportName());
                    row.setcolDescription(report.getReportDescription());
                    row.setValue(report);

                    //WDEV-18311
                    ReportTemplateVoCollection collTemplates = report.getTemplates().sort( new TemplatesComparator(SortOrder.ASCENDING));
                    for (int j = 0; j < collTemplates.size(); j++)
                    {
                        ReportTemplateVo template = collTemplates.get(j);

                        grdPatientLettersRow templateRow = row.getRows().newRow();
                        templateRow.setcolName(template.getName());
                        templateRow.setcolDescription(template.getDescription());
                        templateRow.setValue(template);
                    }

                    row.setExpanded(true);
                }
            }
        }

        if(form.grdPatientLetters().getRows().size() == 1 && form.grdPatientLetters().getRows().get(0).getRows().size() == 1)
            form.grdPatientLetters().setValue(form.grdPatientLetters().getRows().get(0).getRows().get(0).getValue());

    }

}
项目:openMAXIMS    文件:Logic.java   
private void addGpReportLetter(ReportVoCollection coll) 
{
    if (coll != null)
    {
        for(int i = 0; i < coll.size(); i++)
        {
            ReportVo report = coll.get(i);

            if (report.getReportNameIsNotNull() 
                    && ((report.getReportName().equalsIgnoreCase("Scheduler - GP Letters") && form.getGlobalContext().CcoSched.getSelectLetterType().equals("BOOKING"))
                            || (report.getReportName().equalsIgnoreCase("Scheduler - Rebooking GP Letters") && form.getGlobalContext().CcoSched.getSelectLetterType().equals("REBOOKING")))
                            )                   
            {

                if(canBeSeeded(report) && report.getTemplatesIsNotNull() && report.getTemplates().size() > 0)
                {

                    grdGPLettersRow row = form.grdGPLetters().getRows().newRow();

                    row.setBackColor(Color.Beige);
                    row.setcolName(report.getReportName());
                    row.setcolDescription(report.getReportDescription());
                    row.setValue(report);

                    //WDEV-18311
                    ReportTemplateVoCollection collTemplates = report.getTemplates().sort(new TemplatesComparator(SortOrder.ASCENDING));
                    for (int j = 0; j < collTemplates.size(); j++)
                    {
                        ReportTemplateVo template = collTemplates.get(j);

                        grdGPLettersRow templateRow = row.getRows().newRow();
                        templateRow.setcolName(template.getName());
                        templateRow.setcolDescription(template.getDescription());
                        templateRow.setValue(template);
                    }

                    row.setExpanded(true);
                }
            }
        }

        if(form.grdGPLetters().getRows().size() == 1 && form.grdGPLetters().getRows().get(0).getRows().size() == 1)
            form.grdGPLetters().setValue(form.grdGPLetters().getRows().get(0).getRows().get(0).getValue());

    }       
}
项目:openMAXIMS    文件:CorrespondenceDetailImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:openMAXIMS    文件:CorrespondenceDetailsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:openMAXIMS    文件:TemplateAssociationsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly) 
{
    DomainFactory factory = getDomainFactory();     
    List templates  = factory.find("from TemplateBo");
    return ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(templates); 
}
项目:openmaxims-linux    文件:CorrespondenceDetailImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:openmaxims-linux    文件:CorrespondenceDetailsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly, Integer voMedicId, Integer voLocationId, Integer voServiceId) 
{
    TemplateSelect implTemplateSelect = (TemplateSelect)getDomainImpl(TemplateSelectImpl.class);
    return implTemplateSelect.listTemplates(activeOnly,voMedicId,voLocationId,voServiceId);
}
项目:openmaxims-linux    文件:TemplateAssociationsImpl.java   
public ReportTemplateVoCollection listTemplates(Boolean activeOnly) 
{
    DomainFactory factory = getDomainFactory();     
    List templates  = factory.find("from TemplateBo");
    return ReportTemplateVoAssembler.createReportTemplateVoCollectionFromTemplateBo(templates); 
}