<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WFPainelSumario.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.WFPainelSumario" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="WFC" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<div class="cont-left">
    <asp:Panel ID="pnProcessos" runat="server">
        <h4 id="header_left" class="header_right1"><asp:Label ID="lblProcessos" runat="server" /></h4>
        <div id="divLeft" class="right_column">
            <asp:Repeater ID="rptProcessos" runat="server">
                <ItemTemplate>
                    <div class="info">
                        <h5 class="chart_title"><asp:LinkButton ID="lnkProcess" runat="server" CommandName="GetProcess" CommandArgument='<%# Eval("ProcessId")%>' /></h5>
                        <asp:LinkButton ID="lnkChartProcess" runat="server" CommandName="GetProcess" CommandArgument='<%# Eval("ProcessId")%>'>
                        <div id="divChartProcess" runat="server" class="chart_bar"></div>
                        <div id="divChartProcessComplement" runat="server" class="float_left"></div>
                        <div id="divChartProcessValue" runat="server" class="chart_value"></div>
                        </asp:LinkButton>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="clear"></div>
            <asp:Panel ID="pnlPagerProcessos" CssClass="paging_left" runat="server">
                <WFC:WebPaging ID="LeftWebPager" runat="server" RootElement="Div" CssClass="paginacao"
                    CssClassPageLink="pagina" PageNumbersSeparator=" " MaxVisiblePages="10" NavigationOptions="none" />
                <asp:Label ID="lblLeftTotalPages" runat="server" class="page_count"></asp:Label>
            </asp:Panel>
        </div>
    </asp:Panel>
</div>
<div class="cont-center">
    <asp:Panel ID="pnCharts" runat="server">
        <asp:HiddenField ID="updValue" runat="server" />
        <asp:LinkButton ID="updateButton" runat="server" style="display:none;" /> 
        <h4 id="header_center" class="header_center1"><asp:Label ID="lblSLA" runat="server" /></h4>
            <div id="divCenter" class="center_column">
                <telerik:RadHtmlChart runat="server"  ID="chtProcessos" Visible="false" Height="350" Width="300">
                    <ChartTitle>
                        <Appearance Position="Top" />
                    </ChartTitle>
                    <PlotArea>
                        <XAxis> 
                            <MinorGridLines Visible="false" />
                            <MajorGridLines Visible="false" />
                        </XAxis>
                        <YAxis>
                            <MinorGridLines Visible="false" />
                        </YAxis>
                    </PlotArea>
                </telerik:RadHtmlChart>
                <telerik:RadHtmlChart runat="server"  ID="chtEtapas" Visible="false" Height="350" Width="300">
                    <ChartTitle>
                        <Appearance Position="Top" />
                    </ChartTitle>
                    <PlotArea>
                        <XAxis> 
                            <MinorGridLines Visible="false" />
                            <MajorGridLines Visible="false" />
                        </XAxis>
                        <YAxis>
                            <MinorGridLines Visible="false" />
                        </YAxis>
                    </PlotArea>
                </telerik:RadHtmlChart>
            </div>
    </asp:Panel>
</div>
<div class="cont-right">
    <asp:Panel ID="pnProdutividade" runat="server">
        <h4 id="header_right" class="header_right1"><asp:Label ID="lblProductivity" runat="server" /></h4>
        <div id="divRight" class="right_column">
            <asp:Repeater ID="rptProdutividade" runat="server">
                <ItemTemplate>
                    <div class="info">
                        <h5 class="chart_title"><asp:LinkButton ID="lnkProdutividade" runat="server" CommandName="GetProductivity" Text='<%# Eval("UserName")%>' CommandArgument='<%# Eval("UserId")%>' /></h5>
                        <div class="chart_bar" style="float: left; height: 20px; background: #f0f0f0; width:100%">
                            <asp:LinkButton ID="lnkChtProdutividade" runat="server" CommandName="GetProductivityAtt" CommandArgument='<%# Eval("UserId")%>'>
                            <div title="<%#Eval("AttachedCount")%>&nbsp;<%=ItemsAttached%>" style="margin: 0; float: left; display: block; height: 100%; background: #3d7bff; width: <%#CalcProductivityBarWidth(CInt(Eval("AttachedCount")))%>"></div>
                            </asp:LinkButton>
                            <asp:LinkButton ID="lnkChtProdutividade2" runat="server" CommandName="GetProductivityNAtt" CommandArgument='<%# Eval("UserId")%>'>
                            <div title="<%#CInt(Eval("ItemCount")) - CInt(Eval("AttachedCount"))%>&nbsp;<%=ItemsNotAttached%>" style="margin: 0; float: left; display: block; height: 100%; background: #ff6a00; width: <%#CalcProductivityBarWidth(CInt(Eval("ItemCount")) - CInt(Eval("AttachedCount")))%>"></div>
                            </asp:LinkButton>
                        </div>
                            <asp:LinkButton ID="lnkLblProdutividade" runat="server" CommandName="GetProductivity" CommandArgument='<%# Eval("UserId")%>'>
                        <div class="chart_value"><%#Eval("ItemCount")%></div>
                        </asp:LinkButton>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="clear"></div>
            <asp:Panel ID="pnlPagerProdutividade" CssClass="paging_right" runat="server">
                <WFC:WebPaging ID="RightWebPager" runat="server" RootElement="Div" CssClass="paginacao"
                    CssClassPageLink="pagina" PageNumbersSeparator=" " MaxVisiblePages="10" NavigationOptions="none" />
                <asp:Label ID="lblRightTotalPages" runat="server" class="page_count"></asp:Label>
            </asp:Panel>
        </div>
    </asp:Panel>
</div>
