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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" 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_SubsInfo" runat="server" Text="<%$ Resources:Content,ThreadsManager %>" /></h2>
            </div>
            <div class="body">
                <%--Start Search box--%>
                <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Filter">
                    <div class="row">
                        <div class="panel-group search-panel" id="AS_ThreadsManager" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_ThreadsManager">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ThreadsManager" href="#<%= CSB_ThreadsManager.ClientID%>" aria-expanded="true" aria-controls="SH_ThreadsManager">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_ThreadsManager" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ThreadsManager" 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_ThreadName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,ThreadName%>" class="form-label"></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_ServerIP" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001203%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_Filter" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <%--End search box--%>
                <%--Start button--%>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="BTN_Save" runat="server" Text="<%$ Resources:Content,strUpdate%>" class="btn btn-primary waves-effect btnAction" />
                    </div>
                    <div class="col-xs-12">
                        <%--end button--%>
                        <asp:GridView ID="GV_ThreadsManager" AllowSorting="true" CssClass="table table-bordered table-striped table-hover" AllowPaging="false" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                            runat="server" AutoGenerateColumns="False">

                            <Columns>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,LoggingEnabled%>' HeaderStyle-CssClass="col-xs-1 RemoveWordBreak" ItemStyle-CssClass="col-xs-1 RemoveWordBreak">
                                    <ItemTemplate>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox class="option-menu" ID="ChkBx_Item" runat="server" Text=" "  />
                                                </div>
                                            </div>
                                            
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0001203 %>' SortExpression="MPServerId" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="HF_MPServerId" runat="server" />
                                        <asp:Label ID="Lbl_Server" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="Thread" HeaderText='<%$ Resources:Content, ThreadName %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_ThreadName" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="MPService" HeaderText='<%$ Resources:Content, DGN1119975 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_ServiceName" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,String385%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Status" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, timeIntervalInSeconds %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <div class="row">
                                            <div class="col-xs-4">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_IntervalInSeconds" runat="server" Text="1" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-8">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_TimeUnit" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0001263%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_LastRun" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <ul class="option-menu">
                                            <li class="dropdown">
                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                    <i class="material-icons">menu</i>
                                                </a>
                                                <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                    <li>
                                                        <asp:LinkButton ID="LB_Run" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,DGN1110045%>" CommandName="Run" /></li>
                                                    <li>
                                                        <asp:LinkButton ID="LB_EnableDisable" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,GN00001024%>" CommandName="EnableDisable" /></li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="Pager1" runat="server" />
                            </PagerTemplate>

                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </div>
                    <div class="col-xs-12">
                        <asp:Button ID="BTN_Save2" runat="server" Text="<%$ Resources:Content,strUpdate%>" class="btn btn-primary waves-effect btnAction" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
