1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberAccountNew.aspx.cs" Inherits="CY.WebForm.Pages.member.MemberAccountNew" %>
 
<!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 runat="server">
    <title>会员账户信息</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
     <!--基本选项卡start-->
    <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css" />
    <script src="../../libs/js/nav/basicTab.js" type="text/javascript"></script>
    <!--基本选项卡end-->
    <style type="text/css">
        .OutLevelSchedule { float: left; width: 100%; height: 16px; line-height: 16px; border: 1px solid #ccc; border-left: 0px solid #ccc; border-left: 0px solid #ccc; }
        .LevelSchedule { float: left; width: 100%; height: 10px; line-height: 10px; text-align: right; font-family: 微软雅黑; color: White; border-left: 1px solid #ccc; }
        .LevelName { float: left; width: 100%; height: 16px; line-height: 16px; text-align: left; }
        .UpMoney { float: left; width: 100%; height: 16px; line-height: 16px; text-align: left; }
        .NowSchedule { background: url(../../images/Common/redLevel.gif) no-repeat scroll right bottom transparent; height: 14px; position: relative; }
        .PayMoney {font: 16px 微软雅黑; height: 30px; line-height: 30px; position: absolute; right: 0; top: -35px; color: #C10C00 !important; }
    </style>
    <script type="text/javascript">
        $(function () {
            $(".LevelSchedule").first().css("border-left", "none");
            var value_maxWidth = parseInt($(".OutLevel").last().attr("value_width")) * 1.2;
            var nowCreditKeyid = "<%=m_Pay_CreditLineLevelRule.Keyid %>";
            var nowCreditColor = "<%=m_Pay_CreditLineLevelRule.Remark %>";
            var nowCreditMoney = parseInt('<%=m_Pay_CreditLineLevelRule.MaxScore.Value.ToString("0") %>');
            var nowPayMoney = parseInt('<%=n_m_Pay_PaymentAccount.PayMoney.Value.ToString("0") %>');
            var nowOutLevelWidth = 0;
 
            $(".OutLevel").each(function () {
                var value_width = parseInt($(this).next().attr("value_width")) - parseInt($(this).attr("value_width"));
                if (value_width != NaN && value_width != undefined && value_width > 0) {
                    nowOutLevelWidth += value_width;
                    $(this).css("width", (value_width / value_maxWidth) * 100 + "%");
                }
            });
            $(".OutLevel").last().css("width", ((value_maxWidth - nowOutLevelWidth) / value_maxWidth-0.01) * 100 + "%");
            
            var nowCreditUpMoney = parseInt($(".UpMoney[value_type='level" + nowCreditKeyid + "']").parent().next("div").find(".UpMoney").text().replace("(", "").replace(")", "")) - parseInt($(".UpMoney[value_type='level" + nowCreditKeyid + "']").text().replace("元", ""));
            var nowUpMoney = nowPayMoney - parseInt($(".UpMoney[value_type='level" + nowCreditKeyid + "']").text().replace("(", "").replace(")", ""));
            var nowNeedMoney = parseInt($(".UpMoney[value_type='level" + nowCreditKeyid + "']").parent().next("div").find(".UpMoney").text().replace("(", "").replace(")", "")) - nowPayMoney;
            if (nowPayMoney >= parseInt($(".OutLevel").last().attr("value_width"))) {
                $("#isShow").remove();
            }
            if (nowPayMoney >= value_maxWidth) {
                $(".NowSchedule").css("width", "100%");
            } else {
                $(".NowSchedule").css("width", (nowPayMoney / value_maxWidth) * 100 + "%");
                $("#nowNeedMoney").text(parseInt($(".UpMoney[value_type='level" + nowCreditKeyid + "']").parent().next("div").find(".UpMoney").text().replace("(", "").replace(")", "")) - nowPayMoney);
                $("#nextLevelName").text("\"" + $(".LevelName[value_type='level" + nowCreditKeyid + "']").parent().next("div").find(".LevelName").text() + "\"");
            }
            $(".PayMoney").text(nowPayMoney);
            $(".LevelName[value_type='level" + nowCreditKeyid + "']").css("color", "#FF5500");
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" id="hidNeedMarge" value="true" />
    <div id="scrollContent">
        <table class="tableStyle" style="width: 1000px; margin-bottom: 20px">
            <tr>
                <th colspan="6">
                    <span style="font-weight: bold">当前账户信息</span>
                </th>
            </tr>
            <tr>
                <td colspan="6" style="padding: 35px 53px 10px 53px;">
                    <div style="float: left; width: 100%;">
                        <div style="float: left; width: 100%; background: url(../../images/Common/redBorder.jpg) no-repeat scroll right bottom transparent; height: 14px;">
                            <div style="float: left;" class="NowSchedule">
                                <div class="PayMoney">
                                </div>
                            </div>
                        </div>
                        <asp:Repeater ID="RepCreditLineList" runat="server">
                            <ItemTemplate>
                                <div style="float: left; color: #999;" class="OutLevel" value_width="<%# int.Parse(Eval("MaxScore","{0:F0}"))%>">
                                    <div class="LevelSchedule" value_type="level<%#Eval("Keyid")%>"></div>
                                    <div class="LevelName" value_type="level<%#Eval("Keyid")%>"><%#Eval("LevelName")%></div>
                                    <div class="UpMoney" value_type="level<%#Eval("Keyid")%>">(<%#Eval("MaxScore","{0:F0}")%>)</div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    我的等级:
                </td>
                <td colspan="5">
                    <span id="spanPaymentAccountPayLevel" runat="server"></span><span id="isShow"><span style="padding-left: 10px;" class="red">*</span>您只需要再下单 <span id="nowNeedMoney"></span>元并完成订单即可升级成为 <span id="nextLevelName"></span>。</span>
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    账户余额:
                </td>
                <td>
                    <span id='spnHaveMoney' class="moneystyle">
                        <img src="../../images/Common/loading_small.gif" title='信息获取中...' /></span>
                </td>
                <td class="ali03">
                    消费金额:
                </td>
                <td colspan="3">
                    <span id="spanPaymentAccountPayMoney" runat="server" class="moneystyle"></span>
                </td>
            </tr>
            <tr>
                <td class="ali03" style="width: 100px;">
                    授信额度:
                </td>
                <td style="width: 200px;">
                    <span id="spanPaymentAccountCreditLine" runat="server"></span>
                </td>
                <td class="ali03" style="width: 100px;">
                    使用授信:
                </td>
                <td style="width: 200px;">
                    <span id="spanPaymentAccountCreditUsed" runat="server"></span>
                </td>
                <td class="ali03" style="width: 100px;">
                    授信余额:
                </td>
                <td>
                    <span id="spanPaymentAccountSurplusCredit" runat="server"></span>
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    当前积分:
                </td>
                <td>
                    <span id="spanPaymentAccountScore" runat="server"></span>
                </td>
                <td class="ali03">
                    当前推广金:
                </td>
                <td>
                    <span id="spanPaymentAccountPromotionMoney" runat="server"></span>
                </td>
                <asp:Panel ID="ShowComission" runat="server">
                    <td class="ali03">
                        未付佣金:
                    </td>
                    <td>
                        <span id="spanPaymentAccountOrderCommissionMoney" runat="server"></span>
                    </td>
                </asp:Panel>
                <asp:Panel ID="HideComission" runat="server">
                    <td>
                    </td>
                    <td>
                    </td>
                </asp:Panel>
            </tr>
            <tr>
                <td class="ali03" style="width: 100px;">
                    代理金余额:
                </td>
                <td style="width: 200px;">
                    <span id="spanProxyMoney" runat="server"></span>
                </td>
                <td class="ali03" style="width: 100px;">
                    代理佣金:
                </td>
                <td style="width: 200px;">
                    <span id="spanProxyMoneyCash" runat="server"></span>
                </td>
                <td class="ali03" style="width: 100px;">
                    推广费用:
                </td>
                <td>
                    <span id="spanProxyMoneyAudit" runat="server"></span>
                </td>
            </tr>
        </table>
        <div class="box1" style="width: 1000px;">
            <table class="TableNewStyle">
                <tr>
                    <td>
                        时间:
                    </td>
                    <td style="width: 260px;">
                        <input id="txtBeginData" type="text" runat="server" class='date w90px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w90px' maxlength='10' />
                    </td>
                    <td>
                        <asp:Button ID="btn_Query" Text="统计" runat="server" OnClick="btn_Query_Click" Style="margin-left: 10px" menu_member_case_id="case_btn_Query" menu_member_case_name="统计" />
                        <%--<asp:Button ID="btnReSet" Text="重置" runat="server" OnClick="btnReSet_Click" Style="margin-left: 10px" menu_member_case_id="case_" menu_member_case_name="" />--%>
                    </td>
                </tr>
            </table>
        </div>
        <asp:Panel ID="BtnSearch" runat="server">
            <table class="tableStyle" style="width: 1000px;">
                <tr>
                    <th colspan="6">
                        <span style="font-weight: bold">统计信息</span>
                    </th>
                </tr>
                <tr>
                    <td class="ali03" style="width: 100px">
                        累计积分:
                    </td>
                    <td style="width: 200px">
                        <span id="spanAllScore" runat="server"></span>
                    </td>
                    <td class="ali03" style="width: 100px">
                        使用积分:
                    </td>
                    <td style="width: 200px">
                        <span id="spanUsedScore" runat="server"></span>
                    </td>
                    <td class="ali03" style="width: 100px">
                        剩余积分:
                    </td>
                    <td>
                        <span id="spanSurplusScore" runat="server"></span>
                    </td>
                </tr>
                <tr>
                    <td class="ali03">
                        推广收益:
                    </td>
                    <td>
                        <span id="spanAllPromotionMoney" runat="server"></span>
                    </td>
                    <td class="ali03">
                        已兑收益:
                    </td>
                    <td>
                        <span id="spanUsedPromotionMoney" runat="server"></span>
                    </td>
                    <td class="ali03">
                        未兑收益:
                    </td>
                    <td>
                        <span id="spanSurplusPromotionMoney" runat="server"></span>
                    </td>
                </tr>
                <tr>
                    <td class="ali03">
                        交易佣金:
                    </td>
                    <td>
                        <span id="spanAllCommissionMoney" runat="server"></span>
                    </td>
                    <td class="ali03">
                        已付佣金:
                    </td>
                    <td>
                        <span id="spanUsedCommissionMoney" runat="server"></span>
                    </td>
                    <td class="ali03">
                        未付佣金:
                    </td>
                    <td>
                        <span id="spanSurplusCommissionMoney" runat="server"></span>
                    </td>
                </tr>
                <tr>
                    <td class="ali03">
                        消费金额:
                    </td>
                    <td colspan="5">
                        <span id="spanAllPayMoney" runat="server"></span>
                    </td>
                </tr>
                <tr>
                    <td class="ali03">
                        印刷交易:
                    </td>
                    <td>
                        <span id="spanPayMoneyByPrint" runat="server"></span>
                    </td>
                    <td class="ali03">
                        纸张交易:
                    </td>
                    <td>
                        <span>0.00</span>
                    </td>
                    <td class="ali03">
                        文具交易:
                    </td>
                    <td>
                        <span>0.00</span>
                    </td>
                </tr>
                <tr>
                    <td class="ali03">
                        办公用品:
                    </td>
                    <td>
                        <span>0.00</span>
                    </td>
                    <td class="ali03">
                        办公家具:
                    </td>
                    <td colspan="3">
                        <span>0.00</span>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <%--<div class="basicTab" iframemode="true" data='{"list":[{"name":"今日积分","url":"../member/MemberBasic.aspx"},{"name":"今日推广","url":"../member/MemberAcceptAddress.aspx"}]}'>
                <div style="width: 988px;">
                    <iframe scrolling="no" width="100%" frameborder="0" id="frmrightChild" name="frmrightChild" allowtransparency="true" onload="iframeHeight('frmrightChild')" ></iframe>
                </div>
            </div>--%>
    </div>
    </form>
</body>
</html>