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

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.CSPProductsSyncJobs%>                                                                                                                                 
                </h3>
            </div>
            <div class="body">

                <%--Search Option--%>


                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                                </h3>
                            </div>
                            <div class="body">
                                <div class="clearfix">
                                    <asp:Button ID="Btn_RemoveCompletedJobs" runat="server" Text="<%$ Resources:Content,ClearCompletedJobs%>" class="btn btn-primary waves-effect btnAction" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>



                <div class="row">
                    <div class="col-xs-12">

                        <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                            ID="GV_SyncJobs" AllowPaging="false" AllowSorting="false" runat="server" AutoGenerateColumns="false">
                            <Columns>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,L00193%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Profile" runat="server" Text='<%# Eval("ProfileName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,Country%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Country" runat="server"  Text='<%# Eval("CountryName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,SPT002062%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Locale" runat="server"  Text='<%# Eval("CultureName").ToString() & " [" & Eval("UICulture").ToString() & "]" %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000952%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_PGName" runat="server"  Text='<%# Eval("PGName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,String385%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Status" runat="server"  Text='<%# Eval("Status") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText='<%$ Resources:Content,JobDetails%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_StatusMessage" runat="server"  Text='<%# Eval("StatusMessage") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_Run" runat="server" Text='<%$ Resources:Content,DGN1110045%>' CommandArgument='<%# Eval("JobId") %>' CommandName="runmanually"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>

                    </div>
                </div>

            </div>
        </div>
    </div>
</asp:Content>

