<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ControlItem.ascx.vb" Inherits="WebFoundations.WFWorkflow.UI.ControlItem" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls"TagPrefix="WFC" %>
<%@ Register Src="~/WFControls/AccessList.ascx" TagName="AccessList" TagPrefix="uc2" %>
<%@ Register Src="~/WFControls/UserSelect.ascx" TagName="UserSelect" TagPrefix="uc1" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<div class="controle-item">
	<asp:UpdatePanel ID="pnlObservers" UpdateMode="Conditional" Visible="false" runat="server">
		<ContentTemplate>
			<asp:Panel ID="groupObservers" Visible="true" runat="server" DefaultButton="btnobserv" CssClass="div-observer">
				<table class="table-observer">
					<tr>
						<td><h4><asp:literal ID="lblobserv" runat="server" /></h4></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblFilterobs" runat="server" /><br /><asp:DropDownList ID="ddlFilterobs" runat="server" Width="360" /></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblcriacao" CssClass="labelItem" runat="server" /><br />
							<table style="border:none;width:280px;">
								<tr>
									<td><WFC:DatePicker ID="datefrom" runat="server" /></td>
									<td nowrap>&nbsp;<asp:Label ID="lblto" CssClass="textoData" runat="server"/>&nbsp;</td>
									<td><WFC:DatePicker ID="dateto" runat="server" /></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td><asp:CheckBox ID="chkFinished" runat="server" /></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblrole" runat="server" /><br />
                            <div style="width:350px;">
                            <uc2:AccessList ID="listaacesso" DisableItems="-7;-6;-5;-4;-3" EnableUser="true" EnableRole="true" EnableRoleGroup="true" runat="server" />
                            </div>
						</td>
					</tr>
				</table>
				<div class="ItemControl-btn"><asp:Button ID="btnobserv" runat="server" CausesValidation="false"  CssClass="CaixabtnFiltrar" /></div>
			</asp:Panel>
		</ContentTemplate>
	</asp:UpdatePanel>
	<asp:UpdatePanel ID="pnlReassign" Visible="false" UpdateMode="Conditional" runat="server">
		<ContentTemplate>
			<asp:Panel ID="groupReassign" runat="server" DefaultButton="btnAssign" CssClass="div-reassign">
				<table class="table-reassign">
					<tr>
						<td><h4><asp:literal ID="lblReassign" runat="server" /></h4></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblFromUser" runat="server"/><br /><uc1:UserSelect ID="usrFrom" runat="server" Width="360" /></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblToUser" runat="server"/><br /><uc1:UserSelect ID="usrTo" runat="server" Width="360" /></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblprocess" runat="server"/><br /><asp:DropDownList ID="ddlprocess" Width="360" runat="server"></asp:DropDownList></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table> 
				<div class="ItemControl-btn"><asp:Button ID="btnAssign" runat="server" CausesValidation="false" CssClass="CaixabtnFiltrar" /></div>
			</asp:Panel>
		</ContentTemplate>
	</asp:UpdatePanel>
	<asp:UpdatePanel ID="pnlRestart" Visible="false" UpdateMode="Conditional" runat="server">
		<ContentTemplate>
			<asp:Panel ID="groupRestart" runat="server" DefaultButton="btnRestart" CssClass="div-restart">
				<table class="table-restart">
					<tr>
						<td><h4><asp:literal ID="lblTitRestart" runat="server" /></h4></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblSelProcess" runat="server" /><br /><asp:DropDownList ID="ddlRstProcess" Width="360" runat="server"></asp:DropDownList></td>
					</tr>
					<tr>
						<td><asp:Label ID="lblfindItem" runat="server"/><br />
							<asp:TextBox ID="txtItemId" runat="server"></asp:TextBox>
							<asp:regularexpressionvalidator id="vlItemId" CssClass="avisoErro"  runat="server" ControlToValidate="txtItemId"
								ValidationExpression="0*[1-9][0-9]*" Display="Dynamic"></asp:regularexpressionvalidator>
							<asp:Button ID="btnSearch" runat="server" CssClass="CaixabtnBuscar" />
						</td>
					</tr>
					<tr>
						<td><asp:Label ID="lblItemInfo" runat="server" CssClass="TituloBusca"/><br /><asp:Label ID="lblSearchResult" runat="server" CssClass="ResultadoBusca" /><br /><asp:Label ID="lblSelStep" runat="server" /><br /><asp:DropDownList ID="ddlSteps" Width="360" runat="server"></asp:DropDownList></td>
					</tr>
				</table> 
				<div class="ItemControl-btn"><asp:Button ID="btnRestart" runat="server"  CssClass="CaixabtnFiltrar" /></div>
			</asp:Panel>
		</ContentTemplate>
	</asp:UpdatePanel>
</div>