<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true"
	CodeFile="FileLoadingSummary.aspx.cs" Inherits="FileLoadingSummary" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
	<!-- DataTables -->
	<link rel="stylesheet" href="../plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
	<link rel="stylesheet" href="../plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
	<link rel="stylesheet" href="../plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
	<section class="content-header">
	  <div class="container-fluid">
		<div class="row mb-2">
		  <div class="col-sm-6">
			<h1>File Loading Summary</h1>
		  </div>
		  <div class="col-sm-6">
			<ol class="breadcrumb float-sm-right">
			  <li class="breadcrumb-item"><a href="#">Home</a></li>
			  <li class="breadcrumb-item active">Reconcilliation</li>
			  <li class="breadcrumb-item active">File Loading Summary</li>
			</ol>
		  </div>
		</div>
	  </div><!-- /.container-fluid -->
	</section>
		<!-- /.content-header -->
		<!-- Main content -->
	<section class="content">
	    <div class="container-fluid">
        <div class="card card-warning">
              <%--<div class="card-header">
                <h3 class="card-title">Search Filters</h3>
              </div>--%>
              <!-- /.card-header -->
              <div class="card-body">
                  <div class="row">
                    <div class="col-sm-3">
                      <div class="form-group">
                        <label>Channel</label>
                        <asp:DropDownList ID="ddlChannels" runat="server" AutoPostBack="False" 
                                                        DataTextField="channel_name"  DataValueField="rc_code" 
                                                            class="form-control select2" onselectedindexchanged="ddlChannels_SelectedIndexChanged">
                                                    </asp:DropDownList>
                      </div>
                      
                    </div>
                    <div class="col-sm-3" style="display:none">
                      <div class="form-group">
                        <label>File Date</label>
                        <asp:DropDownList ID="ddlDates" runat="server" AutoPostBack="True" 
                                                        DataTextField="display_date"  DataValueField="file_date" 
                                                            class="form-control select2" onselectedindexchanged="ddlDates_SelectedIndexChanged">
                                                    </asp:DropDownList>
                      </div>
                    </div>
                    <div class="col-sm-3">
                      <div class="form-group">
                        <label>File Date</label>
                        <div class="input-group date" id="reservationdate" data-target-input="nearest">
                        
                        <asp:TextBox ID="txtDate" data-target="#reservationdate" runat="server" class="form-control datetimepicker-input"></asp:TextBox>
                        <div class="input-group-append" data-target="#reservationdate" data-toggle="datetimepicker">
                            <div class="input-group-text"><i class="fa fa-calendar"></i></div>
                        </div>
                    </div>
                      </div>
                    </div>
                    <div class="col-sm-3">
                     
                    </div>
                  </div>
                  <div class="row">
			        <div class="col-12">
                    <asp:Button ID="btnSearch" runat="server" Text="     Search     " OnClick="btnSearch_Click"
										CssClass="btn btn-primary btn-l" />
			        </div>
                    </div>
              </div>
              <!-- /.card-body -->
              
            </div>
		<!-- Default box -->
		<div class="card card-info color-palette-box">
			<div class="card-header">
				<h3 class="card-title">
                    <i class="fas fa-tag"></i>
                    <b>File Loading Sumamry Results</b>
                </h3>

				<div class="card-tools">
					<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
						<i class="fas fa-minus"></i>
					</button>
					</div>
			</div>
			<div class="card-body ">
            <asp:GridView ID="GridView1" class="table table-bordered table-hover" runat="server" AutoGenerateColumns="False" 
                                                
                  EmptyDataText="There are no results">
                <Columns>
                    <asp:BoundField DataField="file_id" HeaderText="File ID" />
                    <asp:BoundField DataField="file_number" HeaderText="File No" />
                    <asp:BoundField DataField="record_date" HeaderText="File Date" />
                    <asp:BoundField DataField="proc_start_time" HeaderText="Process Start Time" />
                    <asp:BoundField DataField="proc_end_time" HeaderText="Process End Time" />
                    <asp:BoundField DataField="processing_status" HeaderText="Status" />
                    <asp:BoundField DataField="records_loaded" HeaderText="Records Loaded" />
                    <asp:BoundField DataField="records_rejected" HeaderText="Records Rejected" />
                    <asp:BoundField DataField="total_records" HeaderText="Total Records" />
                    
                </Columns>
            </asp:GridView>
            <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB1" style="display:none">
                                                <tr>
                                                    <td class="tdNormal">
                                                        <label>Process Start Time</label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblstime" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                    </td>
                                                    <td class="tdNormal">
                                                        <label>Process End Time</label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblet" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        <label>Processing Status</label></td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblstatus" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        &nbsp;</td>
                                                    <td class="tdNormal">
                                                        <label>Record Date</label></td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblRecDate" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        <label>Records Loaded</label></td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblloaded" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        &nbsp;</td>
                                                    <td class="tdNormal">
                                                        <label>Records Rejected</label></td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblrejected" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        <label>Total Records</label></td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lbltotal" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        &nbsp;</td>
                                                    <td class="tdNormal">
                                                        <label>File Number</label></td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblFileNumber" runat="server"></asp:Label>
                                                        </td>
                                                </tr>
                                            </table>
			
			</div>
					
			<!-- /.card-body -->
		</div>

        
        <!-- /.card -->
		
	</div><!-- /.container-fluid -->
	</section>
		<!-- /.content -->
	</div>
	<!-- Toastr -->
	<!-- jQuery -->
	<script src="../plugins/jquery/jquery.min.js"></script>
	<!-- Bootstrap 4 -->
	<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
	<!-- SweetAlert2 -->
	<script src="../plugins/sweetalert2/sweetalert2.min.js"></script>
	<!-- Toastr -->
	<script src="../plugins/toastr/toastr.min.js"></script>
	<!-- AdminLTE App -->
	<script src=".../dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script src="../plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
	<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
	<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
	<script src="../plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
	<script src="../plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
	<script src="../plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
	<script src="../plugins/jszip/jszip.min.js"></script>
	<script src="../plugins/pdfmake/pdfmake.min.js"></script>
	<script src="../plugins/pdfmake/vfs_fonts.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.html5.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.print.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
    <script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
	<!-- AdminLTE App -->
	<script src="../dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script src="../dist/js/demo.js"></script>
    <script src="../plugins/select2/js/select2.full.min.js"></script>
    <!-- Bootstrap4 Duallistbox -->
    <script src="../plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
    <!-- InputMask -->
    <script src="../plugins/moment/moment.min.js"></script>
    <script src="../plugins/inputmask/jquery.inputmask.min.js"></script>
    <!-- date-range-picker -->
    <script src="../plugins/daterangepicker/daterangepicker.js"></script>
    <!-- bootstrap color picker -->
    <script src="../plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
    <!-- Tempusdominus Bootstrap 4 -->
    <script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
    <!-- Bootstrap Switch -->
    <script src="../plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
    <!-- BS-Stepper -->
    <script src="../plugins/bs-stepper/js/bs-stepper.min.js"></script>
    <!-- dropzonejs -->
    <script src="../plugins/dropzone/min/dropzone.min.js"></script>
    <!-- AdminLTE App -->
	<script>

		$(function () {

		    $('#ContentPlaceHolder1_GridView1').DataTable({
		        "responsive": true, "lengthChange": false, "autoWidth": false,
		        "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
		    }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

        //Date picker
		    $('#reservationdate').datetimepicker({
		        format: 'DD/MM/YYYY'
		    });


//        $('#ContentPlaceHolder1_GridView1').DataTable({
//            "responsive": true, "lengthChange": false, "autoWidth": false,
//            "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
//        }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

//        $('#ContentPlaceHolder1_gvChannel').DataTable({
//            "responsive": true, "lengthChange": false, "autoWidth": false,
//            "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
//        }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

//        $('#ContentPlaceHolder1_gvEJ').DataTable({
//            "responsive": true, "lengthChange": false, "autoWidth": false,
//            "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
//        }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
		});
</script>
</asp:Content>
