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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.getLocalContext().getselectedRow().setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());

    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            CopyCarePlanVo rowValue = form.grdCarePlans().getRows().get(i).getValue();
            rowValue.setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
            form.grdCarePlans().getRows().get(i).setValue(rowValue);
        }
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());
        form.grdCarePlans().getSelectedRow().setcolSelect(false);
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        form.chkCopyAll().setValue(null);
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            form.grdCarePlans().getRows().get(i).setcolSelect(false);
        }
    }

    form.getLocalContext().setactionSelected(null);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.getLocalContext().getselectedRow().setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());

    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            CopyCarePlanVo rowValue = form.grdCarePlans().getRows().get(i).getValue();
            rowValue.setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
            form.grdCarePlans().getRows().get(i).setValue(rowValue);
        }
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());
        form.grdCarePlans().getSelectedRow().setcolSelect(false);
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        form.chkCopyAll().setValue(null);
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            form.grdCarePlans().getRows().get(i).setcolSelect(false);
        }
    }

    form.getLocalContext().setactionSelected(null);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.getLocalContext().getselectedRow().setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());

    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            CopyCarePlanVo rowValue = form.grdCarePlans().getRows().get(i).getValue();
            rowValue.setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
            form.grdCarePlans().getRows().get(i).setValue(rowValue);
        }
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());
        form.grdCarePlans().getSelectedRow().setcolSelect(false);
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        form.chkCopyAll().setValue(null);
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            form.grdCarePlans().getRows().get(i).setcolSelect(false);
        }
    }

    form.getLocalContext().setactionSelected(null);

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.getLocalContext().getselectedRow().setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());

    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.OK) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            CopyCarePlanVo rowValue = form.grdCarePlans().getRows().get(i).getValue();
            rowValue.setNewNextEvaluationDate(form.getGlobalContext().Nursing.getNewNextEvaluationDateEntered().getNextEvaluationDate());
            form.grdCarePlans().getRows().get(i).setValue(rowValue);
        }
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKGRID.equals(form.getLocalContext().getactionSelected()))
    {
        form.grdCarePlans().setValue(form.getLocalContext().getselectedRow());
        form.grdCarePlans().getSelectedRow().setcolSelect(false);
    }
    else if (formName.equals(form.getForms().Nursing.EnterEvaluationDateForCarePlanDialog) && result.equals(DialogResult.CANCEL) && ims.nursing.vo.enums.CopyCarePlansActionSelected.CHECKALL.equals(form.getLocalContext().getactionSelected()))
    {
        form.chkCopyAll().setValue(null);
        for (int i = 0; i < form.grdCarePlans().getRows().size(); i++)
        {
            form.grdCarePlans().getRows().get(i).setcolSelect(false);
        }
    }

    form.getLocalContext().setactionSelected(null);

}
项目:AvoinApotti    文件:Logic.java   
private void populateCarePlansGrid(CopyCarePlanVoCollection collCarePlans)
{
    if (collCarePlans == null)
        return;

    for (int i = 0; i < collCarePlans.size(); i++)
    {
        CopyCarePlanVo carePlan = collCarePlans.get(i);

        grdCarePlansRow row = form.grdCarePlans().getRows().newRow();

        row.setcolCarePlanTitle(carePlan.getTitle());

        if (carePlan != null && carePlan.getCarePlanStatusIsNotNull())
        {
            for (int x = 0; x < carePlan.getCarePlanStatus().size(); x++)
            {
                carePlan.getCarePlanStatus().sort(SortOrder.ASCENDING);
                if (carePlan.getCarePlanStatus().get(x).getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
                {
                    if (carePlan.getCarePlanStatus().get(x).getDateTime().getDate() != null)
                        row.setcolInitiatedOn(carePlan.getCarePlanStatus().get(x).getDateTime().getDate());

                    if (carePlan.getCarePlanStatus().get(x).getHCP() != null)
                    {
                        if (carePlan.getCarePlanStatus().get(x).getHCP().getName() != null)
                            row.setcolInitiateBy(carePlan.getCarePlanStatus().get(x).getHCP().getName().toString());
                    }
                    break; // you could have a number of actives,
                           // i.e.active,then suspended,then active, you
                           // want
                           // the first active, so ASCENDING - get first
                           // active - need break.
                }
            }
        }
        if (carePlan.getCurrentCarePlanStatus() != null && carePlan.getCurrentCarePlanStatus().getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
        {
            if (carePlan.getNextEvaluationDate() != null)
            {
                row.setcolNextEvaluation(carePlan.getNextEvaluationDate());
            }

        }

        if (carePlan.getCurrentCarePlanStatus() != null)
        {
            row.setcolStatus(carePlan.getCurrentCarePlanStatus().getStatus().getText());
        }
        row.setTooltipForcolCarePlanTitle(carePlan.getTitle());

        row.setValue(carePlan);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlansGrid(CopyCarePlanVoCollection collCarePlans)
{
    if (collCarePlans == null)
        return;

    for (int i = 0; i < collCarePlans.size(); i++)
    {
        CopyCarePlanVo carePlan = collCarePlans.get(i);

        grdCarePlansRow row = form.grdCarePlans().getRows().newRow();

        row.setcolCarePlanTitle(carePlan.getTitle());

        if (carePlan != null && carePlan.getCarePlanStatusIsNotNull())
        {
            for (int x = 0; x < carePlan.getCarePlanStatus().size(); x++)
            {
                carePlan.getCarePlanStatus().sort(SortOrder.ASCENDING);
                if (carePlan.getCarePlanStatus().get(x).getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
                {
                    if (carePlan.getCarePlanStatus().get(x).getDateTime().getDate() != null)
                        row.setcolInitiatedOn(carePlan.getCarePlanStatus().get(x).getDateTime().getDate());

                    if (carePlan.getCarePlanStatus().get(x).getHCP() != null)
                    {
                        if (carePlan.getCarePlanStatus().get(x).getHCP().getName() != null)
                            row.setcolInitiateBy(carePlan.getCarePlanStatus().get(x).getHCP().getName().toString());
                    }
                    break; // you could have a number of actives,
                           // i.e.active,then suspended,then active, you
                           // want
                           // the first active, so ASCENDING - get first
                           // active - need break.
                }
            }
        }
        if (carePlan.getCurrentCarePlanStatus() != null && carePlan.getCurrentCarePlanStatus().getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
        {
            if (carePlan.getNextEvaluationDate() != null)
            {
                row.setcolNextEvaluation(carePlan.getNextEvaluationDate());
            }

        }

        if (carePlan.getCurrentCarePlanStatus() != null)
        {
            row.setcolStatus(carePlan.getCurrentCarePlanStatus().getStatus().getText());
        }
        row.setTooltipForcolCarePlanTitle(carePlan.getTitle());

        row.setValue(carePlan);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlansGrid(CopyCarePlanVoCollection collCarePlans)
{
    if (collCarePlans == null)
        return;

    for (int i = 0; i < collCarePlans.size(); i++)
    {
        CopyCarePlanVo carePlan = collCarePlans.get(i);

        grdCarePlansRow row = form.grdCarePlans().getRows().newRow();

        row.setcolCarePlanTitle(carePlan.getTitle());

        if (carePlan != null && carePlan.getCarePlanStatusIsNotNull())
        {
            for (int x = 0; x < carePlan.getCarePlanStatus().size(); x++)
            {
                carePlan.getCarePlanStatus().sort(SortOrder.ASCENDING);
                if (carePlan.getCarePlanStatus().get(x).getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
                {
                    if (carePlan.getCarePlanStatus().get(x).getDateTime().getDate() != null)
                        row.setcolInitiatedOn(carePlan.getCarePlanStatus().get(x).getDateTime().getDate());

                    if (carePlan.getCarePlanStatus().get(x).getHCP() != null)
                    {
                        if (carePlan.getCarePlanStatus().get(x).getHCP().getName() != null)
                            row.setcolInitiateBy(carePlan.getCarePlanStatus().get(x).getHCP().getName().toString());
                    }
                    break; // you could have a number of actives,
                           // i.e.active,then suspended,then active, you
                           // want
                           // the first active, so ASCENDING - get first
                           // active - need break.
                }
            }
        }
        if (carePlan.getCurrentCarePlanStatus() != null && carePlan.getCurrentCarePlanStatus().getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
        {
            if (carePlan.getNextEvaluationDate() != null)
            {
                row.setcolNextEvaluation(carePlan.getNextEvaluationDate());
            }

        }

        if (carePlan.getCurrentCarePlanStatus() != null)
        {
            row.setcolStatus(carePlan.getCurrentCarePlanStatus().getStatus().getText());
        }
        row.setTooltipForcolCarePlanTitle(carePlan.getTitle());

        row.setValue(carePlan);
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateCarePlansGrid(CopyCarePlanVoCollection collCarePlans)
{
    if (collCarePlans == null)
        return;

    for (int i = 0; i < collCarePlans.size(); i++)
    {
        CopyCarePlanVo carePlan = collCarePlans.get(i);

        grdCarePlansRow row = form.grdCarePlans().getRows().newRow();

        row.setcolCarePlanTitle(carePlan.getTitle());

        if (carePlan != null && carePlan.getCarePlanStatusIsNotNull())
        {
            for (int x = 0; x < carePlan.getCarePlanStatus().size(); x++)
            {
                carePlan.getCarePlanStatus().sort(SortOrder.ASCENDING);
                if (carePlan.getCarePlanStatus().get(x).getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
                {
                    if (carePlan.getCarePlanStatus().get(x).getDateTime().getDate() != null)
                        row.setcolInitiatedOn(carePlan.getCarePlanStatus().get(x).getDateTime().getDate());

                    if (carePlan.getCarePlanStatus().get(x).getHCP() != null)
                    {
                        if (carePlan.getCarePlanStatus().get(x).getHCP().getName() != null)
                            row.setcolInitiateBy(carePlan.getCarePlanStatus().get(x).getHCP().getName().toString());
                    }
                    break; // you could have a number of actives,
                           // i.e.active,then suspended,then active, you
                           // want
                           // the first active, so ASCENDING - get first
                           // active - need break.
                }
            }
        }
        if (carePlan.getCurrentCarePlanStatus() != null && carePlan.getCurrentCarePlanStatus().getStatus().equals(carePlan.getCurrentCarePlanStatus().getStatus()))
        {
            if (carePlan.getNextEvaluationDate() != null)
            {
                row.setcolNextEvaluation(carePlan.getNextEvaluationDate());
            }

        }

        if (carePlan.getCurrentCarePlanStatus() != null)
        {
            row.setcolStatus(carePlan.getCurrentCarePlanStatus().getStatus().getText());
        }
        row.setTooltipForcolCarePlanTitle(carePlan.getTitle());

        row.setValue(carePlan);
    }

}