<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_O365_OffersPrice, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" Runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <%--<div class="header">
                <h2>
                    <asp:Literal ID="Ltl_CustomerInfo" runat="server" /></h2>
            </div>--%>
            <div class="body">
                <EM:TabContainer ID="TC_CSP" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    
                    <EM:TabPanel ID="Tab_OffersPrice" runat="server" HeaderText="<%$ Resources:Content,CSPOffersPrice %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" CssClass="btn-dummy" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row">
                                    <div id="Div_Listing" runat="server">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                ID="GV_OfferPrices" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False"
                                                DataKeyNames="PackageId">
                                                <Columns>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, PackageName %>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_PackageName" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, SMI737 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_CountryName" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Details" Text="<%$ Resources:Content,strDetails%>" class="btn btn-primary waves-effect"
                                                                CommandArgument='<%#DataBinder.Eval(Container, "DataItem.PackageId")%>' CommandName="strDetails" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager2" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                    <div class="col-xs-12" id="Div_OfferPriceDetails" runat="server" visible="false">
                                        <div class="card">
                                            <div class="header">
                                                <div class="displayInlineBlock">
                                                    <h3>
                                                        <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h3>
                                                </div>
                                                <asp:LinkButton ID="Btn_GoBack" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                                                    class="btn btn-primary waves-effect pull-right m-t--4px" />
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <asp:Panel ID="Pnl_Btn_SearchOffersdetail" runat="server" CssClass="col-xs-12" DefaultButton="Btn_SearchOffersdetail">
                                                        <div class="panel-group search-panel" id="div-offerdetail-search-panel" role="tablist" aria-multiselectable="true">
                                                            <div role="tab" id="div-search-tab-headerdetail">
                                                                <div class="card">
                                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#div-offerdetail-search-panel"
                                                                        href="#div-search-tab-bodydetail" aria-expanded="true" aria-controls="div-search-tab-headerdetail">
                                                                        <h3>
                                                                            <%= Resources.Content.GN0000395%>
                                                                        </h3>
                                                                    </div>
                                                                    <div id="div-search-tab-bodydetail" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="div-search-tab-headerdetail" aria-expanded="false">
                                                                        <div class="row">
                                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_OfferNameDetail" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strOfferName%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group">
                                                                                    <asp:Button ID="Btn_SearchOffersdetail" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" CausesValidation="false" />
                                                                                    <asp:Button ID="Btn_ClearOffersdetail" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,String289%>" Visible="false" CausesValidation="false" />
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>

                                                    <div class="col-xs-12">
                                                        <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                            ID="GV_OfferPriceDetails" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False"
                                                            DataKeyNames="PriceDetailId,PriceRecordId,OfferId,OfferName">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-sm-3" ItemStyle-CssClass="col-sm-3" HeaderText='<%$ Resources:Content, strOfferName %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_OfferName" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-sm-3" ItemStyle-CssClass="col-sm-3 break-word-all" HeaderText='<%$ Resources:Content, ListPrice %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_ListPrice" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-sm-3" ItemStyle-CssClass="col-sm-3" HeaderText='<%$ Resources:Content, ERPPrice %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_ERPPrice" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-sm-3" ItemStyle-CssClass="col-sm-3" HeaderText='<%$ Resources:Content, SalePrice %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_SalePrice" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <%--PagerTemplate Start--%>
                                                            <PagerTemplate>
                                                                <EM:Pager ID="Pager3" runat="server" />
                                                            </PagerTemplate>
                                                            <%--PagerTemplate End--%>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </div>

                                    <div class="col-xs-12" id="Div_AddOfferPrice" runat="server" visible="false">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.AddOffersPriceListing%>                                                                                                                                 
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content, strSelectCSPProfile %>' EnableViewState="false" />:
                                                        </label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_CSPProfilesOfferPriceToAdd" runat="server" AutoPostBack="true" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *<asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content, selectMSPriceSheet %>' EnableViewState="false" />:
                                                        </label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                                                <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                                    <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                                    <asp:FileUpload ID="FU_SelectMSPriceSheet" runat="server" />
                                                                </span>
                                                                <span class="fileupload-preview"></span>
                                                                <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="FU_SelectMSPriceSheet"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="OffersPrice"></asp:RequiredFieldValidator>
                                                                <div class="clearfix">
                                                                </div>
                                                                <b>
                                                                    <asp:Label ID="Lbl_TechDataSheetNote" runat="server" Text="<%$ Resources:Content,strTechDataPriceListImportNode %>" Visible="false"></asp:Label></b>
                                                            </div>

                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content, GN00001473 %>' EnableViewState="false" />:
                                                        </label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_BillingCycle" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *<asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content, ProfitToAdd %>' EnableViewState="false" />:
                                                        </label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_ProfitToAdd" runat="server" />
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RFV_TxBx_ProfitToAdd" runat="server" ControlToValidate="TxBx_ProfitToAdd"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="OffersPrice"></asp:RequiredFieldValidator>
                                                    </div>
                                                    <div class="col-sm-5 col-xs-12">%</div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content, updatePriceOfExistingPackages %>' EnableViewState="false" />:
                                                        </label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:CheckBox ID="ChBx_UpdatePriceOfExistingPackages" runat="server" Text="&nbsp;" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" id="Div_SelectPackages" runat="server" style="display: none;">
                                                    <div class="col-xs-12 row-label"><%= Resources.Content.FAM00238 %></div>
                                                    <div class="col-xs-12">
                                                        <EM:AddSelectableSelected ID="UCPackages" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal37" runat="server" Text='<%$ Resources:Content, GN0000752 %>' EnableViewState="false" />:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:CheckBox ID="ChBx_SendEmail" runat="server" Text="<%$ Resources:Content, EmailToAll %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true" ShowSummary="false"
                                                            ValidationGroup="OffersPrice" HeaderText="<%$ Resources:Content,EM000001%>" />

                                                        <asp:Button ID="Btn_SaveOfferPrices" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" ValidationGroup="OffersPrice" />
                                                        <asp:Button ID="Btn_CancelOfferPrices" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" CausesValidation="false" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    
                </EM:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>

