<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WFPainelItems.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.WFPainelItems" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="wff" %>
<asp:PlaceHolder ID="navigation" Visible="false" runat="server">
<div style="display:inline-block;width:100%;text-align:right;><asp:Button ID="btnGoBack" CssClass="btnPainelBack" runat="server" /></div>
<asp:Label CssClass="filter-desc" ID="lblFilterDescription" runat="server"></asp:Label>
</asp:PlaceHolder>
<telerik:RadGrid ID="grdListagem" runat="server" Style="margin-top:1em;"  AutoGenerateColumns="false" AllowSorting="true" GridLines="None"
    GroupingEnabled="False" HorizontalAlign="Center" AllowMultiRowSelection="true">
    <headerstyle cssclass="bgHeaderAreaTrabalho" />
    <alternatingitemstyle cssclass="CxEntrada_linha02" />
    <itemstyle cssclass="CxEntrada_linha01" />
    <mastertableview>
	    <Columns>
		    <telerik:GridClientSelectColumn UniqueName="MARKER" />
		    <telerik:GridBoundColumn HeaderText="" DataField="ItemId" UniqueName="ITEMID" Visible="false" />
		    <telerik:GridTemplateColumn HeaderText="" UniqueName="NOMEITEM" Visible="false" SortExpression="NomeItem">
			    <ItemTemplate>
				    <asp:HyperLink id="itemLink" runat="server" />
			    </ItemTemplate>
			    <ItemStyle HorizontalAlign="Center" />
		    </telerik:GridTemplateColumn>
		    <telerik:GridBoundColumn HeaderText="" DataField="SubProcessTitle" UniqueName="SUBPROCESSNAME" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="StepName" UniqueName="ETAPA" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="ItemStatus" UniqueName="STATUS" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="StartDate" UniqueName="INICIO" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="UserOwnerName" UniqueName="GERADOR" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="StepStartDate" UniqueName="INICIOETAPA" Visible="false" />
            <telerik:GridTemplateColumn UniqueName="USUARIOVINCULADO" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center"  Visible="false">
			    <ItemTemplate>
                    <asp:Label runat="server" id="lblResponsavel" />
			    </ItemTemplate>
            </telerik:GridTemplateColumn>
		    <telerik:GridBoundColumn HeaderText="" DataField="Param1" UniqueName="ITEMPARAM1" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="Param2" UniqueName="ITEMPARAM2" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="Param3" UniqueName="ITEMPARAM3" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="Param4" UniqueName="ITEMPARAM4" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="Param5" UniqueName="ITEMPARAM5" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="DeadlineEtapaItem" UniqueName="DEADLINEETAPA" Visible="false" />
		    <telerik:GridBoundColumn HeaderText="" DataField="DeadlineItem" UniqueName="DEADLINEPROCESSO" Visible="false" />
            <telerik:GridBoundColumn HeaderText="" DataField="MacroStep" UniqueName="MACROETAPA" Visible="false" />
		    <telerik:GridTemplateColumn UniqueName="SLAETAPA" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" >
			    <ItemTemplate>
                    <asp:Panel ID="pnlSLAEtapa" runat="server"><asp:label id="lblNomeSLAEtapa" runat="server" /></asp:Panel>
			    </ItemTemplate>
		    </telerik:GridTemplateColumn>
		    <telerik:GridTemplateColumn UniqueName="SLAPROCESSO" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" >
			    <ItemTemplate>
                    <asp:Panel ID="pnlSLAProcesso" runat="server"><asp:label id="lblNomeSLAProc" runat="server" /></asp:Panel>
			    </ItemTemplate>
		    </telerik:GridTemplateColumn>
		    <telerik:GridTemplateColumn HeaderText="" UniqueName="HIDDENCOL">
			    <ItemTemplate>
				    <asp:HiddenField ID="hiddenitemid" runat="server"></asp:HiddenField>
                    <asp:HiddenField ID="hiddenetiid" runat="server"></asp:HiddenField>
			    </ItemTemplate>
			    <ItemStyle HorizontalAlign="Center" />
		    </telerik:GridTemplateColumn>
	    </Columns>
    </mastertableview>
    <clientsettings allowcolumnsreorder="false" allowdragtogroup="false" allowcolumnhide="false"
            selecting-allowrowselect="true" scrolling-usestaticheaders="true">
	    <Selecting EnableDragToSelectRows="true" />
	    <Scrolling AllowScroll="true" UseStaticHeaders="True"></Scrolling>
    </clientsettings>
</telerik:RadGrid>
<asp:HiddenField ID="PostBackHidden" runat="server"></asp:HiddenField>
<asp:PlaceHolder ID="listReassign" runat="server" Visible="false">
<div style="width:100%;text-align:center;margin-top:1em;">
<fieldset>
    <div style="width: 100%; min-width: 300px; position: relative;">
        <div style="width: 35%; float: left; padding: 0.5em; min-width: 200px;">
            <asp:Label ID="lblattribuser" runat="server" /></div>
        <div style="width: 25%; float: left; padding: 0.5em; min-width: 200px;">
            <wff:UserPicker id="attribUser" width="100%" runat="server" />
        </div>
        <div style="width: 20%; float: left; padding: 0.5em; min-width: 200px;">
            <asp:Button ID="btnatribuir" runat="server" Style="width: 100%" /></div>
    </div>
</fieldset>
</div>
</asp:PlaceHolder>
<div style="width:100%;text-align:center;margin-top:1em;">
    <asp:Button ID="btndelitems" CssClass="CaixabtnFiltrar CaixabtnFiltrar2" runat="server" />&nbsp;&nbsp;
    <asp:Button ID="btnfinishitems" CssClass="CaixabtnFiltrar CaixabtnFiltrar2" runat="server" />&nbsp;&nbsp;
    <asp:Button ID="btndetach" CssClass="CaixabtnFiltrar CaixabtnFiltrar2" runat="server" />
</div>
<telerik:RadToolTipManager RenderMode="Lightweight" runat="server" ID="myTooltipManager" Position="BottomCenter"
        RelativeTo="Element" Width="240px" Height="140px" Animation="Resize" HideEvent="LeaveTargetAndToolTip" CssClass="users-tooltip" ContentScrolling="Y"
        Skin="Default" RenderInPageRoot="true" AnimationDuration="200" EnableDataCaching="true">
    <WebServiceSettings Method="GetToolTipData" Path="/WFContent/Modules/WFWorkflow/ItemProcesso/WorkArea.asmx"/>
</telerik:RadToolTipManager>