<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="welcome_v2.aspx.cs" Inherits="VA.Modules.JDingMember.welcome_v2" %>

<%@ Import Namespace="System.Data"%>

<!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>
<title></title>    
    <!--#include virtual="/include/css/common.aspx"-->
    <!--#include virtual="/include/css/easyui.aspx"-->
    <link href="/uicontrols/jtongui/themes/<% = base.webSiteConfig.ThemeName %>/simplepanel.css" type="text/css" rel="Stylesheet" />
    <link href="/app_themes/<% = base.webSiteConfig.ThemeName %>/css/pages/welcome.css" type="text/css" rel="Stylesheet" />
    <!--#include virtual="/include/js/common.aspx"--> 
    <!--#include virtual="/include/js/easyui.aspx"--> 
    <script type="text/javascript">

        function stat() {

            openDivWindow("", 300, 100, 220, 180, "divProgressNote");

            $.ajax({
                type: "GET",
                url: "welcome/get_welcome_statdata.aspx",
                dataType: "html",
                data: null,
                success: function (data, textStatus) {
                    if (data != "error") {

                        closeWindow("divProgressNote");
                        var statInfo = JSON.parse(data);

                        $("#qr_xzhy").html(statInfo.qr_xzhy);
                        $("#qr_czsk").html(statInfo.qr_czsk);
                        $("#qr_xfsk").html(statInfo.qr_xfsk);
                        $("#qr_ccsk").html(statInfo.qr_ccsk);
                        $("#qr_hytx").html(statInfo.qr_hytx);
                        $("#qr_xyjy").html(statInfo.qr_xyjy);

                        $("#zr_xzhy").html(statInfo.zr_xzhy);
                        $("#zr_czsk").html(statInfo.zr_czsk);
                        $("#zr_xfsk").html(statInfo.zr_xfsk);
                        $("#zr_ccsk").html(statInfo.zr_ccsk);
                        $("#zr_hytx").html(statInfo.zr_hytx);
                        $("#zr_xyjy").html(statInfo.zr_xyjy);

                        $("#hysrsl").html(statInfo.hysrsl);
                    }
                    else {
                        closeWindow("divProgressNote");
                        showActResult("获取统计信息失败！", false);
                    }
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    closeWindow("divProgressNote");
                    showActResult("请求失败！textStatus :" + textStatus, false);
                }
            });
        }


        $(function () {
            $(".shortcut").find("li").each(function () {
                var bgimg = $(this).attr("data-icon");
                if (bgimg != "" && bgimg != undefined) {
                    $(this).css("background-image", "url(/app_themes/images/shortcut/" + bgimg + ")");
                }
            });

            stat();
        });
    </script>
</head>
<body>
<!--说明：该页面是以 employee_editlist_nofresh_5.aspx 为原型封装的结果-->
<form id="Form1" method="post" runat="server">

