<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WFPainelTiles.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.WFPainelTiles" %>
<%@ Register Src="~/WFContent/Modules/WFWorkflow/PainelControle/WFPainelItems.ascx" TagPrefix="uc1" TagName="WFPainelItems" %>

<asp:placeholder id="phFilter" runat="server">
<section class="zuri-workspace contAreaTrabalho" style="width:100%!important;margin-bottom:1em;">
    <section class="wacont-Main">
        <asp:Panel ID="pnlFilter" runat="server" CssClass="wabuscar" DefaultButton="btnsearch">
            <asp:TextBox ID="txtSearchText" CssClass="wainput-busca" runat="server" />
            <asp:Button ID="btnsearch" CssClass="wainput-submit buscasimples" runat="server" />
        </asp:Panel>
    </section>
</section>
</asp:placeholder>
<section class="wf-statistics">
    <ul class="tiles">
        <asp:Repeater ID="rptProcesses" runat="server">
            <ItemTemplate>
                <li class="process statItem <%#Eval("IsSelected")%>">
                    <asp:LinkButton runat="server" CommandArgument='<%#Eval("Id")%>' OnClick="Process_Click">
                        <asp:Label runat="server" Text='<%#Eval("Watermark")%>' CssClass="watermark" />
                        <h5><%#Eval("Name")%></h5>
                        <asp:Label runat="server" Text='<%#Eval("SLA")%>' />
                        <asp:Label runat="server" Text='<%#Eval("UserName")%>' />
                        <asp:Label runat="server" Text='<%#Eval("Last")%>' />
                        <asp:Label runat="server" Text='<%#Eval("ItemsCount")%>' CssClass="count" />
                    </asp:LinkButton>
                </li>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rptSLAProc" runat="server">
            <ItemTemplate>
                <li class="sla statItem <%#Eval("IsSelected")%>" style='background-color:<%#Eval("Color")%>;color:<%#Eval("FontColor")%>;'>
                    <asp:LinkButton runat="server" CommandArgument='<%#Eval("Id")%>' OnClick="SLAProcess_Click">
                        <asp:Label runat="server" Text='<%#Eval("Watermark")%>' CssClass="watermark" />
                        <h5 style='color:<%#Eval("FontColor")%>;'><%#Eval("Name")%></h5>
                        <asp:Label runat="server" Text='<%#Eval("Percentual")%>'  />
                        <asp:Label runat="server" Text='<%#Eval("Count")%>' CssClass="count" />
                    </asp:LinkButton>
                </li>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rptSteps" runat="server">
            <ItemTemplate>
                <li class="stage statItem <%#Eval("IsSelected")%>">
                    <asp:LinkButton runat="server" CommandArgument='<%#Eval("Id")%>' OnClick="Step_Click">
                        <asp:Label runat="server" Text='<%#Eval("Watermark")%>' CssClass="watermark" />
                        <h5><%#Eval("Name")%></h5>
                        <asp:Label runat="server" Text='<%#Eval("SLA")%>' />
                        <asp:Label runat="server" Text='<%#Eval("UserName")%>' />
                        <asp:Label runat="server" Text='<%#Eval("Last")%>' />
                        <asp:Label runat="server" Text='<%#Eval("ItemsCount")%>' CssClass="count" />
                    </asp:LinkButton>
                </li>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rptSLAStep" runat="server">
            <ItemTemplate>
                <li class="sla statItem <%#Eval("IsSelected")%>" style='background-color:<%#Eval("Color")%>;color:<%#Eval("FontColor")%>;'>
                    <asp:LinkButton runat="server" CommandArgument='<%#Eval("Id")%>' OnClick="SLAStep_Click">
                        <asp:Label runat="server" Text='<%#Eval("Watermark")%>' CssClass="watermark" />
                        <h5 style='color:<%#Eval("FontColor")%>;'><%#Eval("Name")%></h5>
                        <asp:Label runat="server" Text='<%#Eval("Percentual")%>'  />
                        <asp:Label runat="server" Text='<%#Eval("Count")%>' CssClass="count" />
                    </asp:LinkButton>
                </li>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rptUsers" runat="server">
            <ItemTemplate>
                <li class="user statItem <%#Eval("IsSelected")%>">
                    <asp:LinkButton runat="server" CommandArgument='<%#Eval("Id")%>' OnClick="User_Click">
                        <asp:Label runat="server" Text='<%#Eval("Watermark")%>' CssClass="watermark" />
                        <h5><%#Eval("Name")%></h5>
                        <asp:Label runat="server" Text='<%#Eval("AttachedItems")%>'/>
                        <asp:Label runat="server" Text='<%#Eval("NAttachedItems")%>'/>
                        <asp:Label runat="server" Text='<%#Eval("ItemsCount")%>' CssClass="count" />
                    </asp:LinkButton>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</section>
<uc1:WFPainelItems runat="server" id="WFPainelItems" visible="false"/>
