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

项目:AvoinApotti    文件:Logic.java   
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
    if (list != null)
    {
        NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
        helper.sortDesc();

        ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

        for(int i=0; i< list.size(); i++)
        {
            PlanOfCareActionsVo voActionsItem = list.get(i);
            row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

            if (voActionsItem.getAuthoringInformationIsNotNull())
                row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
            if (voActionsItem.getActionIsNotNull())
                row.setColAction(voActionsItem.getAction().toString());
            if (voActionsItem.getReviewIsNotNull())
            {
                row.setColReview(voActionsItem.getReview());
            }

            row.setValue(voActionsItem);
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void addNewActionRowRecord(PlanOfCareActionsVo record) 
{
    if(record == null)
        return;

    GenForm.grdActionReviewRow row = form.grdActionReview().getRows().newRow();

    row.setColPOC(record.getPlanOfCare().getTitle());
    row.setColAction(record.getAction());
    if (record.getReview() != null)
        row.setColReview(record.getReview());
    else
        row.setColReview("");
    row.setValue(record);       
}
项目:AvoinApotti    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection voColl = form.getGlobalContext().getPlanOfCareActionsReview().getActions();

        for(int x = 0; x <form.grdActionReview().getRows().size(); x++)
        {
            PlanOfCareActionsVo rowValue = form.grdActionReview().getRows().get(x).getValue();
            String actionReview = form.grdActionReview().getRows().get(x).getColReview();

            if (rowValue != null && actionReview != null && actionReview.length() > 0)
            {
                AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
                voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());

                rowValue.setAuthoringInformation(voAuthoringInformation);
                rowValue.setReview(actionReview);
//              POCNoting ReviewingHCP ReviewingDateTime
                rowValue.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
                rowValue.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());


                voColl.add(rowValue);
            }               
        }   

        return voColl;
    }
项目:openMAXIMS    文件:Logic.java   
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
    if (list != null)
    {
        NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
        helper.sortDesc();

        ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

        for(int i=0; i< list.size(); i++)
        {
            PlanOfCareActionsVo voActionsItem = list.get(i);
            row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

            if (voActionsItem.getAuthoringInformationIsNotNull())
                row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
            if (voActionsItem.getActionIsNotNull())
                row.setColAction(voActionsItem.getAction().toString());
            if (voActionsItem.getReviewIsNotNull())
            {
                row.setColReview(voActionsItem.getReview());
            }

            row.setValue(voActionsItem);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void addNewActionRowRecord(PlanOfCareActionsVo record) 
{
    if(record == null)
        return;

    GenForm.grdActionReviewRow row = form.grdActionReview().getRows().newRow();

    row.setColPOC(record.getPlanOfCare().getTitle());
    row.setColAction(record.getAction());
    if (record.getReview() != null)
        row.setColReview(record.getReview());
    else
        row.setColReview("");
    row.setValue(record);       
}
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection voColl = form.getGlobalContext().getPlanOfCareActionsReview().getActions();

        for(int x = 0; x <form.grdActionReview().getRows().size(); x++)
        {
            PlanOfCareActionsVo rowValue = form.grdActionReview().getRows().get(x).getValue();
            String actionReview = form.grdActionReview().getRows().get(x).getColReview();

            if (rowValue != null && actionReview != null && actionReview.length() > 0)
            {
                AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
                voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());

                rowValue.setAuthoringInformation(voAuthoringInformation);
                rowValue.setReview(actionReview);
//              POCNoting ReviewingHCP ReviewingDateTime
                rowValue.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
                rowValue.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());


                voColl.add(rowValue);
            }               
        }   

        return voColl;
    }
