Java 类ims.core.vo.lookups.AdviceLeafletsCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void loadLookupsIntoGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }

    // Treatment Discussed....
    form.grdTxDiscussed().setValue(null);
    form.grdTxDiscussed().getRows().clear();
    GenForm.grdTxDiscussedRow rowTxDiscussed = null;
    ErectDysTreatmentsGivenCollection colErectDysTreatDiscussed = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colErectDysTreatDiscussed.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreatDiscussed = colErectDysTreatDiscussed.get(i);
        rowTxDiscussed = form.grdTxDiscussed().getRows().newRow();
        rowTxDiscussed.setValue(bErectDysTreatDiscussed);
        rowTxDiscussed.setcolTxDiscussed(bErectDysTreatDiscussed);
    }
    // Treatment History....
    form.grdTreatment().setValue(null);
    form.grdTreatment().getRows().clear();
    GenForm.grdTreatmentRow rowTreatment = null;
    ErectDysTreatmentsGivenCollection colDysTreatGiven = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colDysTreatGiven.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreat = colDysTreatGiven.get(i);
        rowTreatment = form.grdTreatment().getRows().newRow();
        rowTreatment.setcolTreatment(bErectDysTreat);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void clearLeafletsGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadLookupsIntoGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }

    // Treatment Discussed....
    form.grdTxDiscussed().setValue(null);
    form.grdTxDiscussed().getRows().clear();
    GenForm.grdTxDiscussedRow rowTxDiscussed = null;
    ErectDysTreatmentsGivenCollection colErectDysTreatDiscussed = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colErectDysTreatDiscussed.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreatDiscussed = colErectDysTreatDiscussed.get(i);
        rowTxDiscussed = form.grdTxDiscussed().getRows().newRow();
        rowTxDiscussed.setValue(bErectDysTreatDiscussed);
        rowTxDiscussed.setcolTxDiscussed(bErectDysTreatDiscussed);
    }
    // Treatment History....
    form.grdTreatment().setValue(null);
    form.grdTreatment().getRows().clear();
    GenForm.grdTreatmentRow rowTreatment = null;
    ErectDysTreatmentsGivenCollection colDysTreatGiven = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colDysTreatGiven.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreat = colDysTreatGiven.get(i);
        rowTreatment = form.grdTreatment().getRows().newRow();
        rowTreatment.setcolTreatment(bErectDysTreat);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void clearLeafletsGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadLookupsIntoGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }

    // Treatment Discussed....
    form.grdTxDiscussed().setValue(null);
    form.grdTxDiscussed().getRows().clear();
    GenForm.grdTxDiscussedRow rowTxDiscussed = null;
    ErectDysTreatmentsGivenCollection colErectDysTreatDiscussed = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colErectDysTreatDiscussed.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreatDiscussed = colErectDysTreatDiscussed.get(i);
        rowTxDiscussed = form.grdTxDiscussed().getRows().newRow();
        rowTxDiscussed.setValue(bErectDysTreatDiscussed);
        rowTxDiscussed.setcolTxDiscussed(bErectDysTreatDiscussed);
    }
    // Treatment History....
    form.grdTreatment().setValue(null);
    form.grdTreatment().getRows().clear();
    GenForm.grdTreatmentRow rowTreatment = null;
    ErectDysTreatmentsGivenCollection colDysTreatGiven = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colDysTreatGiven.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreat = colDysTreatGiven.get(i);
        rowTreatment = form.grdTreatment().getRows().newRow();
        rowTreatment.setcolTreatment(bErectDysTreat);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void clearLeafletsGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadLookupsIntoGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }

    // Treatment Discussed....
    form.grdTxDiscussed().setValue(null);
    form.grdTxDiscussed().getRows().clear();
    GenForm.grdTxDiscussedRow rowTxDiscussed = null;
    ErectDysTreatmentsGivenCollection colErectDysTreatDiscussed = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colErectDysTreatDiscussed.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreatDiscussed = colErectDysTreatDiscussed.get(i);
        rowTxDiscussed = form.grdTxDiscussed().getRows().newRow();
        rowTxDiscussed.setValue(bErectDysTreatDiscussed);
        rowTxDiscussed.setcolTxDiscussed(bErectDysTreatDiscussed);
    }
    // Treatment History....
    form.grdTreatment().setValue(null);
    form.grdTreatment().getRows().clear();
    GenForm.grdTreatmentRow rowTreatment = null;
    ErectDysTreatmentsGivenCollection colDysTreatGiven = LookupHelper.getErectDysTreatmentsGiven(domain.getLookupService());
    for (int i = 0; i < colDysTreatGiven.size(); i++)
    {
        ErectDysTreatmentsGiven bErectDysTreat = colDysTreatGiven.get(i);
        rowTreatment = form.grdTreatment().getRows().newRow();
        rowTreatment.setcolTreatment(bErectDysTreat);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void clearLeafletsGrid()
{
    form.grdLeafletsGiven().setValue(null);
    form.grdLeafletsGiven().getRows().clear();
    // Leaflets Given...
    GenForm.grdLeafletsGivenRow rowLeafletsGiven = null;
    AdviceLeafletsCollection colLeafletsGiven = ims.core.vo.lookups.LookupHelper.getAdviceLeaflets(domain.getLookupService());
    for (int i = 0; i < colLeafletsGiven.size(); i++)
    {
        AdviceLeaflets bAdviceLeaflets = colLeafletsGiven.get(i);
        rowLeafletsGiven = form.grdLeafletsGiven().getRows().newRow();
        rowLeafletsGiven.setValue(bAdviceLeaflets);
        rowLeafletsGiven.setcolLeaflets(bAdviceLeaflets);
    }
}