@{
    if (ViewBag.IsFzLimit)
    {
        ViewBag.Title = "管家婆果易";
    }
    else
    {
        ViewBag.Title = "物联通管家婆";
    }
    Layout = "~/Views/Shared/_LayoutHome.cshtml";
}
<div id="wrapper">
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close">
            <i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse" style="background-color: #272727;">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element" style="width: 185px;">
                        <span>
                            <img id="imgHead" alt="image" class="img-circle" src="~/icon/管理员.png" style="cursor: pointer" onclick="" />
                            <a id="togg" alt="image" style="margin-left: 60px">
                                <img id="togg" src="~/icon/更多.png" />
                            </a>
                        </span>
                        <span class="clear" style="padding: 5px; font-size: 15px; color: rgba(243, 243, 245, 0.79)">
                            @*<strong class="font-bold">@ViewBag.LoginName</strong>*@
                        </span>
                    </div>

                    <div class="logo-element" style="height: 60px; padding: 0; line-height: 60px">
                        <a href="#" style="height: 60px; width: 75px; text-align: center; margin-left: -3px; padding: 8px">
                            <img src="~/icon/更多.png" />
                        </a>
                    </div>
                </li>
                <li>
                    <a href="#">
                        <img src="~/icon/物联通管理.png" />&nbsp;
                        @{
                            if (ViewBag.IsFzLimit)
                            {
                                <span class="nav-label">果易管理</span>
                            }
                            else
                            {
                                <span class="nav-label">物联通管理</span>
                            }
                        }
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="javascript:permissions('WltUserSet', 'UserConfiguration')">用户配置</a>
                        </li>
                        <li>
                            <a class="J_menuItem" id="UserConfiguration" href="~/WLTManage/UserConfiguration" style="display:none">用户配置</a>
                        </li>
                        <li>
                            <a class="J_menuItem" id="UserRights" href="~/WLTManage/UserRights" style="display:none">用户权限</a>
                        </li>
                        <li>
                            <a href="javascript:permissions('WltUserLimit', 'UserRights')">用户权限</a>
                        </li>
                        @{
                            if (!ViewBag.IsFzLimit)
                            {
                            <li>
                                <a class="J_menuItem" id="AutoCheckIn" href="~/WLTManage/AutoCheckIn"  style="display:none">自动签到</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltSignSet', 'AutoCheckIn')">自动签到</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="AttendanceSetting" href="~/WLTManage/AttendanceSetting">考勤设置</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="PeriodPromotion" href="~/WLTManage/PeriodPromotion">时段促销</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="WaysOfGiving" href="~/WLTManage/WaysOfGiving">搭赠销售</a>
                            </li>
                            }
                        }
                        <li>
                            <a class="J_menuItem" id="CommodityInformation" href="~/WLTManage/CommodityInformation" style="display:none">商品信息</a>
                        </li>
                        <li>
                            <a href="javascript:permissions('WltPtype', 'CommodityInformation')">商品信息</a>
                        </li>
                        @{
                            if (!ViewBag.IsFzLimit)
                            {
                            <li>
                                <a class="J_menuItem" id="CustomerInformation" href="~/WLTManage/CustomerInformation" style="display:none">客户信息</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltCus', 'CustomerInformation')" onclick="">客户信息</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="ModifyCustomer" href="~/WLTManage/ModifyCustomer" style="display:none">修改客户</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltUpdateCus', 'ModifyCustomer')" onclick="">修改客户</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="CollectionInformation" href="~/WLTManage/CollectionInformation" style="display:none">收藏品信息</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltCollection', 'CollectionInformation')" onclick="">收藏品信息</a>
                            </li>
                            }
                        }
                    </ul>
                </li>
                @{
                    if (!ViewBag.IsFzLimit)
                    {
                    <li>
                        <a href="#">
                            <img src="~/icon/巡店管理.png" />&nbsp;
                                <span class="nav-label">巡店管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" id="V_Distribution" href="~/Shop/V_Distribution" style="display:none">配货协议</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltPtypeAgreement', 'V_Distribution')" onclick="">配货协议</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="V_LineSetting" href="~/Shop/V_LineSetting" style="display:none">线路设置</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltLodeSet', 'V_LineSetting')" onclick="">线路设置</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="V_CustomerLine" href="~/Shop/V_CustomerLine" style="display:none">线路客户</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltCusLode', 'V_CustomerLine')" onclick="">线路客户</a>
                            </li>
                            @{
                        if (ViewBag.isHighModle)
                        {
                                <li><a class="J_menuItem" id="V_CallPlanning" href="~/Shop/V_CallPlanning" style="display:none">拜访规划</a> </li>
                                <li>
                                    <a href="javascript:permissions('WltEmpCusSet', 'V_CallPlanning')" onclick="">拜访规划</a>
                                </li>
                        }
                        else
                        {
                                <li><a class="J_menuItem" id="V_SimpleCallPlanning" href="~/Shop/V_SimpleCallPlanning" style="display:none">简单拜访</a></li>
                                <li>
                                    <a href="javascript:permissions('WltEmpCusSet', 'V_SimpleCallPlanning')" onclick="">简单拜访</a>
                                </li>
                        }
                            }
                            <li>
                                <a class="J_menuItem" id="V_ViewVisit" href="~/Shop/V_ViewVisit" style="display:none">查看拜访</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltLookEmpCus', 'V_ViewVisit')" onclick="">查看拜访</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="V_Jurisdiction" href="~/Shop/V_Jurisdiction" style="display:none" >管辖人员</a>
                            </li>
                             <li>
                                <a href="javascript:permissions('WltSetUserRight', 'V_Jurisdiction')" onclick="">管辖人员</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <img src="~/icon/数据查询.png" />&nbsp;
                                <span class="nav-label">数据查询</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="~/DataQuery/PhotoSummary">照片汇总</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="PhotoQuery" href="~/DataQuery/PhotoQuery" style="display:none">照片查询</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltPicManager', 'PhotoQuery')" onclick="">照片查询</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="CustomerLayout" href="~/DataQuery/CustomerLayout" style="display:none">客户分布</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltCusAddress', 'CustomerLayout')" onclick="">客户分布</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="BusinessOpportunities" href="~/DataQuery/BusinessOpportunities" style="display:none">商机客户</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltCusinfoo', 'BusinessOpportunities')" onclick="">商机客户</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="AttendanceStatistics" href="~/DataQuery/AttendanceStatistics" style="display:none">签到统计表</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltSignCountt', 'AttendanceStatistics')" onclick="">签到统计表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="AttendanceList" href="~/DataQuery/AttendanceList" style="display:none">签到明细表</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltSignDetaill', 'AttendanceList')" onclick="">签到明细表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="NewKaoQianCount" href="~/DataQuery/NewKaoQianCount" style="display:none">考勤统计表</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltSignCountData', 'NewKaoQianCount')" onclick="">考勤统计表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="~/DataQuery/CustomerCard">客户卡单</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="~/DataQuery/PunchList">打卡清单</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="CusPtypeStockcs" href="~/DataQuery/CusPtypeStockcs" style="display:none">客户商品库存量</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltCusPtypeQty', 'CusPtypeStockcs')" onclick="">客户商品库存量</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="CusSignimageCountcs" href="~/DataQuery/CusSignimageCountcs" style="display:none">客户照片签到表</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltCusPicCount', 'CusSignimageCountcs')" onclick="">收藏品信息</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="ServiceVisitSchedule" href="~/DataQuery/ServiceVisitSchedule" style="display:none">业务拜访行程表</a>
                            </li>
                            <li>
                                <a href="javascript:permissions('WltEmpLodeData', 'ServiceVisitSchedule')" onclick="">业务拜访行程表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="~/DataQuery/SaleReportPriceList">客户变价销售表</a>
                            </li>
                        </ul>
                    </li>
                        if (ViewBag.isDealersView)
                        {

                    <li>
                        <a href="#">
                            <img src="~/icon/经销商版.png" />&nbsp;
                                <span class="nav-label">经销商版</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="~/DealerEdition/Notice">公告信息</a>
                            </li>
                            <li>
                                <a class="J_menuItem" id="DealerUserConfiguration" href="~/DealerEdition/DealerUserConfiguration">经销商用户配置</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="~/DealerEdition/DealerUserRights">经销商用户权限</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="~/DealerEdition/DealerRegistrInfo">经销商注册信息</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="~/DealerEdition/DealerLoginInformation">经销商登录信息</a>
                            </li>
                        </ul>
                    </li>
                }
                        }
                        if (!ViewBag.IsFzLimit)
                        {
                    <li>
                        <a href="#">
                            <img src="~/icon/工作台.png" />&nbsp;
                        <span class="nav-label">工作台</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" id="TableSetting" href="~/WorkBench/TableSetting">工作台设置</a>
                            </li>
                        </ul>
                    </li>
                        }

                    }
                <li>
                    <a href="#">
                        <img src="~/icon/微信助手.png" />&nbsp;
                        <span class="nav-label">微信助手</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" id="InformationSetting" href="~/WeChatAssistant/InformationSetting">信息设置</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="#">
                        <img src="~/icon/注册.png" />&nbsp;
                        <span class="nav-label">软件注册</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" id="RegistrationInformation" href="~/Register/RegistrationInformation" style="display:none">注册信息</a>
                        </li>
                        <li>
                            <a href="javascript:permissions('WltRegisterInfo', 'RegistrationInformation')">注册信息</a>
                        </li>
                        <li>
                            <a class="J_menuItem" id="LoginInformation" href="~/Register/LoginInformation"  style="display:none">登录信息</a>
                        </li>
                        <li>
                            <a href="javascript:permissions('WltRegisterUserLogin', 'LoginInformation')" onclick="">登录信息</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="#">
                        <img src="~/icon/帮助20.png" />&nbsp;
                        <span class="nav-label">帮助说明</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="" href="http://down.woolinte.com/setup/bwb/bwbkhd.exe">远程协助</a>
                        </li>
                        <li>
                            <a target="_blank"  href="http://www.wltrj.com/help">在线帮助</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom hide">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-default " href="#">
                        <i class="fa fa-bars"></i>
                    </a>
                </div>
                @*<ul class="nav navbar-top-links navbar-right">
                    <li class="dropdown hidden-xs">
                        <a class="right-sidebar-toggle" aria-expanded="false">
                            <i class="fa fa-tasks"></i>主题
                        </a>
                    </li>
                </ul>*@
            </nav>
        </div>
        <div class="row content-tabs">
            <button class="roll-nav roll-left J_tabLeft">
                <i class="fa fa-backward"></i>
            </button>
            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <a href="javascript:;" class="active J_menuTab" data-id="index_v1.html">首页</a>
                </div>
            </nav>
            <button class="roll-nav roll-right J_tabRight">
                <i class="fa fa-forward"></i>
            </button>
            <div class="btn-group roll-nav roll-right">
                <button class="dropdown J_tabClose" data-toggle="dropdown">
                    关闭操作<span class="caret"></span>
                </button>
                <ul role="menu" class="dropdown-menu dropdown-menu-right">
                    @*<li class="J_tabShowActive">
                            <a>定位当前选项卡</a>
                        </li>*@
                    @*<li class="divider"></li>*@
                    <li class="J_tabCloseAll">
                        <a>关闭全部选项卡</a>
                    </li>
                    <li class="J_tabCloseOther">
                        <a>关闭其他选项卡</a>
                    </li>
                </ul>
            </div>
            <a href="~/Login/Default" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i>退出</a>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="~/Home/HomePage?v=4.0" frameborder="0" data-id="index_v1.html" seamless></iframe>
        </div>
        <div class="footer">
            <div class="pull-right">
                &copy; 2016-2017 <a href="javascript;" target="_blank"></a>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function permissions(limit, id) {
        $.ajax({
            url: "@Url.Action("Permissions", "Home")",
            data: { limit: limit },
            datatype: "text",
            type: "post",
            success: function (data) {
                if (data == "no") {
                    layer.msg("权限不足！"); return false;
                } else {
                    $("#" + id).click();
                }
            }
        });
    }
</script>