项目:openMAXIMS    文件:Logic.java   
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
    if (list != null)
    {
        NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
        helper.sortDesc();

        ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

        for(int i=0; i< list.size(); i++)
        {
            PlanOfCareActionsVo voActionsItem = list.get(i);
            row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

            if (voActionsItem.getAuthoringInformationIsNotNull())
                row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
            if (voActionsItem.getActionIsNotNull())
                row.setColAction(voActionsItem.getAction().toString());
            if (voActionsItem.getReviewIsNotNull())
            {
                row.setColReview(voActionsItem.getReview());
            }

            row.setValue(voActionsItem);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void addNewActionRowRecord(PlanOfCareActionsVo record) 
{
    if(record == null)
        return;

    GenForm.grdActionReviewRow row = form.grdActionReview().getRows().newRow();

    row.setColPOC(record.getPlanOfCare().getTitle());
    row.setColAction(record.getAction());
    if (record.getReview() != null)
        row.setColReview(record.getReview());
    else
        row.setColReview("");
    row.setValue(record);       
}
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection voColl = form.getGlobalContext().getPlanOfCareActionsReview().getActions();

        for(int x = 0; x <form.grdActionReview().getRows().size(); x++)
        {
            PlanOfCareActionsVo rowValue = form.grdActionReview().getRows().get(x).getValue();
            String actionReview = form.grdActionReview().getRows().get(x).getColReview();

            if (rowValue != null && actionReview != null && actionReview.length() > 0)
            {
                AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
                voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());

                rowValue.setAuthoringInformation(voAuthoringInformation);
                rowValue.setReview(actionReview);
//              POCNoting ReviewingHCP ReviewingDateTime
                rowValue.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
                rowValue.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());


                voColl.add(rowValue);
            }               
        }   

        return voColl;
    }
项目:openmaxims-linux    文件:Logic.java   
private void populateGrdPocActions(PlanOfCareActionsVoCollection list) 
{
    if (list != null)
    {
        NursingSummaryHelper helper = new NursingSummaryHelper(null, null, null, null,null, list);
        helper.sortDesc();

        ims.nursing.forms.planofcare.GenForm.lyrPOCLayer.tabPocDetailsContainer.grdPocActionsRow row = null;

        for(int i=0; i< list.size(); i++)
        {
            PlanOfCareActionsVo voActionsItem = list.get(i);
            row = form.lyrPOC().tabPocDetails().grdPocActions().getRows().newRow();

            if (voActionsItem.getAuthoringInformationIsNotNull())
                row.setColAuthoringInfo(voActionsItem.getAuthoringInformation().toString());
            if (voActionsItem.getActionIsNotNull())
                row.setColAction(voActionsItem.getAction().toString());
            if (voActionsItem.getReviewIsNotNull())
            {
                row.setColReview(voActionsItem.getReview());
            }

            row.setValue(voActionsItem);
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void addNewActionRowRecord(PlanOfCareActionsVo record) 
{
    if(record == null)
        return;

    GenForm.grdActionReviewRow row = form.grdActionReview().getRows().newRow();

    row.setColPOC(record.getPlanOfCare().getTitle());
    row.setColAction(record.getAction());
    if (record.getReview() != null)
        row.setColReview(record.getReview());
    else
        row.setColReview("");
    row.setValue(record);       
}
项目:openmaxims-linux    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection voColl = form.getGlobalContext().getPlanOfCareActionsReview().getActions();

        for(int x = 0; x <form.grdActionReview().getRows().size(); x++)
        {
            PlanOfCareActionsVo rowValue = form.grdActionReview().getRows().get(x).getValue();
            String actionReview = form.grdActionReview().getRows().get(x).getColReview();

            if (rowValue != null && actionReview != null && actionReview.length() > 0)
            {
                AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
                voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());

                rowValue.setAuthoringInformation(voAuthoringInformation);
                rowValue.setReview(actionReview);
//              POCNoting ReviewingHCP ReviewingDateTime
                rowValue.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
                rowValue.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());


                voColl.add(rowValue);
            }               
        }   

        return voColl;
    }
