<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_GroupActions, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<div class="row">
    <div class="col-xs-12">
        <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
            <div class="card">
                <div class="header" id="hdrGroupAction" runat="server">
                    <h3>
                        <%= Resources.Content.strGroupActionsLog%>
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <asp:Panel ID="Pnl_Btn_Search" runat="server" CssClass="clearfix" DefaultButton="Btn_Search">
                            <div class="panel-group search-panel" id="AS_GroupActions" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_GroupActions">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_GroupActions.ClientID%>" aria-expanded="true" aria-controls="SH_ClientList">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_GroupActions" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_GroupActions" aria-expanded="false">
                                            <div class="row">
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Td_OwnerDDL" runat="server">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Td_ClientIdTitle" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ClientId" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Td_ClientNameTitle" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ClientName" runat="server" MaxLength="200"></asp:TextBox>
                                                            <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Td_OrganizationTitle" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_Organization" runat="server" MaxLength="128"></asp:TextBox>
                                                            <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110357%>" 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_Parameters" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Parameters%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Td_ServiceTypeTitle" runat="server">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_ProductTypes" AutoPostBack="true" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="Ddl_ActionType" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_Status" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>


                                                <div class="col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:Button ID="Btn_Search" class="btn btn-primary waves-effect" runat="server" 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>
                        </asp:Panel>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                    </h3>
                                </div>
                                <div class="body">
                                    <asp:Button ID="Btn_ResetTriesCount" runat="server" Text="<%$ Resources:Content,ResetTriesCount%>" class="btn btn-primary waves-effect btnAction" />
                                    <asp:Button ID="Btn_RemoveCompletedCancelledJobs" runat="server" Text="<%$ Resources:Content,clearJobs%>" class="btn btn-primary waves-effect btnAction" />
                                    <asp:Button ID="Btn_CancelJobs" runat="server" Text="<%$ Resources:Content,strCancelFailedJobs%>" class="btn btn-primary waves-effect btnAction" />
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12">
                            <asp:GridView ID="GV_ServiceQueue" AllowSorting="true" runat="server" CssClass="table table-bordered table-striped table-hover"
                                AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>" DataKeyNames="PackageTypeID,CompanyId, CustomerId,StatusId">

                                <Columns>
                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                        <HeaderTemplate>
                                            <asp:CheckBox runat="server" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');"
                                                Text=" " class="option-menu" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" Text=" " CssClass="option-menu" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content,String385%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <%--<asp:Image ID="Img_ServiceType" runat="server" />&nbsp;--%>

                                            <asp:LinkButton ID="LB_Status" CommandName="Id" runat="server"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1110209%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <div id="Div_Command" runat="server" style="white-space: pre-wrap;">
                                            </div>
                                            <asp:LinkButton ID="Lb_ShowDetail" runat="server" Visible="false" Text="<%$ Resources:Content,GN0000667%>" CommandName="ShowFullMsg"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="TimeStampEntered"
                                        HeaderText='<%$ Resources:Content,DGN1110210%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <div id="Div_TimeCreated" runat="server">
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="TriesCount" HeaderText="<%$ Resources:Content,GN0000813%>"
                                        HeaderStyle-CssClass="col-xs-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs">
                                        <ItemTemplate>
                                            <div id="Div_Tries" runat="server" innertext='<%#DataBinder.Eval(Container, "DataItem.TriesCount")%>'>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="LastTryTimeStamp"
                                        HeaderText="<%$ Resources:Content,DGN1110212%>" HeaderStyle-CssClass="col-xs-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs">
                                        <ItemTemplate>
                                            <div id="Div_LastTry" runat="server">
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="CustomerId" HeaderText='<%$ Resources:Content,GN0000850%>'
                                        HeaderStyle-CssClass="col-xs-2 hidden-xs" ItemStyle-CssClass="col-xs-2 hidden-xs">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                            <%--<asp:HyperLink ID="LB_Client" runat="server"></asp:HyperLink>--%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="OwnerName" HeaderText='<%$ Resources:Content,SPT002811%>'
                                        HeaderStyle-CssClass="col-xs-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="Lb_Owner" runat="server" CommandName="Owner" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.CompanyId")%>'>
                                            </asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000839%>'
                                        HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Literal ID="LB_AddedBy" runat="server"></asp:Literal>                                             
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Run" runat="server" Text='<%$ Resources:Content,DGN1110045%>' CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                                            <asp:LinkButton ID="LB_ChangePassword" Visible="false" runat="server" Text='<%$ Resources:Content,M0087%>' CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                                            <asp:LinkButton ID="LB_Cancel" runat="server" CommandName="CancelJob" Text='<%$ Resources:Content,GN0000572%>' CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,FAM00185%>"
                                                TargetControlID="LB_Cancel" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager1" runat="server" />
                                </PagerTemplate>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>
    </div>
</div>

