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

<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>Sama Claims</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">Claims</li>
			  <li class="breadcrumb-item active">Sama Claims</li>
			</ol>
		  </div>
		</div>
	  </div><!-- /.container-fluid -->
	</section>
		<!-- /.content-header -->
		<!-- Main content -->
	<section class="content">
	    <div class="container-fluid">
        <div class="row" style="display:none">
            <div class="col-sm-6">
                <div class="form-group">
                <asp:RadioButton ID="rdMADAClm" runat="server" GroupName="aa" Text="MADA Claims" Checked="True" AutoPostBack="True" OnCheckedChanged="rdMADAClaims_CheckedChanged" />
                <asp:RadioButton ID="rdGCCClm" runat="server" GroupName="aa" Text="GCC Claims" AutoPostBack="True" OnCheckedChanged="rdGCCClaims_CheckedChanged" /> 
                </div>
            </div>
        </div>
        <div class="row">
        <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
        </div>
        <div class="card card-info color-palette-box" runat=server id="pnlBR">
              <div class="card-header">
                <h3 class="card-title">Processing CPS files</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label>Choose File</label>
                        <asp:FileUpload ID="FileUpload1" runat="server" class="form-control" />  
                      </div>
                    </div>
                    <div class="col-sm-3">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnUpload" runat="server" Text="Upload File" class="btn btn-primary btn-l" onclick="btnUpload_Click" />
			        </div>
                  </div>


                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label>Files</label>
                        <asp:DropDownList ID="ddlFiles" runat="server" DataTextField="filename" DataValueField="filename" class="form-control select2" ></asp:DropDownList>
                      </div>
                    </div>
                    <div class="col-sm-3">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnLoad" runat="server" Text="Process File" class="btn btn-primary btn-l" onclick="btnLoad_Click"/>
			        </div>
                  </div>

              </div>
              <!-- /.card-body -->

              <div class="card-header">
                <h3 class="card-title">CPS files</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                      <label>Processed Files</label><br />
                      <asp:DropDownList ID="ddlProcessedFiles" runat="server" DataTextField="filename" DataValueField="filename" class="form-control select2" ></asp:DropDownList>
                        <asp:HyperLink Visible=false ID="lnkFile" runat="server">Download Generated File</asp:HyperLink>  
                      </div>
                    </div>
                    <div class="col-sm-2" style="margin-right: 3%">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnDownloadProcessed" runat="server" Text="Download Processed File" class="btn btn-primary btn-l" onclick="btnDownloadProcessed_Click" />
			        </div>
                    <div class="col-sm-1">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnGenerate" runat="server" Text="Generate New File" class="btn btn-primary btn-l" onclick="btnGenerate_Click" />
			        </div>

                  </div>
              </div>


              <div class="card-header">
                <h3 class="card-title">MD5 files</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                  <div class="row">
                  <div class="col-sm-6">
                      <div class="form-group">
                        <label>CPS Files</label>
                        <asp:DropDownList ID="ddlFilesMD5" runat="server"  class="form-control select2" ></asp:DropDownList>
                      </div>
                    </div>
                    <div class="col-sm-2">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnDownloadMD5" runat="server" Text="Download CPS File" class="btn btn-primary btn-l" onclick="btnDownloadMD5_Click" />
			        </div>
                    <div class="col-sm-1">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnGenerateMD5" runat="server" Text="Generate MD5" class="btn btn-primary btn-l" onclick="btnGenerateMD5_Click" />
			        </div>
                  </div>
              </div>
            </div>
		


        <div class="card card-info color-palette-box" runat=server id="pnlGCC">
              <div class="card-header">
                <h3 class="card-title">Generating GCCNet Claim File</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                         
                      </div>
                    </div>
                    <div class="col-sm-3">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnGenGCC" runat="server" Text="Generate GCC File" class="btn btn-primary btn-l" onclick="btnGenerateGCC_Click" />
			        </div>
                  </div>


                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label>GCC Files</label>
                        <asp:DropDownList ID="ddlGCCFiles" runat="server" DataTextField="filename" DataValueField="filename" class="form-control select2"></asp:DropDownList>
                      </div>
                    </div>
                    <div class="col-sm-3">
                    <label>&nbsp;</label><br />
                    <asp:Button ID="btnGCCDownload" runat="server" Text="Download File" class="btn btn-primary btn-l" onclick="btnGCCDownload_Click"/>
			        </div>
                  </div>
                  
              </div>
              <!-- /.card-body -->

            </div>
        
	</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
		    //$('#ContentPlaceHolder1_TextBox1').daterangepicker()

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

		    //$('#reservationdatetime').datetimepicker({ icons: { time: 'far fa-clock'} });
//        $('#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>
