Java 类ims.therapies.vo.GaitReEducationVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void isRecordCurrent()
{
    ClinicalContactShortVo voCurrent = null;
    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voCurrent = form.getGlobalContext().Core.getCurrentClinicalContact();

    for(int i = 0 ; i < form.gridGait().getRows().size() ; i++)
    {
        GaitReEducationVo voGait = form.gridGait().getRows().get(i).getValue();
        if(voCurrent != null && voGait.getClinicalContact() != null)
        {
            if(voGait.getClinicalContact().getID_ClinicalContact().equals(voCurrent.getID_ClinicalContact()))
            {
                form.getLocalContext().setUpdateCurrentRecord(new Boolean(true));
                //set colour of current record + set it expanded
                GenForm.gridGaitRow currentRow = form.gridGait().getRows().get(i);
                currentRow.setBackColor(Color.Beige);
                currentRow.setExpanded(true);
                form.gridGait().setValue(voGait);
            }
        }
        populateControls(voGait);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onGridGaitSelectionChanged() throws PresentationLogicException
{
    populateControls(form.gridGait().getSelectedRow().getValue());
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    GaitReEducationVo voGait = form.gridGait().getSelectedRow().getValue();
    if(voClinicalContact != null && voGait != null && voGait.getClinicalContactIsNotNull() && voGait.getClinicalContact().equals(voClinicalContact))
    {
        updateContextMenu();
        form.btnUpdate().setVisible(true);
    }
    else
    {
        form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
        form.getContextMenus().getGenericGridRemoveItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveDownItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveUpItem().setVisible(false);
        form.getContextMenus().getGenericGridViewItem().setVisible(false);

        form.btnUpdate().setVisible(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void isRecordCurrent()
{
    ClinicalContactShortVo voCurrent = null;
    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voCurrent = form.getGlobalContext().Core.getCurrentClinicalContact();

    for(int i = 0 ; i < form.gridGait().getRows().size() ; i++)
    {
        GaitReEducationVo voGait = form.gridGait().getRows().get(i).getValue();
        if(voCurrent != null && voGait.getClinicalContact() != null)
        {
            if(voGait.getClinicalContact().getID_ClinicalContact().equals(voCurrent.getID_ClinicalContact()))
            {
                form.getLocalContext().setUpdateCurrentRecord(new Boolean(true));
                //set colour of current record + set it expanded
                GenForm.gridGaitRow currentRow = form.gridGait().getRows().get(i);
                currentRow.setBackColor(Color.Beige);
                currentRow.setExpanded(true);
                form.gridGait().setValue(voGait);
            }
        }
        populateControls(voGait);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGridGaitSelectionChanged() throws PresentationLogicException
{
    populateControls(form.gridGait().getSelectedRow().getValue());
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    GaitReEducationVo voGait = form.gridGait().getSelectedRow().getValue();
    if(voClinicalContact != null && voGait != null && voGait.getClinicalContactIsNotNull() && voGait.getClinicalContact().equals(voClinicalContact))
    {
        updateContextMenu();
        form.btnUpdate().setVisible(true);
    }
    else
    {
        form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
        form.getContextMenus().getGenericGridRemoveItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveDownItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveUpItem().setVisible(false);
        form.getContextMenus().getGenericGridViewItem().setVisible(false);

        form.btnUpdate().setVisible(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void isRecordCurrent()
{
    ClinicalContactShortVo voCurrent = null;
    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voCurrent = form.getGlobalContext().Core.getCurrentClinicalContact();

    for(int i = 0 ; i < form.gridGait().getRows().size() ; i++)
    {
        GaitReEducationVo voGait = form.gridGait().getRows().get(i).getValue();
        if(voCurrent != null && voGait.getClinicalContact() != null)
        {
            if(voGait.getClinicalContact().getID_ClinicalContact().equals(voCurrent.getID_ClinicalContact()))
            {
                form.getLocalContext().setUpdateCurrentRecord(new Boolean(true));
                //set colour of current record + set it expanded
                GenForm.gridGaitRow currentRow = form.gridGait().getRows().get(i);
                currentRow.setBackColor(Color.Beige);
                currentRow.setExpanded(true);
                form.gridGait().setValue(voGait);
            }
        }
        populateControls(voGait);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGridGaitSelectionChanged() throws PresentationLogicException
{
    populateControls(form.gridGait().getSelectedRow().getValue());
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    GaitReEducationVo voGait = form.gridGait().getSelectedRow().getValue();
    if(voClinicalContact != null && voGait != null && voGait.getClinicalContactIsNotNull() && voGait.getClinicalContact().equals(voClinicalContact))
    {
        updateContextMenu();
        form.btnUpdate().setVisible(true);
    }
    else
    {
        form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
        form.getContextMenus().getGenericGridRemoveItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveDownItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveUpItem().setVisible(false);
        form.getContextMenus().getGenericGridViewItem().setVisible(false);

        form.btnUpdate().setVisible(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void isRecordCurrent()
{
    ClinicalContactShortVo voCurrent = null;
    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voCurrent = form.getGlobalContext().Core.getCurrentClinicalContact();

    for(int i = 0 ; i < form.gridGait().getRows().size() ; i++)
    {
        GaitReEducationVo voGait = form.gridGait().getRows().get(i).getValue();
        if(voCurrent != null && voGait.getClinicalContact() != null)
        {
            if(voGait.getClinicalContact().getID_ClinicalContact().equals(voCurrent.getID_ClinicalContact()))
            {
                form.getLocalContext().setUpdateCurrentRecord(new Boolean(true));
                //set colour of current record + set it expanded
                GenForm.gridGaitRow currentRow = form.gridGait().getRows().get(i);
                currentRow.setBackColor(Color.Beige);
                currentRow.setExpanded(true);
                form.gridGait().setValue(voGait);
            }
        }
        populateControls(voGait);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGridGaitSelectionChanged() throws PresentationLogicException
{
    populateControls(form.gridGait().getSelectedRow().getValue());
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    GaitReEducationVo voGait = form.gridGait().getSelectedRow().getValue();
    if(voClinicalContact != null && voGait != null && voGait.getClinicalContactIsNotNull() && voGait.getClinicalContact().equals(voClinicalContact))
    {
        updateContextMenu();
        form.btnUpdate().setVisible(true);
    }
    else
    {
        form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
        form.getContextMenus().getGenericGridRemoveItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveDownItem().setVisible(false);
        form.getContextMenus().getGenericGridMoveUpItem().setVisible(false);
        form.getContextMenus().getGenericGridViewItem().setVisible(false);

        form.btnUpdate().setVisible(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateGaitGrd(GaitReEducationVoCollection voGaitColl)
{
    GaitReEducationGaitAspectCollection aspColl = null;
    for(int i =0; i<voGaitColl.size(); i++)
    {
        GaitReEducationVo voGait = voGaitColl.get(i);
        GenForm.gridGaitRow pRow = form.gridGait().getRows().newRow();

        //fix WDEV-2255
        if (voGait.getAuthoringDateTimeIsNotNull())
            pRow.setColDate(voGait.getAuthoringDateTime().toString());
        if (voGait.getAuthoringCPIsNotNull())
            pRow.setColHCP(voGait.getAuthoringCP().toString());
        if(voGait.getDetailsIsNotNull())
            pRow.setColDetails(voGait.getDetails());

        //display children
        if(voGait.getGaitAspect() != null)
        {
            aspColl = voGait.getGaitAspect();

            String gait = "";
            for(int z=0; z<aspColl.size(); z++)
            {
                //fix WDEV-2255
                GaitReEducationGaitAspect aspect = aspColl.get(z);
                gait+=aspect.toString()+"\n";
            }
            pRow.setColGait(gait);
        }

        pRow.setValue(voGait);  

    }       
}
项目:AvoinApotti    文件:Logic.java   
private void populateControls(GaitReEducationVo voGait)
{
    form.qmbAuthoringCP().newRow(voGait.getAuthoringCP(), voGait.getAuthoringCP().toString());
    form.qmbAuthoringCP().setValue(voGait.getAuthoringCP());
    form.dtimAuthoring().setValue(voGait.getAuthoringDateTime());
    form.txtDetails().setValue(voGait.getDetails());

    if(voGait.getGaitAspect() != null)
        populateGaitGrid(voGait.getGaitAspect());
}
项目:AvoinApotti    文件:GaitReEducationImpl.java   
public void saveGaitReEducation(GaitReEducationVo voGaitReeducation) throws StaleObjectException, UniqueKeyViolationException
{
    if(!voGaitReeducation.isValidated())
        throw new DomainRuntimeException("This Gait Re-Education has not been validated");

    DomainFactory factory = getDomainFactory();
    GaitReEducation doGait = GaitReEducationVoAssembler.extractGaitReEducation(factory, voGaitReeducation);
    factory.save(doGait);
}
项目:openMAXIMS    文件:Logic.java   
private void populateGaitGrd(GaitReEducationVoCollection voGaitColl)
{
    GaitReEducationGaitAspectCollection aspColl = null;
    for(int i =0; i<voGaitColl.size(); i++)
    {
        GaitReEducationVo voGait = voGaitColl.get(i);
        GenForm.gridGaitRow pRow = form.gridGait().getRows().newRow();

        //fix WDEV-2255
        if (voGait.getAuthoringDateTimeIsNotNull())
            pRow.setColDate(voGait.getAuthoringDateTime().toString());
        if (voGait.getAuthoringCPIsNotNull())
            pRow.setColHCP(voGait.getAuthoringCP().toString());
        if(voGait.getDetailsIsNotNull())
            pRow.setColDetails(voGait.getDetails());

        //display children
        if(voGait.getGaitAspect() != null)
        {
            aspColl = voGait.getGaitAspect();

            String gait = "";
            for(int z=0; z<aspColl.size(); z++)
            {
                //fix WDEV-2255
                GaitReEducationGaitAspect aspect = aspColl.get(z);
                gait+=aspect.toString()+"\n";
            }
            pRow.setColGait(gait);
        }

        pRow.setValue(voGait);  

    }       
}
项目:openMAXIMS    文件:Logic.java   
private void populateControls(GaitReEducationVo voGait)
{
    form.qmbAuthoringCP().newRow(voGait.getAuthoringCP(), voGait.getAuthoringCP().toString());
    form.qmbAuthoringCP().setValue(voGait.getAuthoringCP());
    form.dtimAuthoring().setValue(voGait.getAuthoringDateTime());
    form.txtDetails().setValue(voGait.getDetails());

    if(voGait.getGaitAspect() != null)
        populateGaitGrid(voGait.getGaitAspect());
}
项目:openMAXIMS    文件:GaitReEducationImpl.java   
public void saveGaitReEducation(GaitReEducationVo voGaitReeducation) throws StaleObjectException, UniqueKeyViolationException
{
    if(!voGaitReeducation.isValidated())
        throw new DomainRuntimeException("This Gait Re-Education has not been validated");

    DomainFactory factory = getDomainFactory();
    GaitReEducation doGait = GaitReEducationVoAssembler.extractGaitReEducation(factory, voGaitReeducation);
    factory.save(doGait);
}
项目:openMAXIMS    文件:Logic.java   
private void populateGaitGrd(GaitReEducationVoCollection voGaitColl)
{
    GaitReEducationGaitAspectCollection aspColl = null;
    for(int i =0; i<voGaitColl.size(); i++)
    {
        GaitReEducationVo voGait = voGaitColl.get(i);
        GenForm.gridGaitRow pRow = form.gridGait().getRows().newRow();

        //fix WDEV-2255
        if (voGait.getAuthoringDateTimeIsNotNull())
            pRow.setColDate(voGait.getAuthoringDateTime().toString());
        if (voGait.getAuthoringCPIsNotNull())
            pRow.setColHCP(voGait.getAuthoringCP().toString());
        if(voGait.getDetailsIsNotNull())
            pRow.setColDetails(voGait.getDetails());

        //display children
        if(voGait.getGaitAspect() != null)
        {
            aspColl = voGait.getGaitAspect();

            String gait = "";
            for(int z=0; z<aspColl.size(); z++)
            {
                //fix WDEV-2255
                GaitReEducationGaitAspect aspect = aspColl.get(z);
                gait+=aspect.toString()+"\n";
            }
            pRow.setColGait(gait);
        }

        pRow.setValue(voGait);  

    }       
}
项目:openMAXIMS    文件:Logic.java   
private void populateControls(GaitReEducationVo voGait)
{
    form.qmbAuthoringCP().newRow(voGait.getAuthoringCP(), voGait.getAuthoringCP().toString());
    form.qmbAuthoringCP().setValue(voGait.getAuthoringCP());
    form.dtimAuthoring().setValue(voGait.getAuthoringDateTime());
    form.txtDetails().setValue(voGait.getDetails());

    if(voGait.getGaitAspect() != null)
        populateGaitGrid(voGait.getGaitAspect());
}
项目:openMAXIMS    文件:GaitReEducationImpl.java   
public void saveGaitReEducation(GaitReEducationVo voGaitReeducation) throws StaleObjectException, UniqueKeyViolationException
{
    if(!voGaitReeducation.isValidated())
        throw new DomainRuntimeException("This Gait Re-Education has not been validated");

    DomainFactory factory = getDomainFactory();
    GaitReEducation doGait = GaitReEducationVoAssembler.extractGaitReEducation(factory, voGaitReeducation);
    factory.save(doGait);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGaitGrd(GaitReEducationVoCollection voGaitColl)
{
    GaitReEducationGaitAspectCollection aspColl = null;
    for(int i =0; i<voGaitColl.size(); i++)
    {
        GaitReEducationVo voGait = voGaitColl.get(i);
        GenForm.gridGaitRow pRow = form.gridGait().getRows().newRow();

        //fix WDEV-2255
        if (voGait.getAuthoringDateTimeIsNotNull())
            pRow.setColDate(voGait.getAuthoringDateTime().toString());
        if (voGait.getAuthoringCPIsNotNull())
            pRow.setColHCP(voGait.getAuthoringCP().toString());
        if(voGait.getDetailsIsNotNull())
            pRow.setColDetails(voGait.getDetails());

        //display children
        if(voGait.getGaitAspect() != null)
        {
            aspColl = voGait.getGaitAspect();

            String gait = "";
            for(int z=0; z<aspColl.size(); z++)
            {
                //fix WDEV-2255
                GaitReEducationGaitAspect aspect = aspColl.get(z);
                gait+=aspect.toString()+"\n";
            }
            pRow.setColGait(gait);
        }

        pRow.setValue(voGait);  

    }       
}
项目:openmaxims-linux    文件:Logic.java   
private void populateControls(GaitReEducationVo voGait)
{
    form.qmbAuthoringCP().newRow(voGait.getAuthoringCP(), voGait.getAuthoringCP().toString());
    form.qmbAuthoringCP().setValue(voGait.getAuthoringCP());
    form.dtimAuthoring().setValue(voGait.getAuthoringDateTime());
    form.txtDetails().setValue(voGait.getDetails());

    if(voGait.getGaitAspect() != null)
        populateGaitGrid(voGait.getGaitAspect());
}
项目:openmaxims-linux    文件:GaitReEducationImpl.java   
public void saveGaitReEducation(GaitReEducationVo voGaitReeducation) throws StaleObjectException, UniqueKeyViolationException
{
    if(!voGaitReeducation.isValidated())
        throw new DomainRuntimeException("This Gait Re-Education has not been validated");

    DomainFactory factory = getDomainFactory();
    GaitReEducation doGait = GaitReEducationVoAssembler.extractGaitReEducation(factory, voGaitReeducation);
    factory.save(doGait);
}