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

项目:AvoinApotti    文件:Logic.java   
protected void onCustomControlGPSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGPSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.SELECT))
        {
            getAndListDetails(form.customControlGPSearch().getValue());
            if(isGPSelectionOnly())
            {
                form.btnOK().setEnabled(true);
            }   
        }
        else if (action.equals(GPAction.CLEAR))
        {
            clear();
        }
        else if (action.equals(GPAction.SEARCH))
        {
            clear();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onCustomControlGPSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGPSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.SELECT))
        {
            getAndListDetails(form.customControlGPSearch().getValue());
            if(isGPSelectionOnly())
            {
                form.btnOK().setEnabled(true);
            }   
        }
        else if (action.equals(GPAction.CLEAR))
        {
            clear();
        }
        else if (action.equals(GPAction.SEARCH))
        {
            clear();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onCustomControlGPSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGPSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.SELECT))
        {
            getAndListDetails(form.customControlGPSearch().getValue());
            if(isGPSelectionOnly())
            {
                form.btnOK().setEnabled(true);
            }   
        }
        else if (action.equals(GPAction.CLEAR))
        {
            clear();
        }
        else if (action.equals(GPAction.SEARCH))
        {
            clear();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.GPGrid.NEWGP :
            setActionAndFireEvent(GPAction.NEW);
        break;

        case GenForm.ContextMenus.GPGrid.EDITGP :
            setActionAndFireEvent(GPAction.EDIT);
        break;
    }
}
项目:AvoinApotti    文件:Logic.java   
/** 
 * Catches all events thrown by the CustomControlGpSearch. Clear button, Search button and
 * a selection in the grid. Custom control handles actual events, here need only to set 
 * the form to the correct state after the action
 * @param null
 * @return null
 */
protected void onCustomControlGpSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGpSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.CLEAR))
        {
            form.customControlGpSearch().setValue(null);
            form.getLocalContext().setGPVo(null);
            clearScreen();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SEARCH))
        {
            form.ctnGPDetails().setCollapsed(true);
            clearInstanceControls();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SELECT))
        {
            getSelectedGP();
            form.setMode(FormMode.VIEW);
        }
        if(action.equals(GPAction.NEW))
        {
            newInstance();  
        }
        if(action.equals(GPAction.EDIT))
        {
            editInstance();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onCustomControlGPSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGPSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.SELECT))
        {
            //getAndListDetails(form.customControlGPSearch().getValue());
            if(isGPSelectionOnly())
            {
                form.btnOK().setEnabled(true);
            }
            else
            {   
                if (ConfigFlag.DOM.GP_USE_SURGERIES.getValue())
                {
                    form.btnOK().setEnabled(GPSelectedRecordType.SURGERY.equals(form.customControlGPSearch().getComponentGridSelectedRecordType()));
                }
                else
                {
                    form.btnOK().setEnabled(GPSelectedRecordType.PRACTICE.equals(form.customControlGPSearch().getComponentGridSelectedRecordType()));
                }
            }
        }
        else if (action.equals(GPAction.CLEAR))
        {
            clear();
        }
        else if (action.equals(GPAction.SEARCH))
        {
            clear();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.GPGrid.NEWGP :
            setActionAndFireEvent(GPAction.NEW);
        break;

        case GenForm.ContextMenus.GPGrid.EDITGP :
            setActionAndFireEvent(GPAction.EDIT);
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onDynGrdGpsRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    enableContextMenu();
    if (row.getValue() instanceof GpLiteVo) 
        setSelectedRecordType(GPSelectedRecordType.GP);
    else if (row.getValue() instanceof GpLiteToPracticeLiteVo) 
        setSelectedRecordType(GPSelectedRecordType.PRACTICE);
    else if (row.getValue() instanceof LocShortVo) 
        setSelectedRecordType(GPSelectedRecordType.SURGERY);
    else
        setSelectedRecordType(GPSelectedRecordType.NONE); 
    setActionAndFireEvent(GPAction.SELECT);
}
项目:openMAXIMS    文件:Logic.java   
/** 
 * Catches all events thrown by the CustomControlGpSearch. Clear button, Search button and
 * a selection in the grid. Custom control handles actual events, here need only to set 
 * the form to the correct state after the action
 * @param null
 * @return null
 */
protected void onCustomControlGpSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGpSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.CLEAR))
        {
            form.customControlGpSearch().setValue(null);
            form.getLocalContext().setGPVo(null);
            clearScreen();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SEARCH))
        {
            form.ctnGPDetails().setCollapsed(true);
            clearInstanceControls();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SELECT))
        {
            getSelectedGP();
            form.setMode(FormMode.VIEW);
        }
        if(action.equals(GPAction.NEW))
        {
            newInstance();  
        }
        if(action.equals(GPAction.EDIT))
        {
            editInstance();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.GPGrid.NEWGP :
            setActionAndFireEvent(GPAction.NEW);
        break;

        case GenForm.ContextMenus.GPGrid.EDITGP :
            setActionAndFireEvent(GPAction.EDIT);
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
/** 
 * Catches all events thrown by the CustomControlGpSearch. Clear button, Search button and
 * a selection in the grid. Custom control handles actual events, here need only to set 
 * the form to the correct state after the action
 * @param null
 * @return null
 */
protected void onCustomControlGpSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGpSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.CLEAR))
        {
            form.customControlGpSearch().setValue(null);
            form.getLocalContext().setGPVo(null);
            clearScreen();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SEARCH))
        {
            form.ctnGPDetails().setCollapsed(true);
            clearInstanceControls();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SELECT))
        {
            getSelectedGP();
            form.setMode(FormMode.VIEW);
        }
        if(action.equals(GPAction.NEW))
        {
            newInstance();  
        }
        if(action.equals(GPAction.EDIT))
        {
            editInstance();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.GPGrid.NEWGP :
            setActionAndFireEvent(GPAction.NEW);
        break;

        case GenForm.ContextMenus.GPGrid.EDITGP :
            setActionAndFireEvent(GPAction.EDIT);
        break;
    }
}
项目:openmaxims-linux    文件:Logic.java   
/** 
 * Catches all events thrown by the CustomControlGpSearch. Clear button, Search button and
 * a selection in the grid. Custom control handles actual events, here need only to set 
 * the form to the correct state after the action
 * @param null
 * @return null
 */
