<%@ 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="gridview_div" runat="server" AutoGenerateColumns="false" 
    mptyDataText="No record found" RowStyle-HorizontalAlign="Center" Width="100%" 
    RowStyle-Height="10px" Visible="true" ShowFooter="True" >
                        <FooterStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                           <Columns> 
                              <asp:TemplateField HeaderText="S.No." ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center">
                               <ItemTemplate>
                                   <asp:Label runat="server" ID="lbl_sno" Text='<%#Container.DataItemIndex+1 %>' style="text-align:center; "></asp:Label>
                               </ItemTemplate>
                           </asp:TemplateField>
                             <asp:TemplateField HeaderText="Division Name" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center">
                               <ItemTemplate>
                                   <asp:Label runat="server" ID="lbl_divname" Text='<%# Eval("DIVISION") %>' style="text-align:center; "></asp:Label>
                                  
                               </ItemTemplate>
                           </asp:TemplateField>
                             <asp:TemplateField HeaderText="SubDiv Name" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center">
    <ItemTemplate>
        <asp:Label runat="server" ID="lbl_subdivname" Text='<%# Eval("Subdivision") %>' style="text-align:center; "></asp:Label>
       
    </ItemTemplate>
</asp:TemplateField>
 <asp:TemplateField HeaderText="Payment Mode" ItemStyle-Width="9%" ItemStyle-HorizontalAlign="Center">
    <ItemTemplate>
        <asp:Label runat="server" ID="lbl_divPRow" Text='<%# Eval("paymentMode") %>' style="text-align:center; "></asp:Label>
    </ItemTemplate>
</asp:TemplateField>
                            <asp:TemplateField HeaderText="No. of Entries" ItemStyle-Width="9%" ItemStyle-HorizontalAlign="Center">
                               <ItemTemplate>
                                   <asp:Label runat="server" ID="lbl_divRow" Text='<%# Eval("record") %>' style="text-align:center; "></asp:Label>
                               </ItemTemplate>
                           </asp:TemplateField>
                          <asp:TemplateField HeaderText="Total Amount" ItemStyle-Width="9%" ItemStyle-HorizontalAlign="Center">
                               <ItemTemplate>
                                   <asp:Label runat="server" ID="lbl_TamountDiv" Text='<%# Eval("total","{0:n}") %>' style="text-align:center; "></asp:Label>
                               </ItemTemplate>
                           </asp:TemplateField> 
                           <%-- <asp:TemplateField ItemStyle-Width="12%">
                               <ItemTemplate>
                               <asp:Button ID="btn_div" runat="server" Text="View"  CommandArgument='<% #Eval("DIVISION")%>' CssClass="buttondcr" />
                               </ItemTemplate>
                           </asp:TemplateField>--%>
                          
                       </Columns>
                       <HeaderStyle BackColor="#CADAE8" Height="41px"></HeaderStyle>
                       
                       </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>


