<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Sales_Activites, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card" id="Pnl_Main" runat="server">
            <div class="header">
                <h3><%= Resources.Content.strActivities%>  </h3>
            </div>
            <div class="body">
                <asp:Panel ID="Pnl_ActivityListing" runat="server">

                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Search">
                        <div class="row">
                            <div class="panel-group search-panel" id="AS_LeadList" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_LeadList">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_LeadList" href="#<%= CSB_LeadList.ClientID %>" aria-expanded="true" aria-controls="SH_LeadList">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_LeadList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_LeadList" aria-expanded="false">
                                            <div class="row">
                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_Owner">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_ActivityType" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div2">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_ActivityStatus" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div3">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_ActivityPriority" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <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_ActivitySubject" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Ltrl_SelectView" runat="server" Text="<%$ Resources:Content,strActivitySubject%>"
                                                                EnableViewState="false" CssClass="form-label" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <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_ActivityDescription" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Literal44" runat="server" Text="<%$ Resources:Content,GN0000597%>"
                                                                EnableViewState="false" CssClass="form-label" />
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <label class="row-label display-date-label">
                                                        <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN0000687%>" EnableViewState="false" />:
                                                    </label>
                                                    <div class="form-group display-date-input">
                                                        <div class="form-line">
                                                            <asp:TextBox CssClass="txBxDate" ID="TxBx_DRangeAfter" Enabled="false" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <i runat="server" id="I1" class="material-icons icon-calendar col-calendar"></i>
                                                    <EM:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TxBx_DRangeAfter"
                                                        Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                        PopupButtonID="A_DRangeAfter" CssClass="date__calendar">
                                                    </EM:CalendarExtender>
                                                    <%--<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000687%>" EnableViewState="false" />--%>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <label class="row-label display-date-label">
                                                        <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,GN0000688%>" EnableViewState="false" />:
                                                    </label>
                                                    <div class="form-group display-date-input">
                                                        <div class="form-line">
                                                            <asp:TextBox CssClass="txBxDate" ID="TxBx_DRangeBefore" Enabled="false" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <i runat="server" id="I2" class="material-icons icon-calendar col-calendar"></i>
                                                    <EM:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TxBx_DRangeBefore"
                                                        Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                        PopupButtonID="A_DRangeBefore" CssClass="date__calendar">
                                                    </EM:CalendarExtender>
                                                    <%--<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000688%>" EnableViewState="false" />--%>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_Employee" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <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_SrchSubject" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label2" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,LeadSubject%>"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <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_SrchEmail" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label3" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <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_Company" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label4" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <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_Name" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label5" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,strName%>"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_CurrentStatus" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_Rating" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_Status" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>


                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_Source" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div style="display: none">
                                                    <div>
                                                        <asp:Literal ID="Literal49" runat="server" Text="<%$ Resources:Content,GN0000687%>" EnableViewState="false" />

                                                    </div>
                                                    <div>
                                                        <asp:Literal ID="Literal50" runat="server" Text="<%$ Resources:Content,GN0000688%>" EnableViewState="false" />

                                                    </div>
                                                </div>
                                                 
                                                <div class="col-xs-12">
                                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Search" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Clear"  SkinID="searchButton" runat="server" Text="<%$ Resources:Content,String289 %>" /></td>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>

                    <asp:GridView CssClass="table table-bordered table-hover table-responsive table-striped" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                        ID="GV_List" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False">
                        <AlternatingRowStyle CssClass="altRow" />
                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,LeadSubject%>" SortExpression="LeadSubject"
                                HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:HyperLink ID="Lb_Leads" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.LeadSubject")%>'></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="<%$ Resources:Content,strActivitySubject%>" SortExpression="ActivitySubject"
                                HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:LinkButton ID="Lb_Subject" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ActivitySubject")%>'
                                        CommandArgument='<%# Eval("LeadActivityId")%>' CommandName="ShowDetail"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="<%$ Resources:Content,Owneremployee%>" SortExpression="LeadOwnerEmployeeId"
                                HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="Lb_OwnerEmpoyee" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.EmpName")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000673%>"
                                HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_ActivityType" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>"
                                HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_Status" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001300%>"
                                HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_Priority" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000722%>" SortExpression="DueDate"
                                HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_DueDate" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LBtn_Remove" runat="server" Text="<%$Resources:Content,GN0000278 %>"
                                        CommandArgument='<%# Eval("LeadActivityId")%>' CommandName="RemoveActivity"></asp:LinkButton>
                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" TargetControlID="LBtn_Remove"></EM:ConfirmButtonExtender>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <EM:Pager ID="Pager1" runat="server" />
                        </PagerTemplate>
                    </asp:GridView>
                </asp:Panel>
            </div>
        </div>


    </div>
</asp:Content>