protected void onCustomControlGpSearchValueChanged() throws PresentationLogicException
{
    GPAction action = form.customControlGpSearch().getActionEvent();

    if (action != null)
    {
        if (action.equals(GPAction.CLEAR))
        {
            form.customControlGpSearch().setValue(null);
            form.getLocalContext().setGPVo(null);
            clearScreen();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SEARCH))
        {
            form.ctnGPDetails().setCollapsed(true);
            clearInstanceControls();
            form.setMode(FormMode.VIEW);
        }
        if (action.equals(GPAction.SELECT))
        {
            getSelectedGP();
            form.setMode(FormMode.VIEW);
        }
        if(action.equals(GPAction.NEW))
        {
            newInstance();  
        }
        if(action.equals(GPAction.EDIT))
        {
            editInstance();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
public GPAction getActionEvent()
{
    return getGPAction();
}
项目:AvoinApotti    文件:Logic.java   
protected void onImbClearClick() throws PresentationLogicException
{
    clearControls();
    setGpAction(GPAction.CLEAR);
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdGpsSelectionChanged() throws PresentationLogicException
{
    enableContextMenu();
    setActionAndFireEvent(GPAction.SELECT);
}
项目:AvoinApotti    文件:Logic.java   
private void doSearch()
{
    searchGps();
    setGpAction(GPAction.SEARCH);
}
项目:AvoinApotti    文件:Logic.java   
private void setGpAction(GPAction enumValue)
{
    form.getLocalContext().setGpAction(enumValue);
}
项目:AvoinApotti    文件:Logic.java   
private GPAction getGPAction()
{
    return form.getLocalContext().getGpAction();
}
项目:AvoinApotti    文件:Logic.java   
private void setActionAndFireEvent(GPAction action)
{
    setGpAction(action);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
public GPAction getActionEvent()
{
    return getGPAction();
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbClearClick() throws PresentationLogicException
{
    clearControls();
    setGpAction(GPAction.CLEAR);
    setSelectedRecordType(GPSelectedRecordType.NONE);
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdGpsSelectionChanged() throws PresentationLogicException
{
    enableContextMenu();
    setSelectedRecordType(GPSelectedRecordType.GP);
    setActionAndFireEvent(GPAction.SELECT);
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{
    searchGps();
    setGpAction(GPAction.SEARCH);
    setSelectedRecordType(GPSelectedRecordType.NONE);
}
项目:openMAXIMS    文件:Logic.java   
private void setGpAction(GPAction enumValue)
{
    form.getLocalContext().setGpAction(enumValue);
}
项目:openMAXIMS    文件:Logic.java   
private GPAction getGPAction()
{
    return form.getLocalContext().getGpAction();
}
项目:openMAXIMS    文件:Logic.java   
private void setActionAndFireEvent(GPAction action)
{
    setGpAction(action);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
public GPAction getActionEvent()
{
    return getGPAction();
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbClearClick() throws PresentationLogicException
{
    clearControls();
    setGpAction(GPAction.CLEAR);
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdGpsSelectionChanged() throws PresentationLogicException
{
    enableContextMenu();
    setActionAndFireEvent(GPAction.SELECT);
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{
    searchGps();
    setGpAction(GPAction.SEARCH);
}
项目:openMAXIMS    文件:Logic.java   
private void setGpAction(GPAction enumValue)
{
    form.getLocalContext().setGpAction(enumValue);
}
项目:openMAXIMS    文件:Logic.java   
private GPAction getGPAction()
{
    return form.getLocalContext().getGpAction();
}
项目:openMAXIMS    文件:Logic.java   
private void setActionAndFireEvent(GPAction action)
{
    setGpAction(action);
    form.fireCustomControlValueChanged();
}
项目:openmaxims-linux    文件:Logic.java   
public GPAction getActionEvent()
{
    return getGPAction();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onImbClearClick() throws PresentationLogicException
{
    clearControls();
    setGpAction(GPAction.CLEAR);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdGpsSelectionChanged() throws PresentationLogicException
{
    enableContextMenu();
    setActionAndFireEvent(GPAction.SELECT);
}
项目:openmaxims-linux    文件:Logic.java   
private void doSearch()
{
    searchGps();
    setGpAction(GPAction.SEARCH);
}
项目:openmaxims-linux    文件:Logic.java   
private void setGpAction(GPAction enumValue)
{
    form.getLocalContext().setGpAction(enumValue);
}
项目:openmaxims-linux    文件:Logic.java   
private GPAction getGPAction()
{
    return form.getLocalContext().getGpAction();
}