<asp:Panel ID="Pnl_ChangePWD" runat="server" class="width-modal-popup-auto" DefaultButton='Btn_OK'>
    <div class="col-xs-12">
        <div class="card">
            <div class="header container-fluid">
                <h3 class="pull-left">
                    <asp:Literal ID="Ltl_ChngPassword" runat="server" Text='<%$Resources:Content, M0087 %>'></asp:Literal></h3>
                <span>
                    <button type="button" class="close" onclick="$find('<%=MPE_ChangePWD.ClientID%>').hide();">&times;</button>
                </span>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Literal9" runat="server" Text='<%$Resources:Content, DGN1110554 %>'></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Password" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_ConfirmPassword" runat="server" ControlToValidate="TxBx_Password"
                                    Display="none" SetFocusOnError="true" ValidationGroup="UPChangePass">
                                </asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Literal3" runat="server" Text='<%$Resources:Content, GN0001196 %>'></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_CPassword" runat="server" TextMode="Password">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_CPassword" runat="server" ControlToValidate="TxBx_CPassword"
                                    Display="none" SetFocusOnError="true" ValidationGroup="UPChangePass">
                                </asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CV" runat="server" ControlToValidate="TxBx_Password" ControlToCompare="TxBx_CPassword"
                                    ValidationGroup="UPChangePass" Display="None" ErrorMessage='<%$Resources:Content, SPT002699 %>'></asp:CompareValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:ValidationSummary ValidationGroup="UPChangePass" HeaderText='<%$ Resources:Content,EM000001 %>'
                            ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false" />

                        <asp:Button ID="Btn_OK" runat="server" Text='<%$Resources:Content, GN0000858 %>' class="btn btn-primary waves-effect" ValidationGroup="UPChangePass" CausesValidation="true"></asp:Button>
                        <asp:Button ID="Btn_Cancel" runat="server" Text='<%$Resources:Content, GN0000572 %>' class="btn btn-primary waves-effect"></asp:Button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_QDetail" runat="server" CssClass="width-modal-popup-auto">
    <div class="col-xs-12" id="Pnl_QLogs" runat="server">
        <div class="card">
            <div class="header container-fluid">
                <h3 class="pull-left"></h3>
                <span>
                    <button type="button" class="close" onclick="$find('<%=MPE_Acc.ClientID%>').hide();">&times;</button>
                </span>
            </div>
            <div class="body">
                <asp:GridView ID="GV_QLogs" runat="server" CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false"
                    EmptyDataText="<%$ Resources:Content,GN00001375%>">

                    <Columns>
                        <asp:TemplateField HeaderText='<%$ Resources:Content,Dev676%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                            <ItemTemplate>
                                <asp:Label ID="Ltrl_date" runat="server" Text="<%$ Resources:Content,SMI0373%>" Style="color: #00D5FF" />
                                <asp:Label runat="server" ID="LblDate" ForeColor="#00D5FF"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText='<%$ Resources:Content,Dev675%>' HeaderStyle-CssClass="col-xs-9" ItemStyle-CssClass="col-xs-9">
                            <ItemTemplate>
                                <div runat="server" id="AccordianMesg">
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <%--PagerTemplate Start--%>
                    <PagerTemplate>
                        <EM:Pager ID="Pager2" runat="server" />
                    </PagerTemplate>
                    <%--PagerTemplate End--%>
                </asp:GridView>
            </div>
        </div>
    </div>
    <div class="col-xs-12">
        <asp:Button class="btn btn-primary waves-effect" ID="BtnAccClose" runat="server" Text='<%$ Resources:Content,GN000150%>' />
    </div>
</asp:Panel>

<asp:Button ID="Btn_QDummy" runat="server" Style="display: none" Text='<%$ Resources:Content,GN0000575%>' />
<EM:ModalPopupExtender runat="server" ID="MPE_Acc" BackgroundCssClass="modalBackground"
    DropShadow="false" CancelControlID="BtnAccClose" PopupControlID="Pnl_QDetail"
    TargetControlID="Btn_QDummy" />

<asp:Button ID="Btn_Dummy" runat="server" Style="display: none" />
<EM:ModalPopupExtender ID="MPE_ChangePWD" runat="server" TargetControlID="Btn_Dummy"
    BackgroundCssClass="modalBackground" DropShadow="False" PopupControlID="Pnl_ChangePWD">
</EM:ModalPopupExtender>

<asp:Panel ID="Pnl_MsgDetail" runat="server" CssClass="width-modal-popup-auto">
    <div class="col-xs-12">
        <div class="card">
            <div class="header container-fluid">
                <h3 class="pull-left"></h3>
                <span>
                    <button type="button" class="close" onclick="$find('<%=MPE_MsgDetail.ClientID%>').hide();">&times;</button>
                </span>
            </div>
            <div class="body">
                <div class="col-xs-12">
                    <div id="Div_MsgDetail" runat="server"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12">
        <asp:Button class="btn btn-primary waves-effect" ID="Btn_MsgDetailClose" runat="server" Text='<%$ Resources:Content,GN000150%>' />
    </div>
</asp:Panel>
<asp:Button ID="Btn_Dummy2" runat="server" Style="display: none" Text='<%$ Resources:Content,GN0000575%>' />
<EM:ModalPopupExtender runat="server" ID="MPE_MsgDetail" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Pnl_MsgDetail" CancelControlID="Btn_MsgDetailClose"
    TargetControlID="Btn_Dummy2" />

