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

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</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>
                            Revent Jobs
                        </td>
                    </tr>
                </table>
                <br>
                <table width="100%" class="tabTb" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left">
                            <table border="0" cellpadding="0" cellspacing="0" dir="ltr">
                                <tr>
                                    <td class="off">
                                        <a href="Monitor.aspx">Load Jobs</a>
                                    </td>
                                    <td class="offEndLast">
                                    </td>
                                    <td class="off">
                                        <a href="MonitorRecon.aspx">Recon Jobs</a>
                                    </td>
                                    <td class="offEndLast">
                                    </td>
                                    <td class="off">
                                        <a href="MonitorHistory.aspx">Job History</a>
                                    </td>
                                    <td class="offEndLast">
                                    </td>
                                    <td class="off">
                                        <a href="MonitorEJ.aspx">EJ Job History</a>
                                    </td>
                                    <td class="offEndLast">
                                    </td>
                                    <td class="off">
                                        <a href="MonitorRevent.aspx">Revert Jobs</a>
                                    </td>
                                    <td class="offEnd">
                                    </td>
                                    <td class="on">
                                        <a href="#">Settlement</a>
                                    </td>
                                    <td class="onEnd">
                                    </td>
                                    <td class="off">
                                        <a href="MonitorHistoryPOS.aspx">Settl History</a>
                                    </td>
                                    <td class="offEndLast">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End1 ----------------------------------------------->
                <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>
                            <asp:Panel ID="pnlGrid" runat="server" Width="100%">
                                <asp:Label ID="Label1" runat="server" Text="" class="fieldError"></asp:Label>
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            Job Status
                                        </td>
                                    </tr>
                                </table>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                                        AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
                                        <ProgressTemplate>
                                        <img alt="Loading" src="../Images/ajax-loader.gif" />
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                <asp:GridView AllowPaging="true" ID="GridView1" CssClass="gridMaster" Width ="100%" runat="server"
                                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
                                    EmptyDataText="There are no Jobs"  >
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="display_name" HeaderText="Job Name" />
                                        <asp:BoundField DataField="last_run_date" HeaderText="Last Run Date" />
                                        <asp:BoundField DataField="start_method" HeaderText="Start Method" />
                                        <asp:BoundField DataField="started_by" HeaderText="Started By" />
                                        <asp:BoundField DataField="end_date" HeaderText="End Date" />
                                        <asp:BoundField DataField="file_name" HeaderText="File name" />
                                        <asp:BoundField DataField="status" HeaderText="status" />
                                        <asp:BoundField DataField="response" HeaderText="Response" />                                        
                                    </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>
                                    <asp:Timer ID="Timer1" runat="server" Interval="10000" ontick="Timer1_Tick">
                                    </asp:Timer>
                                </ContentTemplate>
                                </asp:UpdatePanel>
                            </asp:Panel>
                            <br />
                            <fieldset id="addItem">
                                <legend id="addItem">Settlement</legend>
                            </fieldset>
                            <table border="0" width="100%" cellpadding="0"  cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal" style="width:5%">
                                        
                                    </td>
                                    <td class="tdNormal" style="width:10%">
                                        <asp:RadioButton ID="rdPOS" GroupName="settl" Text="POS" runat="server" Checked="True" />
                                    </td>
                                    <td class="tdNormal" style="width:10%">
                                    </td>
                                    <td class="tdNormal" style="width:20%">
                                        <asp:RadioButton ID="rdECOM" Text="ECOM" GroupName="settl" runat="server" />
                                    </td>
                                    <td class="tdNormal" colspan=2>
                                        
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal" style="width:5%">
                                        Date
                                    </td>
                                    <td class="tdNormal" style="width:10%">
                                        
                                    </td>
                                    <td class="tdNormal" style="width:10%">
                                    </td>
                                    <td class="tdNormal" style="width:20%">
                                        <uc1:DatePicker ID="DatePicker1" runat="server" width="250" />
                                    </td>
                                    <td class="tdNormal" colspan=2>
                                        <asp:Button ID="btnStart" runat="server" Text="Start" CssClass="Btn_L_Normal" OnClick="btnStart_Click" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal" style="width:5%">
                                    </td>
                                    <td class="tdNormal" style="width:10%">
                                    </td>
                                    <td class="tdNormal" style="width:10%">
                                        
                                    </td>
                                    <td class="tdNormal" style="width:20%">
                                    (Suggested Date = <asp:Label ID="lblDate" runat="server" Text="" class=""></asp:Label>)
                                    </td>
                                    <td class="tdNormal" colspan=2>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal" style="text-align: center" colspan="5">
                                        <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
