Java 类ims.clinical.vo.AreaOfNeedsNotingDetailVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateChildCollectionFromGrid(AreaOfNeedsNotingVo voAreaOfNeedsNoting)
{
    if(form.gridNotes().getValue() == null) return;

    if(voAreaOfNeedsNoting.getNotingDetails() == null)
        voAreaOfNeedsNoting.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());

    GenForm.gridNotesRow parentRow = form.gridNotes().getValue() instanceof AreaOfNeedsNotingVo ? 
            form.gridNotes().getSelectedRow() : form.gridNotes().getSelectedRow().getParentRow();       

    if (parentRow.getRows().size() > 0 )
        voAreaOfNeedsNoting.getNotingDetails().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
    {
        voAreaOfNeedsNoting.getNotingDetails().add((AreaOfNeedsNotingDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(AreaOfNeedsNotingVo voAreaOfNeedsNoting)
{
    if(form.gridNotes().getValue() == null) return;

    if(voAreaOfNeedsNoting.getNotingDetails() == null)
        voAreaOfNeedsNoting.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());

    GenForm.gridNotesRow parentRow = form.gridNotes().getValue() instanceof AreaOfNeedsNotingVo ? 
            form.gridNotes().getSelectedRow() : form.gridNotes().getSelectedRow().getParentRow();       

    if (parentRow.getRows().size() > 0 )
        voAreaOfNeedsNoting.getNotingDetails().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
    {
        voAreaOfNeedsNoting.getNotingDetails().add((AreaOfNeedsNotingDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(AreaOfNeedsNotingVo voAreaOfNeedsNoting)
{
    if(form.gridNotes().getValue() == null) return;

    if(voAreaOfNeedsNoting.getNotingDetails() == null)
        voAreaOfNeedsNoting.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());

    GenForm.gridNotesRow parentRow = form.gridNotes().getValue() instanceof AreaOfNeedsNotingVo ? 
            form.gridNotes().getSelectedRow() : form.gridNotes().getSelectedRow().getParentRow();       

    if (parentRow.getRows().size() > 0 )
        voAreaOfNeedsNoting.getNotingDetails().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
    {
        voAreaOfNeedsNoting.getNotingDetails().add((AreaOfNeedsNotingDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildCollectionFromGrid(AreaOfNeedsNotingVo voAreaOfNeedsNoting)
{
    if(form.gridNotes().getValue() == null) return;

    if(voAreaOfNeedsNoting.getNotingDetails() == null)
        voAreaOfNeedsNoting.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());

    GenForm.gridNotesRow parentRow = form.gridNotes().getValue() instanceof AreaOfNeedsNotingVo ? 
            form.gridNotes().getSelectedRow() : form.gridNotes().getSelectedRow().getParentRow();       

    if (parentRow.getRows().size() > 0 )
        voAreaOfNeedsNoting.getNotingDetails().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
    {
        voAreaOfNeedsNoting.getNotingDetails().add((AreaOfNeedsNotingDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateChildNodes(gridNotesRow parRow, AreaOfNeedsNotingDetailVoCollection voNotingDetailsColl)
{
    if (voNotingDetailsColl == null || voNotingDetailsColl.size()<=0) return;       

    for(int i=0; i<voNotingDetailsColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.gridNotesRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voNotingDetailsColl.get(i));                
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private String getNotes()
{
    AreaOfNeedsNotingDetailVoCollection voAreaOfNeedsDetailColl = form.getLocalContext().getSelectedParentInstance().getNotingDetails();

    if(voAreaOfNeedsDetailColl == null) return null;

    boolean summaryNoteExists = false;

    java.lang.StringBuffer notes = new java.lang.StringBuffer("");
    notes.append(ims.framework.controls.RichTextControl.IdentityTag);

    for(int t=0; t<voAreaOfNeedsDetailColl.size(); t++)
    {
        AreaOfNeedsNotingDetailVo voAreaOfNeedDetail = voAreaOfNeedsDetailColl.get(t);
        //WDEV-2290 
        if(voAreaOfNeedDetail.getSummaryNoteIsNotNull() &&
                voAreaOfNeedDetail.getAreaofNeedIsNotNull())
        {
            notes.append("<font color=\"#FF0000\"><b>");
            notes.append(voAreaOfNeedDetail.getAreaofNeed().toString());
            notes.append("</b></font><br> ");
            notes.append(voAreaOfNeedDetail.getSummaryNote());
            notes.append("<br>");

            summaryNoteExists = true;
        }
    }
    if(!summaryNoteExists)
    {
        engine.showMessage("At least one Summary note must be entered. Please update a detail.");
        return null;
    }
    return notes.toString();
}
项目:AvoinApotti    文件:Logic.java   
private void newParentInstance()
{
    form.ctnTherapy().lyrTherapy().tabHeader().customControlAuth().initializeComponent();
    AreaOfNeedsNotingVo voAreaOfNeeds = new AreaOfNeedsNotingVo();
    voAreaOfNeeds.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voAreaOfNeeds.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());
    //populateParentInstanceControls(voAreaOfNeeds);
    form.getLocalContext().setSelectedParentInstance(voAreaOfNeeds);
    form.ctnTherapy().setCollapsed(false);
    enableParentControls();
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildNodes(gridNotesRow parRow, AreaOfNeedsNotingDetailVoCollection voNotingDetailsColl)
{
    if (voNotingDetailsColl == null || voNotingDetailsColl.size()<=0) return;       

    for(int i=0; i<voNotingDetailsColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.gridNotesRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voNotingDetailsColl.get(i));                
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getNotes()
{
    AreaOfNeedsNotingDetailVoCollection voAreaOfNeedsDetailColl = form.getLocalContext().getSelectedParentInstance().getNotingDetails();

    if(voAreaOfNeedsDetailColl == null) return null;

    boolean summaryNoteExists = false;

    java.lang.StringBuffer notes = new java.lang.StringBuffer("");
    notes.append(ims.framework.controls.RichTextControl.IdentityTag);

    for(int t=0; t<voAreaOfNeedsDetailColl.size(); t++)
    {
        AreaOfNeedsNotingDetailVo voAreaOfNeedDetail = voAreaOfNeedsDetailColl.get(t);
        //WDEV-2290 
        if(voAreaOfNeedDetail.getSummaryNoteIsNotNull() &&
                voAreaOfNeedDetail.getAreaofNeedIsNotNull())
        {
            notes.append("<font color=\"#FF0000\"><b>");
            notes.append(voAreaOfNeedDetail.getAreaofNeed().toString());
            notes.append("</b></font><br> ");
            notes.append(voAreaOfNeedDetail.getSummaryNote());
            notes.append("<br>");

            summaryNoteExists = true;
        }
    }
    if(!summaryNoteExists)
    {
        engine.showMessage("At least one Summary note must be entered. Please update a detail.");
        return null;
    }
    return notes.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    form.ctnTherapy().lyrTherapy().tabHeader().customControlAuth().initializeComponent();
    AreaOfNeedsNotingVo voAreaOfNeeds = new AreaOfNeedsNotingVo();
    voAreaOfNeeds.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voAreaOfNeeds.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());
    //populateParentInstanceControls(voAreaOfNeeds);
    form.getLocalContext().setSelectedParentInstance(voAreaOfNeeds);
    form.ctnTherapy().setCollapsed(false);
    enableParentControls();
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildNodes(gridNotesRow parRow, AreaOfNeedsNotingDetailVoCollection voNotingDetailsColl)
{
    if (voNotingDetailsColl == null || voNotingDetailsColl.size()<=0) return;       

    for(int i=0; i<voNotingDetailsColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.gridNotesRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voNotingDetailsColl.get(i));                
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getNotes()
{
    AreaOfNeedsNotingDetailVoCollection voAreaOfNeedsDetailColl = form.getLocalContext().getSelectedParentInstance().getNotingDetails();

    if(voAreaOfNeedsDetailColl == null) return null;

    boolean summaryNoteExists = false;

    java.lang.StringBuffer notes = new java.lang.StringBuffer("");
    notes.append(ims.framework.controls.RichTextControl.IdentityTag);

    for(int t=0; t<voAreaOfNeedsDetailColl.size(); t++)
    {
        AreaOfNeedsNotingDetailVo voAreaOfNeedDetail = voAreaOfNeedsDetailColl.get(t);
        //WDEV-2290 
        if(voAreaOfNeedDetail.getSummaryNoteIsNotNull() &&
                voAreaOfNeedDetail.getAreaofNeedIsNotNull())
        {
            notes.append("<font color=\"#FF0000\"><b>");
            notes.append(voAreaOfNeedDetail.getAreaofNeed().toString());
            notes.append("</b></font><br> ");
            notes.append(voAreaOfNeedDetail.getSummaryNote());
            notes.append("<br>");

            summaryNoteExists = true;
        }
    }
    if(!summaryNoteExists)
    {
        engine.showMessage("At least one Summary note must be entered. Please update a detail.");
        return null;
    }
    return notes.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    form.ctnTherapy().lyrTherapy().tabHeader().customControlAuth().initializeComponent();
    AreaOfNeedsNotingVo voAreaOfNeeds = new AreaOfNeedsNotingVo();
    voAreaOfNeeds.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voAreaOfNeeds.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());
    //populateParentInstanceControls(voAreaOfNeeds);
    form.getLocalContext().setSelectedParentInstance(voAreaOfNeeds);
    form.ctnTherapy().setCollapsed(false);
    enableParentControls();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildNodes(gridNotesRow parRow, AreaOfNeedsNotingDetailVoCollection voNotingDetailsColl)
{
    if (voNotingDetailsColl == null || voNotingDetailsColl.size()<=0) return;       

    for(int i=0; i<voNotingDetailsColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.gridNotesRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voNotingDetailsColl.get(i));                
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private String getNotes()
{
    AreaOfNeedsNotingDetailVoCollection voAreaOfNeedsDetailColl = form.getLocalContext().getSelectedParentInstance().getNotingDetails();

    if(voAreaOfNeedsDetailColl == null) return null;

    boolean summaryNoteExists = false;

    java.lang.StringBuffer notes = new java.lang.StringBuffer("");
    notes.append(ims.framework.controls.RichTextControl.IdentityTag);

    for(int t=0; t<voAreaOfNeedsDetailColl.size(); t++)
    {
        AreaOfNeedsNotingDetailVo voAreaOfNeedDetail = voAreaOfNeedsDetailColl.get(t);
        //WDEV-2290 
        if(voAreaOfNeedDetail.getSummaryNoteIsNotNull() &&
                voAreaOfNeedDetail.getAreaofNeedIsNotNull())
        {
            notes.append("<font color=\"#FF0000\"><b>");
            notes.append(voAreaOfNeedDetail.getAreaofNeed().toString());
            notes.append("</b></font><br> ");
            notes.append(voAreaOfNeedDetail.getSummaryNote());
            notes.append("<br>");

            summaryNoteExists = true;
        }
    }
    if(!summaryNoteExists)
    {
        engine.showMessage("At least one Summary note must be entered. Please update a detail.");
        return null;
    }
    return notes.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private void newParentInstance()
{
    form.ctnTherapy().lyrTherapy().tabHeader().customControlAuth().initializeComponent();
    AreaOfNeedsNotingVo voAreaOfNeeds = new AreaOfNeedsNotingVo();
    voAreaOfNeeds.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voAreaOfNeeds.setNotingDetails(new AreaOfNeedsNotingDetailVoCollection());
    //populateParentInstanceControls(voAreaOfNeeds);
    form.getLocalContext().setSelectedParentInstance(voAreaOfNeeds);
    form.ctnTherapy().setCollapsed(false);
    enableParentControls();
}