<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Title="Brightstar Device Protection: Return Authorization Detail" Culture="auto"  UICulture="auto"  CodeBehind="AddBulk.aspx.cs" Inherits="WebSite.site.HITS.ReturnAuthorizations.AddBulk" %>


<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="~/Controls/CustomSorter.ascx" TagName = "CustomSorter" TagPrefix = "uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components" TagPrefix="cc1" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" Runat="Server">
    <center>
            <asp:Label ID="lblSuccess" runat="server" Text="<%$ Resources: Default, LabelLabel %>" Font-Bold="True" ForeColor="Green" ></asp:Label>
    </center>
        
    <table width="100%">
        <tr>
            <td>
                <h1>
                    <asp:Localize ID="Localize1" runat="server" Text="<%$ Resources: LogisticsManagement, LabelAddBulkReturnAuthorization %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" Visible="false"/>
            </td>
        </tr>
    </table>    
    <uc:ChildHeader ID="ChildHeader1" runat="server" />
    
    <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
      <tr width="30%">
            <td align="left" colspan="6" bgcolor="#ffffff" bordercolor="#ffffff" width="15%" >
              </td>  
        </tr>
    </table>

    <cc1:ExtendedValidationSummary ID="extValidationSummaryTop" runat="server" ValidationGroup="ReturnAuthorizationsMain"
    HeaderText="<%$ Resources: LogisticsManagement, LabelThefollowingitemsneedtobereviewedbeforeupdatingthisReturnAuthorizations %>" />

    <h2>
        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: LogisticsManagement, LabelSelectCityandLocation %>" />
    </h2>
    
    <table >
        <tr class="greyblock" >
            <td align="right" style="width:10% ">
                <asp:Label ID="Label3" runat="server" Text="<%$ Resources: OrganizationManagement, LabelCarriersColon %>" />
                <b><span style="color: #ff0000">*</span></b>
            </td >
            <td align="left" style="width:25%">
                <asp:DropDownList ID="ddlCarriers" runat="server" onselectedindexchanged="ddlCarriers_SelectedIndexChanged" AutoPostBack="true" />
            </td>
            <td align="right" style="width:10% ">
                <asp:Label ID="Label7" runat="server" Text="<%$ Resources: LogisticsManagement, LabelBulkRANumberColon %>"  Font-Bold="true"/>                
            </td >
            <td align="left" style="width:25%">
                <asp:TextBox ID="txtBulkRANumber" runat="server" Enabled="false"></asp:TextBox>
            </td>            
        </tr>
        <tr class="greyblock" >
            <td align="right" style="width:10% ">
                <asp:Label ID="Label1" runat="server" Text="<%$ Resources: AddressResources, City %>" />
                <b><span style="color: #ff0000">*</span></b>
            </td >
            <td align="left" style="width:25%">
                <asp:DropDownList ID="ddlCities" runat="server" onselectedindexchanged="ddlCities_SelectedIndexChanged" AutoPostBack="true"  />
            </td>
            <td align="right" style="width:10% ">
                <asp:Label ID="Label5" runat="server" Text="<%$ Resources: ClaimsManagement, LabelTrackingNumberColon %>" />
                <b><span style="color: #ff0000">*</span></b>
            </td >
            <td align="left" style="width:25%">
                <asp:TextBox ID="txtTrackingNumber" runat="server" ></asp:TextBox>                
            </td>            
        </tr>
        <tr class="greyblock" >
            <td align="right" style="width:10% ">
                <asp:Label ID="Label2" runat="server" Text="<%$ Resources: OrganizationManagement, LabelLocationColon %>" />
                <b><span style="color: #ff0000">*</span></b>
            </td >
            <td align="left" style="width:25%">
                <asp:DropDownList ID="ddlLocation" runat="server" onselectedindexchanged="ddlLocation_SelectedIndexChanged" AutoPostBack="true"  />
            </td>        
            <td align="right" style="width:10% ">
            </td >
            <td align="left" style="width:25%">
            </td>            
        </tr>
        <tr class="greyblock">
            <td align="right" style="width:10% ">
                <asp:Label ID="Label6" runat="server" Text="<%$ Resources: Default, DateFromLabel %>" />
                <b><span style="color: #ff0000">*</span></b>
            </td >
            <td style="width:25%">
                <uc:HITSCalendar ID="ucCalDateFrom" runat="server" />
            </td>
            <td align="right" style="width:10% ">
                <asp:Label ID="Label8" runat="server" Text="<%$ Resources: Default, DateToLabel %>" />
                <b><span style="color: #ff0000">*</span></b>
            </td >
            <td style="width:25%">
                <uc:HITSCalendar ID="ucCalDateTo" runat="server" />
            </td>
        
        </tr>
    </table>    
    <hr />
    <table width="100%">
        <tr >
            <td align="center" Width="100%">
            <div>
                <asp:Button ID="btnGetRAs" runat="server" Text="<%$ Resources: LogisticsManagement, ButtonFindIndividualRAs %>" 
                    CausesValidation="true" onclick="btnGetRAs_Click" />
            </div>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <table>
        <tr>
        <td>
            <asp:Button ID="btnCreateBulkRA" runat="server" Text="<%$ Resources: LogisticsManagement, ButtonCreateBulkReturnAuthorization %>" onclick="btnCreateBulkRA_Click" CausesValidation="true" />
        </td>
        </tr>
    </table>
    <h2>
        <asp:Label ID="Label4" runat="server" Text="<%$ Resources: LogisticsManagement, LabelIndividualReturnAuthorization %>" />
    </h2>
    <asp:GridView ID="grdRAs" runat="server" AutoGenerateColumns="False" Width = "100%" OnRowDataBound="grdRAs_RowDataBound" >
        <Columns>            
            <asp:TemplateField HeaderText="<%$ Resources: LogisticsManagement, HeaderTextRAUnitId %>" Visible="false">
                <ItemTemplate>
                    <asp:Label ID="lblRAUnitIds" runat="server" ></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField  >
                <ItemTemplate>
                    <asp:CheckBox ID="chkSelection" runat="server"  />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField = "RANumber" HeaderText = "<%$ Resources: LogisticsManagement, HeaderTextRANumber %>" />
            <asp:TemplateField HeaderText="Model">
                <ItemTemplate>
                    <asp:Label ID="lblModel" runat="server" ></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources: HandsetManagement, HeaderTextESN %>">
                <ItemTemplate>
                    <asp:Label ID="lblESN" runat="server" ></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField = "CreatedByUserName" HeaderText = "<%$ Resources: UsersManagement, HeaderTextCreatedBy %>" />
            <asp:BoundField DataField = "CreatedOnDate" HeaderText = "<%$ Resources: UsersManagement, HeaderTextCreatedDate %>" HtmlEncode="false" DataFormatString = "{0:d}"/>
        </Columns>
        <RowStyle HorizontalAlign = "Left" />
        <HeaderStyle HorizontalAlign = "Center" />        
    </asp:GridView>

</asp:Content>
