<%@ page language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="Business_FLS, App_Web_5gjzjsli" viewStateEncryptionMode="Always" maintainScrollPositionOnPostBack="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function RevertConfirmation() {
            var userSelection;

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

            if (userSelection) {
                return true;
            } else {
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <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>
                                        File Loading Summary</td>
                                </tr>
                            </table>
                            <br>
                            <!------------------------------------body End1 ----------------------------------------------->
                            <asp:Label ID="lbl_error" runat="server" Text="" class="fieldError"></asp:Label>
                            <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                                <tr>
                                    <td align="center">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                        <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        Select Channel
                                                    </td>
                                                    <td colspan=4>
                                                    <asp:DropDownList ID="ddlChannels" runat="server" AutoPostBack="True" 
                                                        DataTextField="channel_name" Width="250px" DataValueField="rc_code" 
                                                            class="fieldNormal" onselectedindexchanged="ddlChannels_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr runat="server" id="datesrow" visible="false">
                                                    <td class="tdNormal">
                                                        Select Date
                                                    </td>
                                                    <td colspan=4>
                                                    <asp:DropDownList ID="ddlDates" runat="server" AutoPostBack="True" 
                                                        DataTextField="display_date" Width=250px DataValueField="file_date" 
                                                            class="fieldNormal" onselectedindexchanged="ddlDates_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr runat="server" id="filerow" visible="false">
                                                    <td class="tdNormal">
                                                        Select File ID
                                                    </td>
                                                    <td colspan=4>
                                                    <asp:DropDownList ID="ddlFile" runat="server" AutoPostBack="True" 
                                                        DataTextField="file_id" Width=250px DataValueField="file_id" 
                                                            class="fieldNormal" onselectedindexchanged="ddlFile_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" style="text-align: center">
                                                        <asp:Button ID="btnSearch" runat="server" Visible="false" Text="Search" CssClass="Btn_L_Normal"
                                                            OnClick="btnSearch_Click" />&nbsp;
                                                        <asp:Button ID="btnRevert" runat="server" Visible="false" Text="Revert Process" CssClass="Btn_L_Normal"
                                                            OnClientClick="return RevertConfirmation()" OnClick="btnRevert_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                            <fieldset id="addItem">
                                             <legend id="addItem">File Loading Sumamry Results</legend>
                                            </fieldset>
                                            <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                <tr>
                                                    <td class="tdNormal">
                                                        Process start time
                                                    </td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblstime" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                    </td>
                                                    <td class="tdNormal">
                                                        Process end time
                                                    </td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblet" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        Processing Status</td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblstatus" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        &nbsp;</td>
                                                    <td class="tdNormal">
                                                        Record date</td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblRecDate" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        Records Loaded</td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblloaded" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        &nbsp;</td>
                                                    <td class="tdNormal">
                                                        Records Rejected</td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblrejected" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        Total Records</td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lbltotal" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal">
                                                        &nbsp;</td>
                                                    <td class="tdNormal">
                                                        File Number</td>
                                                    <td class="tdNormal">
                                                        <asp:Label ID="lblFileNumber" runat="server"></asp:Label>
                                                        </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>                                        
                                        <!------------------------------------body End2 ----------------------------------------------->
                                        <br>
                                    </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                        </td>
                    </tr>
                </table>
</ContentTemplate>    
</asp:UpdatePanel>
</asp:Content>
