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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script language="javascript" type="text/javascript">
function validate()
{
    var message = "";
    
    if (document.getElementById("<%=txtATM.ClientID%>").value=="")
    {
        message += "You have to enter the ATM Number...\n";
    }
    
    if(message.length >0)
    {
        message = "please notice the following requirments:\n\n" + message;
        alert(message);
        return false;
    }
    return true;
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <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>
                                        EJ loading summary</td>
                                </tr>
                            </table>
                            <br>
                            <!------------------------------------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>
                                        <br />
                                        <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                        <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" style="width: 15%">
                                                        ATM number
                                                    </td>
                                                    <td colspan="4">
                                                        <asp:TextBox ID="txtATM" runat="server" class="fieldNormal" Width="250"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" style="text-align:center">
                                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" 
                                                            OnClientClick="return validate()" onclick="Button1_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                        <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                            <fieldset id="addItem">
                                             <legend id="addItem">Search Results</legend>
                                            </fieldset>
                                            <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" colspan=5>
                                                        <asp:GridView ID="GridView1" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                                             DataKeyNames="term_id" AllowPaging="True" AllowSorting="True" 
                                                            CellPadding="4" ForeColor="#333333" GridLines="None" 
                                                            onrowcommand="GridView1_RowCommand" EmptyDataText="There are no Results" 
                                                            >
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                <asp:BoundField DataField="term_id" HeaderText="Terminal ID" />
                                                                <asp:BoundField DataField="lastrun_cutoff" HeaderText="Lastrun Cut Off" />
                                                                <asp:BoundField DataField="lastrun_replenishment" HeaderText="Lastrun Replenishment" />
                                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="e" 
                                                                    Text="Edit" ImageUrl="~/Images/edit.jpg" >
                                                                </asp:ButtonField>
                                                            </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>
                                                <tr>
                                                    <td class="tdNormal" style="width:20%">Go To Page: <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" 
                                                            AutoPostBack="True" Width=50px onselectedindexchanged="ddlPages_SelectedIndexChanged"></asp:DropDownList></td>
                                                    <td class="tdNormal">
                                                        </td>
                                                    <td class="tdNormal"></td>
                                                    <td class="tdNormal"></td>
                                                    <td class="tdNormal"></td>
                                                </tr>
                                            </table>
                                            <br />
                                            <asp:Panel ID="pnlBR" runat="server" Width="80%" Visible="false">
                                                <fieldset id="addItem">
                                                 <legend id="addItem">Details</legend>
                                                </fieldset>
                                                <table border="0" width="80%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                    <tr>
                                                        <td class="tdNormal">Terminal ID</td>
                                                        <td class="tdNormal"><asp:TextBox ID="txtTerminal" Enabled="false" runat="server" 
                                                                class="fieldNormal" Width="168px"></asp:TextBox></td>
                                                        <td class="tdNormal"></td>
                                                        <td class="tdNormal"></td>
                                                        <td class="tdNormal"><asp:TextBox ID="TextBox1" Visible="false" runat="server" class="fieldNormal"></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal">Lastrun Cut off</td>
                                                        <td class="tdNormal"><asp:TextBox ID="txtCutOff" Enabled="false" runat="server" 
                                                                class="fieldNormal" Width="165px"></asp:TextBox></td>
                                                        <td class="tdNormal"></td>
                                                        <td class="tdNormal">Lastrun Replenishment</td>
                                                        <td class="tdNormal"><asp:TextBox ID="txtRepl" runat="server" class="fieldNormal"></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal" colspan="5">
                                                            &nbsp;</td>
                                                    </tr>
                                                </table>
                                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                    <tr>
                                                        <td>
                                                            <asp:Button ID="btnCancel" runat="server" Text="   Cancel   " 
                                                                class="Btn_M_Normal" CausesValidation="False" onclick="btnCancel_Click"/>
                                                            <asp:Button ID="btnSave" runat="server" Text="   Save   " 
                                                                class="Btn_M_Normal" onclick="btnSave_Click"/>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </asp:Panel>                                        
                                        <!------------------------------------body End2 ----------------------------------------------->
                                        <br>
                                    </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                        </td>
                    </tr>
                </table>
</asp:Content>

