 <%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Inherits="site_HITS_ReturnAuthorizations_Add" Title="Brightstar Device Protection: Return Authorization Detail" Culture="auto"  UICulture="auto" Codebehind="Add.aspx.cs" %>

<%@ 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>
        
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" ValidationGroup="ReturnAuthorizationsMain"
    HeaderText="<%$ Resources: LogisticsManagement, LabelThefollowingitemsneedtobereviewedbeforeupdatingthisReturnAuthorizations %>"
    />
    
    <cc1:ExtendedValidationSummary ID="extExtendedValidationSummary2" runat="server" ValidationGroup="ReturnAuthorizations2"
    HeaderText="<%$ Resources: LogisticsManagement, LabelThefollowingitemsneedtobereviewedbeforecreatingthisReturnAuthorization %>"
    />
    
      <table width="100%">
        <tr>
            <td>
                <h1>
                    <asp:Localize ID="Localize1" runat="server" Text="<%$ Resources: LogisticsManagement, LabelCreateReturnAuthorization %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
       <uc:ChildHeader ID="ChildHeader1" runat="server" />
    
    <asp:Panel id="m_divWarrantyReturns" runat="server" style="DISPLAY:none;">  
    <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%" >
                    <h2>
                        <asp:Literal ID="Literal2" Text="<%$ Resources: LogisticsManagement, LabelStep1WarrantyReturnItems %>" runat="server" ></asp:Literal>
                    </h2>
                  </td>  
            </tr>
        <tr width="30%">        
           <%-- <td align="left" colspan="3" bgcolor="#ffffff" bordercolor="#ffffff" width="15%">
                <asp:Literal ID="Literal1" Text="Step 1 - Warranty Return Items" runat="server"></asp:Literal></td>--%>
            <td align=left colSpan=5 bgcolor="#ffffff" bordercolor="#ffffff">
                <asp:Literal ID="m_litCarrierName" runat="server"></asp:Literal></td>
            <td align=right colSpan=1 bgcolor="#ffffff" bordercolor="#ffffff">
                <asp:Button ID="m_btnSubmit" OnClick="m_btnSubmit_Click" runat="server" Text="<%$ Resources: Default, ButtonSave %>" CssClass="pagebutton" 
                ValidationGroup="ReturnAuthorizationsMain"/></td> 
        </tr>       
        <tr valign="top" class="greyblock" width="30%" >
            <td align=right width="15%"  >
                <asp:Literal ID="Literal8" Text="<%$ Resources: LogisticsManagement, LabelRATypeColon %>" runat="server"></asp:Literal>
            </td>
            <td align=left colSpan=2 >
                <asp:DropDownList ID="m_ddlRAType" runat="server" CausesValidation="false">
                </asp:DropDownList>
            </td>
            <td align="right"  > 
                <asp:Literal ID="Literal5" Text="<%$ Resources: OrganizationManagement, LabelOrganizationColon %>" runat="server"></asp:Literal>
            </td>
             <td align="left"  colSpan=2 > 
                <asp:DropDownList ID="m_ddlOrganization" runat="server" CausesValidation="false">
                </asp:DropDownList>
                <asp:Literal ID="WarrantyOrganization"  runat="server" ></asp:Literal>
                <asp:RequiredFieldValidator runat="server" ID="vldRequiredWarrantyOrganization" ControlToValidate="m_ddlOrganization"
                    SetFocusOnError="true" ErrorMessage="<%$ Resources: OrganizationManagement, ErrorMessageOrganizationisrequired %>" ValidationGroup="ReturnAuthorizationsMain"
                    InitialValue="0"
                    >&nbsp;</asp:RequiredFieldValidator>                
             </td>
         </tr>
        <tr valign="top" class="greyblock" width="30%">
            <td align=right width="15%" >
                <asp:Literal ID="Literal6" Text="<%$ Resources: LogisticsManagement, LabelPhoneModelColon %>" runat="server"></asp:Literal></td>
            <td align=left colSpan=2 >
                <asp:DropDownList ID="m_ddlPhoneModel" runat="server" CausesValidation="false">
                </asp:DropDownList>
            </td>
            <td align="right" > 
                <asp:Literal ID="Literal3" Text="<%$ Resources: HandsetManagement, LabelESNIMEI %>" runat="server"></asp:Literal><b><span style="color: #ff0000">*</span></b>
            </td>
            <td align="left"  colSpan=2 > 
                <asp:TextBox ID="WarrantyESN" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text=" "
                        ErrorMessage="<%$ Resources: HandsetManagement, ErrorMessageESNisRequired %>" ToolTip="<%$ Resources: HandsetManagement, ToolTipESNisRequired %>" ControlToValidate="WarrantyESN"
                        ValidationGroup="ReturnAuthorizationsMain" >&nbsp; 
                    </asp:RequiredFieldValidator>                
            </td>
         </tr>   
         <tr valign="top" class="greyblock" width="30%">
            <td align=right width="15%" colSpan=1 >
                <asp:Literal ID="Literal7" Text="<%$ Resources: UsersManagement, LabelCreatedbyColon %>" runat="server"></asp:Literal></td>
            <td align=left colSpan=2>
                <asp:DropDownList ID="m_ddlCreatedBy" runat="server" CausesValidation="false">
                </asp:DropDownList>
                <asp:Literal ID="WarrantyCreatedBy"  runat="server" ></asp:Literal>
                 
            </td>       
            <td align=right  colSpan=1>
                <asp:Literal ID="Literal4" Text="<%$ Resources: UsersManagement, LabelCreatedOnColon %>" runat="server"></asp:Literal>
            </td>
            <td align=left  colSpan=2>
                <uc:HITSCalendar ID="m_calCreatedOn" runat="server" />
                <asp:Literal ID="WarrantyCreatedOn"  runat="server" ></asp:Literal>
            </td>
         </tr>
         <tr vAlign=top class="greyblock" width="30%">
            <td align=right width="15%" colSpan=1>
                <asp:Literal ID="Literal9" Text="<%$ Resources: LogisticsManagement, LabelRADescriptionColon %>" runat="server"></asp:Literal><b><span style="color: #ff0000">*</span></b>
            </td>
            <td align=left  colSpan=5>
                <asp:TextBox ID="WarrantyDescription" runat="server" Height="70px" TextMode="MultiLine"
                  Width="300px"></asp:TextBox>
                  
                <asp:RequiredFieldValidator ID="WarrantyDescriptionValidator1" runat="server" Text=""
                    ErrorMessage="<%$ Resources: LogisticsManagement, ErrorMessageRADescriptionisRequired %>" ToolTip="<%$ Resources: LogisticsManagement, ToolTipRADescriptionisRequired %>" ControlToValidate="WarrantyDescription"
                     ValidationGroup="ReturnAuthorizationsMain"    >&nbsp;
                </asp:RequiredFieldValidator>                     
            </td>
         </tr>
    </table>
    </asp:Panel>
    
    <asp:Panel id="m_divDamagedReturns" runat="server" style="DISPLAY:block;">  
    <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%" >
                    <h2>
                        <asp:Literal ID="Literal10" Text="<%$ Resources: LogisticsManagement, LabelStep1WarrantyReturnItems %>" runat="server" ></asp:Literal>
                    </h2>
                  </td>  
            </tr>
        <tr width="30%">
          <%--  <td align="left" colspan="3" bgcolor="#ffffff" bordercolor="#ffffff" width="15%">
                <asp:Literal ID="Literal2" Text="Step 1 - Warranty Return Items" runat="server"></asp:Literal></td>--%>
            <td align=left colSpan=5 bgcolor="#ffffff" bordercolor="#ffffff">
                <asp:Literal ID="m_litCarrierNameForDamagedReturns" runat="server"></asp:Literal></td>
            <td align=right colSpan=1 bgcolor="#ffffff" bordercolor="#ffffff">
                <asp:Button ID="m_btn_SubmitForDamagedReturns" OnClick="m_btn_SubmitForDamagedReturns_Click" runat="server" Text="<%$ Resources: Default, ButtonSave %>" 
                CssClass="pagebutton" ValidationGroup="ReturnAuthorizations2"/></td>
        </tr>        
        <tr valign="top" class="greyblock" width="30%">
            <td align=right width="15%" colSpan=1>
                <asp:Literal ID="Literal15" Text="<%$ Resources: LogisticsManagement, LabelRATypeColon %>" runat="server"></asp:Literal>
            </td>
            <td align=left  colSpan=2>
                <asp:DropDownList ID="m_ddlRATypeForDamagedReturns" runat="server" CausesValidation="false">
                </asp:DropDownList>
            </td>
             <td align=right  colSpan=1>
                <asp:Literal ID="Literal16" Text="<%$ Resources: OrganizationManagement, LabelOrganizationColon %>" runat="server"></asp:Literal>
            </td>
            <td align=left  colSpan=2>
                <asp:DropDownList ID="m_ddlOrganizationForDamagedReturns" runat="server"  AppendDataBoundItems="True" CausesValidation="false">
                </asp:DropDownList>
                <asp:Literal ID="DamagedOrganization"  runat="server" ></asp:Literal>
                
                <asp:RequiredFieldValidator runat="server" ID="vldRequiredOrganization" ControlToValidate="m_ddlOrganizationForDamagedReturns"
                    SetFocusOnError="true" ErrorMessage="<%$ Resources: OrganizationManagement, ErrorMessageOrganizationisrequired %>" ValidationGroup="ReturnAuthorizations2"
                    InitialValue="0"
                    >&nbsp;</asp:RequiredFieldValidator>

                
             </td>
         </tr>
         <tr valign="top" class="greyblock" width="30%">
            <td align=right width="15%" colSpan=1>
                <asp:Literal ID="Literal11" Text="<%$ Resources: UsersManagement, LabelCreatedbyColon %>" runat="server"></asp:Literal></td>
            <td align=left  colSpan=2>
                <asp:DropDownList ID="m_ddlCreatedByForDamagedReturns" runat="server" CausesValidation="false">
                </asp:DropDownList>
                <asp:Literal ID="DamagedCreatedBy"  runat="server" ></asp:Literal>
                 
            </td>       
            <td align=right  colSpan=1>
                <asp:Literal ID="Literal12" Text="<%$ Resources: UsersManagement, LabelCreatedOnColon %>" runat="server"  ></asp:Literal>
            </td>
            <td align=left  colSpan=2>
                <uc:HITSCalendar ID="m_calCreatedOnForDamagedReturns" runat="server" />
                <asp:Literal ID="DamagedCreatedOn"  runat="server"   ></asp:Literal>       
            </td>
         </tr>
         <tr valign="top" class="greyblock" width="30%">
            <td align=right width="15%" colSpan=1>
                <asp:Literal ID="Literal13" Text="<%$ Resources: BillingManagement, LabelQtyColon %>" runat="server"></asp:Literal></td>
            <td align=left  colSpan=2>
                <asp:TextBox ID="m_txbQty" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ID="vldRequiredQuantity" ControlToValidate="m_txbQty"
                    SetFocusOnError="true" ErrorMessage="<%$ Resources: BillingManagement, ErrorMessageAnumericpositivequantityisrequired %>" ToolTip="<%$ Resources: BillingManagement, ToolTipAnumericpositivequantityisrequired %>"
                    ValidationGroup="ReturnAuthorizations2" InitialValue=" "
                    >&nbsp;</asp:RequiredFieldValidator>
                
                    <asp:RangeValidator ID="vldRangeQuantity" runat="server" Text="" SetFocusOnError="true"
                        ErrorMessage="<%$ Resources: BillingManagement, ErrorMessageAnumericpositivequantityisrequired %>" ToolTip="<%$ Resources: BillingManagement, ToolTipAnumericpositivequantityisrequired %>" ControlToValidate="m_txbQty"
                        ValidationGroup="ReturnAuthorizations2" MinimumValue="1" MaximumValue="10000" Type="Integer">&nbsp;</asp:RangeValidator>
                        
            </td>       
            <td align=right  colSpan=1>               
            </td>
            <td align=left  colSpan=2>               
            </td>
         </tr>        
    </table>
       
    </asp:Panel>
    
</asp:Content>
