metroMenu.jsp 11.0 KB
<%--
  Created by IntelliJ IDEA.
  User: kangmor
  Date: 2015/9/14
  Time: 9:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="UTF-8" %>
<ul class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
    <!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
    <li class="sidebar-toggler-wrapper">
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        <div class="sidebar-toggler">
        </div>
        <!-- END SIDEBAR TOGGLER BUTTON -->
    </li>
    <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->
    <%--<li>--%>
    <%--<a href="${ctx}/storage/kanban.html">--%>
    <%--<i class="icon-list"></i>--%>
    <%--<span class="title">KANBAN</span>--%>
    <%--<span class="arrow "></span>--%>
    <%--</a>--%>
    <%--</li>--%>

    <%--<c:if test="${screen == 'tablet'}">--%>
        <%--<li class="start">--%>
            <%--<a href="${ctx}/storage/boxChart.html">--%>
                <%--<i class="icon-home"></i>--%>
                <%--<span class="title"><fmt:message key="menu.home"/></span>--%>
            <%--</a>--%>
        <%--</li>--%>
        <%--<li>--%>
            <%--<a href="${ctx}/component/storagePosFind.html">--%>
                <%--<i class="icon-screen-tablet"></i>--%>
                <%--<fmt:message key="menu.findout"/>--%>
            <%--</a>--%>
        <%--</li>--%>
    <%--</c:if>--%>


    <%--<c:if test="${screen != 'tablet'}">--%>
    <%--<li class="start">--%>
        <%--<a href="${ctx}/storage/chart.html">--%>
            <%--<i class="icon-home"></i>--%>
            <%--<span class="title"><fmt:message key="menu.home"/></span>--%>
        <%--</a>--%>
    <%--</li>--%>

        <security:authorize ifAnyGranted="ROLE_MANAGE_STACK_OUT">
    <li>
        <%--<a href="${ctx}/storage/areaView.html">--%>
            <a href="${ctx}/storage/boxChart.html">
            <i class="icon-screen-tablet"></i>
            <span class="title"><fmt:message key="menu.kanban"/></span>
        </a>
    </li>

        </security:authorize>

    <%--产品管理,BOM管理,出库    权限--%>

    <security:authorize ifAnyGranted="ROLE_MANAGE_COMPONENT">
        <li id="menu-component">
            <a href="javascript:;">
                <i class="icon-grid"></i>
          <span class="title">
            <fmt:message key="menu.product"/></span>
                <span class="arrow "></span>
            </a>
            <ul class="sub-menu">

                <li>
                    <a href="${ctx}/component/componentSearch.html?type=0">
                        <fmt:message key="menu.product.component"/></a>
                </li>

                <li>
                    <a href="${ctx}/component/componentSearch.html?type=1">
                        <fmt:message key="menu.product.solder"/></a>
                </li>

                <li>
                    <a href="${ctx}/component/componentSearch.html?type=2">
                        <fmt:message key="menu.product.pcb"/></a>
                </li>

                <li>
                    <a href="${ctx}/component/componentSearch.html?type=3">
                        <fmt:message key="menu.product.others"/></a>
                </li>


                <c:if test="${loginUser.debug}">
                    <li>
                        <a href="${ctx}/component/componentSearch.html?type=4">
                            <fmt:message key="menu.product.fixture"/></a>
                    </li>
                </c:if>

            </ul>
        </li>
    </security:authorize>



  <security:authorize ifAnyGranted="ROLE_MANAGE_STACK_OUT, ROLE_MANAGE_FEEDER">
    <li id="menu-workOrder">
        <a href="javascript:;">
            <i class="icon-list"></i>
            <span class="title">
             <fmt:message key="menu.order"/>
            </span>
            <span class="arrow "></span>
        </a>
        <ul class="sub-menu">
        <security:authorize ifAnyGranted="ROLE_MANAGE_FEEDER">
            <li>
                <a href="${ctx}/workOrder/feederSearch.html">
                    <fmt:message key="menu.order.management"/>
                </a>
            </li>

        </security:authorize>

        <security:authorize ifAnyGranted="ROLE_MANAGE_STACK_OUT">
            <li>
                <a href="${ctx}/component/storagePosFind.html" name="workOrder">
                    <fmt:message key="menu.findout"/>
                </a>
            </li>
            <li>
                <a href="${ctx}/workOrder/specifiedBatchSearch.html">
                    <fmt:message key="menu.inRule"/>
                </a>
            </li>
            <li>
                <a href="${ctx}/workOrder/checkOutSettings.html" name="workOrder">
                    <fmt:message key="menu.outRule"/>
                </a>
            </li>
            <%--<li>--%>
                <%--<a href="${ctx}/workOrder/feederSearch.html">--%>
                    <%--<fmt:message key="BOM 管理"/>--%>
                <%--</a>--%>
            <%--</li>--%>

        </security:authorize>
        </ul>
    </li>
  </security:authorize>

  <security:authorize ifAnyGranted="ROLE_MANAGE_STACK_OUT">
    <li id="menu-cloud">
        <a href="javascript:;">
            <i class="icon-cloud-download"></i>
            <span class="title"><fmt:message key="menu.cloud"/></span>
            <span class="arrow "></span>
        </a>
        <ul class="sub-menu">
            <li>
                <a href="${ctx}/component/inventory.html" name="cloud">
                    <fmt:message key="menu.cloud.inventory"/>
                </a>
            </li>
            <li>
                <a href="${ctx}/component/ReelNumModify.html" name="cloud">
                    <fmt:message key="menu.cloud.numModify"/>
                </a>
            </li>
        </ul>
    </li>

  </security:authorize>


  <security:authorize ifAnyGranted="ROLE_MANAGE_STACK_OUT">
    <li id="menu-storage">
        <a href="javascript:;">
            <i class="icon-layers"></i>
            <span class="title"><fmt:message key="menu.box"/></span>
            <span class="arrow "></span>
        </a>
        <ul class="sub-menu">
            <c:if test="${loginUser.debug}">
                <li>
                <a href="${ctx}/storage/storageSearch.html">
                    <fmt:message key="menu.box.manage"/>
                </a>
                </li>
            </c:if>
            <li>
                <a href="${ctx}/storage/manualStorage.html?type=0">
                    <fmt:message key="menu.box.boxi"/>
                </a>
            </li>
            <li>
                <a href="${ctx}/storage/manualStorage.html?type=1">
                    <fmt:message key="menu.box.liteBox"/>
                </a>
            </li>
            <li>
                <a href="${ctx}/storage/virtualStorage.html">
                    <fmt:message key="menu.box.virtualStorage"/>
                </a>
            </li>
        </ul>
    </li>
  </security:authorize>

    <%--条码管理--%>
    <security:authorize ifAnyGranted="ROLE_MANAGE_BARCODE">
        <li id="menu-barcode">
            <a href="javascript:;">
                <i class="icon-printer"></i>
                <span class="title"><fmt:message key="menu.barCode"/></span>
                <span class="arrow "></span>
            </a>
            <ul class="sub-menu">
                <li>
                    <a href="${ctx}/barcode/barcodeUpdate.html">
                        <fmt:message key="menu.barCode.new"/></a>
                </li>
                <li>
                    <a href="${ctx}/barcode/barcodeSearch.html">
                        <fmt:message key="menu.barCode.search"/></a>
                </li>
                <li>
                    <a href="${ctx}/barcode/barcodeSettings.html">
                        <fmt:message key="menu.barCode.settings"/></a>
                </li>
            </ul>
        </li>
    </security:authorize>


 <security:authorize ifAnyGranted="ROLE_MANAGE_DATALOG">
    <li id="menu-data">
        <a href="javascript:;">
            <i class="icon-bar-chart"></i>
            <span class="title"><fmt:message key="menu.bigdata"/></span>
            <span class="arrow "></span>
        </a>
        <ul class="sub-menu">

            <li>
                <a href="${ctx}/system/runStatus.html" name="data">
                    <fmt:message key="menu.bigdata.runStatus" /></a>
            </li>

            <%--<li>--%>
                <%--<a href="${ctx}/system/inOutList.html" name="data">--%>
                    <%--<fmt:message key="menu.bigdata.inOutList" /></a>--%>
            <%--</li>--%>

            <li>
                <a href="${ctx}/system/dataReport.html" name="data">
                    <fmt:message key="menu.bigdata.dataReport" /></a>
            </li>

            <li>
                <a href="${ctx}/dataLog/search.html" name="data">
                    <fmt:message key="menu.bigdata.dataLog" /></a>
            </li>
            <li>
                <a href="${ctx}/dataLog/alarmInfoSearch.html" name="data">
                    <fmt:message key="menu.bigdata.errorLog" /></a>
            </li>
        </ul>
    </li>
 </security:authorize>

    <%--角色及权限管理--%>
    <security:authorize ifAnyGranted="ROLE_MANAGE_USER,ROLE_MANAGE_ROLE">
        <li id="menu-system">
            <a href="javascript:;">
                <i class="icon-user-follow"></i>
                <span class="title"><fmt:message key="menu.system"/></span>
                <span class="arrow "></span>
            </a>
            <ul class="sub-menu">
                <security:authorize ifAnyGranted="ROLE_MANAGE_USER">
                    <li>
                        <a href="${ctx}/user/users.html" name="system">
                                <%--<i class="icon-home"></i>--%>
                            <fmt:message key="menu.user.account"/></a>
                    </li>
                </security:authorize>

                <security:authorize ifAnyGranted="ROLE_MANAGE_ROLE">
                    <li>
                        <a href="${ctx}/user/roleSearch.html" name="system">
                                <%--<i class="icon-basket"></i>--%>
                            <fmt:message key="menu.user.role"/></a>
                    </li>
                </security:authorize>

                <%--<li>--%>
                    <%--<a href="${ctx}/system/maintenance.html" name="system">--%>
                            <%--&lt;%&ndash;<i class="icon-home"></i>&ndash;%&gt;--%>
                        <%--<fmt:message key="menu.system.maintenance"/></a>--%>
                <%--</li>--%>

                <li>
                    <a href="${ctx}/system/settings.html" name="system">
                            <%--<i class="icon-home"></i>--%>
                        <fmt:message key="menu.system.settings"/></a>
                </li>
            </ul>
            </a>
        </li>
    </security:authorize>
    <%--</c:if>--%>
</ul>