项目:AvoinApotti    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection coColl = new PlanOfCareActionsVoCollection();

        for(int x = 0; x < form.lyr1().tabNewActions().grdActions().getRows().size(); x++)
        {
            PlanOfCareListVo rowValue = form.lyr1().tabNewActions().grdActions().getRows().get(x).getValue();


            String action = form.lyr1().tabNewActions().grdActions().getRows().get(x).getColAction();
//          if(validateActionText(action))
//              return null;

            PlanOfCareActionsVo newActionVo = new PlanOfCareActionsVo();

            if (rowValue != null && action != null && action.length() > 0)
            {
                //Authoring Component
                if (form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTimeIsNotNull() &&
                    form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcpIsNotNull())
                {
                    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                    voAuthoringInformation.setAuthoringDateTime(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTime());
                    voAuthoringInformation.setAuthoringHcp(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcp());
                    newActionVo.setAuthoringInformation(voAuthoringInformation);
                }

                //Action
                newActionVo.setAction(action);

                //PlanOfCare
                newActionVo.setPlanOfCare(rowValue);

                //add row to collection
                coColl.add(newActionVo);

            }               

        }   
/*      String [] error = coColl.validate();



        if(error != null && error.length != 0)
        {
                engine.showErrors(error);
                return null;
        }*/

        return coColl;
    }
项目:AvoinApotti    文件:Logic.java   
private void populateChronologicalGrig(PlanOfCareNotingVoCollection voPocNoting)
{
    if (voPocNoting != null && voPocNoting.size() > 0)
    {
        for(int x = 0; x < voPocNoting.size(); x++)
        {

            GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow row = null;

            row = form.lyr1().tabChronological().grdChronological().getRows().newRow();
            row.setBold(true);

            if (voPocNoting.get(x).getReviewingDateTimeIsNotNull() &&
                    voPocNoting.get(x).getReviewingHCPIsNotNull())
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                        " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                        (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : "")+
                        " Reviewing by: "+voPocNoting.get(x).getReviewingHCP()+" on "+voPocNoting.get(x).getReviewingDateTime());
            }
            else
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                    " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                    (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : ""));
            }

            for(int i=0; i<voPocNoting.get(x).getActions().size(); i++)
            {   
                PlanOfCareActionsVo voPocItem = voPocNoting.get(x).getActions().get(i);

                GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow rowAction = 
                    row.getRows().newRow();

                rowAction.setColDateTime(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());
                rowAction.setTooltip(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());//WDEV-15085

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Red))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.RedSqaure);
                    rowAction.setExpandedImage(form.getImages().Core.RedSqaure);
                }

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Yellow))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.YellowSquare);
                    rowAction.setExpandedImage(form.getImages().Core.YellowSquare); 
                }
                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Green))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.GreenSquare);
                    rowAction.setExpandedImage(form.getImages().Core.GreenSquare);
                }

                rowAction.setColComments(voPocItem.getReview());

                rowAction.setValue(voPocNoting.get(x));
            }

            row.setValue(voPocNoting.get(x));
            row.setExpanded(true);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection coColl = new PlanOfCareActionsVoCollection();

        for(int x = 0; x < form.lyr1().tabNewActions().grdActions().getRows().size(); x++)
        {
            PlanOfCareListVo rowValue = form.lyr1().tabNewActions().grdActions().getRows().get(x).getValue();


            String action = form.lyr1().tabNewActions().grdActions().getRows().get(x).getColAction();
//          if(validateActionText(action))
//              return null;

            PlanOfCareActionsVo newActionVo = new PlanOfCareActionsVo();

            if (rowValue != null && action != null && action.length() > 0)
            {
                //Authoring Component
                if (form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTimeIsNotNull() &&
                    form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcpIsNotNull())
                {
                    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                    voAuthoringInformation.setAuthoringDateTime(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTime());
                    voAuthoringInformation.setAuthoringHcp(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcp());
                    newActionVo.setAuthoringInformation(voAuthoringInformation);
                }

                //Action
                newActionVo.setAction(action);

                //PlanOfCare
                newActionVo.setPlanOfCare(rowValue);

                //add row to collection
                coColl.add(newActionVo);

            }               

        }   
/*      String [] error = coColl.validate();



        if(error != null && error.length != 0)
        {
                engine.showErrors(error);
                return null;
        }*/

        return coColl;
    }
