<%@ Page Title="" Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true" CodeFile="BusinessSummary.aspx.cs" Inherits="MasterAdmin_BusinessSummery" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div id="request">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td colspan="4" class="hdr">
                   Daily Business Report 
                </td>
            </tr>
            <tr>
                <td style="height: 30px" colspan="4">
                    
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="3%">
                            </td>
                            <td width="12%">
                             From Date
                            </td>
                            <td width="1%">
                                <strong>:</strong>
                            </td>
                            <td width="35%">
                                    <asp:TextBox ID="txtFrmDate" runat="server" Width="180px" onkeypress="return digitonly(this,event)"
                                    CausesValidation="True" AutoCompleteoff="true"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvFrmDate" runat="server" ErrorMessage="Please Enter Date from"
                                    ControlToValidate="txtFrmDate" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <cc1:ValidatorCalloutExtender ID="vceFromDate" runat="server" TargetControlID="rfvFrmDate">
                                </cc1:ValidatorCalloutExtender>                               
                                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFrmDate"
                                    PopupPosition="Right"  Format="yyyy-MM-dd">
                                </cc1:CalendarExtender>                            
                            </td>
                            <td width="18%">
                                To Date
                            </td>
                            <td width="1%">
                                <strong>:</strong>
                            </td>
                            <td width="33%">
                            <asp:TextBox ID="txtToDate" runat="server" Width="180px" onkeypress="return digitonly(this,event)"
                                    CausesValidation="True" AutoCompleteoff="true"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvToDate" runat="server" ErrorMessage="Please Enter To Date"
                                    ControlToValidate="txtToDate" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <cc1:ValidatorCalloutExtender ID="vceToDate" runat="server" TargetControlID="rfvToDate">
                                </cc1:ValidatorCalloutExtender>                               
                                <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtToDate"
                                    PopupPosition="Right" Format="yyyy-MM-dd" >
                                </cc1:CalendarExtender>  
                                
                            </td>
                        </tr>
                        <tr>
                            <td colspan="7" style="height: 10px;text-align: center;">
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit" class="button"  onclick="btnSubmit_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="7">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="7">                    
                    <asp:GridView ID="gvAccountReport" runat="server" AutoGenerateColumns="false" 
                        GridLines="None" Width="100%" HorizontalAlign="Center" ShowFooter="True" >
                        <PagerStyle BackColor="#dddee0" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField HeaderText="Sl." ItemStyle-Width="5%">
                                <ItemTemplate>
                                    <%#Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Service" DataField="SERVICE_NAME" ItemStyle-Width="20%" />
                            <asp:BoundField HeaderText="Count" DataField="TotCount" ItemStyle-Width="5%"/>
                            <%--<asp:BoundField HeaderText="AccountID" DataField="" />--%>
                            <asp:BoundField HeaderText="Txn Amount" DataField="TotTxnAmount" ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="WL Charges" DataField="WLCharges" ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="WL Comm" DataField="WLCommission" ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="DS Comm" DataField="DSCommission" ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="AG Charges" DataField="AGCharges" ItemStyle-Width="10%"/>
                            
                            <asp:BoundField HeaderText="AG Comm" DataField="AGCommission"  ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="TxnType" DataField="ACTION_ON_AMOUNT" ItemStyle-Width="5%"/>
                            <asp:BoundField HeaderText="Status" DataField="STATUS" ItemStyle-Width="5%"/>
                            
                        </Columns>
                        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <AlternatingRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:GridView>
                    
                  
                </td>
            </tr>
           
            <tr>
                <td colspan="4" style="height: 30px"><asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>


