<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true"
    Inherits="site_HITS_Organization_Edit" Title="Brightstar Device Protection: Organization Details"
    Culture="auto" UICulture="auto" Theme="eMain"
    CodeBehind="Details.aspx.cs" %>

<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Organization/LocalizationDetail.ascx" TagName="LocalizationDetail" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<%@ Register Src="~/Controls/GridViews/BusinessEvent.ascx" TagPrefix="cc1" TagName="BusinessEvent" %>

<%@ Register assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="System.Web.UI" tagprefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">

    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function TabContainer1_ActiveTabChanged(sender, e) {
            var manageRecordingURL = window.location.href.split('WebSite')[0] + "WebSite/ManageRecording.aspx";
            var url = manageRecordingURL + "?TabIndex=" + sender.get_activeTabIndex() + "&PageUrl=" + window.location.href.split('?')[0] + "&TabId=TabContainer1";
            $.ajax({ url: url, cache: false });
        }
    </script>
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" HeaderText="<%$ Resources: OrganizationManagement, BeforeUpdateWarningLabel %>"
        />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_litOrganizationDetailsHeader" runat="server" Text="<%$ Resources: OrganizationManagement, OrganizationDetailsHeaderLabel %>"
                        />
                    -
                    <asp:Label ID="m_lblOrgName" runat="server"></asp:Label>
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" OnSendEmailClicked="SendEmail_Clicked" />
    <div style="padding-left: 150px; background-color: #DBDCDE" nowrap>
        <table>
            <tr>
                <td nowrap="nowrap">
                    <asp:LinkButton ID="m_lbtnOrganizationUnit" runat="server" Width="12%" OnClick="m_lbtnOrganizationUnit_Click"
                        ToolTip="<%$ Resources: OrganizationManagement, OrganizationUnitToolTip %>" 
                        Text="<%$ Resources: OrganizationManagement, OrganizationUnitTableHeader %>" ></asp:LinkButton>
                </td>
                <td nowrap="nowrap">
                    <asp:LinkButton ID="m_lbtnUsers" runat="server" OnClick="m_lbtnUser_Click" ToolTip="<%$ Resources: OrganizationManagement, UsersOfOrganizationToolTip%>"
                        Text="<%$ Resources: OrganizationManagement, UsersOfOrganizationTableHeader%>"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <asp:Label ID="m_lblSuccess" runat="server" Text="<%$ Resources: Default, LabelLabel %>"></asp:Label>
    <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" OnClientActiveTabChanged="TabContainer1_ActiveTabChanged">
        <ajaxToolkit:TabPanel ID="tabPanelGeneral" runat="server" HeaderText="<%$ Resources: Default, LabelGeneral %>">
            <ContentTemplate>
                <h2>
                    <asp:Literal ID="m_litGeneralInfo" runat="server" Text="<%$ Resources:AdministrationManagement, LabelGeneralInformation %>"/>
                </h2>
                <div class="greyblock">
                    <asp:UpdatePanel runat="server" ID="update" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:Panel ID="m_Pnl1" runat="server">
                                <b><span style="color: #ff0000">* </span></b>
                                <asp:Label ID="lblRequired" runat="server" Text="<%$ Resources: Default, LabelIndicatesRequiredField %>"></asp:Label>
                                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litOrganizationNameHeader" runat="server" Text="<%$ Resources: OrganizationManagement, LabelOrganizationNameColon %>"
                                                />
                                            <b><span style="color: #ff0000">*</span></b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtOrgName" runat="server" Width="200px"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="m_txtOrgName"
                                                Text="<%$ Resources: Default, ValidatorText %>" ErrorMessage="<%$ Resources: OrganizationManagement, ErrorMessageOrganizationNameisRequired %>"
                                                ToolTip="<%$ Resources: OrganizationManagement, ErrorMessageOrganizationNameisRequired %>" ></asp:RequiredFieldValidator>
                                        </td>
                                        <td align="right" style="width: 200px" nowrap="nowrap">
                                            <asp:Literal ID="m_ClientId" runat="server" Text="<%$ Resources: OrganizationManagement, ClientIdLabel %>" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtClientId" runat="server" Width="85px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litTypeHeader" runat="server" Text="<%$ Resources: OrganizationManagement,TypeLabel%>"/>
                                            <b><span style="color: #ff0000">*</span></b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="m_ddlOrgTypes" runat="server" Width="213px" OnSelectedIndexChanged="m_ddlOrgTypes_SelectedIndexChanged"
                                                AutoPostBack="True">
                                                <asp:ListItem Text="<%$ Resources: Default, SelectLabel %>"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="m_ddlOrgTypes"
                                                Text="<%$ Resources: Default, ValidatorText %>" ErrorMessage="<%$ Resources: OrganizationManagement, OrganizationTypeRequiredLabel%>"
                                                ToolTip="<%$ Resources: OrganizationManagement, OrganizationTypeRequiredLabel%>" ></asp:RequiredFieldValidator>
                                        </td>
                                        <td align="right" style="width: 200px" nowrap="nowrap">
                                            <asp:Literal ID="m_ManufacturerId" runat="server" Text="<%$ Resources: OrganizationManagement, ManufacturerIdLabel %>" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtManufacturerId"  runat="server" Width="85px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                           <div style="padding-top: 15px">
                                            <asp:Literal ID="m_litActiveHeader" runat="server" Text="<%$ Resources: OrganizationManagement, ActiveColonLabel%>" />
                                           </div>
                                        </td>
                                        <td>
                                            &nbsp;
                                            <asp:RadioButtonList ID="m_rblActive" runat="server" 
                                                RepeatDirection="Horizontal">
                                                <asp:ListItem Selected="True" Text="<%$ Resources: Default, LabelActive %>"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources: Default, LabelInactive %>"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>

                                        <td align="right" style="width: 200px" nowrap="nowrap">
                                            <asp:Literal ID="m_litPreventUpdateCCDuringMRC" runat="server" Text="Prevent update Credit Card info during MRC:" />
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="chkPreventUpdateCCDuringMRC"  runat="server" Width="85px"></asp:CheckBox>
                                        </td>

                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="m_Pnl2" runat="server">
                                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litURLHeader" runat="server" Text="<%$ Resources: Default, URLColonLabel %>" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtURL" runat="server" Width="200px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="m_revURL" runat="server" Text="<%$ Resources: Default, ValidatorText %>"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, EnterValidURLLabel %>" ControlToValidate="m_txtURL" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, EnterValidURLLabel %>"  ValidationExpression="([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"
                                                ValidationGroup="AddOrganizationValidation"></asp:RegularExpressionValidator>
                                            <asp:Literal ID="m_litURLInfo" runat="server" Text="<%$ Resources: OrganizationManagement, ExampleURLLAbel %>"
                                                />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="m_Pnl5" runat="server">
                                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litUSAManualsHeader" runat="server" Text="<%$ Resources: OrganizationManagement, USAManualsLabel%>"/>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtUSAManuals" runat="server" Width="200px" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litEuropeanManualsHeader" runat="server" Text="<%$ Resources: OrganizationManagement, EuropeanManualsLabel%>"
                                                />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtEuropeanManuals" runat="server" Width="200px" ></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                             <asp:Panel ID="m_pnlManufacturerSettings" runat="server">
                               <div class="greyblock">
                                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litRequireEquipmentUnlocked" runat="server" Text="<%$ Resources: OrganizationManagement, RequireEquipmentUnlockedLabel%>"/>
                                        </td>
                                        <td>
                                             <asp:CheckBox ID="m_chkRequireEquipmentUnlocked" Text="" runat="server" />
                                        </td>
                                    <tr/>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litComponentKey" runat="server" Text="<%$ Resources: OrganizationManagement, ComponentKeyLabel%>"/>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtComponentKey" runat="server" Width="270px" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width:240px">
                                            <asp:Literal ID="m_litHasFindMyEquipmentApp" runat="server" Text="<%$ Resources: OrganizationManagement, HasFindMyEquipmentApp%>"/>
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="m_chkHasFindMyEquipmentApp" Text="" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width:240px">
                                            <asp:Literal ID="Literal2" runat="server" Text="Use Recipero Checkmend API:"/>
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="m_chkUseReciperoApi" Text="" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                               </div>
                            </asp:Panel>
                            <asp:Panel ID="m_Pnl6" runat="server">
                                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForNextDayAirHeader" runat="server" Text="<%$ Resources: OrganizationManagement, CostForNextDayAirLabel%>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostNextDayAir" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForNextDayAir" runat="server" Text="<%$ Resources: Default, ValidatorText %>"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForNextDayAirErrorLabel%>" ToolTip="<%$ Resources: OrganizationManagement, CostForNextDayAirErrorLabel%>"
                                                ControlToValidate="m_txtCostNextDayAir" Font-Bold="False" MaximumValue="1000000"
                                                MinimumValue="0" SetFocusOnError="True" Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostFor2ndDayUSHeader" runat="server" Text="<%$ Resources: OrganizationManagement, CostFor2ndDayLabel%>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostFor2ndDay" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostFor2ndDay" runat="server" ControlToValidate="m_txtCostFor2ndDay"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostFor2ndDayErrorLabel%>"
                                                Font-Bold="False" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, CostFor2ndDayErrorLabel%>" Text="<%$ Resources: Default, ValidatorText %>"
                                                Type="Double" ></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForGroundHeader" runat="server" Text="<%$ Resources: OrganizationManagement, CostForGroundLabel%>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostForGround" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForGround" runat="server" ControlToValidate="m_txtCostForGround"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForGroundErrorLabel%>" Font-Bold="False"
                                                MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True" ToolTip="<%$ Resources: OrganizationManagement, CostForGroundErrorLabel%>"
                                                Text="<%$ Resources: Default, ValidatorText %>" Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForReturnShippingHeader" runat="server" Text="<%$ Resources: OrganizationManagement, CostForReturnShippingLabel%>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostForReturnShipping" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForReturnShipping" runat="server" ControlToValidate="m_txtCostForReturnShipping"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForReturnShippingErrorLabel%>"
                                                Font-Bold="False" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, CostForReturnShippingErrorLabel%>" Text="<%$ Resources: Default, ValidatorText %>"
                                                Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForPackingMaterialHeader" runat="server" Text="<%$ Resources: OrganizationManagement, CostForPackingMaterialLabel%>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostForPackingMaterial" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForPackingMaterial" runat="server" ControlToValidate="m_txtCostForPackingMaterial"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForPackingMaterialErrorLabel%>"
                                                Font-Bold="False" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, CostForPackingMaterialErrorLabel%>" Text="<%$ Resources: Default, ValidatorText %>"
                                                Type="Double" ></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForResidentialDeliveryHeader" runat="server" Text="<%$ Resources: OrganizationManagement, CostForResidentialDeliveryLabel%>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostForResidentialDelivery" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForResidentialDelivery" runat="server" ControlToValidate="m_txtCostForResidentialDelivery"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForResidentialDeliveryErrorLabel %>"
                                                Font-Bold="False" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, CostForResidentialDeliveryErrorLabel %>"
                                                Text="<%$ Resources: Default, ValidatorText %>" Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForRuralDeliveryHeader" runat="server" Text="<%$ Resources: OrganizationManagement, CostForRuralDeliveryLabel %>"/>
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostForRuralDelivery" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForRuralDelivery" runat="server" ControlToValidate="m_txtCostForRuralDelivery"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForRuralDeliveryErrorLabel%>"
                                                Font-Bold="False" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, CostForRuralDeliveryErrorLabel%>" Text="<%$ Resources: Default, ValidatorText %>"
                                                Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForCollectingaCash" runat="server" Text="<%$ Resources: OrganizationManagement, CostForCollectingCashLabel %>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostForCollectingCash" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForCollectingCash" runat="server" ControlToValidate="m_txtCostForCollectingCash"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForCollectingCashErrorLabel %>"
                                                Font-Bold="False" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, CostForCollectingCashErrorLabel%>" Text="<%$ Resources: Default, ValidatorText %>"
                                                Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCostForMonitoringExchange" runat="server" Text="<%$ Resources: OrganizationManagement, CostForMonitoringExchangeLabel %>" />
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCostForMonitoringExchange" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCostForMonitoringExchange" runat="server" ControlToValidate="m_txtCostForMonitoringExchange"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CostForMonitoringExchangeErrorLabel%>"
                                                Font-Bold="False" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                                ToolTip="<%$ Resources: OrganizationManagement, CostForMonitoringExchangeErrorLabel%>"
                                                Text="<%$ Resources: Default, ValidatorText %>" Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCODCharge" runat="server" Text="<%$ Resources: OrganizationManagement, CODChargeLabel %>"/>
                                            (<%=CurrencyData.CurrencySymbol%>):
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtCODCharge" runat="server" Width="40px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvCODCharge" runat="server" ControlToValidate="m_txtCODCharge"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, CODChargeErrorLabel%>" Font-Bold="False"
                                                MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True" ToolTip="<%$ Resources: OrganizationManagement, CODChargeErrorLabel %>"
                                                Text="<%$ Resources: Default, ValidatorText %>" Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litURLForStatusPage" runat="server" Text="<%$ Resources: OrganizationManagement, URLForStatusPageColonLabel %>"
                                                />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtURLForStatusPage" runat="server" Width="200px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="m_revURLForStatusPage" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, URLForStatusPageColonErrorLabel %>" ControlToValidate="m_txtURLForStatusPage"
                                                SetFocusOnError="True" ToolTip="<%$ Resources: OrganizationManagement, URLForStatusPageColonErrorLabel %>"  
                                                ValidationExpression="([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" ValidationGroup="AddOrganizationValidation"></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litShippersNotes" runat="server" Text="<%$ Resources: OrganizationManagement, ShipperNotesColonLabel %>"  />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtShippersNotes" runat="server" TextMode="MultiLine" CssClass="multilinetb"
                                                ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litSpecialShippingInstructions" runat="server" Text="<%$ Resources: OrganizationManagement, SpecialShippingInstructionsColonLabel %>" 
                                                />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtSpecialShippingInstructions" runat="server" TextMode="MultiLine"
                                                CssClass="multilinetb"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="m_Pnl8" runat="server">
                                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litHandlingPackingInventoryMgt" runat="server" Text="<%$ Resources: OrganizationManagement, HPIMColonLabel %>" 
                                                />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="m_txtHPIMCost" runat="server" Width="50px"></asp:TextBox>
                                            <asp:RangeValidator ID="m_rvHPIMCost" runat="server" ControlToValidate="m_txtHPIMCost"
                                                ErrorMessage="<%$ Resources: OrganizationManagement, HPIMErrorLabel%>"  Font-Bold="False"
                                                MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True" ToolTip="<%$ Resources: OrganizationManagement, HPIMErrorLabel %>"
                                                Text="<%$ Resources: Default, ValidatorText %>" Type="Double"></asp:RangeValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 240px">
                                            <asp:Literal ID="m_litCarrier" runat="server" Text="<%$ Resources: OrganizationManagement, LabelCarrierColon %>"/>
                                        </td>
                                        <td>
                                            <asp:ListBox ID="m_lboxCarrier" runat="server" Width="213px"
                                                SelectionMode="Multiple"></asp:ListBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="m_pnlEmails" runat="server">
                                <div class="greyblock">
                                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                        <tr>
                                            <td align="right" style="width: 235px">
                                                <asp:Literal ID="m_litEmailsAEExceptions" Text="<%$ Resources: OrganizationManagement, AEExceptionsEmailColonLabel %>" runat="server" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="m_tbEmailsAEExceptions" runat="server" Width="200px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 235px">
                                                <asp:Literal ID="m_litEmailsRA_ASN" Text="<%$ Resources: OrganizationManagement, RAASNEmailColonLabel %>" runat="server" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="m_tbEmailsRA_ASN" runat="server" Width="200px"></asp:TextBox>
                                            </td>
                                        </tr><tr>
                                            <td align="right" style="width: 235px">
                                                <asp:Literal ID="m_litRoleHierarchyHeader" Text="<%$ Resources: OrganizationManagement, RoleHierarchyEnabledLabel %>" runat="server" />
                                            </td><td>
                                                <asp:CheckBox ID="chkRoleHierarchyEnabled" Text="" runat="server" />
                                            </td>
                                        </tr>
                                        <%--<tr>
                                            <td align="right" style="width: 235px">
                                                <asp:Literal ID="Literal3" Text="Escalation Alert Email:" runat="server" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="EscalationAlertEmailInput" runat="server" Width="200px"></asp:TextBox>
                                                &nbsp;
                                                <asp:CheckBox runat="server" ID="MailerChckBox" Text="Enable Mailer" TextAlign="Right">
                                                </asp:CheckBox>
                                            </td>
                                        </tr>--%>
                                    </table>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <h2>
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:OrganizationManagement, DistributionCenterHeaderLabel %>"  /></h2>
                <div class="greyblock">
                    <table border="0" cellpadding="0" cellspacing="2px" class="gvTable" width="Auto">
                        <tr>
                            <td align="right" valign="top" style="width: 165px">
                            </td>
                            <td valign="top" style="width: Auto" align="left">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                        <asp:GridView ID="DCGridView" runat="server" AutoGenerateColumns="False" RowStyle-VerticalAlign="Top"
                                            OnRowDataBound="DCGridView_RowDataBound">
                                            <HeaderStyle Font-Size=".9em" Font-Bold="true" HorizontalAlign="Center" />
                                            <AlternatingRowStyle Font-Size=".9em" />
                                            <RowStyle Font-Size=".9em" VerticalAlign="Top" />
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:HiddenField ID="ID" runat="server" />
                                                    </ItemTemplate>
                                                    <ItemStyle Width="0" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:Literal ID="m_litEnabled" Text="<%$ Resources: OrganizationManagement, EnabledLabel %>" runat="server" />
                                                        <br />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="Enabled" runat="server" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:Literal ID="m_litDCName" Text="<%$ Resources: OrganizationManagement, DistributionCenterLabel %>" runat="server"/>
                                                        <br />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="DCName" runat="server" Width="90%"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="150px" />
                                                    <HeaderStyle Width="150px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:Literal ID="m_litDCPostalCode" Text="<%$ Resources: OrganizationManagement, PostalCodeLabel %>" runat="server" />
                                                        <br />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="DCPostalCode" runat="server" Width="90%" Style="text-align: center"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="100px" />
                                                    <HeaderStyle Width="100px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:Literal ID="m_litDCLocationID" Text="<%$ Resources: OrganizationManagement, HeaderTextLocationID %>" runat="server" />
                                                        <br />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="DCLocationID" runat="server" Width="90%" Style="text-align: center"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="100px" HorizontalAlign="Center" />
                                                    <HeaderStyle Width="100px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:Literal ID="m_litDCPriority" Text="<%$ Resources: OrganizationManagement, PriorityLabel %>"  runat="server" />
                                                        <br />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="DCPriority" runat="server" Width="90%" Style="text-align: center"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="100px" />
                                                    <HeaderStyle Width="100px" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                    </table>
                </div>
                <h2>
                <asp:Literal ID="LocalizationLiteral" runat="server" Text="<%$ Resources:OrganizationManagement, LabelLocalizationColon %>" />
                </h2>
                <div class="greyblock">
                   <div id="localizationWrapperDiv">
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                        <tr>
                            <td>
                                <uc:LocalizationDetail ID="ucLocalizationDetail" runat="server" />
                            </td>
                        </tr>
                    </table>
                   </div>
                </div>
                <h2>
                    <asp:Literal ID="m_litNotesHistory" runat="server" Text="<%$ Resources:OrganizationManagement, NotesHistoryLabel %>" /></h2>
                <asp:GridView ID="m_gvOrgNotes" runat="server" AutoGenerateColumns="False"
                    OnRowDataBound="m_gvOrgNotes_RowDataBound" Width="100%">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litDate" Text="<%$ Resources: Default, LabelDate%>" runat="server"/>
                                <br />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="m_lblDate" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="9%" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litTime" Text="<%$ Resources: Default, LabelTime%>" runat="server"/>
                                <br />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="m_lblTime" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="9%" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litNotes" Text="<%$ Resources: Default, NoteLabel%>" runat="server" />
                                <br />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="m_lblNotes" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="65%" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litName" Text="<%$ Resources: Default, PersonLabel%>" runat="server" />
                                <br />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="m_lblName" runat="server" ></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litSource" Text="<%$ Resources: Default, SourceLabel%>" runat="server"/>
                                <br />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="m_lblSource" runat="server" ></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="m_lbDelete" runat="server" Text="<%$ Resources: Default, DeleteLabel%>" Font-Underline="True" OnClick="m_lbDelete_Clicked"
                                    />
                            </ItemTemplate>
                            <ItemStyle Width="3%" />
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle VerticalAlign="Top" />
                </asp:GridView>
                <asp:Panel ID="m_Pnl3" runat="server">
                    <div class="greyblock">
                        <span style="font-weight: bold;">
                            <asp:Literal ID="m_litDate" runat="server" /></span>
                        (<asp:Literal ID="m_litUserName" runat="server" />):
                        <div style="text-align: center">
                            <asp:TextBox ID="m_txtNotes" runat="server" TextMode="MultiLine" CssClass="notestb"
                                ></asp:TextBox>
                        </div>
                    </div>
                </asp:Panel>
                <cc1:ExtendedValidationSummary ID="m_extValidationSummaryBottom" runat="server" HeaderText="<%$ Resources:OrganizationManagement, BeforeUpdateWarningLabel %>"
                    ValidationGroup="OrganizationUpdateValidation" />
            </ContentTemplate>
        </ajaxToolkit:TabPanel>


        <ajaxToolkit:TabPanel ID="tabPanelGobalBusinessEvents" runat="server" HeaderText="<%$ Resources: OrganizationManagement, GlobalBusinessEventsHeaderLabel%>">
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <div class="tabPanelFix">
                    <h2> <asp:Literal ID="Literal7" runat="server"  Text="<%$ Resources: OrganizationManagement, GlobalBusinessEventsHeaderLabel%>" /> </h2>
                    <div class="greyblock">
                        <table>
                        <tr>
                            <td valign="top">
                                <asp:GridView ID="grdGlobalBusinessEventType" runat="server"  OnRowDataBound="grdGlobalBusinessEventType_RowDataBound"
                                    AutoGenerateColumns="False"  
                                    BackColor="White"        
                                    BorderColor ="Black"
                                    BorderStyle="Solid"
                                    BorderWidth="1px"                                    
                                    >
                                    <RowStyle HorizontalAlign="Left" VerticalAlign="Top" Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False" 
                                        Font-Underline="False" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                 
                                    <HeaderStyle Font-Size="X-Small" Wrap="True" />                                   
                                    <Columns>
                                        <asp:TemplateField ItemStyle-Wrap="false" HeaderText="<%$ Resources: OrganizationManagement, BusinessEventsLabel%>">
                                            <ItemTemplate>
                                                <asp:HiddenField ID="hdnBusinessEventID" runat="server" />
                                            
                                                <asp:LinkButton ID="lbtnGlobalBusinessEventType" runat="server" CommandName="Default"
                                                    OnCommand="lbtnGlobalBusinessEventType_Command"></asp:LinkButton>
                                                
                                            </ItemTemplate>
                                            <ItemStyle Wrap="False" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <RowStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                    
                                </asp:GridView>                        
                            </td>
                            <td>
                                <cc1:BusinessEvent runat="server" id="ucGlobalBusinessEvents" ShowHeader="false" UILocation="Global"
                                    ShowComment="true" ShowDates="false"     ></cc1:BusinessEvent>    
                            </td>
                        </tr>
                        </table>
                    </div>
                </div>
                </ContentTemplate>
                </asp:UpdatePanel>            
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
    
    </ajaxToolkit:TabContainer>
    <div style="text-align: center">
        <asp:Button ID="m_btnUpdate" runat="server" CssClass="pagebutton" Text="<%$ Resources: Default, ButtonUpdate%>" OnClick="m_btnUpdate_Click"
            />
        <asp:Button ID="m_btnCancel" runat="server" CssClass="pagebutton" Text="<%$ Resources: Default, ButtonCancel%>" OnClick="m_btnCancel_Click"
            CausesValidation="False" />
    </div>
</asp:Content>
