<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frame_s_v2.aspx.cs" Inherits="VA.FX.Web.entry.frame_s_v2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><% = base.webSiteConfig.WebSiteName%></title>
<link rel="stylesheet" type="text/css" href="/app_themes/<% = webSiteConfig.ThemeName %>/css/main.css" />
<link rel="stylesheet" type="text/css" href="/app_themes/<% = webSiteConfig.ThemeName %>/css/entry.css" />
<link rel="stylesheet" type="text/css" href="/app_themes/<% = webSiteConfig.ThemeName %>/css/entry-menu-s-v2.css" />
<link rel="stylesheet" type="text/css" href="/uicontrols/easyui/themes/<% = webSiteConfig.ThemeName %>/easyui.css" />
<link rel="shortcut icon" type="image/x-icon" href="/logo.ico" />
<link rel="stylesheet" type="text/css" href="/uicontrols/easyui/themes/icon.css" />
<%--<link rel="stylesheet" type="text/css" href="/jtongui/themes/icon.css" />--%>
<link rel="stylesheet" type="text/css" href="/scripts/jquery/plugins/simplemodal-1.4.4/css/basic.css" />
<script type="text/javascript" src="/uicontrols/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/uicontrols/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/uicontrols/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/scripts/jquery/plugins/simplemodal-1.4.4/js/jquery.simplemodal.js"></script>
<script type="text/javascript" src="/scripts/biz/common.js"></script>
<script type="text/javascript" src="/scripts/page/entry_frame_s_v2.js"></script>
<script type="text/javascript">       

    function help() {
        window.open("http://manual.jdingsoft.com");
    }    
    $(function () {
        init();
        checkAnnouncements();
    });
</script>

</head>

