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

项目:AvoinApotti    文件:Logic.java   
protected void restorePreviousComments(grdItemRow row)
{
    POACCheckListVo l_vo = form.getLocalContext().getpoacCheckListVo();
    if (l_vo != null && l_vo.getChecklistItemsIsNotNull())
    {
        for(int i=0;i<l_vo.getChecklistItems().size();i++)
        {
            if (l_vo.getChecklistItems().get(i).getChecklistItem().equals(row.getcolItem()))
                //restore the comment
                row.setcolComments(l_vo.getChecklistItems().get(i).getComment());
        }
    }
    else
        return;

}
项目:openMAXIMS    文件:Logic.java   
protected void restorePreviousComments(grdItemRow row)
{
    POACCheckListVo l_vo = form.getLocalContext().getpoacCheckListVo();
    if (l_vo != null && l_vo.getChecklistItemsIsNotNull())
    {
        for(int i=0;i<l_vo.getChecklistItems().size();i++)
        {
            if (l_vo.getChecklistItems().get(i).getChecklistItem().equals(row.getcolItem()))
                //restore the comment
                row.setcolComments(l_vo.getChecklistItems().get(i).getComment());
        }
    }
    else
        return;

}
项目:openMAXIMS    文件:Logic.java   
protected void restorePreviousComments(grdItemRow row)
{
    POACCheckListVo l_vo = form.getLocalContext().getpoacCheckListVo();
    if (l_vo != null && l_vo.getChecklistItemsIsNotNull())
    {
        for(int i=0;i<l_vo.getChecklistItems().size();i++)
        {
            if (l_vo.getChecklistItems().get(i).getChecklistItem().equals(row.getcolItem()))
                //restore the comment
                row.setcolComments(l_vo.getChecklistItems().get(i).getComment());
        }
    }
    else
        return;

}
项目:openmaxims-linux    文件:Logic.java   
protected void restorePreviousComments(grdItemRow row)
{
    POACCheckListVo l_vo = form.getLocalContext().getpoacCheckListVo();
    if (l_vo != null && l_vo.getChecklistItemsIsNotNull())
    {
        for(int i=0;i<l_vo.getChecklistItems().size();i++)
        {
            if (l_vo.getChecklistItems().get(i).getChecklistItem().equals(row.getcolItem()))
                //restore the comment
                row.setcolComments(l_vo.getChecklistItems().get(i).getComment());
        }
    }
    else
        return;

}
项目:AvoinApotti    文件:Logic.java   
protected void open()
{       
    if (form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
    {
        POACCheckListVo voPoacCheckList = domain.getPOACCheckList(form.getGlobalContext().Core.getCurrentClinicalContact());
        form.getLocalContext().setpoacCheckListVo(voPoacCheckList);
        populateScreenFromData(voPoacCheckList);
    }

    boolean visableButtons = form.getLocalContext().getpoacCheckListVo()== null  ||
                             form.getLocalContext().getpoacCheckListVo().getID_POACChecklist() == null;

    setNewUpdateButtonEnabled(visableButtons,!visableButtons);      

}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(POACCheckListVo voPoacCheckList)
{
    if (voPoacCheckList != null)
    {
        if (voPoacCheckList.getID_POACChecklistIsNotNull())
        {
            GenForm.grdItemRow row;
            CheckListItemsVo voCheckListItem;
            for (int i=0; i < voPoacCheckList.getChecklistItems().size();i++)
            {                       
                voCheckListItem = voPoacCheckList.getChecklistItems().get(i);
                if (voCheckListItem.getChecklistItemIsNotNull())
                {
                    row = form.grdItem().getRowByValue(voCheckListItem.getChecklistItem());
                    if (row != null)
                    {
                        if (voCheckListItem.getAbsentPresentIsNotNull())
                            row.setcolSelect(voCheckListItem.getAbsentPresent());

                        if (voCheckListItem.getChecklistItemIsNotNull())
                                row.setcolItem(voCheckListItem.getChecklistItem());

                        if (voCheckListItem.getCommentIsNotNull())
                            row.setcolComments(voCheckListItem.getComment());                                   
                    }
                }
            }
        }
    }       
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    populateDataFromScreen();       
    POACCheckListVo poacChkList = form.getLocalContext().getpoacCheckListVo();

    String[] arrErrors = poacChkList.validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return;
    }


    if (validateCheckList() == false)
    {
        engine.showMessage("You must select an item before comments can be saved.");
        return;
    }


    try
    {
        domain.savePOACCheckList(poacChkList);
        form.btnUpdate().setText("Update");
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        setCommentsReadOnlyStatus();
        return;
    }

    form.setMode(FormMode.VIEW);
    open();
}
项目:openMAXIMS    文件:Logic.java   
protected void open()
{       
    if (form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
    {
        POACCheckListVo voPoacCheckList = domain.getPOACCheckList(form.getGlobalContext().Core.getCurrentClinicalContact());
        form.getLocalContext().setpoacCheckListVo(voPoacCheckList);
        populateScreenFromData(voPoacCheckList);
    }

    boolean visableButtons = form.getLocalContext().getpoacCheckListVo()== null  ||
                             form.getLocalContext().getpoacCheckListVo().getID_POACChecklist() == null;

    setNewUpdateButtonEnabled(visableButtons,!visableButtons);      

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(POACCheckListVo voPoacCheckList)
{
    if (voPoacCheckList != null)
    {
        if (voPoacCheckList.getID_POACChecklistIsNotNull())
        {
            GenForm.grdItemRow row;
            CheckListItemsVo voCheckListItem;
            for (int i=0; i < voPoacCheckList.getChecklistItems().size();i++)
            {                       
                voCheckListItem = voPoacCheckList.getChecklistItems().get(i);
                if (voCheckListItem.getChecklistItemIsNotNull())
                {
                    row = form.grdItem().getRowByValue(voCheckListItem.getChecklistItem());
                    if (row != null)
                    {
                        if (voCheckListItem.getAbsentPresentIsNotNull())
                            row.setcolSelect(voCheckListItem.getAbsentPresent());

                        if (voCheckListItem.getChecklistItemIsNotNull())
                                row.setcolItem(voCheckListItem.getChecklistItem());

                        if (voCheckListItem.getCommentIsNotNull())
                            row.setcolComments(voCheckListItem.getComment());                                   
                    }
                }
            }
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    populateDataFromScreen();       
    POACCheckListVo poacChkList = form.getLocalContext().getpoacCheckListVo();

    String[] arrErrors = poacChkList.validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return;
    }


    if (validateCheckList() == false)
    {
        engine.showMessage("You must select an item before comments can be saved.");
        return;
    }


    try
    {
        domain.savePOACCheckList(poacChkList);
        form.btnUpdate().setText("Update");
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        setCommentsReadOnlyStatus();
        return;
    }

    form.setMode(FormMode.VIEW);
    open();
}
项目:openMAXIMS    文件:Logic.java   
protected void open()
{       
    if (form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
    {
        POACCheckListVo voPoacCheckList = domain.getPOACCheckList(form.getGlobalContext().Core.getCurrentClinicalContact());
        form.getLocalContext().setpoacCheckListVo(voPoacCheckList);
        populateScreenFromData(voPoacCheckList);
    }

    boolean visableButtons = form.getLocalContext().getpoacCheckListVo()== null  ||
                             form.getLocalContext().getpoacCheckListVo().getID_POACChecklist() == null;

    setNewUpdateButtonEnabled(visableButtons,!visableButtons);      

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(POACCheckListVo voPoacCheckList)
{
    if (voPoacCheckList != null)
    {
        if (voPoacCheckList.getID_POACChecklistIsNotNull())
        {
            GenForm.grdItemRow row;
            CheckListItemsVo voCheckListItem;
            for (int i=0; i < voPoacCheckList.getChecklistItems().size();i++)
            {                       
                voCheckListItem = voPoacCheckList.getChecklistItems().get(i);
                if (voCheckListItem.getChecklistItemIsNotNull())
                {
                    row = form.grdItem().getRowByValue(voCheckListItem.getChecklistItem());
                    if (row != null)
                    {
                        if (voCheckListItem.getAbsentPresentIsNotNull())
                            row.setcolSelect(voCheckListItem.getAbsentPresent());

                        if (voCheckListItem.getChecklistItemIsNotNull())
                                row.setcolItem(voCheckListItem.getChecklistItem());

                        if (voCheckListItem.getCommentIsNotNull())
                            row.setcolComments(voCheckListItem.getComment());                                   
                    }
                }
            }
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    populateDataFromScreen();       
    POACCheckListVo poacChkList = form.getLocalContext().getpoacCheckListVo();

    String[] arrErrors = poacChkList.validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return;
    }


    if (validateCheckList() == false)
    {
        engine.showMessage("You must select an item before comments can be saved.");
        return;
    }


    try
    {
        domain.savePOACCheckList(poacChkList);
        form.btnUpdate().setText("Update");
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        setCommentsReadOnlyStatus();
        return;
    }

    form.setMode(FormMode.VIEW);
    open();
}
项目:openmaxims-linux    文件:Logic.java   
protected void open()
{       
    if (form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
    {
        POACCheckListVo voPoacCheckList = domain.getPOACCheckList(form.getGlobalContext().Core.getCurrentClinicalContact());
        form.getLocalContext().setpoacCheckListVo(voPoacCheckList);
        populateScreenFromData(voPoacCheckList);
    }

    boolean visableButtons = form.getLocalContext().getpoacCheckListVo()== null  ||
                             form.getLocalContext().getpoacCheckListVo().getID_POACChecklist() == null;

    setNewUpdateButtonEnabled(visableButtons,!visableButtons);      

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(POACCheckListVo voPoacCheckList)
{
    if (voPoacCheckList != null)
    {
        if (voPoacCheckList.getID_POACChecklistIsNotNull())
        {
            GenForm.grdItemRow row;
            CheckListItemsVo voCheckListItem;
            for (int i=0; i < voPoacCheckList.getChecklistItems().size();i++)
            {                       
                voCheckListItem = voPoacCheckList.getChecklistItems().get(i);
                if (voCheckListItem.getChecklistItemIsNotNull())
                {
                    row = form.grdItem().getRowByValue(voCheckListItem.getChecklistItem());
                    if (row != null)
                    {
                        if (voCheckListItem.getAbsentPresentIsNotNull())
                            row.setcolSelect(voCheckListItem.getAbsentPresent());

                        if (voCheckListItem.getChecklistItemIsNotNull())
                                row.setcolItem(voCheckListItem.getChecklistItem());

                        if (voCheckListItem.getCommentIsNotNull())
                            row.setcolComments(voCheckListItem.getComment());                                   
                    }
                }
            }
        }
    }       
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    populateDataFromScreen();       
    POACCheckListVo poacChkList = form.getLocalContext().getpoacCheckListVo();

    String[] arrErrors = poacChkList.validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return;
    }


    if (validateCheckList() == false)
    {
        engine.showMessage("You must select an item before comments can be saved.");
        return;
    }


    try
    {
        domain.savePOACCheckList(poacChkList);
        form.btnUpdate().setText("Update");
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        setCommentsReadOnlyStatus();
        return;
    }

    form.setMode(FormMode.VIEW);
    open();
}