<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Detalhes.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.Detalhes" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="wff" %>
<section class="geralForm detalhe-item">
    <div class="itemForm">
        <label>
            <asp:Label ID="lblNametit" runat="server" />:
        </label>
        <asp:Label ID="lblName" CssClass="campoItemForm" runat="server" />
    </div>
    <div class="itemForm">
        <label>
            <asp:Label ID="lblprioridadetit" runat="server" />:
        </label>
        <asp:Label ID="lblprioridade" CssClass="campoItemForm" runat="server" />
    </div>
    <div class="itemForm">
        <label>
            <asp:Label ID="lblstatustit" runat="server" />:
        </label>
        <asp:Label ID="lblstatus" CssClass="campoItemForm" runat="server" />
    </div>
    <div class="itemForm">
        <label>
            <asp:Label runat="server" ID="lblCreatedByTitle" Text="Criado por" />:
        </label>
        <asp:Label runat="server" ID="lblCreatedBy" Text="XXXXXXXXXXX" />
    </div>
    <div class="itemForm">
        <label>
            <asp:Label runat="server" ID="lblItemWorkflowCreatedDateTitle" Text="Data de criação do Item" />:
        </label>
        <asp:Label runat="server" ID="lblItemWorkflowCreatedDate" Text="DD/MM/AAAA HH:MM" />
    </div>
    <div class="itemForm" id="processStart" runat="server">
        <label>
            <asp:Label runat="server" ID="lblItemProcessCreatedDateTitle" Text="Data de criação do Item Processo" />:
        </label>
        <asp:Label runat="server" ID="lblItemProcessCreatedDate" Text="DD/MM/AAAA HH:MM" />
    </div>
    <asp:Panel ID="slaStatus" CssClass="itemForm" runat="server">
        <label>
            <asp:Label runat="server" ID="lblProcessSLAStatusTitle" Text="SLA do processo" />:
        </label>
        <asp:Label ID="lblProcessSLAStatus" CssClass="campoItemForm" runat="server" />
    </asp:Panel>
    <div class="itemForm" id="stepDeadline" runat="server">
        <label>
            <asp:Label ID="lblstepDeadlinetitle" CssClass="campoItemForm" runat="server" />:</label>
        <asp:Label ID="lblstepDeadline" CssClass="campoItemForm" runat="server" />
    </div>
    <div class="itemForm" id="processDeadline" runat="server">
        <label>
            <asp:Label ID="lblProcessDeadLinetitle" CssClass="campoItemForm" runat="server" />:</label>
        <asp:Label ID="lblProcessDeadLine" CssClass="campoItemForm" runat="server" />
    </div>
    <div class="itemForm" id="itemState" runat="server">
        <label>
            <asp:Label ID="lblItemState" CssClass="campoItemForm" runat="server" />:</label>
        <asp:Label ID="lblfinalizado" CssClass="campoItemForm" runat="server" />
    </div>
    <br />
    <asp:Panel ID="pnlmanagestep" runat="server" CssClass="itemForm gestor-decisao">
        <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 style="width: 20%; float: left; padding: 0.5em; min-width: 200px;">
                    <asp:Button ID="btnDesvincular" runat="server" Style="width: 100%" /></div>
            </div>
        </fieldset>
        <br />
    </asp:Panel>
    <asp:Panel ID="pnlmanageprocess" runat="server">
        <asp:Panel ID="pnlmoveitem" CssClass="itemForm gestor-decisao" runat="server">
            <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="lblmoveitem" runat="server" /></div>
                    <div style="width: 25%; float: left; padding: 0.5em; min-width: 200px;">
                        <asp:DropDownList ID="lstetapas" Width="100%" CssClass="selectForm" runat="server" />
                        <asp:DropDownList ID="lstSubprocessos" Width="100%" style="margin-top:2px;" runat="server" />
                    </div>
                    <div style="width: 20%; float: left; padding: 0.5em; min-width: 200px;">
                        <asp:Button ID="btnmover" runat="server" Style="width: 100%" /></div>
                </div>
            </fieldset>
            <br />
        </asp:Panel>
        <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="lblobserv" runat="server" /></div>
                <div style="width: 25%; float: left; padding: 0.5em; min-width: 200px;">
                    <wff:RolePicker id="observerRole" width="100%" runat="server" />
                </div>
                <div style="width: 20%; float: left; padding: 0.5em; min-width: 200px;">
                    <asp:Button ID="btnobserv" runat="server" Style="width: 100%" /></div>
                <div style="width: 20%; float: left; padding: 0.5em; min-width: 200px;">
                    <asp:Button ID="btnclearobserv" runat="server" Style="width: 100%" /></div>
            </div>
        </fieldset>
    </asp:Panel>
    <br />
    <telerik:RadGrid id="grdEtapaItem" runat="server"
        AutoGenerateColumns="false" AllowSorting="False"
        GridLines="None" AllowPaging="False">
        <mastertableview>
            <Columns>
                <telerik:GridBoundColumn DataField="NomeProcesso"
                UniqueName="NOMEPROCESSO" ItemStyle-HorizontalAlign="center" ItemStyle-VerticalAlign="middle" HeaderStyle-HorizontalAlign="center" />
                <telerik:GridTemplateColumn UniqueName="SUBPROCESS" HeaderStyle-HorizontalAlign="center" ItemStyle-VerticalAlign="middle" ItemStyle-HorizontalAlign="center" >
                    <ItemTemplate>
                        <asp:Label ID="lblNomeSubprocesso" runat="server" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="NOMEETAPA" HeaderStyle-HorizontalAlign="center" ItemStyle-VerticalAlign="middle" ItemStyle-HorizontalAlign="center" >
                    <ItemTemplate>
                        <asp:Label ID="lblNomeEtapa" runat="server" />
                        <asp:LinkButton ID="lnkEtapa" runat="server" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="Gestores"
                UniqueName="GESTOR" ItemStyle-HorizontalAlign="center" ItemStyle-VerticalAlign="middle"  HeaderStyle-HorizontalAlign="center"/>
                <telerik:GridBoundColumn DataField="Inicio"
                UniqueName="INICIO" ItemStyle-HorizontalAlign="center" ItemStyle-VerticalAlign="middle"  HeaderStyle-HorizontalAlign="center"/>
                <telerik:GridTemplateColumn UniqueName="RESPONSAVEL" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center">
			        <ItemTemplate>
                        <asp:Label runat="server" id="lblResponsavel" />
			        </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="STEPSLA" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" >
                    <ItemTemplate>
                        <div id="divCorEtapa" runat="server" style="width:15px;height:15px;display:inline-block;border:solid 1px #5d5c5c;margin-bottom:-0.1em;"></div>
                        <asp:label id="lblNomeSLAEtapa" runat="server"></asp:label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="Exclusao">
                    <ItemTemplate>
                        <asp:ImageButton ID="btndeletapaitem" Width="15px" Height="15px" runat="server"></asp:ImageButton>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </mastertableview>
        <clientsettings allowcolumnsreorder="false" allowdragtogroup="false"
            allowcolumnhide="false"
            selecting-allowrowselect="false" scrolling-allowscroll="true"
            scrolling-usestaticheaders="true">
            <Selecting EnableDragToSelectRows="False" />
            <Scrolling AllowScroll="false" UseStaticHeaders="True"></Scrolling>
        </clientsettings>
    </telerik:RadGrid>
    <asp:Panel ID="pnlUserAttach" runat="server">

        <div class="itemForm gestor-decisao">
            <asp:Button ID="btnDesvinculaUser" runat="server" CssClass="btn_ProcessoPeq" />
        </div>
    </asp:Panel>
</section>
<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>