<body>   

    <div id="header">
        <div id="logo"></div>
        <ul id="topestMenu"><!--快捷操作菜单-->                       
            <li><a href="javascript:openWindow('会员登记','/modules/member/member/member_register.aspx');"><img src="../app_themes/images/menu/topestmenu-icon/member_add.png" border="0" /></a></li>
            <li><a href="javascript:openWindow('会员充值','/modules/member/charge/wallet_charge.aspx');"><img src="../app_themes/images/menu/topestmenu-icon/member_charge.png" border="0" /></a></li>                                                        
            <li><a href="javascript:openWindow('会员详情','/modules/member/member/member_detail.aspx');"><img src="../app_themes/images/menu/topestmenu-icon/member_view.png" border="0" /></a></li>            
            <li><a href="javascript:openWindow('消费收银','/modules/member/consume/charge_v2.aspx');"><img src="../app_themes/images/menu/topestmenu-icon/consume.png" border="0" /></a></li>
            <li><a href="javascript:openWindow('日 结 账','/modules/member/dayaccount/dayaccount.aspx');"><img src="../app_themes/images/menu/topestmenu-icon/dayaccount.png" border="0" /></a></li>            
            <li><a href="javascript:openWindow('店长日报','/modules/member/leaderquery/master_dayreport.aspx');"><img src="../app_themes/images/menu/topestmenu-icon/dayreport.png" border="0" /></a></li>            
        </ul>
        <div id="headerRight">
            <div class="topmenu"><%--<a href="javascript:help();" class="help">帮助</a> | --%><a href="javascript:viewAnnouncementList()">公告</a> | <a href="javascript:logout();">退出</a> | <!--<a href="javascript:openWindow('修改密码','../sysmembership/ChangeMyPassword.aspx');">修改密码</a> |--> <a href="javascript:showAbout()">关于</a></div>
            <div class="userinfo"><% = base.EmployeeName %>/<% = base.EmployeeID %> | <a href="javascript:switchShop()" style="color:#fff;">切换门店</a></div>
        </div>
    </div>
    <div id="sideBar">
        <div id="menus">

        <div id="topestMenuName">
            <ul>
                <li class="menu-all"><span>全部菜单</span></li>
                <li class="menu-fav"><span>常用菜单</span></li>
            </ul>
        </div>

        <div id="accordionContainer0" class="accordionContainer">

        <div class="jtongui-accordion">

        <!--简单版-->
        <%--<!--1级节点权限-->
        <asp:Repeater ID="rpPrivsLevel0" runat="server">
        <ItemTemplate>                
            <div class="submenu<%# SetPriv0Class(Container.ItemIndex) %>">
		        <h1 class="head<%# SetPrivIcon(Eval("Icon").ToString())%>"><%# Eval("PrivilegeName")%></h1>
		        <div class="body">
			        <ul>

                        <!--2级节点权限-->
                        <asp:Repeater ID="rpPrivsLevel1" runat="server">
                        <ItemTemplate>    
                            <li><a href="javascript:addTab('<%# Eval("PrivilegeDesc")%>','<%# Eval("DefaultPageURL")%>');"><%# Eval("PrivilegeName")%></a></li>				                                        
                        </ItemTemplate>
                        </asp:Repeater>
                    </ul>
		        </div>
	        </div>                        
        </ItemTemplate>
        </asp:Repeater>--%>

        <!--高级版-->
        <!--1级节点权限-->
        <asp:Repeater ID="rpPrivsLevel0" runat="server">
        <ItemTemplate>                
            <div class="submenu<%# SetPriv0Class(Container.ItemIndex) %>">
		        <h1 class="head<%# SetPrivIcon(Eval("Icon").ToString())%>"><%# Eval("PrivilegeName")%></h1>
		        <div class="body">
			         <asp:Literal ID="literalSubPrivs" runat="server" ></asp:Literal>
		        </div>
	        </div>
        </ItemTemplate>
        </asp:Repeater>
                        
        </div><!--accordion.END-->
        </div><!--accordionContainer.END-->
        
        <div id="accordionContainer1" class="accordionContainer">

            <ul class="shortcut" style="margin-top:5px;"><!--快捷操作菜单-->                
                <li data-icon="dayaccount.png" onclick="openWindow('日结账','/modules/member/dayaccount/dayaccount.aspx')">日结账</li>                         
            </ul>
            
            <ul class="shortcut" style="margin-top:5px;"><!--快捷操作菜单-->                
                <li data-icon="dayreport.png" onclick="openWindow('店长日报','/modules/member/leaderquery/master_dayreport.aspx')">店长日报</li>                          
            </ul>

            <ul class="shortcut"><!--快捷操作菜单-->                                       
                <li data-icon="member_add.png" onclick="openWindow('快速登记','/modules/member/member/member_register_simple.aspx')">快速登记</li>         
                <li data-icon="member_add.png" onclick="openWindow('会员登记','/modules/member/member/member_register.aspx')">会员登记</li>                         
                <li data-icon="members.png" onclick="openWindow('会员列表','/modules/member/member/member_editlist.aspx')">会员列表</li>         
                <li data-icon="member_view.png" onclick="openWindow('会员详情','/modules/member/member/member_detail.aspx')">会员详情</li>                                              
            </ul>

            <ul class="shortcut"><!--快捷操作菜单-->                                                       
                <li data-icon="member_charge.png" onclick="openWindow('会员充值','/modules/member/charge/wallet_charge.aspx')">会员充值</li>         
                <li data-icon="record.png" onclick="openWindow('充值记录','/modules/member/charge/wallet_charge_editlist.aspx')">充值记录</li>         
                <li data-icon="pointcard.png" onclick="openWindow('自由充次','/modules/member/pointcard/pointcard_sale_free.aspx')">自由充次</li>                                 
                <li data-icon="pointcard.png" onclick="openWindow('包月充次','/modules/member/pointcard/pointcard_sale_fixed.aspx')">包月充次</li>                                 
                <li data-icon="record.png" onclick="openWindow('充次记录','/modules/member/pointcard/pointcard_sale_editlist.aspx')">充次记录</li>                                 
            </ul>

            <ul class="shortcut" style="margin-top:5px;"><!--快捷操作菜单-->                   
                <li data-icon="charge.png" onclick="openWindow('消费收银','/modules/member/consume/charge_v2.aspx')">消费收银</li>         
                <li data-icon="pointcard_charge.png" onclick="openWindow('划次收银','/modules/member/consume/pointcard_charge.aspx')">划次收银</li>          
                <li data-icon="point_charge.png" onclick="openWindow('赠品划次','/modules/member/consume/point_charge.aspx')">赠品划次</li>          
                <li data-icon="record.png" onclick="openWindow('消费收银记录','/modules/member/consume/charge_editlist.aspx')">消费收银记录</li>          
                <li data-icon="record.png" onclick="openWindow('划次收银记录','/modules/member/consume/pointcard_charge_editlist.aspx')">划次收银记录</li>          
                <li data-icon="record.png" onclick="openWindow('赠品划次记录','/modules/member/consume/point_charge_editlist.aspx')">赠品划次记录</li>          
                <li data-icon="detail.png" onclick="openWindow('项目明细记录','/modules/member/consume/charge_item_editlist.aspx')">项目明细</li>          
            </ul>
            
            <ul class="shortcut"><!--快捷操作菜单-->                                                                      
                <li data-icon="chargeitem_out.png" onclick="openWindow('商品赠送','/modules/member/goods/chargeitem_donate.aspx')">商品赠送</li>                        
                <li data-icon="gift_out.png" onclick="openWindow('礼品赠送','/modules/member/gift/gift_donate.aspx')">礼品赠送</li>                         
                <li data-icon="gift_stock.png" onclick="openWindow('礼品兑换','/modules/member/sale/gift_exchange.aspx')">礼品兑换</li>                         
                <li data-icon="point.png" onclick="openWindow('积分赠送','/modules/member/sale/point_donate.aspx')">积分赠送</li>         
                <li data-icon="voucher.png" onclick="openWindow('代金券赠送','/modules/member/sale/voucher_donate.aspx')">代金券赠送</li>                         
            </ul>

            <ul class="shortcut"><!--快捷操作菜单-->                                                                      
                <li data-icon="birthday.png" onclick="openWindow('会员生日祝福','/modules/member/sms/member_birthday_greet.aspx')">生日祝福</li>         
                <li data-icon="sms_send.png" onclick="openWindow('短信发送','/modules/member/sms/sms_send.aspx')">短信发送</li>         
                <li data-icon="sms_send.png" onclick="openWindow('短信发送记录','/modules/member/sms/sms_send_editlist.aspx')">发送记录</li>         
            </ul>

        </div>                            
    
        </div><!--menus.END-->
    </div>
    <div id="switchBar"></div>
    <div id="main">
        <div class="easyui-tabs" style="width:300px;border-bottom:0px;overflow:hidden;" fit=true id="tabs1" >
            <div title="首页" data-options="closable:false">            
                <iframe src="../modules/member/welcome_v2.aspx" style="width:100%;height:100%;border:0px;margin:0px;padding:0px;"  ></iframe>                
            </div>
        </div>
    </div>
    <div id="footer">
        <div class="dateinfo">&nbsp;
            <% if (base.ShopCode == base.EmployeeShopCode) {%>
                <% = base.CompanyName + "（" + base.ShopName + "）" %>/<% = base.EmployeeName %>
            <% } else { %>
                <% = base.CompanyName + "（" + base.ShopName + "）" %>/<% = base.EmployeeName %>（<% = new VA.Modules.JDingMember.Core.Business.Basic.ShopDict().GetEntity(base.EmployeeShopCode).Shop_Name %>）
            <% } %>
            &nbsp;&nbsp;<% = DateTime.Now.ToString("yyyy年MM月dd日") %>&nbsp;&nbsp;<% = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek) %></div>
        <div class="copyright">
            版本号：<% = VA.Modules.JDingMember.Core.SystemInfo.SoftInfo.SoftVesion %>
             <% if (VA.Modules.JDingMember.Core.SystemInfo.SoftInfo.SoftLicenseType == VA.Modules.JDingMember.Core.Enums.SoftLicenseType.Trial)
                {
                    Response.Write("<span style='color:red;'>(" + VA.Modules.JDingMember.Core.SystemInfo.SoftInfo.SoftLicenseTypeName + ")</span>");
                    //Response.Write("<span style='color:red;'>(试用)</span>");
                }       
             %>
            网址：<a href="<% = VA.Modules.JDingMember.Core.SystemInfo.SupportInfo.WebSite %>" target="_blank"><% = VA.Modules.JDingMember.Core.SystemInfo.SupportInfo.WebSite %></a></div>
        <iframe id="frameAutoRefresh" src='sessionkeep.aspx' style='width:100%;height:100%;border:0px;margin:0px;padding:0px;display:none;'></iframe>
    </div>

    <div id="divAboutPanel">
        <div class="box-title-bar">
            <div class="title-container"></div>
            <div class="close-container"><a href="#" class="simplemodal-close">×</a></div>
        </div>
        <div id="versionInfo">        
            版本号：<% = VA.Modules.JDingMember.Core.SystemInfo.SoftInfo.SoftVesion %>
            <br />
            版本类型：<% = VA.Modules.JDingMember.Core.SystemInfo.SoftInfo.SoftTypeName %>
            <br />
            版本级别：<% = VA.Modules.JDingMember.Core.SystemInfo.SoftInfo.SoftLevelName %>
            <br />
            授权类型：<% = VA.Modules.JDingMember.Core.SystemInfo.SoftInfo.SoftLicenseTypeName %>
            <br />
            QQ:<% = VA.Modules.JDingMember.Core.SystemInfo.SupportInfo.Contact_QQ %>
            &nbsp;
            Email:<% = VA.Modules.JDingMember.Core.SystemInfo.SupportInfo.Contact_Email %>
            <br />
            (C)<% = DateTime.Now.Year %> <% = VA.Modules.JDingMember.Core.SystemInfo.SupportInfo.Company %>. All rights reserved                
        </div>             
    </div>

    <div id="contextMenu" class="easyui-menu" data-options="onClick:menuHandler" style="width:120px;">
        <div data-options="name:'refresh'">刷新</div>
	    <div data-options="name:'closeCurrent'">关闭</div>
	    <div data-options="name:'closeAll'">关闭全部</div>
        <div data-options="name:'closeAllExceptCurrent'">除此之外全部关闭</div>
    </div>

</body>  

</html>
