Java 类ims.admin.vo.enums.PracticeSearch 实例源码

项目:AvoinApotti    文件:Logic.java   
private void onGridSearchSelectionChanged()
{
    enableContextMenu();
    Object val = form.grdSearch().getValue();
    clearPracticeAndSurgeryLocalContext();
    if(val != null)
    {
        if(val instanceof OrganisationWithSitesVo)
        {
            setSelectedPractice((OrganisationWithSitesVo) val);
        }
        else if(val instanceof LocSiteVo)
        {
            setSelectedSurgery((LocSiteVo) val);
        }

        setActionAndFireEvent(PracticeSearch.SELECT);
    }
}
项目:AvoinApotti    文件:Logic.java   
public Boolean removePracticeFromGrid(OrganisationWithSitesVo voOrganisationWithSites)
{
    if(voOrganisationWithSites == null)
        return Boolean.FALSE;

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        if(voOrganisationWithSites.equals(form.grdSearch().getRows().get(i).getValue()))
        {
            form.grdSearch().getRows().remove(i);
            setSelectedSurgery(null);
            setSelectedPractice(null);
            enableContextMenu();
            setActionAndFireEvent(PracticeSearch.PRACTICEREMOVED);
            return Boolean.TRUE;
        }
    }

    return Boolean.FALSE;
}
项目:AvoinApotti    文件:Logic.java   
public Boolean removeSurgeryFromGrid(LocSiteVo voLocSite)
{
    if(voLocSite == null)
        return Boolean.FALSE; 

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        for (int j = 0; j < form.grdSearch().getRows().get(i).getRows().size(); j++)
        {
            if(voLocSite.equals(form.grdSearch().getRows().get(i).getRows().get(j).getValue()))
            {
                form.grdSearch().getRows().get(i).getRows().remove(j);
                setSelectedSurgery(null);
                //setSelectedPractice(null)
                enableContextMenu();
                setActionAndFireEvent(PracticeSearch.SURGERYREMOVED);
                return Boolean.TRUE;
            }
        }
    }

    return Boolean.FALSE;
}
项目:openMAXIMS    文件:Logic.java   
private void onGridSearchSelectionChanged()
{
    enableContextMenu();
    Object val = form.grdSearch().getValue();
    clearPracticeAndSurgeryLocalContext();
    if(val != null)
    {
        if(val instanceof OrganisationWithSitesVo)
        {
            setSelectedPractice((OrganisationWithSitesVo) val);
        }
        else if(val instanceof LocSiteVo)
        {
            setSelectedSurgery((LocSiteVo) val);
        }

        setActionAndFireEvent(PracticeSearch.SELECT);
    }
}
项目:openMAXIMS    文件:Logic.java   
public Boolean removePracticeFromGrid(OrganisationWithSitesVo voOrganisationWithSites)
{
    if(voOrganisationWithSites == null)
        return Boolean.FALSE;

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        if(voOrganisationWithSites.equals(form.grdSearch().getRows().get(i).getValue()))
        {
            form.grdSearch().getRows().remove(i);
            setSelectedSurgery(null);
            setSelectedPractice(null);
            enableContextMenu();
            setActionAndFireEvent(PracticeSearch.PRACTICEREMOVED);
            return Boolean.TRUE;
        }
    }

    return Boolean.FALSE;
}
项目:openMAXIMS    文件:Logic.java   
public Boolean removeSurgeryFromGrid(LocSiteVo voLocSite)
{
    if(voLocSite == null)
        return Boolean.FALSE; 

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        for (int j = 0; j < form.grdSearch().getRows().get(i).getRows().size(); j++)
        {
            if(voLocSite.equals(form.grdSearch().getRows().get(i).getRows().get(j).getValue()))
            {
                form.grdSearch().getRows().get(i).getRows().remove(j);
                setSelectedSurgery(null);
                //setSelectedPractice(null)
                enableContextMenu();
                setActionAndFireEvent(PracticeSearch.SURGERYREMOVED);
                return Boolean.TRUE;
            }
        }
    }

    return Boolean.FALSE;
}
项目:openMAXIMS    文件:Logic.java   
private void onGridSearchSelectionChanged()
{
    enableContextMenu();
    Object val = form.grdSearch().getValue();
    clearPracticeAndSurgeryLocalContext();
    if(val != null)
    {
        if(val instanceof OrganisationWithSitesVo)
        {
            setSelectedPractice((OrganisationWithSitesVo) val);
        }
        else if(val instanceof LocSiteVo)
        {
            setSelectedSurgery((LocSiteVo) val);
        }

        setActionAndFireEvent(PracticeSearch.SELECT);
    }
}
项目:openMAXIMS    文件:Logic.java   
public Boolean removePracticeFromGrid(OrganisationWithSitesVo voOrganisationWithSites)
{
    if(voOrganisationWithSites == null)
        return Boolean.FALSE;

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        if(voOrganisationWithSites.equals(form.grdSearch().getRows().get(i).getValue()))
        {
            form.grdSearch().getRows().remove(i);
            setSelectedSurgery(null);
            setSelectedPractice(null);
            enableContextMenu();
            setActionAndFireEvent(PracticeSearch.PRACTICEREMOVED);
            return Boolean.TRUE;
        }
    }

    return Boolean.FALSE;
}
项目:openMAXIMS    文件:Logic.java   
public Boolean removeSurgeryFromGrid(LocSiteVo voLocSite)
{
    if(voLocSite == null)
        return Boolean.FALSE; 

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        for (int j = 0; j < form.grdSearch().getRows().get(i).getRows().size(); j++)
        {
            if(voLocSite.equals(form.grdSearch().getRows().get(i).getRows().get(j).getValue()))
            {
                form.grdSearch().getRows().get(i).getRows().remove(j);
                setSelectedSurgery(null);
                //setSelectedPractice(null)
                enableContextMenu();
                setActionAndFireEvent(PracticeSearch.SURGERYREMOVED);
                return Boolean.TRUE;
            }
        }
    }

    return Boolean.FALSE;
}
项目:openmaxims-linux    文件:Logic.java   
private void onGridSearchSelectionChanged()
{
    enableContextMenu();
    Object val = form.grdSearch().getValue();
    clearPracticeAndSurgeryLocalContext();
    if(val != null)
    {
        if(val instanceof OrganisationWithSitesVo)
        {
            setSelectedPractice((OrganisationWithSitesVo) val);
        }
        else if(val instanceof LocSiteVo)
        {
            setSelectedSurgery((LocSiteVo) val);
        }

        setActionAndFireEvent(PracticeSearch.SELECT);
    }
}
项目:openmaxims-linux    文件:Logic.java   
public Boolean removePracticeFromGrid(OrganisationWithSitesVo voOrganisationWithSites)
{
    if(voOrganisationWithSites == null)
        return Boolean.FALSE;

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        if(voOrganisationWithSites.equals(form.grdSearch().getRows().get(i).getValue()))
        {
            form.grdSearch().getRows().remove(i);
            setSelectedSurgery(null);
            setSelectedPractice(null);
            enableContextMenu();
            setActionAndFireEvent(PracticeSearch.PRACTICEREMOVED);
            return Boolean.TRUE;
        }
    }

    return Boolean.FALSE;
}
项目:openmaxims-linux    文件:Logic.java   
public Boolean removeSurgeryFromGrid(LocSiteVo voLocSite)
{
    if(voLocSite == null)
        return Boolean.FALSE; 

    for (int i = 0; i < form.grdSearch().getRows().size(); i++)
    {
        for (int j = 0; j < form.grdSearch().getRows().get(i).getRows().size(); j++)
        {
            if(voLocSite.equals(form.grdSearch().getRows().get(i).getRows().get(j).getValue()))
            {
                form.grdSearch().getRows().get(i).getRows().remove(j);
                setSelectedSurgery(null);
                //setSelectedPractice(null)
                enableContextMenu();
                setActionAndFireEvent(PracticeSearch.SURGERYREMOVED);
                return Boolean.TRUE;
            }
        }
    }

    return Boolean.FALSE;
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PracticeSearch practiceSearch = getMenuOption();
    if(practiceSearch == null)
        throw new CodingRuntimeException("No Menu Option Selected");

    if(practiceSearch.equals(PracticeSearch.NEWPRACTICE) || practiceSearch.equals(PracticeSearch.EDITPRACTICE))
    {
        if(savePractice())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            if (practiceSearch.equals(PracticeSearch.NEWPRACTICE))
                form.getLocalContext().setSurgery(null);

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        }                   
    }
    else if(practiceSearch.equals(PracticeSearch.NEWSURGERY) || practiceSearch.equals(PracticeSearch.EDITSURGERY))
    {
        if(saveSurgery())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getSurgery());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void editSurgery() 
{
    if (form.getLocalContext().getPracticeIsNotNull())
    {
        setMenuOption(PracticeSearch.EDITSURGERY);
        setDetailsContainerName(SURGERY_DETAILS);
        updateInstance();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void newSurgery() 
{
    //TODO - Add here support to add new surgery... - create an event or something...
    if (form.getLocalContext().getPracticeIsNotNull())  // cannot create a new surgery with no parent
    {
        form.getLocalContext().setSurgery(null);
        form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        setMenuOption(PracticeSearch.NEWSURGERY);
        setDetailsContainerName(NEW_SURGERY);
        newInstance();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void newPractice() 
{
    setPracticeToContext(null);
    form.customControlPracticeAdmin().setValue(null);
    setMenuOption(PracticeSearch.NEWPRACTICE);
    setDetailsContainerName(NEW_PRACTICE);
    newInstance();
}
项目:AvoinApotti    文件:Logic.java   
protected void onCustomControlPracticeSearchValueChanged() throws PresentationLogicException
{
    PracticeSearch val = form.customControlPracticeSearch().getActionEvent();
    if(val != null)
    {
        if(val.equals( PracticeSearch.SELECT))
        {
            //wdev-10649
            if(form.getLocalContext().getEnableSelectButtonIsNotNull() && form.getLocalContext().getEnableSelectButton().equals(Boolean.FALSE))
                enableSelectButton(false);
            else 
                enableSelectButton(true);
            //-----------------

            setVisibleUpdateButton(true);
        }
        else if(val.equals( PracticeSearch.CLEAR))
        {
            enableSelectButton(false);
            setVisibleUpdateButton(false);
        }   
        else if(val.equals(PracticeSearch.NEWPRACTICE))
        {
            newInstance();
        }
        else if(val.equals(PracticeSearch.EDITPRACTICE))
        {
            editInstance();
        }
        else
        {
            enableSelectButton(false);
            setVisibleUpdateButton(false);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(validateSearchCriteria())
    {
        clearPracticeAndSurgeryLocalContext();
        search();
        enableContextMenu();
        setActionAndFireEvent(PracticeSearch.SEARCH);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.PracticeAdmin.NewPractice :
            setActionAndFireEvent(PracticeSearch.NEWPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.EditPractice :
            setActionAndFireEvent(PracticeSearch.EDITPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.RemovePractice :
            setActionAndFireEvent(PracticeSearch.REMOVEPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.NewSurgery :
            setActionAndFireEvent(PracticeSearch.NEWSURGERY);
        break;

        case GenForm.ContextMenus.PracticeAdmin.EditSurgery :
            setActionAndFireEvent(PracticeSearch.EDITSURGERY);
        break;

        case GenForm.ContextMenus.PracticeAdmin.RemoveSurgery :
            setActionAndFireEvent(PracticeSearch.REMOVESURGERY);
        break;
    }
}
项目:AvoinApotti    文件:Logic.java   
public void setValueInGrid(ValueObject val)
{
    if (val==null)
        return;

    if (val instanceof OrganisationWithSitesVo)
    {
        addPracticeToGrid((OrganisationWithSitesVo)val, form.grdSearch().getRows().newRow());
        form.grdSearch().setValue((OrganisationWithSitesVo)val);
        form.getLocalContext().setSelectedPractice((OrganisationWithSitesVo)val);
        setActionAndFireEvent(PracticeSearch.SELECT);
    }
    expandSelectedRow();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PracticeSearch practiceSearch = getMenuOption();
    if(practiceSearch == null)
        throw new CodingRuntimeException("No Menu Option Selected");

    if(practiceSearch.equals(PracticeSearch.NEWPRACTICE) || practiceSearch.equals(PracticeSearch.EDITPRACTICE))
    {
        if(savePractice())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            if (practiceSearch.equals(PracticeSearch.NEWPRACTICE))
                form.getLocalContext().setSurgery(null);

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        }                   
    }
    else if(practiceSearch.equals(PracticeSearch.NEWSURGERY) || practiceSearch.equals(PracticeSearch.EDITSURGERY))
    {
        if(saveSurgery())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getSurgery());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void editSurgery() 
{
    if (form.getLocalContext().getPracticeIsNotNull())
    {
        setMenuOption(PracticeSearch.EDITSURGERY);
        setDetailsContainerName(SURGERY_DETAILS);
        updateInstance();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newSurgery() 
{
    //TODO - Add here support to add new surgery... - create an event or something...
    if (form.getLocalContext().getPracticeIsNotNull())  // cannot create a new surgery with no parent
    {
        form.getLocalContext().setSurgery(null);
        form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        setMenuOption(PracticeSearch.NEWSURGERY);
        setDetailsContainerName(NEW_SURGERY);
        newInstance();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newPractice() 
{
    setPracticeToContext(null);
    form.customControlPracticeAdmin().setValue(null);
    setMenuOption(PracticeSearch.NEWPRACTICE);
    setDetailsContainerName(NEW_PRACTICE);
    newInstance();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCustomControlPracticeSearchValueChanged() throws PresentationLogicException
{
    PracticeSearch val = form.customControlPracticeSearch().getActionEvent();
    if(val != null)
    {
        if(val.equals( PracticeSearch.SELECT))
        {
            //wdev-10649
            if(form.getLocalContext().getEnableSelectButtonIsNotNull() && form.getLocalContext().getEnableSelectButton().equals(Boolean.FALSE))
                enableSelectButton(false);
            else 
                enableSelectButton(true);
            //-----------------

            setVisibleUpdateButton(true);
        }
        else if(val.equals( PracticeSearch.CLEAR))
        {
            enableSelectButton(false);
            setVisibleUpdateButton(false);
        }   
        else if(val.equals(PracticeSearch.NEWPRACTICE))
        {
            newInstance();
        }
        else if(val.equals(PracticeSearch.EDITPRACTICE))
        {
            editInstance();
        }
        else
        {
            enableSelectButton(false);
            setVisibleUpdateButton(false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(validateSearchCriteria())
    {
        clearPracticeAndSurgeryLocalContext();
        search();
        enableContextMenu();
        setActionAndFireEvent(PracticeSearch.SEARCH);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.PracticeAdmin.NewPractice :
            setActionAndFireEvent(PracticeSearch.NEWPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.EditPractice :
            setActionAndFireEvent(PracticeSearch.EDITPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.RemovePractice :
            setActionAndFireEvent(PracticeSearch.REMOVEPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.NewSurgery :
            setActionAndFireEvent(PracticeSearch.NEWSURGERY);
        break;

        case GenForm.ContextMenus.PracticeAdmin.EditSurgery :
            setActionAndFireEvent(PracticeSearch.EDITSURGERY);
        break;

        case GenForm.ContextMenus.PracticeAdmin.RemoveSurgery :
            setActionAndFireEvent(PracticeSearch.REMOVESURGERY);
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
public void setValueInGrid(ValueObject val)
{
    if (val==null)
        return;

    if (val instanceof OrganisationWithSitesVo)
    {
        addPracticeToGrid((OrganisationWithSitesVo)val, form.grdSearch().getRows().newRow());
        form.grdSearch().setValue((OrganisationWithSitesVo)val);
        form.getLocalContext().setSelectedPractice((OrganisationWithSitesVo)val);
        setActionAndFireEvent(PracticeSearch.SELECT);
    }
    expandSelectedRow();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PracticeSearch practiceSearch = getMenuOption();
    if(practiceSearch == null)
        throw new CodingRuntimeException("No Menu Option Selected");

    if(practiceSearch.equals(PracticeSearch.NEWPRACTICE) || practiceSearch.equals(PracticeSearch.EDITPRACTICE))
    {
        if(savePractice())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            if (practiceSearch.equals(PracticeSearch.NEWPRACTICE))
                form.getLocalContext().setSurgery(null);

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        }                   
    }
    else if(practiceSearch.equals(PracticeSearch.NEWSURGERY) || practiceSearch.equals(PracticeSearch.EDITSURGERY))
    {
        if(saveSurgery())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getSurgery());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void editSurgery() 
{
    if (form.getLocalContext().getPracticeIsNotNull())
    {
        setMenuOption(PracticeSearch.EDITSURGERY);
        setDetailsContainerName(SURGERY_DETAILS);
        updateInstance();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newSurgery() 
{
    //TODO - Add here support to add new surgery... - create an event or something...
    if (form.getLocalContext().getPracticeIsNotNull())  // cannot create a new surgery with no parent
    {
        form.getLocalContext().setSurgery(null);
        form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        setMenuOption(PracticeSearch.NEWSURGERY);
        setDetailsContainerName(NEW_SURGERY);
        newInstance();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newPractice() 
{
    setPracticeToContext(null);
    form.customControlPracticeAdmin().setValue(null);
    setMenuOption(PracticeSearch.NEWPRACTICE);
    setDetailsContainerName(NEW_PRACTICE);
    newInstance();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCustomControlPracticeSearchValueChanged() throws PresentationLogicException
{
    PracticeSearch val = form.customControlPracticeSearch().getActionEvent();
    if(val != null)
    {
        if(val.equals( PracticeSearch.SELECT))
        {
            //wdev-10649
            if(form.getLocalContext().getEnableSelectButtonIsNotNull() && form.getLocalContext().getEnableSelectButton().equals(Boolean.FALSE))
                enableSelectButton(false);
            else 
                enableSelectButton(true);
            //-----------------

            setVisibleUpdateButton(true);
        }
        else if(val.equals( PracticeSearch.CLEAR))
        {
            enableSelectButton(false);
            setVisibleUpdateButton(false);
        }   
        else if(val.equals(PracticeSearch.NEWPRACTICE))
        {
            newInstance();
        }
        else if(val.equals(PracticeSearch.EDITPRACTICE))
        {
            editInstance();
        }
        else
        {
            enableSelectButton(false);
            setVisibleUpdateButton(false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(validateSearchCriteria())
    {
        clearPracticeAndSurgeryLocalContext();
        search();
        enableContextMenu();
        setActionAndFireEvent(PracticeSearch.SEARCH);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.PracticeAdmin.NewPractice :
            setActionAndFireEvent(PracticeSearch.NEWPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.EditPractice :
            setActionAndFireEvent(PracticeSearch.EDITPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.RemovePractice :
            setActionAndFireEvent(PracticeSearch.REMOVEPRACTICE);
        break;

        case GenForm.ContextMenus.PracticeAdmin.NewSurgery :
            setActionAndFireEvent(PracticeSearch.NEWSURGERY);
        break;

        case GenForm.ContextMenus.PracticeAdmin.EditSurgery :
            setActionAndFireEvent(PracticeSearch.EDITSURGERY);
        break;

        case GenForm.ContextMenus.PracticeAdmin.RemoveSurgery :
            setActionAndFireEvent(PracticeSearch.REMOVESURGERY);
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
public void setValueInGrid(ValueObject val)
{
    if (val==null)
        return;

    if (val instanceof OrganisationWithSitesVo)
    {
        addPracticeToGrid((OrganisationWithSitesVo)val, form.grdSearch().getRows().newRow());
        form.grdSearch().setValue((OrganisationWithSitesVo)val);
        form.getLocalContext().setSelectedPractice((OrganisationWithSitesVo)val);
        setActionAndFireEvent(PracticeSearch.SELECT);
    }
    expandSelectedRow();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PracticeSearch practiceSearch = getMenuOption();
    if(practiceSearch == null)
        throw new CodingRuntimeException("No Menu Option Selected");

    if(practiceSearch.equals(PracticeSearch.NEWPRACTICE) || practiceSearch.equals(PracticeSearch.EDITPRACTICE))
    {
        if(savePractice())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            if (practiceSearch.equals(PracticeSearch.NEWPRACTICE))
                form.getLocalContext().setSurgery(null);

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        }                   
    }
    else if(practiceSearch.equals(PracticeSearch.NEWSURGERY) || practiceSearch.equals(PracticeSearch.EDITSURGERY))
    {
        if(saveSurgery())
        {
            if (isPracticeAdminDialog())
            {
                engine.close(DialogResult.OK);
            }

            open();
            //WDEV-15663
            //form.customControlPracticeAdmin().setValue(form.getLocalContext().getSurgery());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void editSurgery() 
{
    if (form.getLocalContext().getPracticeIsNotNull())
    {
        setMenuOption(PracticeSearch.EDITSURGERY);
        setDetailsContainerName(SURGERY_DETAILS);
        updateInstance();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void newSurgery() 
{
    //TODO - Add here support to add new surgery... - create an event or something...
    if (form.getLocalContext().getPracticeIsNotNull())  // cannot create a new surgery with no parent
    {
        form.getLocalContext().setSurgery(null);
        form.customControlPracticeAdmin().setValue(form.getLocalContext().getPractice());
        setMenuOption(PracticeSearch.NEWSURGERY);
        setDetailsContainerName(NEW_SURGERY);
        newInstance();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void newPractice() 
{
    setPracticeToContext(null);
    form.customControlPracticeAdmin().setValue(null);
    setMenuOption(PracticeSearch.NEWPRACTICE);
    setDetailsContainerName(NEW_PRACTICE);
    newInstance();
}