Java 类ims.nursing.vo.HandlingMovementDetailVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
/**
 * Given a row in the hierarchy row get the collection of treatments
 * associated with that ultrasound and and create a child treenode for each.
 * Use a Red text colour to denote any as yes unsaved treatments.
 * 
 * @param voCollTreatments
 * @param parRow
 */
private void populateChildRows(DynamicGridRow parRow, HandlingMovementDetailVoCollection voCollTreatments)
{
    if (voCollTreatments == null || voCollTreatments.size() <= 0)
        return;

    voCollTreatments.sort();
    for (int i = 0; i < voCollTreatments.size(); i++)
    {
        if (parRow != null)
        {
            DynamicGridRow childRow = parRow.getRows().newRow();
            populateChildRow(childRow, voCollTreatments.get(i));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateChildCollectionFromGrid(PatientHandlingMovementVo voPatHandMovement)
{
    if (form.dyngrdDetails().getValue() == null)
        return;

    if (voPatHandMovement.getDetails() == null)
        voPatHandMovement.setDetails(new HandlingMovementDetailVoCollection());

    DynamicGridRow parentRow = form.dyngrdDetails().getValue() instanceof PatientHandlingMovementVo ? form.dyngrdDetails().getSelectedRow() : form.dyngrdDetails().getSelectedRow().getParent();

    if (parentRow.getRows().size() > 0)
        voPatHandMovement.getDetails().clear();

    for (int i = 0; i < parentRow.getRows().size(); i++)
    {
        voPatHandMovement.getDetails().add((HandlingMovementDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Given a row in the hierarchy row get the collection of treatments
 * associated with that ultrasound and and create a child treenode for each.
 * Use a Red text colour to denote any as yes unsaved treatments.
 * 
 * @param voCollTreatments
 * @param parRow
 */
private void populateChildRows(DynamicGridRow parRow, HandlingMovementDetailVoCollection voCollTreatments)
{
    if (voCollTreatments == null || voCollTreatments.size() <= 0)
        return;

    voCollTreatments.sort();
    for (int i = 0; i < voCollTreatments.size(); i++)
    {
        if (parRow != null)
        {
            DynamicGridRow childRow = parRow.getRows().newRow();
            populateChildRow(childRow, voCollTreatments.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(PatientHandlingMovementVo voPatHandMovement)
{
    if (form.dyngrdDetails().getValue() == null)
        return;

    if (voPatHandMovement.getDetails() == null)
        voPatHandMovement.setDetails(new HandlingMovementDetailVoCollection());

    DynamicGridRow parentRow = form.dyngrdDetails().getValue() instanceof PatientHandlingMovementVo ? form.dyngrdDetails().getSelectedRow() : form.dyngrdDetails().getSelectedRow().getParent();

    if (parentRow.getRows().size() > 0)
        voPatHandMovement.getDetails().clear();

    for (int i = 0; i < parentRow.getRows().size(); i++)
    {
        voPatHandMovement.getDetails().add((HandlingMovementDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Given a row in the hierarchy row get the collection of treatments
 * associated with that ultrasound and and create a child treenode for each.
 * Use a Red text colour to denote any as yes unsaved treatments.
 * 
 * @param voCollTreatments
 * @param parRow
 */
private void populateChildRows(DynamicGridRow parRow, HandlingMovementDetailVoCollection voCollTreatments)
{
    if (voCollTreatments == null || voCollTreatments.size() <= 0)
        return;

    voCollTreatments.sort();
    for (int i = 0; i < voCollTreatments.size(); i++)
    {
        if (parRow != null)
        {
            DynamicGridRow childRow = parRow.getRows().newRow();
            populateChildRow(childRow, voCollTreatments.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(PatientHandlingMovementVo voPatHandMovement)
{
    if (form.dyngrdDetails().getValue() == null)
        return;

    if (voPatHandMovement.getDetails() == null)
        voPatHandMovement.setDetails(new HandlingMovementDetailVoCollection());

    DynamicGridRow parentRow = form.dyngrdDetails().getValue() instanceof PatientHandlingMovementVo ? form.dyngrdDetails().getSelectedRow() : form.dyngrdDetails().getSelectedRow().getParent();

    if (parentRow.getRows().size() > 0)
        voPatHandMovement.getDetails().clear();

    for (int i = 0; i < parentRow.getRows().size(); i++)
    {
        voPatHandMovement.getDetails().add((HandlingMovementDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Given a row in the hierarchy row get the collection of treatments
 * associated with that ultrasound and and create a child treenode for each.
 * Use a Red text colour to denote any as yes unsaved treatments.
 * 
 * @param voCollTreatments
 * @param parRow
 */
private void populateChildRows(DynamicGridRow parRow, HandlingMovementDetailVoCollection voCollTreatments)
{
    if (voCollTreatments == null || voCollTreatments.size() <= 0)
        return;

    voCollTreatments.sort();
    for (int i = 0; i < voCollTreatments.size(); i++)
    {
        if (parRow != null)
        {
            DynamicGridRow childRow = parRow.getRows().newRow();
            populateChildRow(childRow, voCollTreatments.get(i));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildCollectionFromGrid(PatientHandlingMovementVo voPatHandMovement)
{
    if (form.dyngrdDetails().getValue() == null)
        return;

    if (voPatHandMovement.getDetails() == null)
        voPatHandMovement.setDetails(new HandlingMovementDetailVoCollection());

    DynamicGridRow parentRow = form.dyngrdDetails().getValue() instanceof PatientHandlingMovementVo ? form.dyngrdDetails().getSelectedRow() : form.dyngrdDetails().getSelectedRow().getParent();

    if (parentRow.getRows().size() > 0)
        voPatHandMovement.getDetails().clear();

    for (int i = 0; i < parentRow.getRows().size(); i++)
    {
        voPatHandMovement.getDetails().add((HandlingMovementDetailVo) parentRow.getRows().get(i).getValue());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void newParentInstance()
{
    form.dyngrdDetails().setValue(null);
    PatientHandlingMovementVo voNewParent = new PatientHandlingMovementVo();
    form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().initializeComponent();
    voNewParent.setAuthoringInformation(form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().getValue());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setDetails(new HandlingMovementDetailVoCollection());
    populateParentInstanceControls(voNewParent);
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    form.dyngrdDetails().setValue(null);
    PatientHandlingMovementVo voNewParent = new PatientHandlingMovementVo();
    form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().initializeComponent();
    voNewParent.setAuthoringInformation(form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().getValue());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setDetails(new HandlingMovementDetailVoCollection());
    populateParentInstanceControls(voNewParent);
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    form.dyngrdDetails().setValue(null);
    PatientHandlingMovementVo voNewParent = new PatientHandlingMovementVo();
    form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().initializeComponent();
    voNewParent.setAuthoringInformation(form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().getValue());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setDetails(new HandlingMovementDetailVoCollection());
    populateParentInstanceControls(voNewParent);
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}
项目:openmaxims-linux    文件:Logic.java   
private void newParentInstance()
{
    form.dyngrdDetails().setValue(null);
    PatientHandlingMovementVo voNewParent = new PatientHandlingMovementVo();
    form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().initializeComponent();
    voNewParent.setAuthoringInformation(form.ctnHandling().lyrDetails().tabHeader().customControlAuthoringInfo().getValue());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setDetails(new HandlingMovementDetailVoCollection());
    populateParentInstanceControls(voNewParent);
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}