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

项目:AvoinApotti    文件:Logic.java   
private void populateGrid(CarePlanTemplateCollection coll)
{
    form.layerControl().tab1().gridCarePlan().getRows().clear();
    if (coll != null)
    {
        GenForm.layerControlLayer.tab1Container.gridCarePlanRow row;
        for (int i=0; i<coll.size(); i++)
        {
            CarePlanTemplate template = coll.get(i);
            row = form.layerControl().tab1().gridCarePlan().getRows().newRow();
            row.setColCPTitle(template.getTitle());
            row.setValue(template);
        }
    }
    form.getLocalContext().setTemplates(coll);
}
项目:AvoinApotti    文件:Logic.java   
private void displayDetails(CarePlanTemplate voCpt)
{
    // Assessment Component
    form.comboBoxComponent().setValue(voCpt != null ? voCpt.getAssessmentComponent():null);

    // Creation Date
    form.dateCreation().setValue(voCpt != null ? voCpt.getCreationDate():null);

    // Active
    form.chkActive().setValue(voCpt != null && voCpt.getActiveIsNotNull() ? voCpt.getActive().booleanValue():null);

    // Title
    form.textBoxTitle().setValue(voCpt != null ? voCpt.getTitle():null);

    // Objective
    CarePlanTemplateObjectiveCollection objectiveValue;
    if ( voCpt != null && (objectiveValue = voCpt.getObjectives()) != null)
    {
        if (objectiveValue.size() > 0)
            form.textBoxObj().setValue(objectiveValue.get(0).getObjective());
    }

    // Interventions
    displayInterventions();
}
项目:AvoinApotti    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);

            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                CarePlanTemplate voTemplate = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(voTemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl)
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlansRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlans().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlans().getRows().get(j);
            for (i=0; i<voCarePlanTemplateColl.size(); i++)
            {
                CarePlanTemplate votemplate = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(votemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl) 
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
         GenForm.gridCarePlanRow cpRow;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTemplateColl.size(); i++)
             {

                CarePlanTemplate template = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
             }
         }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl)
{
    //Populate the correct selected careplan template if one saved with the component
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);
            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                template = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
         //form.container1().gridCarePlan().setReadOnly(true);
         GenForm.container1Container.gridCarePlanRow cpRow;
         CarePlanTemplate template;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.container1().gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTempColl.size(); i++)
             {
                 template = voCarePlanTempColl.get(i);
                 if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                 {
                     cpRow.setReadOnly(true);
                     cpRow.setcolSelected(true);
                     break;
                 }
             }
         }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(CarePlanTemplateCollection coll)
{
    form.layerControl().tab1().gridCarePlan().getRows().clear();
    if (coll != null)
    {
        GenForm.layerControlLayer.tab1Container.gridCarePlanRow row;
        for (int i=0; i<coll.size(); i++)
        {
            CarePlanTemplate template = coll.get(i);
            row = form.layerControl().tab1().gridCarePlan().getRows().newRow();
            row.setColCPTitle(template.getTitle());
            row.setValue(template);
        }
    }
    form.getLocalContext().setTemplates(coll);
}
项目:openMAXIMS    文件:Logic.java   
private void displayDetails(CarePlanTemplate voCpt)
{
    // Assessment Component
    form.comboBoxComponent().setValue(voCpt != null ? voCpt.getAssessmentComponent():null);

    // Creation Date
    form.dateCreation().setValue(voCpt != null ? voCpt.getCreationDate():null);

    // Active
    form.chkActive().setValue(voCpt != null && voCpt.getActiveIsNotNull() ? voCpt.getActive().booleanValue():null);

    // Title
    form.textBoxTitle().setValue(voCpt != null ? voCpt.getTitle():null);

    // Objective
    CarePlanTemplateObjectiveCollection objectiveValue;
    if ( voCpt != null && (objectiveValue = voCpt.getObjectives()) != null)
    {
        if (objectiveValue.size() > 0)
            form.textBoxObj().setValue(objectiveValue.get(0).getObjective());
    }

    // Interventions
    displayInterventions();
}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);

            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                CarePlanTemplate voTemplate = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(voTemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl)
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlansRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlans().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlans().getRows().get(j);
            for (i=0; i<voCarePlanTemplateColl.size(); i++)
            {
                CarePlanTemplate votemplate = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(votemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl) 
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
         GenForm.gridCarePlanRow cpRow;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTemplateColl.size(); i++)
             {

                CarePlanTemplate template = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
             }
         }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl)
{
    //Populate the correct selected careplan template if one saved with the component
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);
            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                template = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
         //form.container1().gridCarePlan().setReadOnly(true);
         GenForm.container1Container.gridCarePlanRow cpRow;
         CarePlanTemplate template;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.container1().gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTempColl.size(); i++)
             {
                 template = voCarePlanTempColl.get(i);
                 if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                 {
                     cpRow.setReadOnly(true);
                     cpRow.setcolSelected(true);
                     break;
                 }
             }
         }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(CarePlanTemplateCollection coll)
{
    form.layerControl().tab1().gridCarePlan().getRows().clear();
    if (coll != null)
    {
        GenForm.layerControlLayer.tab1Container.gridCarePlanRow row;
        for (int i=0; i<coll.size(); i++)
        {
            CarePlanTemplate template = coll.get(i);
            row = form.layerControl().tab1().gridCarePlan().getRows().newRow();
            row.setColCPTitle(template.getTitle());
            row.setValue(template);
        }
    }
    form.getLocalContext().setTemplates(coll);
}
项目:openMAXIMS    文件:Logic.java   
private void displayDetails(CarePlanTemplate voCpt)
{
    // Assessment Component
    form.comboBoxComponent().setValue(voCpt != null ? voCpt.getAssessmentComponent():null);

    // Creation Date
    form.dateCreation().setValue(voCpt != null ? voCpt.getCreationDate():null);

    // Active
    form.chkActive().setValue(voCpt != null && voCpt.getActiveIsNotNull() ? voCpt.getActive().booleanValue():null);

    // Title
    form.textBoxTitle().setValue(voCpt != null ? voCpt.getTitle():null);

    // Objective
    CarePlanTemplateObjectiveCollection objectiveValue;
    if ( voCpt != null && (objectiveValue = voCpt.getObjectives()) != null)
    {
        if (objectiveValue.size() > 0)
            form.textBoxObj().setValue(objectiveValue.get(0).getObjective());
    }

    // Interventions
    displayInterventions();
}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);

            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                CarePlanTemplate voTemplate = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(voTemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl)
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlansRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlans().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlans().getRows().get(j);
            for (i=0; i<voCarePlanTemplateColl.size(); i++)
            {
                CarePlanTemplate votemplate = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(votemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl) 
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
         GenForm.gridCarePlanRow cpRow;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTemplateColl.size(); i++)
             {

                CarePlanTemplate template = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
             }
         }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl)
{
    //Populate the correct selected careplan template if one saved with the component
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);
            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                template = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
         //form.container1().gridCarePlan().setReadOnly(true);
         GenForm.container1Container.gridCarePlanRow cpRow;
         CarePlanTemplate template;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.container1().gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTempColl.size(); i++)
             {
                 template = voCarePlanTempColl.get(i);
                 if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                 {
                     cpRow.setReadOnly(true);
                     cpRow.setcolSelected(true);
                     break;
                 }
             }
         }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid(CarePlanTemplateCollection coll)
{
    form.layerControl().tab1().gridCarePlan().getRows().clear();
    if (coll != null)
    {
        GenForm.layerControlLayer.tab1Container.gridCarePlanRow row;
        for (int i=0; i<coll.size(); i++)
        {
            CarePlanTemplate template = coll.get(i);
            row = form.layerControl().tab1().gridCarePlan().getRows().newRow();
            row.setColCPTitle(template.getTitle());
            row.setValue(template);
        }
    }
    form.getLocalContext().setTemplates(coll);
}
项目:openmaxims-linux    文件:Logic.java   
private void displayDetails(CarePlanTemplate voCpt)
{
    // Assessment Component
    form.comboBoxComponent().setValue(voCpt != null ? voCpt.getAssessmentComponent():null);

    // Creation Date
    form.dateCreation().setValue(voCpt != null ? voCpt.getCreationDate():null);

    // Active
    form.chkActive().setValue(voCpt != null && voCpt.getActiveIsNotNull() ? voCpt.getActive().booleanValue():null);

    // Title
    form.textBoxTitle().setValue(voCpt != null ? voCpt.getTitle():null);

    // Objective
    CarePlanTemplateObjectiveCollection objectiveValue;
    if ( voCpt != null && (objectiveValue = voCpt.getObjectives()) != null)
    {
        if (objectiveValue.size() > 0)
            form.textBoxObj().setValue(objectiveValue.get(0).getObjective());
    }

    // Interventions
    displayInterventions();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);

            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                CarePlanTemplate voTemplate = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(voTemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl)
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlansRow cpRow;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlans().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlans().getRows().get(j);
            for (i=0; i<voCarePlanTemplateColl.size(); i++)
            {
                CarePlanTemplate votemplate = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(votemplate.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTemplateColl) 
{
    if (voCarePlanTemplateColl != null && voCarePlanTemplateColl.size() > 0)
    {
         GenForm.gridCarePlanRow cpRow;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTemplateColl.size(); i++)
             {

                CarePlanTemplate template = voCarePlanTemplateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
             }
         }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl)
{
    //Populate the correct selected careplan template if one saved with the component
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
        GenForm.container1Container.gridCarePlanRow cpRow;
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.container1().gridCarePlan().getRows().get(j);
            for (i=0; i<voCarePlanTempColl.size(); i++)
            {
                template = voCarePlanTempColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateCarePlanGrd(CarePlanTemplateCollection voCarePlanTempColl) 
{
    if (voCarePlanTempColl != null && voCarePlanTempColl.size() > 0)
    {
         //form.container1().gridCarePlan().setReadOnly(true);
         GenForm.container1Container.gridCarePlanRow cpRow;
         CarePlanTemplate template;
         int i=0;
         // Find the correct row to set to selected
         for (int j=0; j<form.container1().gridCarePlan().getRows().size(); j++)
         {
             cpRow = form.container1().gridCarePlan().getRows().get(j);
             for (i=0; i<voCarePlanTempColl.size(); i++)
             {
                 template = voCarePlanTempColl.get(i);
                 if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                 {
                     cpRow.setReadOnly(true);
                     cpRow.setcolSelected(true);
                     break;
                 }
             }
         }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(NurAssessmentPersonalDetailsVo voPersonal) 
{
    super.populateScreenFromData(voPersonal);

    //Care Plans
    if (voPersonal.getCarePlanTemplate() != null && voPersonal.getCarePlanTemplate().size() > 0)
    {
        GenForm.grdCarePlanRow cpRow;
        CarePlanTemplateCollection templateColl = voPersonal.getCarePlanTemplate(); 
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.grdCarePlan().getRows().size(); j++)
        {
            cpRow = form.grdCarePlan().getRows().get(j);
            for (i=0; i<templateColl.size(); i++)
            {
                template = templateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelect(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

    if (voPersonal.getIsComplete().booleanValue() == true)  // Complete
    {
        form.setMode(FormMode.VIEW);
    }
    else
    {
        if ((form.cmbOccupation().getValue() != null))
            if(form.getMode().equals(FormMode.EDIT))
                form.txtOtherOccupation().setEnabled(form.cmbOccupation().getValue().equals(Occupation.OTHER));
    }
    form.chkCopy().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    form.getContextMenus().getAddUpDownMOVEDOWNItem().setVisible(false);
    form.getContextMenus().getAddUpDownMOVEUPItem().setVisible(false);

    form.chkActiveOnly().setValue(true);
    form.dateCreation().setValue(new Date());

    CarePlanTemplateTitle cpt;
    if ((cpt = form.getGlobalContext().COE.getCarePlanTemplateTitle()) != null)
    {
        // Edit/View
        form.setMode(FormMode.VIEW);

        CarePlanTemplate voCpt = new CarePlanTemplate();
        voCpt = domain.getCarePlanTemplate(cpt);

        // update local context
        form.getLocalContext().setcarePlanTemplate(voCpt);

        displayDetails(form.getLocalContext().getcarePlanTemplate());   //wdev-13375


    }
    else
    {
        // New
        form.setMode(FormMode.EDIT);
        form.chkActive().setValue(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(NurAssessmentPersonalDetailsVo voPersonal) 
{
    super.populateScreenFromData(voPersonal);

    //Care Plans
    if (voPersonal.getCarePlanTemplate() != null && voPersonal.getCarePlanTemplate().size() > 0)
    {
        GenForm.grdCarePlanRow cpRow;
        CarePlanTemplateCollection templateColl = voPersonal.getCarePlanTemplate(); 
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.grdCarePlan().getRows().size(); j++)
        {
            cpRow = form.grdCarePlan().getRows().get(j);
            for (i=0; i<templateColl.size(); i++)
            {
                template = templateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelect(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

    if (voPersonal.getIsComplete().booleanValue() == true)  // Complete
    {
        form.setMode(FormMode.VIEW);
    }
    else
    {
        if ((form.cmbOccupation().getValue() != null))
            if(form.getMode().equals(FormMode.EDIT))
                form.txtOtherOccupation().setEnabled(form.cmbOccupation().getValue().equals(Occupation.OTHER));
    }
    form.chkCopy().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    form.getContextMenus().getAddUpDownMOVEDOWNItem().setVisible(false);
    form.getContextMenus().getAddUpDownMOVEUPItem().setVisible(false);

    form.chkActiveOnly().setValue(true);
    form.dateCreation().setValue(new Date());

    CarePlanTemplateTitle cpt;
    if ((cpt = form.getGlobalContext().COE.getCarePlanTemplateTitle()) != null)
    {
        // Edit/View
        form.setMode(FormMode.VIEW);

        CarePlanTemplate voCpt = new CarePlanTemplate();
        voCpt = domain.getCarePlanTemplate(cpt);

        // update local context
        form.getLocalContext().setcarePlanTemplate(voCpt);

        displayDetails(form.getLocalContext().getcarePlanTemplate());   //wdev-13375


    }
    else
    {
        // New
        form.setMode(FormMode.EDIT);
        form.chkActive().setValue(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(NurAssessmentPersonalDetailsVo voPersonal) 
{
    super.populateScreenFromData(voPersonal);

    //Care Plans
    if (voPersonal.getCarePlanTemplate() != null && voPersonal.getCarePlanTemplate().size() > 0)
    {
        GenForm.grdCarePlanRow cpRow;
        CarePlanTemplateCollection templateColl = voPersonal.getCarePlanTemplate(); 
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.grdCarePlan().getRows().size(); j++)
        {
            cpRow = form.grdCarePlan().getRows().get(j);
            for (i=0; i<templateColl.size(); i++)
            {
                template = templateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelect(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

    if (voPersonal.getIsComplete().booleanValue() == true)  // Complete
    {
        form.setMode(FormMode.VIEW);
    }
    else
    {
        if ((form.cmbOccupation().getValue() != null))
            if(form.getMode().equals(FormMode.EDIT))
                form.txtOtherOccupation().setEnabled(form.cmbOccupation().getValue().equals(Occupation.OTHER));
    }
    form.chkCopy().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    form.getContextMenus().getAddUpDownMOVEDOWNItem().setVisible(false);
    form.getContextMenus().getAddUpDownMOVEUPItem().setVisible(false);

    form.chkActiveOnly().setValue(true);
    form.dateCreation().setValue(new Date());

    CarePlanTemplateTitle cpt;
    if ((cpt = form.getGlobalContext().COE.getCarePlanTemplateTitle()) != null)
    {
        // Edit/View
        form.setMode(FormMode.VIEW);

        CarePlanTemplate voCpt = new CarePlanTemplate();
        voCpt = domain.getCarePlanTemplate(cpt);

        // update local context
        form.getLocalContext().setcarePlanTemplate(voCpt);

        displayDetails(form.getLocalContext().getcarePlanTemplate());   //wdev-13375


    }
    else
    {
        // New
        form.setMode(FormMode.EDIT);
        form.chkActive().setValue(true);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateScreenFromData(NurAssessmentPersonalDetailsVo voPersonal) 
{
    super.populateScreenFromData(voPersonal);

    //Care Plans
    if (voPersonal.getCarePlanTemplate() != null && voPersonal.getCarePlanTemplate().size() > 0)
    {
        GenForm.grdCarePlanRow cpRow;
        CarePlanTemplateCollection templateColl = voPersonal.getCarePlanTemplate(); 
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.grdCarePlan().getRows().size(); j++)
        {
            cpRow = form.grdCarePlan().getRows().get(j);
            for (i=0; i<templateColl.size(); i++)
            {
                template = templateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelect(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }

    if (voPersonal.getIsComplete().booleanValue() == true)  // Complete
    {
        form.setMode(FormMode.VIEW);
    }
    else
    {
        if ((form.cmbOccupation().getValue() != null))
            if(form.getMode().equals(FormMode.EDIT))
                form.txtOtherOccupation().setEnabled(form.cmbOccupation().getValue().equals(Occupation.OTHER));
    }
    form.chkCopy().setEnabled(false);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    form.getContextMenus().getAddUpDownMOVEDOWNItem().setVisible(false);
    form.getContextMenus().getAddUpDownMOVEUPItem().setVisible(false);

    form.chkActiveOnly().setValue(true);
    form.dateCreation().setValue(new Date());

    CarePlanTemplateTitle cpt;
    if ((cpt = form.getGlobalContext().COE.getCarePlanTemplateTitle()) != null)
    {
        // Edit/View
        form.setMode(FormMode.VIEW);

        CarePlanTemplate voCpt = new CarePlanTemplate();
        voCpt = domain.getCarePlanTemplate(cpt);

        // update local context
        form.getLocalContext().setcarePlanTemplate(voCpt);

        displayDetails(form.getLocalContext().getcarePlanTemplate());   //wdev-13375


    }
    else
    {
        // New
        form.setMode(FormMode.EDIT);
        form.chkActive().setValue(true);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBNextClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.checkBoxYes().getValue() == true)  // Create from Template
    {
        // Ensure that only one row has been selected
        int count=0, lastRowSelected=0;
        GenForm.layerControlLayer.tab1Container.gridCarePlanRow row;
        for (int i=0; i<form.layerControl().tab1().gridCarePlan().getRows().size(); i++)
        {
            row = form.layerControl().tab1().gridCarePlan().getRows().get(i);
            if (row.getColSel())
            {
                count++;
                lastRowSelected=i;  // If only one selected, we have the row to retrieve again
            }
        }
        if (count == 0)
        {
            engine.showMessage("Please select a Care Plan Template.");
            return;
        }
        else if (count > 1)
        {
            engine.showMessage("Only one Template can be selected for Care Plan creation.");
            return;
        }

        // Put the items into the global context and call out to the step2 form
        CarePlanTemplate template = form.layerControl().tab1().gridCarePlan().getRows().get(lastRowSelected).getValue();
        form.getGlobalContext().COE.setCarePlanTitle(template.getTitle());
        form.getGlobalContext().COE.setCarePlanObjective(template.getObjectives().get(0).getObjective());
        form.getGlobalContext().COE.setCarePlanTemplateTitle(template);

        // Store the search criteria in the local context in case the previous
        // button is selected in step2
        if (form.layerControl().tab1().Group1().getValue().equals(GenForm.layerControlLayer.tab1Container.Group1Enumeration.radioButtonBeginsWith))
            form.getGlobalContext().COE.CarePlan.setSearchToggle("B");
        else if (form.layerControl().tab1().Group1().getValue().equals(GenForm.layerControlLayer.tab1Container.Group1Enumeration.radioButtonContains))
            form.getGlobalContext().COE.CarePlan.setSearchToggle("C");
        else
            form.getGlobalContext().COE.CarePlan.setSearchToggle("E");
        form.getGlobalContext().COE.CarePlan.setSearchCriteria(form.layerControl().tab1().textSearchCriteria().getValue());
        form.getGlobalContext().COE.CarePlan.setCarePlanTemplates(form.getLocalContext().getTemplates());

    }
    else
    {
        // Ensure the text boxes are not blank.
        if (form.layerControl().tab2().textNewTitle().getValue() == null ||
            form.layerControl().tab2().textNewObjective().getValue() == null)
        {
            engine.showMessage("Title and Objective are mandatory.");
            return;
        }

        // Put the items into the global context and call out to the step2 form
        form.getGlobalContext().COE.setCarePlanObjective(form.layerControl().tab2().textNewObjective().getValue());
        form.getGlobalContext().COE.setCarePlanTitle(form.layerControl().tab2().textNewTitle().getValue());
        form.getGlobalContext().COE.setCarePlanTemplateTitle(null);
        form.getGlobalContext().COE.CarePlan.setSearchCriteria(null);
        form.getGlobalContext().COE.CarePlan.setCarePlanTemplates(null);
        form.getGlobalContext().COE.CarePlan.setSearchToggle(null);
    }

    engine.open(form.getForms().Nursing.CarePlanStep2);
}
项目:AvoinApotti    文件:Logic.java   
private void newCarePlanAction()
{
    // Pass in the Collection of unused careplan template actions
    CarePlanTemplateInterventionCollection coll = null;
    CarePlanTemplate voCPT = new CarePlanTemplate();
    if (form.getLocalContext().getCarePlan().getTemplate() != null)
    {
        voCPT.setID_CarePlanTemplate(form.getLocalContext().getCarePlan().getTemplate().getID_CarePlanTemplate());
        coll = domain.getCarePlanTemplateActions(voCPT);

        // Loop through the collection, removing those already specified on
        // the grid
        // Can only check on description??
        if (coll != null )
        {
            CarePlanTemplateInterventionCollection newColl = new CarePlanTemplateInterventionCollection();
            int p = 0;

            for (int i = 0; i < coll.size(); i++)
            {
                boolean rowFound = false;
                CarePlanTemplateIntervention interv = coll.get(i);
                for (int j = 0; form.getLocalContext().getCarePlan().getInterventionsIsNotNull() && j < form.getLocalContext().getCarePlan().getInterventions().size(); j++)
                {
                    if (form.getLocalContext().getCarePlan().getInterventions().get(j).getDescription().equals(interv.getIntervention()))
                    {
                        rowFound = true;
                        break;
                    }
                }
                if (!rowFound)
                {
                    newColl.add(interv);
                    p++;
                }
            }
            form.getGlobalContext().COE.setCarePlanTemplateInterventions(newColl);
        }
    }
    engine.open(form.getForms().Nursing.CarePlanAddAction);
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceControl(AssessmentSpirituality voAssessSP)
{
    if (voAssessSP == null)
        return;

    form.checkBoxComplete().setValue(voAssessSP.getIsComplete().booleanValue());
    if (voAssessSP.getIsComplete().booleanValue() == true) // Complete
    {
        form.bSave().setEnabled(false);
        form.setMode(FormMode.VIEW);
        form.checkBoxComplete().setEnabled(false);
        form.gridCarePlan().setReadOnly(true);
        form.checkBoxCopy().setEnabled(false);
    }
    form.checkBoxCopy().setValue(voAssessSP.getCopy().booleanValue());
    if (voAssessSP.getCopy().booleanValue()== true)
        form.checkBoxCopy().setEnabled(false);

    form.textBoxAddress().setValue(voAssessSP.getAddress());
    form.textBoxName().setValue(voAssessSP.getName());
    form.textBoxReligion().setValue(voAssessSP.getReligion());
    form.textBoxRequirements().setValue(voAssessSP.getRequirements());
    form.txtBoxTelephone().setValue(voAssessSP.getTelephoneNumber());

    form.answerBoxBeliefOrFaith().setValue(voAssessSP.getBeliefOrFaith());
    form.answerBoxContinuePracticing().setValue(voAssessSP.getContinuePracticing());
    form.answerBoxPracticingMember().setValue(voAssessSP.getPracticingMember());

    // Populate the correct selected careplan template if one saved with the component
    if (voAssessSP.getCarePlanTemplate() != null && voAssessSP.getCarePlanTemplate().size() > 0)
    {
        GenForm.gridCarePlanRow cpRow;
        CarePlanTemplateCollection templateColl = voAssessSP.getCarePlanTemplate();
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.gridCarePlan().getRows().get(j);
            for (i=0; i<templateColl.size(); i++)
            {
                template = templateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateFormInfo(AssessmentMobility assessMob)
{
    if (assessMob == null)
        return;

    form.checkBoxCopy().setValue(assessMob.getCopy().booleanValue());
    if (assessMob.getCopy().booleanValue() == true)
        form.checkBoxCopy().setEnabled(false);

    form.checkBoxComplete().setValue(assessMob.getIsComplete().booleanValue());
    if (assessMob.getIsComplete().booleanValue() == true) // Complete
    {
        form.bSave().setEnabled(false);
        form.setMode(FormMode.VIEW);
        form.checkBoxCopy().setEnabled(false);
        form.checkBoxComplete().setEnabled(false);
        form.gridCarePlan().setReadOnly(true);
    }

    form.comboBoxBed().setValue(assessMob.getBedType());
    form.comboBoxChair().setValue(assessMob.getChairType());
    form.textBoxNotes().setValue(assessMob.getNotes());
    form.answerBoxAssistanceWithMobility().setValue(assessMob.getAssistanceWithMobility());

    //fall assessment score
    if(assessMob.getFallAssessmentScore() != null)
        form.decFallScore().setValue(new Float(assessMob.getFallAssessmentScore().floatValue()));

    // Populate the correct selected careplan template if one saved with the component
    if (assessMob.getCarePlanTemplate() != null && assessMob.getCarePlanTemplate().size() > 0)
    {
        GenForm.gridCarePlanRow cpRow;
        CarePlanTemplateCollection templateColl = assessMob.getCarePlanTemplate();
        CarePlanTemplate template;
        int i=0;
        // Find the correct row to set to selected
        for (int j=0; j<form.gridCarePlan().getRows().size(); j++)
        {
            cpRow = form.gridCarePlan().getRows().get(j);
            for (i=0; i<templateColl.size(); i++)
            {
                template = templateColl.get(i);
                if (cpRow.getValue().getID_CarePlanTemplate().equals(template.getID_CarePlanTemplate()))
                {
                    cpRow.setcolSelected(true);
                    cpRow.setReadOnly(true);
                    break;
                }
            }
        }
    }


}