

@{
    Layout = null;
}
@using System.Data;
@using GS.BillCommon.Models.DataModel;
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Switch Communication Management System-Query Side</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all">
</head>
<body class="layui-layout-body">

    <div id="LAY_app">
        <div class="layui-layout layui-layout-admin">
            <div class="layui-header">
                <!-- 头部区域 -->
                <ul class="layui-nav layui-layout-left">
                    <li class="layui-nav-item layadmin-flexible" lay-unselect>
                        <a href="javascript:;" layadmin-event="flexible" title="Side expansion">
                            <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" layadmin-event="refresh" title="Refresh">
                            <i class="layui-icon layui-icon-refresh-3"></i>
                        </a>
                    </li>
                </ul>
                <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">

                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="theme">
                            <i class="layui-icon layui-icon-theme"></i>
                        </a>
                    </li>
                    @*<li class="layui-nav-item layui-hide-xs" lay-unselect>
                            <a href="javascript:;" layadmin-event="note">
                                <i class="layui-icon layui-icon-note"></i>
                            </a>
                        </li>*@
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="fullscreen">
                            <i class="layui-icon layui-icon-screen-full"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;">
                            <i class="layui-icon layui-icon-user"></i>
                            <cite>@(((Admin)System.Web.HttpContext.Current.Session["adminInfo"]).UserName)</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a lay-href="@Url.Action("AboutsEN","Home")" id="Version" style="cursor:pointer;">
                                    <i class="layui-icon layui-icon-about"></i>
                                    Version
                                </a>
                            </dd>
                            <dd>
                                <a lay-href="@Url.Action("IndexEN","UpdatePassWord")" id="UpdatePassWord" style="cursor:pointer;">
                                    <i class="layui-icon layui-icon-password"></i>
                                    Change Password
                                </a>
                            </dd>
                            <dd>
                                <a lay-href="@Url.Action("LanguagePage","Home")" style="cursor:pointer;">
                                    <i class="layui-icon layui-icon-website"></i>
                                    Language
                                </a>
                            </dd>
                            <dd>
                                <a href="/Login/Index">
                                    <i class="layui-icon layui-icon-close-fill"></i>
                                    Logout
                                </a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>

            <!-- 侧边菜单 -->
            <div class="layui-side layui-side-menu">
                <div class="layui-side-scroll">
                    <div class="layui-logo" lay-href="@Url.Action("ChargingEN","Exhibition")">
                        <span>Query Side</span>
                    </div>

                    <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
                        <li id="li_Home" data-name="home" class="layui-nav-item layui-nav-itemed">
                            <a href="javascript:;" lay-tips="Home page" lay-direction="2">
                                <i class="layui-icon layui-icon-home"></i>
                                <cite>Home page</cite>
                            </a>
                            <dl class="layui-nav-child">
                                <dd id="dd_Record" data-name="console">
                                    <a lay-href="@Url.Action("ChargingEN","Exhibition")">Billing</a>
                                </dd>
                                <dd id="dd_Recording" data-name="console" style="display:none">
                                    <a lay-href="@Url.Action("SoundRecordingEN","Exhibition")">Recording</a>
                                </dd>
                                <dd id="dd_ZJJ" data-name="console" style="display:none">
                                    <a lay-href="@Url.Action("MiddlewareEN","Exhibition")">Middleware</a>
                                </dd>
                                <dd id="dd_GJDX" data-name="console" style="display:none">
                                    <a lay-href="@Url.Action("HangUpSMSEN","Exhibition")">SMS on hook</a>
                                </dd>
                            </dl>
                        </li>
                        <li data-name="component" class="layui-nav-item">
                            <a href="javascript:;" lay-tips="Query Records" lay-direction="2">
                                <i class="layui-icon layui-icon-component"></i>
                                <cite>Query Records</cite>
                            </a>
                            <dl class="layui-nav-child">
                                <dd data-name="recording">
                                    <a lay-href="@Url.Action("RecordReportFormEN","Home")">Call Records</a>
                                </dd>
                                <dd id="dd_RecordingR" data-name="recording" style="display:none">
                                    <a lay-href="@Url.Action("RecordSoundFormEN","Home")">Recording</a>
                                </dd>
                                <dd id="dd_THFY" data-name="recording">
                                    <a lay-href="@Url.Action("CallChargeQuotaRecordFormEN","Home")">Call cost warning</a>
                                </dd>
                                <dd id="dd_YC" data-name="recording">
                                    <a lay-href="@Url.Action("InceptExceptionRecordFormEN","Home")">Abnormal warning</a>
                                </dd>
                                <dd id="dd_GJDXA" data-name="recording" style="display:none">
                                    <a lay-href="@Url.Action("HangUpSmsSendRecordFormEN","Home")">On-hook SMS sending</a>
                                </dd>
                                <dd id="dd_GJDXB" data-name="recording" style="display:none">
                                    <a lay-href="@Url.Action("GoodbyeSMSWarningRecordFormEN","Home")">On-hook SMS warning</a>
                                </dd>
                                <dd id="dd_Voicemail" data-name="recording" style="display:none">
                                    <a lay-href="@Url.Action("VoicemailRecordFormEN","Home")">Voicemail record</a>
                                </dd>
                                <dd id="dd_DHDD" data-name="recording">
                                    <a lay-href="@Url.Action("PhoneTheftWarningFormEN","Home")">Phone theft warning</a>
                                </dd>
                                <dd data-name="recording">
                                    <a lay-href="@Url.Action("OperaterecordLogFormEN","Home")">Operation record</a>
                                </dd>
                            </dl>
                        </li>
                        <li data-name="template" class="layui-nav-item">
                            <a href="javascript:;" lay-tips="Statistical Report" lay-direction="2">
                                <i class="layui-icon layui-icon-list"></i>
                                <cite>Statistical Report</cite>
                            </a>
                            <dl class="layui-nav-child">
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("EmployeeCallNumCountFormEN","Statistics")">Staff call number</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("EmployeeCallLongCountFormEN","Statistics")">Staff call duration</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("EmployeeCallChargeCountFormEN","Statistics")">Staff call cost</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("EmployeeCallTimeCountFormEN","Statistics")">Staff call hours</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("EmployeeCallChargeRankingFormEN","Statistics")">Staff call ranking</a>
                                </dd>
                                <dd id="YYDZD" data-name="statistics">
                                    <a lay-href="@Url.Action("EmployeeCallChargeCountMonthlyFormEN","Statistics")">Staff monthly bill</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("BranchCallNumCountFormEN","Statistics")">Dept call number</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("BranchCallLongCountFormEN","Statistics")">Dept call duration</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("BranchCallChargeCountFormEN","Statistics")">Dept call cost</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("BranchCallTimeCountFormEN","Statistics")">Dept call hours</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("BranchCallChargeRankingFormEN","Statistics")">Dept call ranking</a>
                                </dd>
                                <dd id="BYDZD" data-name="statistics">
                                    <a lay-href="@Url.Action("BranchCallChargeCountMonthlyFormEN","Statistics")">Dept monthly bill</a>
                                </dd>
                                <dd id="LQDTJ" data-name="statistics">
                                    <a lay-href="@Url.Action("ComeAndGoCountFormEN","Statistics")">In and Out call</a>
                                </dd>
                                <dd id="QYTJ" data-name="statistics">
                                    <a lay-href="@Url.Action("AreaCallCountFormEN","Statistics")">Regional call</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("EmployeeCarryPasswordCallChargeRankingEN","Statistics")">PortablePassword call</a>
                                </dd>
                                <dd data-name="statistics">
                                    <a lay-href="@Url.Action("IdleExtensionNumStatisticsEN","Statistics")">Idle Extension Statistics</a>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- 页面标签 -->
            <div class="layadmin-pagetabs" id="LAY_app_tabs">
                <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-down">
                    <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                        <li class="layui-nav-item" lay-unselect>
                            <a href="javascript:;"></a>
                            <dl class="layui-nav-child layui-anim-fadein">
                                <dd layadmin-event="closeThisTabs"><a href="javascript:;">Close the current tab</a></dd>
                                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">Close other tabs</a></dd>
                                <dd layadmin-event="closeAllTabs"><a href="javascript:;">Close all tabs</a></dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                    <ul class="layui-tab-title" id="LAY_app_tabsheader">
                        <li lay-id="@Url.Action("ChargingEN","Exhibition")" lay-attr="@Url.Action("ChargingEN","Exhibition")" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                    </ul>
                </div>
            </div>


            <!-- 主体内容 -->
            <div class="layui-body" style="background-color:white" id="LAY_app_body">
                <div class="layadmin-tabsbody-item layui-show">
                    <iframe src="@Url.Action("ChargingEN","Exhibition")" frameborder="0" class="layadmin-iframe"></iframe>
                </div>
            </div>

            <!-- 辅助元素，一般用于移动设备下遮罩 -->
            <div class="layadmin-body-shade" layadmin-event="shade"></div>
        </div>
    </div>
    <script src="~/layuiadmin/layui/layui.js"></script>
    <script type="text/javascript">
        layui.config({
            base: '../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');

        layui.use('element', function () {
            layui.jquery.ajax({
                url: "/Home/loadPage",
                type: 'post',
                dataType: 'text',
                success: function (result) {
                    var varresult = result.split('‖');
                    for (var i = 0; i < varresult.length; i++) {
                        if (varresult[i] == "入住退房" || varresult[i] == "叫醒、房态迷你吧" || varresult[i] == "话务台") {
                            document.getElementById("dd_ZJJ").style.display = "block";
                        }
                        if (varresult[i] == "电话录音") {
                            document.getElementById("dd_Recording").style.display = "block";
                            document.getElementById("dd_RecordingR").style.display = "block";
                        }
                        if (varresult[i] == "挂机短信") {
                            document.getElementById("dd_GJDX").style.display = "block";
                            document.getElementById("dd_GJDXA").style.display = "block";
                            document.getElementById("dd_GJDXB").style.display = "block";
                        }
                        if (varresult[i] == "语音信箱") {
                            document.getElementById("dd_Voicemail").style.display = "block";
                        }
                        if (varresult[i] == "isFast") {
                            document.getElementById("YYDZD").style.display = "none";
                            document.getElementById("BYDZD").style.display = "none";
                            document.getElementById("LQDTJ").style.display = "none";
                            document.getElementById("QYTJ").style.display = "none";
                            document.getElementById("dd_THFY").style.display = "none";
                            document.getElementById("dd_YC").style.display = "none";
                            document.getElementById("dd_DHDD").style.display = "none";
                        }
                    }
                }
            });
        });
    </script>
</body>
</html>