项目:openMAXIMS    文件:Logic.java   
private void populateChronologicalGrig(PlanOfCareNotingVoCollection voPocNoting)
{
    if (voPocNoting != null && voPocNoting.size() > 0)
    {
        for(int x = 0; x < voPocNoting.size(); x++)
        {

            GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow row = null;

            row = form.lyr1().tabChronological().grdChronological().getRows().newRow();
            row.setBold(true);

            if (voPocNoting.get(x).getReviewingDateTimeIsNotNull() &&
                    voPocNoting.get(x).getReviewingHCPIsNotNull())
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                        " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                        (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : "")+
                        " Reviewing by: "+voPocNoting.get(x).getReviewingHCP()+" on "+voPocNoting.get(x).getReviewingDateTime());
            }
            else
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                    " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                    (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : ""));
            }

            for(int i=0; i<voPocNoting.get(x).getActions().size(); i++)
            {   
                PlanOfCareActionsVo voPocItem = voPocNoting.get(x).getActions().get(i);

                GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow rowAction = 
                    row.getRows().newRow();

                rowAction.setColDateTime(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());
                rowAction.setTooltip(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());//WDEV-15085

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Red))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.RedSqaure);
                    rowAction.setExpandedImage(form.getImages().Core.RedSqaure);
                }

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Yellow))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.YellowSquare);
                    rowAction.setExpandedImage(form.getImages().Core.YellowSquare); 
                }
                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Green))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.GreenSquare);
                    rowAction.setExpandedImage(form.getImages().Core.GreenSquare);
                }

                rowAction.setColComments(voPocItem.getReview());

                rowAction.setValue(voPocNoting.get(x));
            }

            row.setValue(voPocNoting.get(x));
            row.setExpanded(true);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection coColl = new PlanOfCareActionsVoCollection();

        for(int x = 0; x < form.lyr1().tabNewActions().grdActions().getRows().size(); x++)
        {
            PlanOfCareListVo rowValue = form.lyr1().tabNewActions().grdActions().getRows().get(x).getValue();


            String action = form.lyr1().tabNewActions().grdActions().getRows().get(x).getColAction();
//          if(validateActionText(action))
//              return null;

            PlanOfCareActionsVo newActionVo = new PlanOfCareActionsVo();

            if (rowValue != null && action != null && action.length() > 0)
            {
                //Authoring Component
                if (form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTimeIsNotNull() &&
                    form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcpIsNotNull())
                {
                    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                    voAuthoringInformation.setAuthoringDateTime(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTime());
                    voAuthoringInformation.setAuthoringHcp(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcp());
                    newActionVo.setAuthoringInformation(voAuthoringInformation);
                }

                //Action
                newActionVo.setAction(action);

                //PlanOfCare
                newActionVo.setPlanOfCare(rowValue);

                //add row to collection
                coColl.add(newActionVo);

            }               

        }   
/*      String [] error = coColl.validate();



        if(error != null && error.length != 0)
        {
                engine.showErrors(error);
                return null;
        }*/

        return coColl;
    }
