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

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function noCopyMouse(e) {
            var isRight = (e.button) ? (e.button == 2) : (e.which == 3);
            if (isRight) {
                alert("Not Allowed to copy");
                return false;
            }
            return true;
        }

        function noCopyKey(e) {
            var forbiddenKeys = new Array('c', 'x', 'v');
            var keyCode = (e.keyCode) ? e.keyCode : e.which;
            var isCtrl;

            if (window.event)
                isCtrl = e.ctrlKey;
            else
                isCtrl = (window.Event) ? ((e.modifiers & Event.CTRL_MASK) == Event.CTRL_MASK) : false;

            if (isCtrl) {
                for (i = 0; i < forbiddenKeys.length; i++) {
                    if (forbiddenkeys[i] == String.fromCharCode(keyCode).toLowerCase()) {
                        alert("Not Allowed to Copy");
                        return false;
                    }
                }
            }
            return true;
        }

        function validateDate() {
            var message = "";
            if (document.getElementById("<%=dtp_scsdate.TextBoxClientID%>").value == "") {
                message += "You have to at enter the transaction date\n";
            }
            if (message.length > 0) {
                message = "please notice the following requirments:\n\n" + message;
                alert(message);
                return false;
            }
            return true;
        }

        function ProcessConfirmation() {
            var userSelection;

            userSelection = confirm("Are you sure you want to Process ?");

            if (userSelection) {
                return true;
            } else {
                return false;
            }
        }

        function GenerateConfirmation() {
            var userSelection;

            userSelection = confirm("Are you sure you want to Generate ?");

            if (userSelection) {
                return true;
            } else {
                return false;
            }
        }

    </script>
    <style type="text/css">
        .style2
        {
            width: 15%;
            height: 20px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            Visa / MasterCard Billing
                        </td>
                    </tr>
                </table>
                <br />
                <!------------------------------------body End1 ----------------------------------------------->
                <asp:Label ID="lbl_error" runat="server" Text="" class="fieldError"></asp:Label>
                <asp:Panel ID="pnl_searchCriteria" runat="server" Width="100%">
                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1" style="width: 100%">
                        <tr>
                            <td class="tdNormal" style="width: 15%">
                                Card Scheme:
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:DropDownList ID="ddlCScheme" runat="server" DataTextField="product_name" DataValueField="product_name" class="fieldNormal" AutoPostBack="true" OnSelectedIndexChanged="ddlCScheme_SelectedIndexChanged"></asp:DropDownList>
                            </td>
                            <td class="tdNormal" style="width: 10%">
                                <asp:TextBox ID="txtproductid" runat="server" Visible="false" class="form-control"></asp:TextBox>
                                <asp:TextBox ID="txtfilentype" runat="server" Visible="false" class="form-control"></asp:TextBox>
                                <asp:TextBox ID="txtjobname" runat="server" Visible="false" class="form-control"></asp:TextBox>
                            </td>
                            <td class="tdNormal" style="width: 15%">
                            </td>
                            <td class="tdNormal" style="width: 30%">
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">
                                Date:
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <uc1:DatePicker ID="dtp_scsdate" runat="server" />
                            </td>
                            <td class="tdNormal" style="width: 10%">
                            </td>
                            <td id="fu_label" runat="server" visible="false" class="tdNormal" style="width: 15%">
                                <asp:Label ID="Lbl_FileName" runat="server" ></asp:Label>
                            </td>
                            <td id="fileupload" runat="server" visible="false" class="tdNormal" style="width: 30%">
                                <asp:FileUpload ID="FileUpload1" runat="server" CssClass="form-control" ClientIDMode="Static" />
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Button ID="btnSearch" runat="server" Text="Search" class="Btn_L_Normal1" OnClick="btnSearch_Click" OnClientClick="$('#cover-spin').show();"/>&nbsp; 
                                <asp:Button ID="btnReset" runat="server" Text="Reset" class="Btn_L_Normal1" OnClick="btnReset_Click" OnClientClick="$('#cover-spin').show();"/> 
                            </td>
                            <td class="tdNormal" style="width: 10%">
                            </td>
                            <td class="tdNormal" style="width: 15%">
                                <asp:Label ID="LblFLStatus" runat="server" Visible="false"></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Button ID="btnUpload" runat="server" Text="Load File" class="Btn_L_Normal1" OnClick="btnUpload_Click" OnClientClick="$('#cover-spin').show();" visible="false" />
                            </td>
                        </tr>
                        <%--<tr id="fileupload" runat="server" visible="false">
                            <td class="tdNormal" style="width: 15%">
                                <asp:Label ID="Lbl_FileName" runat="server" ></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:FileUpload ID="FileUpload1" runat="server" CssClass="form-control" ClientIDMode="Static" />
                            </td>
                            <td class="tdNormal" style="width: 10%">
                            </td>
                            <td class="tdNormal" style="width: 15%">
                                <asp:Label ID="LblFLStatus" runat="server" Visible="false"></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Button ID="btnUpload" runat="server" Text="Load File" class="Btn_L_Normal1" OnClick="btnUpload_Click" OnClientClick="$('#cover-spin').show();" visible="false" />
                            </td>
                        </tr>--%>
                    </table>
                </asp:Panel>
                <asp:Panel ID="pnl_FLSResults" runat="server" Width="100%" visible="false">
                    <table dir="ltr" width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            File Loading Summary Results
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" colspan="5">
                                <asp:GridView ID="GV_FileLS" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="record_date" AllowPaging="false" AllowSorting="True" ShowFooter="false"
                                    CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCommand="GV_FileLS_RowCommand" 
                                    OnRowCreated="GV_FileLS_RowCreated" OnRowDataBound="GV_FileLS_RowDataBound" 
                                    OnPreRender="GV_FileLS_PreRender" EmptyDataText="There are no Results">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                    <Columns>
                                        <asp:BoundField DataField="file_id" HeaderText="File&nbsp;Name" />
                                        <asp:BoundField DataField="file_number" HeaderText="File&nbsp;Number" />
                                        <asp:BoundField DataField="record_date" HeaderText="Record&nbsp;Date" />
                                        <asp:BoundField DataField="proc_start_time" HeaderText="Start&nbsp;Time" />
                                        <asp:BoundField DataField="proc_end_time" HeaderText="End&nbsp;Time" />
                                        <asp:BoundField DataField="processing_status" HeaderText="Status" />
                                        <asp:BoundField DataField="records_loaded" HeaderText="Records&nbsp;Loaded" />
                                        <asp:BoundField DataField="records_rejected" HeaderText="Records Rejected" />
                                        <asp:BoundField DataField="total_records" HeaderText="Total&nbsp;Records" />
                                        <asp:TemplateField HeaderText="Actions" Visible="true">
                                            <ItemTemplate>
                                                <!--<button type="button" class="btn btn-default btn-block btn-xs dropdown-toggle" data-toggle="dropdown">
                                                    Action
                                                </button>-->
                                                <div class="dropdown-menu">
                                                    <a class="dropdown-item" href="#">
                                                        <asp:Button ID="btn_breakdown" CssClass="btn btn-outline-info btn-block btn-sm" runat="server" Text="View Breakdown" CommandName="vb" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                                                        <asp:Button ID="btn_summary" CssClass="btn btn-outline-info btn-block btn-sm" runat="server" Text="Summary" CommandName="v" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                                                        <asp:Button ID="btn_details" CssClass="btn btn-outline-secondary btn-block btn-sm" runat="server" Text="Details" CommandName="d" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                                                    </a>
                                                </div>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                </asp:GridView>
                                <asp:TextBox ID="txtfilenumber" runat="server" Visible="false" class="form-control"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <asp:Panel ID="pnl_BreakdownFR" runat="server" Width="100%" Visible="false">
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                    <tr>
                        <td>
                            Visa Quard Breakdown File Results
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table dir="ltr" width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="tdNormal" colspan="5">
                            <asp:GridView ID="GV_BFileLS" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                DataKeyNames="FILE_NUMBER" AllowPaging="false" AllowSorting="True" ShowFooter="false"
                                CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDataBound="GV_BFileLS_RowDataBound"
                                OnPreRender="GV_BFileLS_PreRender" EmptyDataText="There are no Results">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                <Columns>
                                    <asp:BoundField DataField="RECORD_DATE" HeaderText="Record&nbsp;Date" />
                                    <asp:BoundField DataField="FILE_NUMBER" HeaderText="File&nbsp;Number" />
                                    <asp:BoundField DataField="CARD_SERVICE_DESC" HeaderText="Cards&nbsp;Service&nbsp;Desc" />
                                    <asp:BoundField DataField="CARD_TYPE_1" HeaderText="Card Type 1" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="CARD_TYPE_2" HeaderText="Card Type 2" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="CARD_TYPE_3" HeaderText="Card Type 3" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="CARD_TYPE_4" HeaderText="Card Type 4" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="TOTAL_AMOUNT" HeaderText="Total&nbsp;Amount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="SOURCES" HeaderText="Sources" />
                                </Columns>
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <caption>
                        &nbsp;</caption>
                </table>
                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                    <tr>
                        <td>
                            <asp:Button ID="btnProcess" runat="server" Text="Process" Enabled="true" class="Btn_M_Normal" OnClientClick="return ProcessConfirmation()" OnClick="btnProcess_Click" />
                        </td>
                    </tr>
                </table>
                <asp:Label ID="LblQBFProcess" runat="server" Visible="false"></asp:Label>
            </td>
        </tr>
        </asp:Panel>

        <asp:Panel ID="pnlSettlements" runat="server" Width="100%" Visible="false">
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                    <tr>
                        <td>
                            Settlements
                        </td>
                    </tr>
                </table>
                <asp:Label ID="LblLSettlements" runat="server" Visible="false" />
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                    <tr>
                        <td class="tdNormal" style="width: 15%">Net Settlement USD Amount:
                        </td>
                        <td class="tdNormal" style="width: 30%">
                            <asp:Label ID="lblNetTotal_USD" runat="server" />
                        </td>
                        <td class="tdNormal" style="width: 10%"></td>
                        <td class="tdNormal" style="width: 15%">
                            <asp:Label ID="LblFileNumber" runat="server" Visible="false" />
                        </td>
                        <td class="tdNormal" style="width: 30%">
                            <asp:Label ID="LblQBFNumber" runat="server" Visible="false" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdNormal" colspan="5">
                            <asp:GridView ID="GV_Settlements_USD" CssClass="gridMaster" Width="100%" runat="server"
                                AutoGenerateColumns="False" AllowPaging="false" AllowSorting="True" ShowFooter="false"
                                CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDataBound="GV_Settlements_USD_RowDataBound" 
                                EmptyDataText="There are no Results">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="CARD_TYPE" HeaderText="Card&nbsp;Type" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField DataField="ATM_USD_AMOUNT" DataFormatString="{0:N2}" HeaderText="ATM&nbsp;USD&nbsp;Amount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="POS_USD_AMOUNT" DataFormatString="{0:N2}" HeaderText="POS&nbsp;USD&nbsp;Amount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="GENERAL_USD_AMOUNT" DataFormatString="{0:N2}" HeaderText="General&nbsp;USD&nbsp;Amount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="TOTAL" DataFormatString="{0:N2}" HeaderText="Total" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                </Columns>
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdNormal" colspan="5">
                            <span id="SA_RRate" runat="server">
                                <label>Currency Rate</label>&nbsp;: &nbsp;<asp:Label ID="Lbl_SARRate" runat="server" />&nbsp;&nbsp;&nbsp;|&nbsp;</span>
                            <span id="VB_Amount" runat="server">
                                <label>Visa Billing SAR Amount</label>&nbsp;: &nbsp;<asp:Label ID="Lbl_VBAmount" runat="server" />&nbsp;&nbsp;&nbsp;|&nbsp;</span>
                            <span id="SAR_NTotal" runat="server">
                                <label><asp:Label ID="LblNetTitle" runat="server" /></label>&nbsp;: &nbsp;<asp:Label ID="lblNetTotal_SAR" runat="server" />&nbsp;&nbsp;</span>
                            <asp:Button ID="btnGenerate" runat="server" Text="Generate" class="btn btn-primary btn-l" OnClientClick="return GenerateConfirmation()" OnClick="btnGenerate_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdNormal" colspan="5">
                            <asp:GridView ID="GV_Settlements_SAR" CssClass="gridMaster" Width="100%" runat="server"
                                AutoGenerateColumns="False" AllowPaging="false" AllowSorting="True" ShowFooter="false"
                                CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCommand="GV_Settlements_SAR_RowCommand" 
                                OnRowDataBound="GV_Settlements_SAR_RowDataBound" EmptyDataText="There are no Results">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                <Columns>
                                    <asp:BoundField DataField="CARD_TYPE" HeaderText="Card&nbsp;Type" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" HeaderText="Summary" CommandName="r" ImageUrl="~/Images/document_view.jpg" ItemStyle-HorizontalAlign="Center"></asp:ButtonField>
                                    <asp:BoundField DataField="ATM_SAR_AMOUNT" DataFormatString="{0:N2}" HeaderText="ATM&nbsp;SAR&nbsp;Amount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="POS_SAR_AMOUNT" DataFormatString="{0:N2}" HeaderText="POS&nbsp;SAR&nbsp;Amount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="GENERAL_SAR_AMOUNT" DataFormatString="{0:N2}" HeaderText="General&nbsp;SAR&nbsp;Amount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                    <asp:BoundField DataField="TOTAL" DataFormatString="{0:N2}" HeaderText="Total" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" />
                                </Columns>
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        </asp:Panel>


        <asp:Panel ID="pnl_fsresults" runat="server" Width="100%" Visible="false">
            <tr>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                        <tr>
                            <td>File Summary Results
                            </td>
                        </tr>
                    </table>
                    <asp:Label ID="lblpnlControls" runat="server" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                        <tr>
                            <td class="tdNormal" style="width: 15%">File ID :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label1" runat="server"></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 10%"></td>
                            <td class="tdNormal" style="width: 15%">File Number :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label2" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">Record Date :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label3" runat="server"></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 10%"></td>
                            <td class="tdNormal" style="width: 15%">Process Start Time :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label4" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">Process End Time :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label5" runat="server"></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 10%"></td>
                            <td class="tdNormal" style="width: 15%">Status :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label6" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">Records Loaded :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label7" runat="server"></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 10%"></td>
                            <td class="tdNormal" style="width: 15%">Records Rejected :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label8" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">Total Records :
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:Label ID="Label9" runat="server"></asp:Label>
                            </td>
                            <td class="tdNormal" style="width: 10%"></td>
                            <td class="tdNormal" style="width: 15%"></td>
                            <td class="tdNormal" style="width: 30%"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </asp:Panel>
    </table>

    <script>
        $(function () {
            $('#<%= ddlCScheme.ClientID %>' + ',#<%= dtp_scsdate.ClientID %>').change(function () {
                $("#cover-spin").show();
            });
        });
    </script>
</asp:Content>
