Java 类ims.core.vo.lookups.ElectronicPrescribingButton 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateGrid(ElectronicPrescribingConfigVoCollection listElectronicPrescribing)
{
    if (listElectronicPrescribing == null)
        return;

    for (int i = 0 ; i < listElectronicPrescribing.size() ; i++)
    {
        for ( int j = 0 ; j < form.grdDetails().getRows().size() ; j++)
        {
            if (form.grdDetails().getRows().get(j).getValue() instanceof ElectronicPrescribingButton
                && form.grdDetails().getRows().get(j).getValue().equals(listElectronicPrescribing.get(i).getButton()) )
            {
                grdDetailsRow row = form.grdDetails().getRows().get(j);
                row.setColButtonText(listElectronicPrescribing.get(i).getButtonText());
                row.setTooltipForColButtonText(listElectronicPrescribing.get(i).getButtonText());

                row.setColLabelText(listElectronicPrescribing.get(i).getLabelText());
                row.setTooltipForColLabelText(listElectronicPrescribing.get(i).getLabelText());

                row.setColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());
                row.setTooltipForColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());

                row.setColParameter(listElectronicPrescribing.get(i).getButtonParameter());
                row.setTooltipForColParameter(listElectronicPrescribing.get(i).getButtonParameter());

                row.setColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));
                row.setTooltipForColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));

                row.setValue(listElectronicPrescribing.get(i));
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void editConfig()
{
    if (form.grdDetails().getValue() instanceof ElectronicPrescribingButton)
    {
        ElectronicPrescribingConfigVo voElect = new ElectronicPrescribingConfigVo();
        voElect.setButton((ElectronicPrescribingButton)form.grdDetails().getValue());
        form.getGlobalContext().Admin.setElectronicPrescribingConfigVo(voElect);
    }
    else if (form.grdDetails().getValue() instanceof ElectronicPrescribingConfigVo)
            form.getGlobalContext().Admin.setElectronicPrescribingConfigVo((ElectronicPrescribingConfigVo)form.grdDetails().getValue());

    engine.open(form.getForms().Admin.ElectronicPrescribingConfigDialog);
}
项目:openMAXIMS    文件:Logic.java   
private boolean ipButtonSelected() 
{
    if(form.getGlobalContext().Admin.getElectronicPrescribingConfigVo() == null)
        return false;

    if(ElectronicPrescribingButton.IPBUTTONONE.equals(form.getGlobalContext().Admin.getElectronicPrescribingConfigVo().getButton())
            || ElectronicPrescribingButton.IPBUTTONTWO.equals(form.getGlobalContext().Admin.getElectronicPrescribingConfigVo().getButton())
            || ElectronicPrescribingButton.IPBUTTONTHREE.equals(form.getGlobalContext().Admin.getElectronicPrescribingConfigVo().getButton())
            || ElectronicPrescribingButton.IPBUTTONFOUR.equals(form.getGlobalContext().Admin.getElectronicPrescribingConfigVo().getButton()))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(ElectronicPrescribingConfigVoCollection listElectronicPrescribing)
{
    if (listElectronicPrescribing == null)
        return;

    for (int i = 0 ; i < listElectronicPrescribing.size() ; i++)
    {
        for ( int j = 0 ; j < form.grdDetails().getRows().size() ; j++)
        {
            if (form.grdDetails().getRows().get(j).getValue() instanceof ElectronicPrescribingButton
                && form.grdDetails().getRows().get(j).getValue().equals(listElectronicPrescribing.get(i).getButton()) )
            {
                grdDetailsRow row = form.grdDetails().getRows().get(j);
                row.setColButtonText(listElectronicPrescribing.get(i).getButtonText());
                row.setTooltipForColButtonText(listElectronicPrescribing.get(i).getButtonText());

                row.setColLabelText(listElectronicPrescribing.get(i).getLabelText());
                row.setTooltipForColLabelText(listElectronicPrescribing.get(i).getLabelText());

                row.setColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());
                row.setTooltipForColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());

                row.setColParameter(listElectronicPrescribing.get(i).getButtonParameter());
                row.setTooltipForColParameter(listElectronicPrescribing.get(i).getButtonParameter());

                row.setColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));
                row.setTooltipForColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));

                row.setValue(listElectronicPrescribing.get(i));
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void editConfig()
{
    if (form.grdDetails().getValue() instanceof ElectronicPrescribingButton)
    {
        ElectronicPrescribingConfigVo voElect = new ElectronicPrescribingConfigVo();
        voElect.setButton((ElectronicPrescribingButton)form.grdDetails().getValue());
        form.getGlobalContext().Admin.setElectronicPrescribingConfigVo(voElect);
    }
    else if (form.grdDetails().getValue() instanceof ElectronicPrescribingConfigVo)
            form.getGlobalContext().Admin.setElectronicPrescribingConfigVo((ElectronicPrescribingConfigVo)form.grdDetails().getValue());

    engine.open(form.getForms().Admin.ElectronicPrescribingConfigDialog);
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(ElectronicPrescribingConfigVoCollection listElectronicPrescribing)
{
    if (listElectronicPrescribing == null)
        return;

    for (int i = 0 ; i < listElectronicPrescribing.size() ; i++)
    {
        for ( int j = 0 ; j < form.grdDetails().getRows().size() ; j++)
        {
            if (form.grdDetails().getRows().get(j).getValue() instanceof ElectronicPrescribingButton
                && form.grdDetails().getRows().get(j).getValue().equals(listElectronicPrescribing.get(i).getButton()) )
            {
                grdDetailsRow row = form.grdDetails().getRows().get(j);
                row.setColButtonText(listElectronicPrescribing.get(i).getButtonText());
                row.setTooltipForColButtonText(listElectronicPrescribing.get(i).getButtonText());

                row.setColLabelText(listElectronicPrescribing.get(i).getLabelText());
                row.setTooltipForColLabelText(listElectronicPrescribing.get(i).getLabelText());

                row.setColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());
                row.setTooltipForColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());

                row.setColParameter(listElectronicPrescribing.get(i).getButtonParameter());
                row.setTooltipForColParameter(listElectronicPrescribing.get(i).getButtonParameter());

                row.setColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));
                row.setTooltipForColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));

                row.setValue(listElectronicPrescribing.get(i));
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void editConfig()
{
    if (form.grdDetails().getValue() instanceof ElectronicPrescribingButton)
    {
        ElectronicPrescribingConfigVo voElect = new ElectronicPrescribingConfigVo();
        voElect.setButton((ElectronicPrescribingButton)form.grdDetails().getValue());
        form.getGlobalContext().Admin.setElectronicPrescribingConfigVo(voElect);
    }
    else if (form.grdDetails().getValue() instanceof ElectronicPrescribingConfigVo)
            form.getGlobalContext().Admin.setElectronicPrescribingConfigVo((ElectronicPrescribingConfigVo)form.grdDetails().getValue());

    engine.open(form.getForms().Admin.ElectronicPrescribingConfigDialog);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid(ElectronicPrescribingConfigVoCollection listElectronicPrescribing)
{
    if (listElectronicPrescribing == null)
        return;

    for (int i = 0 ; i < listElectronicPrescribing.size() ; i++)
    {
        for ( int j = 0 ; j < form.grdDetails().getRows().size() ; j++)
        {
            if (form.grdDetails().getRows().get(j).getValue() instanceof ElectronicPrescribingButton
                && form.grdDetails().getRows().get(j).getValue().equals(listElectronicPrescribing.get(i).getButton()) )
            {
                grdDetailsRow row = form.grdDetails().getRows().get(j);
                row.setColButtonText(listElectronicPrescribing.get(i).getButtonText());
                row.setTooltipForColButtonText(listElectronicPrescribing.get(i).getButtonText());

                row.setColLabelText(listElectronicPrescribing.get(i).getLabelText());
                row.setTooltipForColLabelText(listElectronicPrescribing.get(i).getLabelText());

                row.setColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());
                row.setTooltipForColExePath(listElectronicPrescribing.get(i).getButtonExecutablePath());

                row.setColParameter(listElectronicPrescribing.get(i).getButtonParameter());
                row.setTooltipForColParameter(listElectronicPrescribing.get(i).getButtonParameter());

                row.setColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));
                row.setTooltipForColRoles(createRolesText(listElectronicPrescribing.get(i).getButtonDeniedRoleAccess()));

                row.setValue(listElectronicPrescribing.get(i));
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void editConfig()
{
    if (form.grdDetails().getValue() instanceof ElectronicPrescribingButton)
    {
        ElectronicPrescribingConfigVo voElect = new ElectronicPrescribingConfigVo();
        voElect.setButton((ElectronicPrescribingButton)form.grdDetails().getValue());
        form.getGlobalContext().Admin.setElectronicPrescribingConfigVo(voElect);
    }
    else if (form.grdDetails().getValue() instanceof ElectronicPrescribingConfigVo)
            form.getGlobalContext().Admin.setElectronicPrescribingConfigVo((ElectronicPrescribingConfigVo)form.grdDetails().getValue());

    engine.open(form.getForms().Admin.ElectronicPrescribingConfigDialog);
}