<%@ 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>
</head>
<body>
    <form id="form1" runat="server">

        <div>
           

            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:BalanceDrawRequestStatistics,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:BalanceDrawRequestStatistics,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            
               <Hishop:BalanceDrawRequestStatistics ID="BalanceDrawRequestStatistics" runat="server">
        <SkinTemplate>       
            
 <script type="text/javascript">
 
    function ResetPager(sender, eventArgs) {
        PagerCallBack.callback();
    }              
      
    $(document).ready(function(){
        var $_txtUserName=$('#BalanceDrawRequestStatistics_txtUserName');
        
        jQuery.myfn={
           OpenWindow: function(UserName)
           {
             if (dialogMessage.get_isShowing()) {
                dialogMessage.Close();			
             }
             else {  
                $_txtUserName.attr({'value':UserName});
                CB_cbGrdBalanceDrawRequestList.callback("ShowWindow");
                dialogMessage.Show();
             }
           }
        };
    }
  );

	
</script>
            
            <fieldset class="AdminSearchform">
                <legend>
                    <asp:Literal ID="litSearchTitle" Text="<%$ Resources:BalanceDrawRequestStatistics,IDS_Title_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:BalanceDrawRequestStatistics,IDS_Field_FromDate %>"></asp:Literal>：</nobr>
                        </td>
                        <td class="searchTableControlTD">
                            <Hishop:WebCalendar ID="calendarStart" runat="server" CalendarType="StartDate" />
                        </td>
                        <td class="searchTableLeftTD">
                            <nobr><asp:Literal ID="lblToDate" runat="server" Text="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_ToDate %>"></asp:Literal>：</nobr>
                        </td>
                        <td class="searchTableControlTD">
                            <Hishop:WebCalendar ID="calendarEnd" runat="server" CalendarType="EndDate" />
                        </td>
                        <td>
	                        <asp:Button ID="btnQueryBalanceDrawRequest" runat="server" Text="<%$ Resources:Resources, IDS_Button_Search %>" CssClass="inp_L1"/>
                        </td>
                        <td style="padding-left:10px;">
                            <asp:Button ID="btnCreateReport" runat="server" Text="<%$ Resources:Resources ,IDS_Button_CreateReport %>" 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" AllowSorting="true" SortOrder="DESC">
                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_UserName %>">
                                            <itemtemplate>			                       
			                                    <%# Eval("UserName") %>
			                                </itemtemplate>
			                                </asp:TemplateField>
                                        <asp:BoundField HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_MerchantCode %>" DataField="MerchantCode" />
                                        <asp:TemplateField HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_RequestTime %>"
                                            SortExpression="RequestTime">
                                            <itemtemplate>
			                                    <Hishop:FormatedTimeLabel ID="litDateTime" Time='<%# Eval("RequestTime") %>' runat="server" />
			                                </itemtemplate>
                                        </asp:TemplateField>
                                        <Hishop:MoneyColumnForAdmin HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_Amount %>"
                                            DataField="Amount" />
                                        <asp:TemplateField HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_RequestStatus %>">
                                            <itemtemplate>
			                                    <Hishop:BalanceDrawRequestStatusNameLabel ID="lblRequestStatus" BalanceDrawRequestStatu='<%# Eval("RequestStatus")%>' runat="server" />
			                                </itemtemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>">
                                            <ItemStyle/>
                                            <ItemTemplate>
                                               <a href="#" class="SmallCommonTextButton" onclick="$.myfn.OpenWindow('<%# Eval("UserName")%>');" >查看</a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </Hishop:CustomGridView>
                            </div>
                        </div>
                        <!--翻页开始-->
                        <div class="grdGroupTabhead">
                             <UI:Pager runat="server" ID="pager" />
                        </div>

            </div>
            
        <UI:Dialog AnimationType="Live" ShowTransition="Fade" AnimationSlide="ExponentialDecelerate"
            CloseTransition="Fade" AnimationDuration="600" Modal="false"
            AllowDrag="true" Alignment="MiddleCentre" Title="<%$ Resources:BalanceDrawRequestStatistics,IDS_Title_Dialog %>"
            ID="dialogMessage" runat="server" Width="740">
            <Content>
                <div style="padding:6px;">
                        <input type="text" id="txtUserName" runat="server" style="display:none;" />
                        <UI:CallBack id="CB_cbGrdBalanceDrawRequestList" ClientSideOnCallbackComplete="ResetPager" CacheContent="false" runat="server" PostState="true" Debug="false">
                        <Content>
                            <UI:Grid ID="cbGrdBalanceDrawRequestList" runat="server" AutoGenerateColumns="False" CssClass="GridNoBorder" 
                                        CellPadding="4" ForeColor="#333333" GridLines="None" AllowSorting="false" HeaderStyle-CssClass="GridViewHeaderStyle"
                                        Width="100%" RunningMode="Callback" >
                                        <Columns>
                                            <asp:TemplateField HeaderText="<%$ Resources:BalanceDetails,IDS_Literal_UserName %>">
                                                <itemtemplate>			                       
			                                        <%# Eval("UserName") %>
			                                    </itemtemplate>
			                                    </asp:TemplateField>
                                            <asp:BoundField HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_MerchantCode %>" DataField="MerchantCode" />
                                            <asp:TemplateField HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_RequestTime %>"
                                                SortExpression="RequestTime">
                                                <itemtemplate>
			                                        <%# Eval("RequestTime")%>
			                                    </itemtemplate>
                                            </asp:TemplateField>
                                            <Hishop:MoneyColumnForAdmin HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_Amount %>"
                                                DataField="Amount" />
                                            <asp:TemplateField HeaderText="<%$ Resources:BalanceDrawRequestStatistics,IDS_Field_RequestStatus %>">
                                                <itemtemplate>
			                                        <Hishop:BalanceDrawRequestStatusNameLabel ID="lblRequestStatus" BalanceDrawRequestStatu='<%# Eval("RequestStatus")%>' runat="server" />
			                                    </itemtemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <RowStyle CssClass="grdrow" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                        <HeaderStyle BackColor="#EEF8FF" Height="25" CssClass="GridViewHeaderStyle" Font-Bold="True"
                                            ForeColor="#314E9F" />
                                        <AlternatingRowStyle BackColor="White" />
                                    </UI:Grid>
                                 </Content>
                                 </UI:CallBack>
                                 
                                 <div style="text-align:left">
                                    <UI:CallBack id="PagerCallBack" CacheContent="false" PostState="true" Debug="false" runat="server">
                                    <Content>
                                        <UI:Pager runat="server" ListToPaging="cbGrdBalanceDrawRequestList" ListToCallBackID="CB_cbGrdBalanceDrawRequestList" RunningMode="Callback" ID="cbpager" />
                                    </Content>
                                    </UI:CallBack>
                                </div>
                   </div>
            </Content>
        </UI:Dialog>
        
        </SkinTemplate>
    </Hishop:BalanceDrawRequestStatistics>
            
        </div>
        <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
