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

项目:AvoinApotti    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);        
    form.grdList().getRows().clear();

    PropertyChecklistShortVoCollection list = domain.list(form.getGlobalContext().Core.getCurrentCareContext());

    if(list != null)
    {
        for(int i = 0; i < list.size(); i++)
        {
            addRowRecord(list.get(i));
        }
    }       
    //set selection back
    if (form.getLocalContext().getEditedRecordIsNotNull())
    {
        //need to get timestamp from record retrieved from List call.
        GenForm.grdListRow row = form.grdList().getRowByValue(form.getLocalContext().getEditedRecord());
        if (row != null && row.getValue() != null)
        {           
            getAndDisplayRecord();
        }
        else
            clear();
        updateControlState();           
    }
    else        
        form.ctnDetails().setCollapsed(true);

    updateControlState();           
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);        
    form.grdList().getRows().clear();

    PropertyChecklistShortVoCollection list = domain.list(form.getGlobalContext().Core.getCurrentCareContext());

    if(list != null)
    {
        for(int i = 0; i < list.size(); i++)
        {
            addRowRecord(list.get(i));
        }
    }       
    //set selection back
    if (form.getLocalContext().getEditedRecordIsNotNull())
    {
        //need to get timestamp from record retrieved from List call.
        GenForm.grdListRow row = form.grdList().getRowByValue(form.getLocalContext().getEditedRecord());
        if (row != null && row.getValue() != null)
        {           
            getAndDisplayRecord();
        }
        else
            clear();
        updateControlState();           
    }
    else        
        form.ctnDetails().setCollapsed(true);

    updateControlState();           
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);        
    form.grdList().getRows().clear();

    PropertyChecklistShortVoCollection list = domain.list(form.getGlobalContext().Core.getCurrentCareContext());

    if(list != null)
    {
        for(int i = 0; i < list.size(); i++)
        {
            addRowRecord(list.get(i));
        }
    }       
    //set selection back
    if (form.getLocalContext().getEditedRecordIsNotNull())
    {
        //need to get timestamp from record retrieved from List call.
        GenForm.grdListRow row = form.grdList().getRowByValue(form.getLocalContext().getEditedRecord());
        if (row != null && row.getValue() != null)
        {           
            getAndDisplayRecord();
        }
        else
            clear();
        updateControlState();           
    }
    else        
        form.ctnDetails().setCollapsed(true);

    updateControlState();           
}
项目:openmaxims-linux    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);        
    form.grdList().getRows().clear();

    PropertyChecklistShortVoCollection list = domain.list(form.getGlobalContext().Core.getCurrentCareContext());

    if(list != null)
    {
        for(int i = 0; i < list.size(); i++)
        {
            addRowRecord(list.get(i));
        }
    }       
    //set selection back
    if (form.getLocalContext().getEditedRecordIsNotNull())
    {
        //need to get timestamp from record retrieved from List call.
        GenForm.grdListRow row = form.grdList().getRowByValue(form.getLocalContext().getEditedRecord());
        if (row != null && row.getValue() != null)
        {           
            getAndDisplayRecord();
        }
        else
            clear();
        updateControlState();           
    }
    else        
        form.ctnDetails().setCollapsed(true);

    updateControlState();           
}