项目:openMAXIMS    文件:Logic.java   
private void populateChronologicalGrig(PlanOfCareNotingVoCollection voPocNoting)
{
    if (voPocNoting != null && voPocNoting.size() > 0)
    {
        for(int x = 0; x < voPocNoting.size(); x++)
        {

            GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow row = null;

            row = form.lyr1().tabChronological().grdChronological().getRows().newRow();
            row.setBold(true);

            if (voPocNoting.get(x).getReviewingDateTimeIsNotNull() &&
                    voPocNoting.get(x).getReviewingHCPIsNotNull())
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                        " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                        (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : "")+
                        " Reviewing by: "+voPocNoting.get(x).getReviewingHCP()+" on "+voPocNoting.get(x).getReviewingDateTime());
            }
            else
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                    " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                    (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : ""));
            }

            for(int i=0; i<voPocNoting.get(x).getActions().size(); i++)
            {   
                PlanOfCareActionsVo voPocItem = voPocNoting.get(x).getActions().get(i);

                GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow rowAction = 
                    row.getRows().newRow();

                rowAction.setColDateTime(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());
                rowAction.setTooltip(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());//WDEV-15085

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Red))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.RedSqaure);
                    rowAction.setExpandedImage(form.getImages().Core.RedSqaure);
                }

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Yellow))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.YellowSquare);
                    rowAction.setExpandedImage(form.getImages().Core.YellowSquare); 
                }
                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Green))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.GreenSquare);
                    rowAction.setExpandedImage(form.getImages().Core.GreenSquare);
                }

                rowAction.setColComments(voPocItem.getReview());

                rowAction.setValue(voPocNoting.get(x));
            }

            row.setValue(voPocNoting.get(x));
            row.setExpanded(true);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection coColl = new PlanOfCareActionsVoCollection();

        for(int x = 0; x < form.lyr1().tabNewActions().grdActions().getRows().size(); x++)
        {
            PlanOfCareListVo rowValue = form.lyr1().tabNewActions().grdActions().getRows().get(x).getValue();


            String action = form.lyr1().tabNewActions().grdActions().getRows().get(x).getColAction();
//          if(validateActionText(action))
//              return null;

            PlanOfCareActionsVo newActionVo = new PlanOfCareActionsVo();

            if (rowValue != null && action != null && action.length() > 0)
            {
                //Authoring Component
                if (form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTimeIsNotNull() &&
                    form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcpIsNotNull())
                {
                    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                    voAuthoringInformation.setAuthoringDateTime(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringDateTime());
                    voAuthoringInformation.setAuthoringHcp(form.lyr1().tabNewActions().customAuthoring().getValue().getAuthoringHcp());
                    newActionVo.setAuthoringInformation(voAuthoringInformation);
                }

                //Action
                newActionVo.setAction(action);

                //PlanOfCare
                newActionVo.setPlanOfCare(rowValue);

                //add row to collection
                coColl.add(newActionVo);

            }               

        }   
/*      String [] error = coColl.validate();



        if(error != null && error.length != 0)
        {
                engine.showErrors(error);
                return null;
        }*/

        return coColl;
    }
项目:openmaxims-linux    文件:Logic.java   
private void populateChronologicalGrig(PlanOfCareNotingVoCollection voPocNoting)
{
    if (voPocNoting != null && voPocNoting.size() > 0)
    {
        for(int x = 0; x < voPocNoting.size(); x++)
        {

            GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow row = null;

            row = form.lyr1().tabChronological().grdChronological().getRows().newRow();
            row.setBold(true);

            if (voPocNoting.get(x).getReviewingDateTimeIsNotNull() &&
                    voPocNoting.get(x).getReviewingHCPIsNotNull())
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                        " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                        (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : "")+
                        " Reviewing by: "+voPocNoting.get(x).getReviewingHCP()+" on "+voPocNoting.get(x).getReviewingDateTime());
            }
            else
            {
                row.setColDateTime(voPocNoting.get(x).getAuthoringInformation().getAuthoringDateTime()+
                    " "+"hrs"+" "+voPocNoting.get(x).getAuthoringInformation().getAuthoringHcp()+ 
                    (voPocNoting.get(x).getActionStatusIsNotNull() ? " - "+voPocNoting.get(x).getActionStatus().getText() : ""));
            }

            for(int i=0; i<voPocNoting.get(x).getActions().size(); i++)
            {   
                PlanOfCareActionsVo voPocItem = voPocNoting.get(x).getActions().get(i);

                GenForm.lyr1Layer.tabChronologicalContainer.grdChronologicalRow rowAction = 
                    row.getRows().newRow();

                rowAction.setColDateTime(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());
                rowAction.setTooltip(voPocItem.getPlanOfCare().getTitle().toUpperCase()+" - "+ voPocItem.getAction());//WDEV-15085

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Red))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.RedSqaure);
                    rowAction.setExpandedImage(form.getImages().Core.RedSqaure);
                }

                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Yellow))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.YellowSquare);
                    rowAction.setExpandedImage(form.getImages().Core.YellowSquare); 
                }
                if (voPocItem.getPlanOfCare().getLevelOfIntervention().equals(Color.Green))
                {
                    rowAction.setCollapsedImage(form.getImages().Core.GreenSquare);
                    rowAction.setExpandedImage(form.getImages().Core.GreenSquare);
                }

                rowAction.setColComments(voPocItem.getReview());

                rowAction.setValue(voPocNoting.get(x));
            }

            row.setValue(voPocNoting.get(x));
            row.setExpanded(true);
        }
    }
}