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

项目:AvoinApotti    文件:Logic.java   
private void populateChildCollectionFromGrid(StandingSessionVo voStandingSession)
{
    if (form.grdSummary().getValue() == null) return;

    if (voStandingSession.getFrameExercise() == null)
        voStandingSession.setFrameExercise(new FrameExerciseVoCollection());
    if(voStandingSession.getTiltTableExercise() == null)
        voStandingSession.setTiltTableExercise(new TiltExerciseVoCollection());

    GenForm.grdSummaryRow parentRow = form.grdSummary().getValue() instanceof StandingSessionShortVo || form.grdSummary().getValue() instanceof StandingSessionVo ? 
                                        form.grdSummary().getSelectedRow() : form.grdSummary().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
       {
        voStandingSession.getTiltTableExercise().clear();
        voStandingSession.getFrameExercise().clear();
       }                                    
    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        if(parentRow.getRows().get(i).getValue() instanceof TiltExerciseVo)
            voStandingSession.getTiltTableExercise().add((TiltExerciseVo) parentRow.getRows().get(i).getValue());
        if(parentRow.getRows().get(i).getValue() instanceof FrameExerciseVo)
            voStandingSession.getFrameExercise().add((FrameExerciseVo) parentRow.getRows().get(i).getValue());
       }

}
项目:AvoinApotti    文件:Logic.java   
private void setDetailsTabVisibility()
{
    if (form.getMode().equals(FormMode.VIEW))
    {   
        // In view mode, make the details tab visible if a detail instance is selected in the hierarchy grid.  
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo);                                   
        enableControls(true);
    }
    else
    {           
        // In edit mode, make the details tab visible if a hierarchy item has been selected and we're not
        // editing a parent.
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                form.getLocalContext().getUpdatingParent().equals(Boolean.FALSE));

        enableControls(false);

        setAddApplyCaption();           
    }           
    enableDetailsButtons(); 
}
项目:AvoinApotti    文件:Logic.java   
private void newInstance()
{
    // New instance has been invoked for a parent instance with no current selection made OR
    // with a parent that is not the Golden node..
    if (form.grdSummary().getValue() == null || ((form.getLocalContext().getSelectedParentInstanceIsNotNull() 
            && form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))))
    {
        newParentInstance();            
    }

    // New instance has been invoked with a child node selected.
    if (form.grdSummary().getValue() instanceof StandingSessionVo || (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
    {
        newChildInstance();
    }
    form.setMode(FormMode.EDIT);    
}
项目:AvoinApotti    文件:Logic.java   
private boolean addOrUpdateChild()
{       
    if (form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))           
        if(!newParentNode(form.getLocalContext().getSelectedParentInstance()))
            return false;           

    ValueObject vo = form.getLocalContext().getSelectedChildInstance();

    vo = populateChildInstanceData(vo);

    if ((form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)
                                                                && form.getLocalContext().getSelectedChildInstanceIsNotNull())
    {
        promoteUpdatedChild(vo);
        newChildInstance();
        updateControlsState();
    }
    else
    {
        newChildNode(vo);
        return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(StandingSessionVo voStandingSession)
{
    if (form.grdSummary().getValue() == null) return;

    if (voStandingSession.getFrameExercise() == null)
        voStandingSession.setFrameExercise(new FrameExerciseVoCollection());
    if(voStandingSession.getTiltTableExercise() == null)
        voStandingSession.setTiltTableExercise(new TiltExerciseVoCollection());

    GenForm.grdSummaryRow parentRow = form.grdSummary().getValue() instanceof StandingSessionShortVo || form.grdSummary().getValue() instanceof StandingSessionVo ? 
                                        form.grdSummary().getSelectedRow() : form.grdSummary().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
       {
        voStandingSession.getTiltTableExercise().clear();
        voStandingSession.getFrameExercise().clear();
       }                                    
    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        if(parentRow.getRows().get(i).getValue() instanceof TiltExerciseVo)
            voStandingSession.getTiltTableExercise().add((TiltExerciseVo) parentRow.getRows().get(i).getValue());
        if(parentRow.getRows().get(i).getValue() instanceof FrameExerciseVo)
            voStandingSession.getFrameExercise().add((FrameExerciseVo) parentRow.getRows().get(i).getValue());
       }

}
项目:openMAXIMS    文件:Logic.java   
private void setDetailsTabVisibility()
{
    if (form.getMode().equals(FormMode.VIEW))
    {   
        // In view mode, make the details tab visible if a detail instance is selected in the hierarchy grid.  
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo);                                   
        enableControls(true);
    }
    else
    {           
        // In edit mode, make the details tab visible if a hierarchy item has been selected and we're not
        // editing a parent.
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                form.getLocalContext().getUpdatingParent().equals(Boolean.FALSE));

        enableControls(false);

        setAddApplyCaption();           
    }           
    enableDetailsButtons(); 
}
项目:openMAXIMS    文件:Logic.java   
private void newInstance()
{
    // New instance has been invoked for a parent instance with no current selection made OR
    // with a parent that is not the Golden node..
    if (form.grdSummary().getValue() == null || ((form.getLocalContext().getSelectedParentInstanceIsNotNull() 
            && form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))))
    {
        newParentInstance();            
    }

    // New instance has been invoked with a child node selected.
    if (form.grdSummary().getValue() instanceof StandingSessionVo || (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
    {
        newChildInstance();
    }
    form.setMode(FormMode.EDIT);    
}
项目:openMAXIMS    文件:Logic.java   
private boolean addOrUpdateChild()
{       
    if (form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))           
        if(!newParentNode(form.getLocalContext().getSelectedParentInstance()))
            return false;           

    ValueObject vo = form.getLocalContext().getSelectedChildInstance();

    vo = populateChildInstanceData(vo);

    if ((form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)
                                                                && form.getLocalContext().getSelectedChildInstanceIsNotNull())
    {
        promoteUpdatedChild(vo);
        newChildInstance();
        updateControlsState();
    }
    else
    {
        newChildNode(vo);
        return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(StandingSessionVo voStandingSession)
{
    if (form.grdSummary().getValue() == null) return;

    if (voStandingSession.getFrameExercise() == null)
        voStandingSession.setFrameExercise(new FrameExerciseVoCollection());
    if(voStandingSession.getTiltTableExercise() == null)
        voStandingSession.setTiltTableExercise(new TiltExerciseVoCollection());

    GenForm.grdSummaryRow parentRow = form.grdSummary().getValue() instanceof StandingSessionShortVo || form.grdSummary().getValue() instanceof StandingSessionVo ? 
                                        form.grdSummary().getSelectedRow() : form.grdSummary().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
       {
        voStandingSession.getTiltTableExercise().clear();
        voStandingSession.getFrameExercise().clear();
       }                                    
    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        if(parentRow.getRows().get(i).getValue() instanceof TiltExerciseVo)
            voStandingSession.getTiltTableExercise().add((TiltExerciseVo) parentRow.getRows().get(i).getValue());
        if(parentRow.getRows().get(i).getValue() instanceof FrameExerciseVo)
            voStandingSession.getFrameExercise().add((FrameExerciseVo) parentRow.getRows().get(i).getValue());
       }

}
项目:openMAXIMS    文件:Logic.java   
private void setDetailsTabVisibility()
{
    if (form.getMode().equals(FormMode.VIEW))
    {   
        // In view mode, make the details tab visible if a detail instance is selected in the hierarchy grid.  
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo);                                   
        enableControls(true);
    }
    else
    {           
        // In edit mode, make the details tab visible if a hierarchy item has been selected and we're not
        // editing a parent.
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                form.getLocalContext().getUpdatingParent().equals(Boolean.FALSE));

        enableControls(false);

        setAddApplyCaption();           
    }           
    enableDetailsButtons(); 
}
项目:openMAXIMS    文件:Logic.java   
private void newInstance()
{
    // New instance has been invoked for a parent instance with no current selection made OR
    // with a parent that is not the Golden node..
    if (form.grdSummary().getValue() == null || ((form.getLocalContext().getSelectedParentInstanceIsNotNull() 
            && form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))))
    {
        newParentInstance();            
    }

    // New instance has been invoked with a child node selected.
    if (form.grdSummary().getValue() instanceof StandingSessionVo || (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
    {
        newChildInstance();
    }
    form.setMode(FormMode.EDIT);    
}
项目:openMAXIMS    文件:Logic.java   
private boolean addOrUpdateChild()
{       
    if (form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))           
        if(!newParentNode(form.getLocalContext().getSelectedParentInstance()))
            return false;           

    ValueObject vo = form.getLocalContext().getSelectedChildInstance();

    vo = populateChildInstanceData(vo);

    if ((form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)
                                                                && form.getLocalContext().getSelectedChildInstanceIsNotNull())
    {
        promoteUpdatedChild(vo);
        newChildInstance();
        updateControlsState();
    }
    else
    {
        newChildNode(vo);
        return true;
    }
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildCollectionFromGrid(StandingSessionVo voStandingSession)
{
    if (form.grdSummary().getValue() == null) return;

    if (voStandingSession.getFrameExercise() == null)
        voStandingSession.setFrameExercise(new FrameExerciseVoCollection());
    if(voStandingSession.getTiltTableExercise() == null)
        voStandingSession.setTiltTableExercise(new TiltExerciseVoCollection());

    GenForm.grdSummaryRow parentRow = form.grdSummary().getValue() instanceof StandingSessionShortVo || form.grdSummary().getValue() instanceof StandingSessionVo ? 
                                        form.grdSummary().getSelectedRow() : form.grdSummary().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
       {
        voStandingSession.getTiltTableExercise().clear();
        voStandingSession.getFrameExercise().clear();
       }                                    
    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        if(parentRow.getRows().get(i).getValue() instanceof TiltExerciseVo)
            voStandingSession.getTiltTableExercise().add((TiltExerciseVo) parentRow.getRows().get(i).getValue());
        if(parentRow.getRows().get(i).getValue() instanceof FrameExerciseVo)
            voStandingSession.getFrameExercise().add((FrameExerciseVo) parentRow.getRows().get(i).getValue());
       }

}
项目:openmaxims-linux    文件:Logic.java   
private void setDetailsTabVisibility()
{
    if (form.getMode().equals(FormMode.VIEW))
    {   
        // In view mode, make the details tab visible if a detail instance is selected in the hierarchy grid.  
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo);                                   
        enableControls(true);
    }
    else
    {           
        // In edit mode, make the details tab visible if a hierarchy item has been selected and we're not
        // editing a parent.
        form.ctnStand().lyrParent().tabDetails().setHeaderVisible(form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                form.getLocalContext().getUpdatingParent().equals(Boolean.FALSE));

        enableControls(false);

        setAddApplyCaption();           
    }           
    enableDetailsButtons(); 
}
项目:openmaxims-linux    文件:Logic.java   
private void newInstance()
{
    // New instance has been invoked for a parent instance with no current selection made OR
    // with a parent that is not the Golden node..
    if (form.grdSummary().getValue() == null || ((form.getLocalContext().getSelectedParentInstanceIsNotNull() 
            && form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))))
    {
        newParentInstance();            
    }

    // New instance has been invoked with a child node selected.
    if (form.grdSummary().getValue() instanceof StandingSessionVo || (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
    {
        newChildInstance();
    }
    form.setMode(FormMode.EDIT);    
}
项目:openmaxims-linux    文件:Logic.java   
private boolean addOrUpdateChild()
{       
    if (form.getLocalContext().getGoldenInstanceSelected().equals(Boolean.FALSE))           
        if(!newParentNode(form.getLocalContext().getSelectedParentInstance()))
            return false;           

    ValueObject vo = form.getLocalContext().getSelectedChildInstance();

    vo = populateChildInstanceData(vo);

    if ((form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)
                                                                && form.getLocalContext().getSelectedChildInstanceIsNotNull())
    {
        promoteUpdatedChild(vo);
        newChildInstance();
        updateControlsState();
    }
    else
    {
        newChildNode(vo);
        return true;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateChildInstanceControls(ValueObject selectedChildInstance)
{
    if(selectedChildInstance == null) return;

    if(selectedChildInstance instanceof FrameExerciseVo)
    {
        FrameExerciseVo voFrame = (FrameExerciseVo) selectedChildInstance;
        populateFrame(voFrame);
    }
    if(selectedChildInstance instanceof TiltExerciseVo)
    {
        TiltExerciseVo voTilt = (TiltExerciseVo) selectedChildInstance;
        populateTilt(voTilt);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateTilt(TiltExerciseVo voTilt)
{
    form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear();
    form.ctnStand().lyrParent().tabDetails().grdTime().getRows().clear();
    hideControlsForTilt(true);
    populateTiltControls(voTilt);
    prePopulateTiltGrd();
    populateTiltGrd(voTilt.getTiltSupportExercise());
}
项目:AvoinApotti    文件:Logic.java   
private void setUpdatedChild()
{
    //Straight child update - Select the currently being updated child as the one so show - post save
    if (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)      
    {
        form.getLocalContext().setUpdatedChild(form.grdSummary().getValue());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void showHeaderOrDetailsTab()
{
    if (form.getMode().equals(FormMode.VIEW))
    {
        // In view mode just show the selected node 
        if (form.grdSummary().getValue() instanceof StandingSessionShortVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof StandingSessionVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof FrameExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();
        else if (form.grdSummary().getValue() instanceof TiltExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();

        enableParentControls(false);
    }
    else
    {
        if (form.getLocalContext().getUpdatingParent().equals(Boolean.TRUE))
            form.ctnStand().lyrParent().showtabHeader();
        else
            form.ctnStand().lyrParent().showtabDetails();

        if (form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                (form.getLocalContext().getSelectedParentInstance().getID_StandingSessionIsNotNull()))
            enableParentControls(false);        //on update
        else
            enableParentControls(true);         //new record
    }

}
项目:AvoinApotti    文件:Logic.java   
private void setAddApplyCaption()
{
    form.ctnStand().lyrParent().tabDetails().btnOk().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null &&
         (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
            form.ctnStand().lyrParent().tabDetails().btnOk().setText("Apply");  
}
项目:AvoinApotti    文件:Logic.java   
private void populateTiltControls(TiltExerciseVo tiltTableExercise)
{
    form.ctnStand().lyrParent().tabDetails().cmbSupport().setValue(tiltTableExercise.getSupportType());
    form.ctnStand().lyrParent().tabDetails().txtComment().setValue(tiltTableExercise.getTiltExerciseDetails());
    form.ctnStand().lyrParent().tabDetails().intDegrees().setValue(tiltTableExercise.getDegrees());
    form.ctnStand().lyrParent().tabDetails().intMinutes().setValue(tiltTableExercise.getDuration());
    form.getLocalContext().setSelectedChildInstance(tiltTableExercise);
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildInstanceControls(ValueObject selectedChildInstance)
{
    if(selectedChildInstance == null) return;

    if(selectedChildInstance instanceof FrameExerciseVo)
    {
        FrameExerciseVo voFrame = (FrameExerciseVo) selectedChildInstance;
        populateFrame(voFrame);
    }
    if(selectedChildInstance instanceof TiltExerciseVo)
    {
        TiltExerciseVo voTilt = (TiltExerciseVo) selectedChildInstance;
        populateTilt(voTilt);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateTilt(TiltExerciseVo voTilt)
{
    form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear();
    form.ctnStand().lyrParent().tabDetails().grdTime().getRows().clear();
    hideControlsForTilt(true);
    populateTiltControls(voTilt);
    prePopulateTiltGrd();
    populateTiltGrd(voTilt.getTiltSupportExercise());
}
项目:openMAXIMS    文件:Logic.java   
private void setUpdatedChild()
{
    //Straight child update - Select the currently being updated child as the one so show - post save
    if (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)      
    {
        form.getLocalContext().setUpdatedChild(form.grdSummary().getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void showHeaderOrDetailsTab()
{
    if (form.getMode().equals(FormMode.VIEW))
    {
        // In view mode just show the selected node 
        if (form.grdSummary().getValue() instanceof StandingSessionShortVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof StandingSessionVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof FrameExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();
        else if (form.grdSummary().getValue() instanceof TiltExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();

        enableParentControls(false);
    }
    else
    {
        if (form.getLocalContext().getUpdatingParent().equals(Boolean.TRUE))
            form.ctnStand().lyrParent().showtabHeader();
        else
            form.ctnStand().lyrParent().showtabDetails();

        if (form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                (form.getLocalContext().getSelectedParentInstance().getID_StandingSessionIsNotNull()))
            enableParentControls(false);        //on update
        else
            enableParentControls(true);         //new record
    }

}
项目:openMAXIMS    文件:Logic.java   
private void setAddApplyCaption()
{
    form.ctnStand().lyrParent().tabDetails().btnOk().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null &&
         (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
            form.ctnStand().lyrParent().tabDetails().btnOk().setText("Apply");  
}
项目:openMAXIMS    文件:Logic.java   
private void populateTiltControls(TiltExerciseVo tiltTableExercise)
{
    form.ctnStand().lyrParent().tabDetails().cmbSupport().setValue(tiltTableExercise.getSupportType());
    form.ctnStand().lyrParent().tabDetails().txtComment().setValue(tiltTableExercise.getTiltExerciseDetails());
    form.ctnStand().lyrParent().tabDetails().intDegrees().setValue(tiltTableExercise.getDegrees());
    form.ctnStand().lyrParent().tabDetails().intMinutes().setValue(tiltTableExercise.getDuration());
    form.getLocalContext().setSelectedChildInstance(tiltTableExercise);
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildInstanceControls(ValueObject selectedChildInstance)
{
    if(selectedChildInstance == null) return;

    if(selectedChildInstance instanceof FrameExerciseVo)
    {
        FrameExerciseVo voFrame = (FrameExerciseVo) selectedChildInstance;
        populateFrame(voFrame);
    }
    if(selectedChildInstance instanceof TiltExerciseVo)
    {
        TiltExerciseVo voTilt = (TiltExerciseVo) selectedChildInstance;
        populateTilt(voTilt);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateTilt(TiltExerciseVo voTilt)
{
    form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear();
    form.ctnStand().lyrParent().tabDetails().grdTime().getRows().clear();
    hideControlsForTilt(true);
    populateTiltControls(voTilt);
    prePopulateTiltGrd();
    populateTiltGrd(voTilt.getTiltSupportExercise());
}
项目:openMAXIMS    文件:Logic.java   
private void setUpdatedChild()
{
    //Straight child update - Select the currently being updated child as the one so show - post save
    if (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)      
    {
        form.getLocalContext().setUpdatedChild(form.grdSummary().getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void showHeaderOrDetailsTab()
{
    if (form.getMode().equals(FormMode.VIEW))
    {
        // In view mode just show the selected node 
        if (form.grdSummary().getValue() instanceof StandingSessionShortVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof StandingSessionVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof FrameExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();
        else if (form.grdSummary().getValue() instanceof TiltExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();

        enableParentControls(false);
    }
    else
    {
        if (form.getLocalContext().getUpdatingParent().equals(Boolean.TRUE))
            form.ctnStand().lyrParent().showtabHeader();
        else
            form.ctnStand().lyrParent().showtabDetails();

        if (form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                (form.getLocalContext().getSelectedParentInstance().getID_StandingSessionIsNotNull()))
            enableParentControls(false);        //on update
        else
            enableParentControls(true);         //new record
    }

}
项目:openMAXIMS    文件:Logic.java   
private void setAddApplyCaption()
{
    form.ctnStand().lyrParent().tabDetails().btnOk().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null &&
         (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
            form.ctnStand().lyrParent().tabDetails().btnOk().setText("Apply");  
}
项目:openMAXIMS    文件:Logic.java   
private void populateTiltControls(TiltExerciseVo tiltTableExercise)
{
    form.ctnStand().lyrParent().tabDetails().cmbSupport().setValue(tiltTableExercise.getSupportType());
    form.ctnStand().lyrParent().tabDetails().txtComment().setValue(tiltTableExercise.getTiltExerciseDetails());
    form.ctnStand().lyrParent().tabDetails().intDegrees().setValue(tiltTableExercise.getDegrees());
    form.ctnStand().lyrParent().tabDetails().intMinutes().setValue(tiltTableExercise.getDuration());
    form.getLocalContext().setSelectedChildInstance(tiltTableExercise);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildInstanceControls(ValueObject selectedChildInstance)
{
    if(selectedChildInstance == null) return;

    if(selectedChildInstance instanceof FrameExerciseVo)
    {
        FrameExerciseVo voFrame = (FrameExerciseVo) selectedChildInstance;
        populateFrame(voFrame);
    }
    if(selectedChildInstance instanceof TiltExerciseVo)
    {
        TiltExerciseVo voTilt = (TiltExerciseVo) selectedChildInstance;
        populateTilt(voTilt);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTilt(TiltExerciseVo voTilt)
{
    form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear();
    form.ctnStand().lyrParent().tabDetails().grdTime().getRows().clear();
    hideControlsForTilt(true);
    populateTiltControls(voTilt);
    prePopulateTiltGrd();
    populateTiltGrd(voTilt.getTiltSupportExercise());
}
项目:openmaxims-linux    文件:Logic.java   
private void setUpdatedChild()
{
    //Straight child update - Select the currently being updated child as the one so show - post save
    if (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo)      
    {
        form.getLocalContext().setUpdatedChild(form.grdSummary().getValue());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void showHeaderOrDetailsTab()
{
    if (form.getMode().equals(FormMode.VIEW))
    {
        // In view mode just show the selected node 
        if (form.grdSummary().getValue() instanceof StandingSessionShortVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof StandingSessionVo)     
            form.ctnStand().lyrParent().showtabHeader();
        else if (form.grdSummary().getValue() instanceof FrameExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();
        else if (form.grdSummary().getValue() instanceof TiltExerciseVo)
            form.ctnStand().lyrParent().showtabDetails();

        enableParentControls(false);
    }
    else
    {
        if (form.getLocalContext().getUpdatingParent().equals(Boolean.TRUE))
            form.ctnStand().lyrParent().showtabHeader();
        else
            form.ctnStand().lyrParent().showtabDetails();

        if (form.getLocalContext().getSelectedParentInstanceIsNotNull() && 
                (form.getLocalContext().getSelectedParentInstance().getID_StandingSessionIsNotNull()))
            enableParentControls(false);        //on update
        else
            enableParentControls(true);         //new record
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void setAddApplyCaption()
{
    form.ctnStand().lyrParent().tabDetails().btnOk().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null &&
         (form.grdSummary().getValue() instanceof FrameExerciseVo || form.grdSummary().getValue() instanceof TiltExerciseVo))
            form.ctnStand().lyrParent().tabDetails().btnOk().setText("Apply");  
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTiltControls(TiltExerciseVo tiltTableExercise)
{
    form.ctnStand().lyrParent().tabDetails().cmbSupport().setValue(tiltTableExercise.getSupportType());
    form.ctnStand().lyrParent().tabDetails().txtComment().setValue(tiltTableExercise.getTiltExerciseDetails());
    form.ctnStand().lyrParent().tabDetails().intDegrees().setValue(tiltTableExercise.getDegrees());
    form.ctnStand().lyrParent().tabDetails().intMinutes().setValue(tiltTableExercise.getDuration());
    form.getLocalContext().setSelectedChildInstance(tiltTableExercise);
}