<%@ control language="VB" autoeventwireup="false" inherits="CC_SearchCustomer, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<div class="row">
    <div class="col-xs-12" id="Pnl_Details" runat="server">
        <asp:Label ID="Lbl_SH" runat="server" />
    </div>
    <div class="col-xs-12">
        <asp:Panel ID="Pnl_Desc" runat="server">
            <div class="card">
                <div class="header">
                    <h3><%= Resources.Content.SMI0271 %></h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000395%>" />:</label>
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_ClientSearch" runat="server">
                                    <asp:ListItem Selected="true" Text="<%$ Resources:Content,GN0000678%>" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,GN000170%>" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,GN0000652%>" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,GN00001134%>" Value="3"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,SMI0268%>" Value="4"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,GN000125%>" Value="5"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,SMI0269%>" Value="6"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,SMI0270%>" Value="7"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_SearchText" runat="server"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-1 col-xs-12">
                            <asp:Button class="btn btn-primary waves-effect" ID="Btn_Search" runat="server" Text="<%$ Resources:Content,GN0000391%>" OnClick="Btn_Search_Click" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:SqlDataSource ID="DS_Clients" runat="server"></asp:SqlDataSource>
                            <asp:GridView ID="GV_ClientSearch" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                                runat="server" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="False"
                                CssClass="table table-bordered table-striped table-hover" DataSourceID="DS_Clients">
                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000715%>" SortExpression="CustomerId" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Id" runat="server" CausesValidation="False" CommandName="Select"
                                                Text='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>' CommandArgument='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>'></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001132%>" SortExpression="FirstName" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_FName" runat="server" CausesValidation="False" CommandName="Select"
                                                Text='<%#DataBinder.Eval(Container, "DataItem.FirstName")%>' CommandArgument='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>'></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001133%>" SortExpression="LastName" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_LName" runat="server" CausesValidation="False" CommandName="Select"
                                                Text='<%#DataBinder.Eval(Container, "DataItem.LastName")%>' CommandArgument='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>'></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000652%>" SortExpression="PrimaryEmail" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Email" runat="server" CausesValidation="False" CommandName="Select"
                                                Text='<%#DataBinder.Eval(Container, "DataItem.PrimaryEmail")%>' CommandArgument='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>'></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>
        <%--<EM:CollapsiblePanelExtender ID="CPE_Desc" runat="Server" TargetControlID="Pnl_Desc"
            ExpandControlID="Pnl_Details" CollapseControlID="Pnl_Details" Collapsed="True"
            TextLabelID="Lbl_SH" ExpandedText="<%$ Resources:Content,SMI0271%>" CollapsedText="<%$ Resources:Content,SMI058%>"
            SuppressPostBack="true" ImageControlID="Ctl_Image" ExpandedImage="~/App_Themes/default/images/icons/expand.png"
            CollapsedImage="~/App_Themes/default/images/icons/collapse.png">
        </EM:CollapsiblePanelExtender>--%>
    </div>
</div>
