<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WFEstatistica.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.WFEstatistica" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="wf" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<section class="wf-statistics">
    <fieldset class="filter listfilter">
        <label>
            <asp:Label CssClass="filtertitle" runat="server" ID="lblPeriod" />
            <asp:DropDownList runat="server" ID="ddlPeriod" ValidationGroup="filter" AutoPostBack="true" />
            &nbsp;&nbsp;<asp:Literal ID="lblDtInterval" runat="server" />
        </label>
        <asp:Panel runat="server" ID="pnCustomPeriod">
            <asp:Label ID="lblDtSearch" Text="Data de término" runat="server" />
            <wf:DatePicker ID="datefrom" ValidationGroup="filter" DisableLowerValuesFor="dateto" runat="server" />
            <asp:Label ID="lblto" CssClass="textoData" Text="até" runat="server" />
            <wf:DatePicker ID="dateto" ValidationGroup="filter" runat="server" />
        </asp:Panel>
        <asp:Button ID="btnsearch" ValidationGroup="filter" CssClass="search" runat="server" />
    </fieldset>
    <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("Average")%>' />
                    <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" style='background-color:<%#Eval("Color")%>;color:<%#Eval("FontColor")%>;'>
                <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" />
            </li>
        </ItemTemplate>
    </asp:Repeater>
    <asp:Repeater ID="rptStages" runat="server">
        <ItemTemplate>
            <li class="stage statItem <%#Eval("IsSelected")%>">
                <asp:LinkButton runat="server" CommandArgument='<%#Eval("Id")%>' OnClick="Stage_Click">
                    <asp:Label runat="server" Text='<%#Eval("Watermark")%>' CssClass="watermark" />
                    <h5><%#Eval("Name")%></h5>
                    <asp:Label runat="server" Text='<%#Eval("Average")%>' />
                    <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="rptSLAStage" runat="server">
        <ItemTemplate>
            <li class="sla statItem" style='background-color:<%#Eval("Color")%>;color:<%#Eval("FontColor")%>;'>
                <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" />
            </li>
        </ItemTemplate>
    </asp:Repeater>
    <asp:Repeater ID="rptUsers" runat="server">
        <ItemTemplate>
            <li class="user statItem">
                <asp:Label runat="server" Text='<%#Eval("Watermark")%>' CssClass="watermark" />
                <h5><%#Eval("Name")%></h5>
                <asp:Label runat="server" Text='<%#Eval("Average")%>' />
                <asp:Label runat="server" Text='<%#Eval("SLA")%>' />
                <asp:Label runat="server" Text='<%#Eval("Last")%>' />
                <asp:Label runat="server" Text='<%#Eval("ItemsCount")%>' CssClass="count" />
            </li>
        </ItemTemplate>
    </asp:Repeater>
    </ul>
</section>

