<%@ Page Title="Special Discount" Language="C#" MasterPageFile="~/SunMaster.Master" AutoEventWireup="true" CodeBehind="SpecialDiscount.aspx.cs" Inherits="SUNWEB.SpecialDiscount" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link type="text/css" rel="Stylesheet" href="css/NestedDG.css" />
 <style type="text/css">
    @media only screen and (max-width: 600px) {
    table, th, td {
        font-size: 10px;
        font-weight:bold;
        
    }
    
     .Labels{font-size:10px; }
     .alnright { text-align: right; }
       
             }
    
    
    
    </style>
        <style type="text/css">
        .overlay
        {
            position: fixed;
            top: 0px;
            left: 0px;
            z-index: 0;
            height: 100%;
            width: 100%;
            top: 0;
            background-color: White;
            filter: alpha(opacity=60);
            opacity: 0.9;
            -moz-opacity: 1;
        }
        
        .LoadingDivCss
        {
            margin: 0;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-right: -50%;
            transform: translate(-50%, -50%);
        }
        
        .LoadingImgCss
        {
            height: 100px;
            width: 100px;
        }
    </style>
</asp:Content>
  <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div>
               
      <asp:Button ID="btnExcel" runat="server" Text="Export"    
      ToolTip="To Export the Report Click Here"  CssClass="btn btn-success btn-xs" 
      onclick="btnExcel_Click"/>
      </div>
      <asp:UpdatePanel runat="server" ID="updatepanel1" UpdateMode="Conditional">
      <ContentTemplate>
 


<%--           <table style="margin-left: 1%; width: 98%;">
                <tr>
                    <td style="font-size:large; width: 50%; font-family:'Open Sans', sans-serif; font-weight:bolder;">
                       DETAILED STOCK REPORT
                       
                    </td>
              </tr>
            </table>--%>

              <div class="section-block">
                <h6 class="section-title">
                 SPECIAL DISCOUNT
                </h6>
            </div>
                <div class="row">
                        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <div class="card">
                                                    
                                <div class="card-body">
                                   <div class="form-row">
                                    <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                        <caption>
                                            <label for="validationCustom03">
                                                From
                                            </label>

                                            <asp:TextBox ID="txtFromDt" class="form-control" runat="server" 
                                            Font-Size="Small"></asp:TextBox>
                                        <asp:CalendarExtender ID="calFirstDueDate" Format="yyyy-MM-dd" runat="server" TargetControlID="txtFromDt"
                                        PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>
    
                                                     
                                        </caption>
   
                                    </div>
                                    <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                        <label for="validationCustom03"> To 
                                            </label>

                                            <asp:TextBox ID="txtToDt" runat="server" class="form-control" 
                                            ></asp:TextBox>
                                        <asp:CalendarExtender ID="CalendarExtender1" Format="yyyy-MM-dd" runat="server" TargetControlID="txtToDt"
                                        PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>
                                    </div>
                                    <%--onselectedindexchanged="cmbBranches_SelectedIndexChanged" --%>
                                    <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                        <label for="validationCustom03">Branch
                                        <asp:Label ID="lblBranchAliasName"  ForeColor="Blue" runat="server"></asp:Label></label>
                                        <asp:DropDownList ID="cmbBranches" CssClass="custom-select"  
                                        runat="server" AutoPostBack="true" 
                                        onselectedindexchanged="cmbBranches_SelectedIndexChanged"></asp:DropDownList>
                                    </div>
                                            
                                           
                                    <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                        <label for="validationCustom03">Customer Number 
                                        <asp:Label ID="lblCustNo"  ForeColor="Blue" runat="server"></asp:Label></label>
                                        <asp:TextBox ID="txtCustNo" runat="server" class="form-control" ></asp:TextBox>
                                    </div>

                                </div>
                                </div>
                                
                                <table>
                                <tr>
                                <td>
                                <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                <asp:Button ID="btnGenerate" runat="server" Text="Apply" Class="btn btn-primary"
                                    OnClick="btnGenerate_Click"  />
                                </div>
                                </td>
                                </tr>
                                </table> 
                            </div>
                        </div>
                </div>
            <br />
            
<%--<div style="margin-left: 0px;">
<div class="container-fluid  dashboard-content">
<div class="row">--%>
<%--<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">--%>
<div class="card">
<h5 class="card-header" id="idGenReport" runat="server">
       
       <asp:Label ID="lblMsgTotalSelection" runat="server" CssClass="Labels"> </asp:Label>
           <%--<asp:Button ID="btnPdf" runat="server" Text="PDF" 
            ToolTip="To Export  the Report Click Here"  CssClass="btn btn-secondary" 
            onclick="btnPdf_Click"/>--%>  
        
         
</h5>

<div class="card-body">
<div class="table-responsive">
<div align="center" >
<table id="example4" class="table table-striped table-bordered" style="width:100%">
<tbody>
<caption>
<div align="center">

 <asp:GridView ID="GridView1"
runat="server" showfooter="true"  FooterStyle-HorizontalAlign="Right" BorderColor="Transparent" 
DataKeyNames="CustomerNumber" AutoGenerateColumns="false" Font-Size="13px"
Width="100%"
OnPageIndexChanging="GridView1_PageIndexChanging" AllowPaging="True" PageSize="20" >

    <HeaderStyle CssClass="dataTable" />
    <HeaderStyle BackColor = "White" ForeColor="Black" />
    <footerstyle backcolor= "White" ForeColor="Black" />
    <%--<AlternatingRowStyle CssClass="dataTableAlt" />--%>
    <RowStyle CssClass="dataTable" />

    <Columns>
 
    <asp:BoundField DataField="TransDate" HeaderText="Date"  HeaderStyle-HorizontalAlign="Left"  HtmlEncode="False" ItemStyle-HorizontalAlign="left" ItemStyle-Width="15%"  />
    <asp:BoundField DataField="CustomerNumber" HeaderText="CustomerNumber"  HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="text-left" HtmlEncode="False" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
    <asp:BoundField DataField="CustomerName" HeaderText="CustomerName"  HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="text-left" HtmlEncode="False" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="12%" />
    <asp:BoundField DataField="Slot1" HeaderText="Slot 1"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" HtmlEncode="False" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="12%" />
    <asp:BoundField DataField="Slot2" HeaderText="Slot 2"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" HtmlEncode="False" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="12%" />
    <asp:BoundField DataField="Slot3" HeaderText="Slot 3"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" HtmlEncode="False" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="12%" />
    <asp:BoundField DataField="Slot4" HeaderText="Slot 4"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" HtmlEncode="False" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="12%" />
    <asp:BoundField DataField="Total" HeaderText="Total"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" HtmlEncode="False" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="10%" />
   
    </Columns>
    
    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <RowStyle ForeColor="#000066" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#007DBB" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#00547E" />
</asp:GridView>
</div>
</caption>
</tbody>
</table> 
</div>
</div> 
</div>
</div>
<%--</div>--%>
<%--</div>
</div>
</div>--%>  


  </ContentTemplate>
    </asp:UpdatePanel>

    <asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="updatepanel1">
        <ProgressTemplate>
            <div class="overlay">
                <%--  <div style="z-index: 1000; margin-left: 450px; margin-top: 0; opacity: 1; -moz-opacity: 1;">--%>
                <div class="LoadingDivCss">
                    <img alt="" src="IMG/Spinner.gif" class="LoadingImgCss" />
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>


  <script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css?v=1.1" rel="stylesheet" />
  <!-- Bootstrap 5 -->
 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" />
 <!-- Optional Bootstrap Icons -->
 <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet" />

</asp:Content>
