<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WFAreaTrabalho.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.WFAreaTrabalho" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="WebFoundations.WFWorkflow.Services" Namespace="WebFoundations.WFWorkflow.Services.UI" TagPrefix="wff" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="wff" %>
<%@ Register Src="~/WFContent/Modules/WFWorkflow/ItemProcesso/ZuriLoader.ascx" TagPrefix="uc1" TagName="ZuriLoader" %>
<section class="zuri-workspace contAreaTrabalho">
    <asp:Panel ID="pnlBusca" runat="server">
        <section class="wacont-Main">
            <asp:Panel ID="pnlBuscaSimples" CssClass="wabuscar" DefaultButton="btnBusca" runat="server">
                <asp:TextBox ID="txtBusca" CssClass="wainput-busca" runat="server" />
                <asp:Button ID="btnBusca" runat="server" CssClass="wainput-submit buscasimples" />
                <span id="finished1" style="display: none;" runat="server"><asp:CheckBox ID="chkfinished" runat="server" /></span>
                <asp:PlaceHolder ID="lnkAvancada" runat="server">
                    <a href=".areaTrabalho" id="searchtoggle" class="<%:searchToggleClass%>" onclick="try{anchorToogleClick(this);}catch(error){};return false;"><asp:Literal ID="lblLinkAvancada" runat="server" /></a>
                </asp:PlaceHolder>
                <div class="wabtn-acao">
                    <asp:HyperLink ID="lnkCustomizar" CssClass="wafavorito ir" runat="server" /><asp:LinkButton ID="lnkRefresh" CssClass="warefresh ir" runat="server" />
                </div>
            </asp:Panel>
            <asp:Panel ID="pnlBuscaAvancada" CssClass="wabusca-avancada areaTrabalho" DefaultButton="btnBuscaAdv" runat="server">
                <fieldset>
                    <legend class="walegend"><asp:Label ID="lblAvancada" runat="server" /></legend>
                    <div class="wabusca-avancadaTB">
                        <asp:UpdatePanel ID="pnlProcessos" UpdateMode="Always" runat="server">
                            <ContentTemplate>
                                <span id="flProcesso" class="waFilter" runat="server">
                                    <asp:Label ID="lblprocesso" CssClass="labelItem" runat="server"></asp:Label>
                                    <wff:MyList ID="lstprocesso" ValidationGroup="Inbox" CssClass="wainput-select" runat="server" />
                                </span>
                                <span id="flEtapa" class="waFilter" runat="server">
                                    <asp:Label ID="lbletapa" CssClass="labelItem" runat="server"></asp:Label>
                                    <wff:MyList ID="lstetapa" ValidationGroup="Inbox" CssClass="wainput-select" runat="server" />
                                </span>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <span id="flData" class="waFilter" runat="server">
                            <asp:Label ID="lblcriacao" runat="server" />
                            <div class="wadatefield">
                                <wff:DatePicker ID="datefrom" CssClass="wainput-date" ValidationGroup="Inbox" runat="server" />
                            </div>
                            <asp:Label ID="lblto" CssClass="wainput-date-to" runat="server" />
                            <div class="wadatefield">
                                <wff:DatePicker ID="dateto" CssClass="wainput-date" ValidationGroup="Inbox" runat="server" />
                            </div>
                        </span>
                        <span class="waFilter waSolicitante" id="flSolicitante" runat="server">
                            <asp:Label ID="lblsolic" CssClass="labelItem" runat="server"></asp:Label>
                            <wff:UserPicker id="UserPicker" DropDownAutoWidth="enabled" width="100%" runat="server" />
                        </span>
                        <span id="flItemId" class="waFilter" runat="server">
                            <asp:Label ID="lblitemid" runat="server" CssClass="labelItem"></asp:Label>
                            <asp:TextBox ID="txtitemid" runat="server" CssClass="wainput-text" MaxLength="10"
                                ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flItemName" class="waFilter" runat="server">
                            <asp:Label ID="lblitemname" runat="server"></asp:Label>
                            <asp:TextBox ID="txtitemname" runat="server" CssClass="wainput-text" ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flItemParam1" class="waFilter" runat="server">
                            <asp:Label ID="lblParam1" runat="server" />
                            <asp:TextBox ID="txtParam1" runat="server" CssClass="wainput-text" ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flItemParam2" class="waFilter" runat="server">
                            <asp:Label ID="lblParam2" runat="server" />
                            <asp:TextBox ID="txtParam2" runat="server" CssClass="wainput-text" ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flItemParam3" class="waFilter" runat="server">
                            <asp:Label ID="lblParam3" runat="server" />
                            <asp:TextBox ID="txtParam3" runat="server" CssClass="wainput-text" ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flItemParam4" class="waFilter" runat="server">
                            <asp:Label ID="lblParam4" runat="server" />
                            <asp:TextBox ID="txtParam4" runat="server" CssClass="wainput-text" ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flItemParam5" class="waFilter" runat="server">
                            <asp:Label ID="lblParam5" runat="server" />
                            <asp:TextBox ID="txtParam5" runat="server" CssClass="wainput-text" ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flConteudo" class="waFilter" runat="server">
                            <asp:Label ID="lblConteudo" runat="server" />
                            <asp:TextBox ID="txtBusca2" runat="server" CssClass="wainput-text" ValidationGroup="Inbox"></asp:TextBox>
                        </span>
                        <span id="flFinished2" class="waFilter" runat="server">
                            <span>&nbsp;</span>
                            <span id="finished2" style="display: none;" runat="server">
                                <asp:CheckBox ID="chkFinished2" runat="server" /></span>
                        </span>
                    </div>
                    <asp:Button ID="btnBuscaAdv" runat="server" OnClick="CarregaLista" CssClass="wainput-submit" />
                </fieldset>
            </asp:Panel>
        </section>
    </asp:Panel>
    <asp:UpdatePanel ID="pnlAreaTrabalho" UpdateMode="Always" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnBusca" EventName="Click" />
        </Triggers>
        <ContentTemplate>
            <asp:Timer ID="contentTimer" runat="server" Enabled="False" Interval="600000" />
            <asp:Panel ID="pnlListType" CssClass="listGroup" runat="server">
                <article>
                    <ul class="panel">
                        <li id="inboxTile" class="panel-tile theme-bg" runat="server">
                            <asp:LinkButton ID="lnkInbox" OnClick="listType_Click" runat="server">
                                <asp:Label ID="lblInbox" runat="server" />
                                <asp:Label ID="inboxWM" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblInboxCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                        <li id="myItemsTile" class="panel-tile theme-bglight" runat="server">
                            <asp:LinkButton ID="lnkMyItems" OnClick="listType_Click" runat="server">
                                <asp:Label ID="lblMyItems" runat="server" />
                                <asp:Label ID="myItemsWM" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblMyItemsCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                        <li id="outlookTile" class="panel-tile theme-bgdarker" runat="server">
                            <asp:LinkButton ID="lnkOutlook" OnClick="listType_Click" runat="server">
                                <asp:Label ID="lblOutlook" runat="server" />
                                <asp:Label ID="outlookWM" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblOutlookCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                    </ul>
                </article>
            </asp:Panel>
            <div class="listGroup listSections">
                <asp:Repeater ID="rptSLAProc" runat="server">
                    <HeaderTemplate>
                        <article>
                            <ul class="panel">
                    </HeaderTemplate>
                    <FooterTemplate></ul></article></FooterTemplate>
                    <ItemTemplate>
                        <li id="itemTile" class="square-tile" runat="server">
                            <asp:LinkButton ID="lnkSLAProcesso" OnClick="listType_Click" runat="server">
                                <asp:Label ID="lblItemName" runat="server" />
                                <asp:Label ID="lblWatermark" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblItemCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:Repeater ID="rptProcessos" runat="server">
                    <HeaderTemplate>
                        <article>
                            <ul class="panel">
                    </HeaderTemplate>
                    <FooterTemplate></ul></article></FooterTemplate>
                    <ItemTemplate>
                        <li id="itemTile" class="rectangle-tile dark-gray" runat="server">
                            <asp:LinkButton ID="lnkProcesso" OnClick="listType_Click" runat="server">
                                <asp:Label ID="lblItemName" runat="server" />
                                <asp:Label ID="lblWatermark" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblItemCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:Repeater ID="rptSLAStep" runat="server">
                    <HeaderTemplate>
                        <article>
                            <ul class="panel">
                    </HeaderTemplate>
                    <FooterTemplate></ul></article></FooterTemplate>
                    <ItemTemplate>
                        <li id="itemTile" class="square-tile" runat="server">
                            <asp:LinkButton ID="lnkSLAEtapa" OnClick="listType_Click" runat="server">
                               <asp:Label ID="lblItemName" runat="server" />
                                <asp:Label ID="lblWatermark" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblItemCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:Repeater ID="rptFields" runat="server">
                    <HeaderTemplate>
                        <article>
                            <ul class="panel">
                    </HeaderTemplate>
                    <FooterTemplate></ul></article></FooterTemplate>
                    <ItemTemplate>
                        <li id="itemTile" class="rectangle-tile light-gray" runat="server">
                            <asp:LinkButton ID="lnkField" OnClick="listType_Click" runat="server">
                                <asp:Label ID="lblItemName" runat="server" />
                                <asp:Label ID="lblWatermark" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblItemCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:Repeater ID="rptMarker" runat="server">
                    <HeaderTemplate>
                        <article>
                            <ul class="panel">
                    </HeaderTemplate>
                    <FooterTemplate></ul></article></FooterTemplate>
                    <ItemTemplate>
                        <li id="itemTile" class="rectangle-tile theme-bglightgray" runat="server">
                            <asp:LinkButton ID="lnkMarker" OnClick="listType_Click" runat="server">
                                <asp:Label ID="lblItemName" runat="server" />
                                <asp:Label ID="lblWatermark" CssClass="watermark" runat="server" />
                                <asp:Label ID="lblItemCount" CssClass="count" runat="server" />
                            </asp:LinkButton>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="watabela-itens">
                <telerik:RadGrid ID="grdListagem" runat="server"
                    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:GridTemplateColumn HeaderText="" UniqueName="ITEMCHILDREN" Visible="false">
							<ItemTemplate>
								<asp:ImageButton ID="btnchild" runat="server" />
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn HeaderText="" UniqueName="USERTAG" Visible="false">
							<ItemTemplate>
								<asp:ImageButton ID="btntag" runat="server" />
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn HeaderText="" UniqueName="USERATTACH" Visible="false">
							<ItemTemplate>
								<asp:ImageButton ID="btnattach" runat="server" />
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<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="NomeProcesso" UniqueName="PROCESSO" Visible="false" />
						<telerik:GridBoundColumn HeaderText="" DataField="NomeEtapa" 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="Gerador" UniqueName="GERADOR" Visible="false" />
						<telerik:GridBoundColumn HeaderText="" DataField="StepStart" UniqueName="INICIOETAPA" Visible="false" />
						<telerik:GridBoundColumn HeaderText="" DataField="Prioridade" UniqueName="PRIORIDADE" Visible="false" />
						<telerik:GridBoundColumn HeaderText="" DataField="ItemOrigem" UniqueName="ITEMORIGEM" Visible="false" />
						<telerik:GridBoundColumn HeaderText="" DataField="GestoresEtapa" UniqueName="GESTORESETAPA" Visible="false" />
						<telerik:GridBoundColumn HeaderText="" DataField="GestoresProcesso" UniqueName="GESTORESPROCESSO" 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="DeadlineEtapa" UniqueName="DEADLINEETAPA" Visible="false" />
						<telerik:GridBoundColumn HeaderText="" DataField="DeadlineProcesso" UniqueName="DEADLINEPROCESSO" Visible="false" />
                        <telerik:GridBoundColumn HeaderText="" DataField="MacroEtapa" 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="LINKANEXOS" Visible="false" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center">
							<ItemTemplate>
								<asp:ImageButton ID="btnAttachments" ImageUrl="~/WFResources/Process/images/attachments.png" Width="20px" Height="20px" runat="server" />
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Center" />
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn HeaderText="" UniqueName="LINKHISTORICO" Visible="false" ItemStyle-HorizontalAlign="center"
							HeaderStyle-HorizontalAlign="center">
							<ItemTemplate>
								<asp:ImageButton ID="btnHistory" ImageUrl="~/WFResources/Process/images/history.png" Width="20px" Height="20px" runat="server" />
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Center" />
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn HeaderText="" UniqueName="LINKPACOTE" Visible="false" ItemStyle-HorizontalAlign="center"
							HeaderStyle-HorizontalAlign="center">
							<ItemTemplate>
								<asp:HyperLink id="lnkPackage" ImageUrl="~/WFResources/Process/images/package.png" Width="16px" Height="16px" runat="server" />
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Center" />
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn HeaderText="" UniqueName="DECISOES" Visible="false" ItemStyle-HorizontalAlign="center"
							HeaderStyle-HorizontalAlign="center">
							<ItemTemplate>
								<asp:DropDownList ID="lstdecisoes" runat="server" />
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Center" />
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn HeaderText="" UniqueName="HIDDENCOL">
							<ItemTemplate>
								<asp:HiddenField ID="hiddenitemid" 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>
            </div>
            <div style="text-align: center; margin-top:1em; width: 97%;">
                <asp:Button ID="btndelete" runat="server" CssClass="wainput-execute" />&nbsp;&nbsp;
				<asp:Button ID="btnexecute" runat="server" CssClass="wainput-execute" />&nbsp;&nbsp;
				<asp:Button ID="btnexport" runat="server" CssClass="wainput-execute" />
            </div>
            <asp:HiddenField ID="PostBackHidden" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="hidGrafico" runat="server"></asp:HiddenField>
            <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>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnexport" />
        </Triggers>
    </asp:UpdatePanel>
</section>
<uc1:ZuriLoader runat="server" id="ZuriLoader" />
<telerik:RadWindowManager ID="CustomWindowManager" runat="server" ReloadOnShow="True" Modal="true" ShowContentDuringLoad="True"
    VisibleStatusbar="False" KeepInScreenBounds="True" DestroyOnClose="True" MinWidth="250" MinHeight="300" Width="350" Height="500">
    <windows>
		<telerik:RadWindow ID="WFListCustom" runat="server" />
	</windows>
</telerik:RadWindowManager>