<div id="wrapper" style="width:705px;padding-left:10px;">    

    <h1 id="shopName"><% = base.CompanyName + "（" + base.ShopName + "）" %></h1>
   
    <div class="simplepanel" style="margin-top:10px;">
        <div class="header">
        <h1>系统信息</h1>
        </div>
        <div class="content" style="padding:0px;">

            <div id="loginInfo">
                <div id="loginInfo-icon"></div>
                <div id="loginInfo-desc">
                    <div style="float:left;">操作员：<% = base.EmployeeName %> ，工号：<% = base.EmployeeID %> ，所属门店：<% = new VA.Modules.JDingMember.Core.Business.Basic.ShopDict().GetEntity(base.EmployeeShopCode).Shop_Name %></div>                 
                    <div style="float:right;">日期：<% = DateTime.Now.ToString("yyyy年MM月dd日", System.Globalization.CultureInfo.InvariantCulture) %>&nbsp;</div>
                </div>
            </div>

            <div id="statInfo">
                <div id="statInfo-icon"></div>
                <div id="statInfo-desc">
                    <table width="100%" cellpadding="0" cellspacing="0" height="100">
                        <tr>
                            <td style="width:40px;vertical-align:top;padding-top:3px;"><span class="highLight">前日</span></td>
                            <td>本店 新增会员 <span class="number highLight" id="qr_xzhy">0</span> 个，充值收款 <span class="number highLight" id="qr_czsk">0.00</span> 元，消费收款 <span class="number highLight" id="qr_xfsk">0.00</span> 元，充次收款 <span class="number highLight" id="qr_ccsk">0.00</span> 元，会员提现 <span class="number highLight" id="qr_hytx">0.00</span> 元，现金结余 <span class="number highLight" id="qr_xjjy">0.00</span> 元</td>
                        </tr>
                        <tr>
                            <td style="vertical-align:top;padding-top:3px;"><span class="highLight">昨日</span></td>
                            <td>本店 新增会员 <span class="number highLight" id="zr_xzhy">0</span> 个，充值收款 <span class="number highLight" id="zr_czsk">0.00</span> 元，消费收款 <span class="number highLight" id="zr_xfsk">0.00</span> 元，充次收款 <span class="number highLight" id="zr_ccsk">0.00</span> 元，会员提现 <span class="number highLight" id="zr_hytx">0.00</span> 元，现金结余 <span class="number highLight" id="zr_xjjy">0.00</span> 元</td>
                        </tr>
                    </table>
                </div>
            </div>
            
        </div>
    </div>  

    <div class="simplepanel" style="margin-top:5px;">
        <div class="header">
        <h1>会员生日提醒</h1>
        </div>
        <div class="content" style="padding-right:0px;">

             <div id="memberBirthdayGreet">
                <div id="memberBirthdayGreet-icon"></div>
                <div id="memberBirthdayGreet-desc">
                    今天（<% = DateTime.Now.ToString("yyyy年MM月dd日", System.Globalization.CultureInfo.InvariantCulture) %>）共有 <span class="number highLight" id="hysrsl">0</span> 位会员生日， <a href="javascript:openTopestWindow('会员生日祝福','/modules/member/sms/member_birthday_greet.aspx')">[发送生日祝福 ]</a>
                </div>
            </div>

        </div>
    </div>  

    <div class="simplepanel" style="margin-top:5px;">
        <div class="header">
        <h1>快捷方式</h1>
        </div>
        <div class="content" style="padding-right:0px;">
            <ul class="shortcut"><!--快捷操作菜单-->                                       
                <li data-icon="member_add.png" onclick="openTopestWindow('快速登记','/modules/member/member/member_register_simple.aspx')">快速登记</li>         
                <li data-icon="member_add.png" onclick="openTopestWindow('会员登记','/modules/member/member/member_register.aspx')">会员登记</li>                         
                <li data-icon="members.png" onclick="openTopestWindow('会员列表','/modules/member/member/member_editlist.aspx')">会员列表</li>         
                <li data-icon="member_view.png" onclick="openTopestWindow('会员详情','/modules/member/member/member_detail.aspx')">会员详情</li>
                <li data-icon="member_charge.png" onclick="openTopestWindow('会员充值','/modules/member/charge/wallet_charge.aspx')">会员充值</li>         
                <li data-icon="record.png" onclick="openTopestWindow('充值记录','/modules/member/charge/wallet_charge_editlist.aspx')">充值记录</li>         
                <li data-icon="pointcard.png" onclick="openTopestWindow('会员充次','/modules/member/pointcard/pointcard_sale_free.aspx')">会员充次</li>                                 
                <li data-icon="record.png" onclick="openTopestWindow('充次记录','/modules/member/pointcard/pointcard_sale_editlist.aspx')">充次记录</li>                                 
            </ul>

            <ul class="shortcut" style="margin-top:5px;"><!--快捷操作菜单-->                
                <li data-icon="charge.png" onclick="openTopestWindow('消费收银','/modules/member/consume/charge_v2.aspx')">消费收银</li>         
                <li data-icon="pointcard_charge.png" onclick="openTopestWindow('划次收银','/modules/member/consume/pointcard_charge.aspx')">划次收银</li>          
                <li data-icon="point_charge.png" onclick="openTopestWindow('赠品划次','/modules/member/consume/point_charge.aspx')">赠品划次</li>          
                <li data-icon="record.png" onclick="openTopestWindow('消费收银记录','/modules/member/consume/charge_editlist.aspx')">收银记录</li>          
                <li data-icon="record.png" onclick="openTopestWindow('划次收银记录','/modules/member/consume/pointcard_charge_editlist.aspx')">划次记录</li>          
                <li data-icon="detail.png" onclick="openTopestWindow('项目明细记录','/modules/member/consume/charge_item_editlist.aspx')">项目明细</li>          
                <li data-icon="dayaccount.png" onclick="openTopestWindow('日结账','/modules/member/dayaccount/dayaccount.aspx')">日结账</li>         
                <li data-icon="dayreport.png" onclick="openTopestWindow('店长日报','/modules/member/leaderquery/master_dayreport.aspx')">店长日报</li>                          
            </ul>

        </div>
    </div>    

</div>   

<div id="divProgressNote" style="display:none;line-height:80px;text-align:center;">
    <span style="font-weight:bold;font-size:14px;">正在统计，请稍后……</span>
</div>

</form>
</body>
</html> 