<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WFPainelProcesso.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.WFPainelProcesso" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls"	TagPrefix="WFC" %>
<div class="cont-left">
	<asp:Panel ID="pnlEtapas" runat="server">
		<h4 id="header_left" class="header_right1"><asp:Label ID="lblTitle" runat="server" /></h4>
		<div id="divLeft" class="Processo right_column">
			<asp:Repeater ID="rptItemsProcess" runat="server">
				<ItemTemplate>
                    <div class="info">
					<h5 class="chart_title"><asp:LinkButton ID="lnkTitle" runat="server" Text='<%#Eval("StepName")%>' OnClick="Etapa_Click" CommandArgument='<%#Eval("StepId")%>' /></h5>
					<div style="clear: both; float: left; height: 20px; background-color: #4096ee; width: <%#Eval("ItemWidth")%>%">
					<asp:LinkButton ID="lnkDetails" runat="server" OnClick="Etapa_Click" CommandArgument='<%#Eval("StepId")%>'>
						<div title="<%#Eval("StepName")%> (<%#Eval("ItemCount")%>)" style="clear: both; float: left;
						height: 20px; background-color: #4096ee; width: 100%"></div>
					</asp:LinkButton>                    
					<div style="clear: both;">
						<asp:Repeater ID="rptStepSLAs" runat="server">
							<ItemTemplate>
								<asp:LinkButton ID="lnkStepSla" runat="server" OnClick="EtapaSla_Click" 
									CommandArgument='<%#Eval("SLACommand")%>'>
									<div title="<%#Eval("SLAName")%> (<%#Eval("ItemCount")%>)" 
										style="height: 20px; float: left; background-color:<%#Eval("SLAColor")%>; 
										margin-bottom:15px; width: <%#Eval("SLAWidth")%>%"> 
									</div></asp:LinkButton>
							</ItemTemplate>
						</asp:Repeater>
					</div></div>
					<div style="height:40px !important;">
						<asp:LinkButton ID="lnkDetalhes" CssClass="chart_value" OnClick="Etapa_Click" CommandArgument='<%#Eval("StepId")%>' runat="server" />
					</div>
                    </div>
				</ItemTemplate>
			</asp:Repeater>
			<div class="clear"></div>
			<asp:Panel ID="pnlPagerEtapas" CssClass="paging_left" runat="server">
				<WFC:WebPaging ID="etapasPager" runat="server" RootElement="Div" CssClass="paginacao"
					CssClassPageLink="pagina" PageNumbersSeparator=" " MaxVisiblePages="10" NavigationOptions="none" />
				<asp:Label ID="etapasTotalPages" 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;" /> 
		<div id="header_center" class="header_center1"><asp:Label ID="lblSla" runat="server"></asp:Label></div>
		<div id="divCenter" class="sla center_column">
			<telerik:RadHtmlChart runat="server"  ID="chtSLAProcessos" Visible="false" Height="350" Width="350">
				<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="chtSLAEtapas" Visible="false" Height="350" Width="350">
				<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>
