OFBIZ 菜单权限 配置

1、新加的模块分配给用户权限组 需要的权限:

OFBTOOLS_VIEW 访问库存OFBiz管理程序的权限

POSMGR_ADMIN POS-管理员 (新加模块管理员权限)

 

2、分配某个模块二级菜单的权限

POSMGR_ADMIN POS-管理员 (新加模块管理员权限,肯定要加,没有这个权限,连模块都进不了)

SECURITY_ADMIN 在安全管理屏幕中的全部操作。(进入到模块下菜单的权限)

 

XXXScreen.xml 代码:

复制代码
<screen name="showTransactionMgr">
        <section>
            <actions>
                <property-map resource="PosMgrUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="layoutSettings.styleSheets[+0]" value="/images/eshouefu/css/main.css" global="true"/>
                <set field="layoutSettings.styleSheets[+0]" value="/images/eshouefu/css/WdatePicker.css" global="true"/>
                <set field="posmgrTabButtonItem" value="transactionMgr"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="pre-body">
                        <section>
                            <condition>
                                <if-service-permission service-name="securityPermissionCheck" main-action="VIEW"/>
                            </condition>
                            <widgets>
                                <include-menu name="PosMgrTabBar" location="component://posmgr/widget/PosMgrMenus.xml"/>
                            </widgets>
                        </section>
                    </decorator-section>
                    <decorator-section name="body">
                        <platform-specific>
                            <html>
                                <html-template location="component://posmgr/webapp/posmgr/pages/transactionMgr.ftl" />
                            </html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
复制代码

XXXMenu.xml:

复制代码
<menu name="PosMgrTabBar" default-menu-item-name="transactionQuery" default-selected-style="selected"
        menu-container-style="button-bar tab-bar" type="simple" selected-menuitem-context-field-name="tabButtonItem">
        <menu-item name="transactionQuery" title="${uiLabelMap.TransactionQuery}">
            <condition>
                <if-has-permission permission="POSMGR" action="_ADMIN"/> 
            </condition>
            <link target="transactionQuery"/>
        </menu-item>
        <menu-item name="statementDownload" title="${uiLabelMap.StatementDownload}">
            <condition>
                <if-has-permission permission="POSMGR" action="_ADMIN"/>
            </condition>
            <link target="statementDownload"/>
        </menu-item>
        <menu-item name="statementPrint" title="${uiLabelMap.StatementPrint}">
            <condition>
                <if-has-permission permission="POSMGR" action="_ADMIN"/>
            </condition>
            <link target="statementPrint"/>
        </menu-item>
    </menu>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值