<%@ Page language="c#" Codebehind="MyDrawing.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.MyDrawing" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NavBar" Src="Modules/NavBar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Bulletin" Src="Modules/Bulletin.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<!--#include file="../../inc/encoding.inc"-->
		<title><%=GetResourceString("MyDrawing")%> －－ <%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->		
		<script type="text/javascript" src="inc/calendar.js"></script>
	</HEAD>
	<body>
            <div id="container">
                <uc1:Header id="Header1" runat="server"></uc1:Header>
                <!--位置导航开始-->
                <div class="path">
                    <a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>">
                        <%=GetResourceString("Home")%>
                    </a>>
                    <%=GetResourceString("MemberCenter")%>
                    >
                    <%=GetResourceString("MyDrawing")%>
                </div>
                <!--位置导航结束-->
                <div id="content">
                    <div id="content_left_side">
                        <!--会员中心导航开始-->
                        <uc1:MemberMenu id="MemberMenu1" runat="server">
                        </uc1:MemberMenu>
                        <!--会员中心导航结束-->
                    </div>
                    <div id="content_middle_side">
                        <!--内容开始-->
	                    <form id="Form1" method="post" runat="server">
                        <div class="mframe">
                            <div class="tl"></div>
                            <div class="tr"></div>
                            <div class="tm">
                                <div class="on">
                                    <%=GetResourceString("MyDrawing")%>
                                </div>
                            </div>
                            <div class="ml"></div>
                            <div class="mr"></div>
                            <div class="mm"><span>可提取金额：<font color="red"><%=GetCanDrawing() %>元</font></span>
                                <asp:datagrid id="dgDrawing" runat="server"
					                AutoGenerateColumns="False" DataKeyField="AgencyDrawingID" Width="100%" HorizontalAlign="Center" BorderWidth="1"
					                BorderColor="#CCCCCC">
					                <ItemStyle BackColor="White"></ItemStyle>
					                <HeaderStyle BackColor="#E4E3E1"></HeaderStyle>
					                <Columns>
		                                <asp:TemplateColumn HeaderText="帐户余额">
			                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
			                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
			                                <ItemTemplate>
			                                    <%# DataBinder.Eval(Container.DataItem, "Balance")%>
			                                </ItemTemplate>
		                                </asp:TemplateColumn>
		                                <asp:TemplateColumn HeaderText="申请提现金额">
			                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
			                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
			                                <ItemTemplate>
			                                    <%# DataBinder.Eval(Container.DataItem, "DrawFinance")%>
			                                </ItemTemplate>
		                                </asp:TemplateColumn>
		                                <asp:TemplateColumn HeaderText="申请时间">
			                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
			                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
			                                <ItemTemplate>
			                                    <%# DataBinder.Eval(Container.DataItem, "AddTime")%>
			                                </ItemTemplate>
		                                </asp:TemplateColumn>
		                                <asp:TemplateColumn HeaderText="处理时间">
			                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
			                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
			                                <ItemTemplate>
			                                    <%# DataBinder.Eval(Container.DataItem, "Status").ToString() != "0" ? DataBinder.Eval(Container.DataItem, "DisposeTime").ToString() : "未处理"%>
			                                </ItemTemplate>
		                                </asp:TemplateColumn>
		                                <asp:TemplateColumn HeaderText="备注">
			                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
			                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
			                                <ItemTemplate>
			                                    <%# DataBinder.Eval(Container.DataItem, "Remark")%>
			                                </ItemTemplate>
		                                </asp:TemplateColumn>
		                                <asp:TemplateColumn HeaderText="状态">
			                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
			                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
			                                <ItemTemplate>
			                                    <%# DataBinder.Eval(Container.DataItem, "Status").ToString() == "0" ? "<font color='green'>[未处理]</font>" : (DataBinder.Eval(Container.DataItem, "Status").ToString() == "1" ? "<font color='blue'>[已发放]</font>" : "<font color='red'>[已取消]</font>")%>
			                                </ItemTemplate>
		                                </asp:TemplateColumn>											               
					                </Columns>
				                </asp:datagrid>
                                提现：<asp:TextBox ID="txtDrawing" runat="server" Width="50px"></asp:TextBox>元
                                <asp:Button ID="btnSave" runat="server" Text="提交申请" />
                            </div>
                            <div class="bl"></div>
                            <div class="br"></div>
                            <div class="bm"></div>
                        </div>
		                </form>
                        <!--内容结束-->
                </div>
                    <div style="clear: both;"></div>
            </div>
                <uc1:Helper id="Helper1" runat="server"></uc1:Helper>
                <uc1:Footer id="Footer1" runat="server"></uc1:Footer>
        </div>
	</body>
</HTML>
