<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
    <script type="text/javascript" src="../../utility/Calendar/WdatePicker.js" ></script>
</head>
<body>
    <form id="form1" runat="server">

        <div>
           

            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:BalanceDrawRequest,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:ReCharge,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            
               <Hishop:BalanceDrawRequest ID="BalanceDrawRequest" runat="server">
        <SkinTemplate>
                    <div id="updateMsg">
                        <Hishop:StatusMessage id="Status" runat="server" Visible="False"></Hishop:StatusMessage></div>            
            
            <div class="grdHeaderStyle">
                <asp:Literal ID="lblCurrentUser" runat="server" Text="<%$Resources:BalanceDrawRequest,IDS_Literal_CurrentUser %>"></asp:Literal>：<asp:Literal
                    ID="litUser" runat="server"></asp:Literal>
            </div>
            <div>
                <ul class="anchors clearfix">
                    <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_BalanceDetail",  Page.Request.QueryString["userId"])%>'>
                        <img src="../images/yufukuan.gif" alt="" /><asp:Label runat="server" ID="lblBalanceDetails" Text="<%$ Resources:BalanceDetails, IDS_PageTitle %>"></asp:Label></a></li>
                    <li class="tabs-selected"><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_DrawRequest",Page.Request.QueryString["userId"])%>'>
                        <img src="../images/setupziXuan.png" alt="" /><asp:Label runat="server" ID="lblAgentPriceTemplets" Text="<%$ Resources:BalanceDrawRequest,IDS_PageTitle %>"></asp:Label></a></li>
                    <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_FreezeDetail",  Page.Request.QueryString["userId"])%>'>
                        <img src="../images/donjie.gif" alt="" /><asp:Label runat="server" ID="lblBalanceFreezeDetails" Text="<%$ Resources:BalanceFreezeDetails, IDS_PageTitle %>"></asp:Label></a></li>
                </ul>
            </div>
            <fieldset class="AdminSearchform">
                <legend>
                    <asp:Literal ID="litSearchTitle" Text="<%$ Resources:BalanceDrawRequest,IDS_Literal_SearchTitle %>"
                        runat="server"></asp:Literal></legend>
                <table width="55%" border="0" cellspacing="0" cellpadding="0" style="margin-left: 18px">
                    <tr>
                        <td class="searchTableLeftTD">
                            <nobr><asp:Literal ID="lblFromDate" runat="server" Text="<%$ Resources:BalanceDrawRequest,IDS_Literal_FromDate %>"></asp:Literal>：</nobr>
                        </td>
                        <td class="searchTableControlTD">
                            <Hishop:Calendar ID="calendarStart" runat="server" CssClass="Wdate" />
                        </td>
                        <td class="searchTableLeftTD">
                            <nobr><asp:Literal ID="lblToDate" runat="server" Text="<%$ Resources:BalanceDrawRequest,IDS_Literal_ToDate %>"></asp:Literal>：</nobr>
                        </td>
                        <td class="searchTableControlTD" colspan="2">
                            <Hishop:Calendar ID="calendarEnd" runat="server" CssClass="Wdate" />
                        </td>
                    </tr>
                    <tr>
                        <td class="searchTableLeftTD">
                            <nobr><asp:Literal ID="litDealResult" runat="server" Text="<%$ Resources:BalanceDrawRequest,IDS_Literal_DealResult %>"></asp:Literal>：</nobr>
                        </td>
                        <td class="searchTableControlTD">
                            <Hishop:BalanceDrawRequestStatusDropDownList ID="dropBanlanceDrawRequestStatus" runat="server"
                                AllowNull="false" />
                        </td>
                        <td class="searchTableLeftTD">
	                        <nobr><asp:Label ID="lblUserName" runat="server" Text="<%$ Resources:BalanceDetails,IDS_Literal_UserName %>"></asp:Label>：</nobr>
	                    </td>
	                    <td class="searchTableControlTD">
	                        <asp:TextBox ID="txtUserName" runat="server" />
	                    </td>
                        <td class="searchTableLeftTD">
                            <asp:Button ID="btnQueryBalanceDrawRequest" runat="server" Text="<%$ Resources:BalanceDrawRequest,IDS_Button_QueryBalanceDrawRequest_OK %>"
                                CssClass="inp_L1" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            <div class="grdGroupFormList">

                        <div class="grdGroupList">
                            <div class="grdGroupListLi">
                                <Hishop:CustomGridView ID="grdBalanceDrawRequest" runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="JournalNumber" RowStyle-CssClass="grdrow" CssClass="GridViewStyle"
                                    GridLines="None" HeaderStyle-CssClass="GridViewHeaderStyle" >
                                    <Columns>
                                        <asp:BoundField HeaderText="<%$ Resources:BalanceDrawRequest,IDS_Header_JournalNumber %>"
                                            DataField="JournalNumber" />
                                        <asp:TemplateField HeaderText="<%$ Resources:BalanceDetails,IDS_Literal_UserName %>">
                                            <itemtemplate>			                       
			                                    <a href='<%# Globals.GetSiteUrls().UrlData.FormatUrl("admin_EditMember",Eval("applicant")) %>' style="color:Blue;"><asp:Label ID="lblTypeName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label></a>
			                                </itemtemplate>
			                                </asp:TemplateField>
                                        <asp:BoundField HeaderText="<%$ Resources:BalanceDrawRequest,IDS_Header_MerchantCode %>" DataField="MerchantCode" />
                                        <asp:TemplateField HeaderText="<%$ Resources:BalanceDrawRequest,IDS_Header_RequestTime %>"
                                            >
                                            <itemtemplate>
			                                    <Hishop:FormatedTimeLabel ID="lblTime" Time='<%# Eval("RequestTime")%>' runat="server" />
			                                </itemtemplate>
                                        </asp:TemplateField>
                                        <Hishop:MoneyColumnForAdmin HeaderText="<%$ Resources:BalanceDrawRequest,IDS_Header_Amount %>"
                                            DataField="Amount" />
                                        <asp:TemplateField HeaderText="<%$ Resources:BalanceDrawRequest,IDS_Header_RequestStatus %>">
                                            <itemtemplate>
			                                    <Hishop:BalanceDrawRequestStatusNameLabel ID="lblRequestStatus" BalanceDrawRequestStatu='<%# Eval("RequestStatus")%>' runat="server" />
			                                </itemtemplate>
                                        </asp:TemplateField>
                                         <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>" ItemStyle-Width="10%">
                                             <ItemStyle CssClass="handleRightSelect"/>
                                             <ItemTemplate>
			                                    <Hishop:ImageLinkButton CssClass="SmallCommonTextButton" ID="btnAgreeRequest" runat="server" OnClientClick="" Visible='<%# Convert.ToInt32(Eval("RequestStatus")) == 1?true:false %>'  CommandName="UnLineReCharge" Text="<%$Resources:BalanceDrawRequest,IDS_FormField_UnLineReCharge %>"></Hishop:ImageLinkButton> 
			                                    <Hishop:ImageLinkButton CssClass="SmallCommonTextButton" ID="btnRefuseRequest" runat="server" OnClientClick="showConfirmRefuse(this); return false;" Visible='<%# Convert.ToInt32(Eval("RequestStatus")) == 1?true:false %>'  CommandName="RefuseRequest" Text="<%$Resources:BalanceDrawRequest,IDS_FormField_RefuseRequest %>"></Hishop:ImageLinkButton> 			               
                                             </ItemTemplate>
                                         </asp:TemplateField>    
                                            </Columns>
                                        </Hishop:CustomGridView>
                            </div>
                        </div>
                        <!--翻页开始-->
                        <div class="grdGroupTabhead">
                             <UI:Pager runat="server" ListToPaging="grdBalanceDrawRequest" ID="pager" />
                        </div>

            </div>
        </SkinTemplate>
    </Hishop:BalanceDrawRequest>
            
        </div>
        <br />
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
