<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WFAreaTrabalho.aspx.vb" Inherits="WebFoundations.WFWorkflow.UI.WFAreaTrabalho1" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="WebFoundations.WFPortal.Controls" Namespace="WebFoundations.WFPortal.Controls.Content" TagPrefix="WFC" %>
<%@ Register Src="~/WFAdmin/TagHeadAdmin.ascx" TagPrefix="wf" TagName="TagHeadAdmin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <wf:TagHeadAdmin runat="server" />
    <style type="text/css" >
        .configTitle {
            font-size:11pt;
            font-weight:bold;
            padding-left:-5px;
        }
        .separaItem {
            border-top:1px solid #e6dbdb;
            height:1px;
            font-size:1px;
        }
    </style> 
</head>
<body  class="wf-admin-modal">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <WFC:EditorManager id="EditorManager1" runat="server" />
        <div class="centralizarModulo" style="width:900px;">
            <div class="txt_titleModulo"><asp:Label ID="lbltitle" runat="server" /></div>
            <telerik:RadTabStrip RenderMode="Lightweight" runat="server" ID="tbConfig"  MultiPageID="configPages" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab Text="Campos"></telerik:RadTab>
                    <telerik:RadTab Text="Listagem"></telerik:RadTab>
                    <telerik:RadTab Text="Agrupamentos"></telerik:RadTab>
                    <telerik:RadTab Text="Filtros"></telerik:RadTab>
                    <telerik:RadTab Text="Abertura do Item"></telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage runat="server" ID="configPages"  SelectedIndex="0" >
                <telerik:RadPageView runat="server" ID="Campos">
                <asp:UpdatePanel ID="pnlcampos" runat="server">
                    <ContentTemplate>
                        <telerik:RadGrid runat="server" ID="grdCampos" AllowPaging="False"  AllowMultiRowSelection="true">
                            <MasterTableView>
                                <Columns>
                                    <telerik:GridDragDropColumn HeaderStyle-Width="18px" Visible="true" />
                                    <telerik:GridTemplateColumn HeaderText="Campo" UniqueName="NomeCampo">
                                        <ItemTemplate>
                                            <asp:HiddenField ID="identificador" runat="server" />
                                            <asp:HiddenField ID="agrupamento" runat="server" />
                                            <asp:Label ID="lblCampo" runat="server" />
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Mostrar" UniqueName="Mostrar">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkMostrar" runat="server" />
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Opcional" UniqueName="Opcional">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkOpcional" runat="server" />
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Filtrar" UniqueName="Filtrar">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkFiltrar" runat="server" />
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Titulo" UniqueName="TituloCampo">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtTitulo" runat="server"></asp:TextBox>
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="ToolTip" UniqueName="ToolTip">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtTooltip" runat="server"></asp:TextBox>
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="false" ReorderColumnsOnClient="false">
                                <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                                <Scrolling AllowScroll="false"/>
                            </ClientSettings>
                        </telerik:RadGrid>
                    </ContentTemplate>
                </asp:UpdatePanel>
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="Listagem">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                    <colgroup>
                        <col width="30%" />
                        <col width="70%" />
                    </colgroup>
                    <tr><td colspan="2" class="configTitle"><asp:Label ID="lblTitListagem" runat="server" /></td></tr> 
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkExport" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkCustom" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkCores" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkExclusao" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkImportant" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkVinculo" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkExec" runat="server" /></td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblTamPagina" runat="server" /></td>
                        <td>
                            <asp:TextBox ID="txtTamPagina" Width="25px" MaxLength="2" runat="server" />
                            <asp:RegularExpressionValidator ID="vlTamPagina" runat="server" ControlToValidate="txtTamPagina"
                                Display="Dynamic" ValidationExpression="\d*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblIntervalo" runat="server" /></td>
                        <td>
                            <asp:TextBox ID="txtIntervalo" Width="25px" MaxLength="3" runat="server" />
                            <asp:RegularExpressionValidator ID="vlIntervalo" runat="server" ControlToValidate="txtIntervalo"
                                Display="Dynamic" ValidationExpression="\d*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblLargura" runat="server" /></td>
                        <td>
                            <asp:TextBox ID="txtLargura" Width="80px" MaxLength="4" runat="server" />
                            <asp:RegularExpressionValidator ID="vlLargura" runat="server" ControlToValidate="txtLargura"
                                Display="Dynamic" ValidationExpression="\d*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblAltura" runat="server" /></td>
                        <td>
                            <asp:TextBox ID="txtAltura" Width="80px" MaxLength="4" runat="server" />
                            <asp:RegularExpressionValidator ID="vlAltura" runat="server" ControlToValidate="txtAltura"
                                Display="Dynamic" ValidationExpression="\d*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr><td colspan="2" class="configTitle"><asp:Label ID="lblTitInbox" runat="server" /></td></tr> 
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkLote" runat="server" /></td>
                    </tr>
                    <tr><td colspan="2" class="configTitle"><asp:Label ID="lblTitMeusObs" runat="server" /></td></tr> 
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkFinalizados" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkGroupItems" runat="server" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkDownloadViewer" runat="server" /></td>
                    </tr>
                    <tr><td colspan="2" class="configTitle"><asp:Label ID="lblSort" runat="server" /></td></tr> 
                    <tr>
                        <td><asp:Label ID="lblSortColumn" runat="server" /></td>
                        <td><asp:DropDownList ID="ddlSortColumn" runat="server"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:CheckBox ID="chkDescending" runat="server" /></td>
                    </tr>
                </table>
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="Agrupamentos">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                    <colgroup>
                        <col width="35%" />
                        <col width="65%" />
                    </colgroup>
                    <tr><td colspan="2" class="configTitle"><asp:Label ID="lblTitPaineis" runat="server" /></td></tr> 
                    <tr>
                        <td><asp:Label ID="lblpaineis" runat="server" /></td>
                        <td>
                            <asp:CheckBox ID="chkShowInbox" runat="server"  />&nbsp;
                            <asp:CheckBox ID="chkShowMyItems" runat="server" />&nbsp;
                            <asp:CheckBox ID="chkShowOutlook" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblCarregamento" runat="server" /></td>
                        <td><asp:DropDownList ID="lstCarregamento" runat="server" /></td>
                    </tr>
                    <tr><td colspan="2" class="configTitle"><asp:Label ID="lblTitGroups" runat="server" /></td></tr> 
                    <tr>
                        <td></td>
                        <td>
                            <asp:CheckBox ID="chkGroupParent" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <asp:CheckBox ID="chkGroupProcess" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <asp:CheckBox ID="chkGroupSLAP" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <asp:CheckBox ID="chkGroupSLAS" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblFieldGroup" runat="server" /></td>
                        <td><asp:DropDownList ID="ddlGroupFields" runat="server" /></td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblMarkerGroup" runat="server" /></td>
                        <td><asp:DropDownList ID="ddlGroupMarkers" runat="server" /></td>
                    </tr>
                    <tr id="hidden1" runat="server" visible="false"><td colspan="2" class="separaItem">&nbsp;</td></tr> 
                    <tr id="hidden2" runat="server" visible="false">
                        <td><asp:Label ID="lblFormaVisualizacao" runat="server" /></td>
                        <td><asp:DropDownList ID="ddlFormaVisualizacao" runat="server" /></td>
                    </tr>
                </table>
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="Filtros">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                    <colgroup>
                        <col width="20%" />
                        <col width="80%" />
                    </colgroup>
                    <tr>
                        <td><asp:Label ID="lblSearchType" runat="server" /></td>
                        <td>
                            <asp:CheckBox ID="chkBasicSearch" runat="server" />&nbsp;
                            <asp:CheckBox ID="chkAdvancedSearch" runat="server" />
                        </td>
                    </tr>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <tr>
                                <td><asp:Label ID="lblFilterProcess" runat="server" /></td>
                                <td><asp:DropDownList ID="ddlFilterProcess" AutoPostBack="True" runat="server"></asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblFilterStep" runat="server" /></td>
                                <td>
                                    <div style="width:100%;padding:3px;">
                                        <asp:RadioButtonList ID="selStepFilter" runat="server" RepeatLayout="Flow" RepeatDirection="Vertical" />
                                    </div>
                                    <div style="width:100%;padding:3px;">
                                        <asp:DropDownList ID="ddlFilterStepProcess" runat="server" AutoPostBack="True" />
                                    </div>
                                    <div style="width:100%;padding:3px;">
                                        <asp:DropDownList ID="ddlFilterSteps" runat="server" visible="false"/>
                                        <asp:ImageButton ID="btnAddStep" runat="server" ImageUrl="~/WFResources/Common/Images/Icons/add.png" Visible="false"/>
                                    </div>
                                    <div style="width:100%;padding:3px;">
                                        <asp:Repeater ID="rptSteps" runat="server">
                                            <HeaderTemplate>
                                                <table>
                                                    <tr>
                                                        <td><asp:Label ID="lblProcTitle" runat="server" /></td>
                                                        <td><asp:Label ID="lblStepTitle" runat="server" /></td>
                                                        <td>&nbsp;</td>
                                                    </tr>
                                            </HeaderTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                            <ItemTemplate>
                                                <tr>
                                                    <td><asp:Label ID="lblProcName" runat="server" /></td>
                                                    <td><asp:Label ID="lblStepName" runat="server" /></td>
                                                    <td><asp:ImageButton ID="btndelStep" runat="server" ImageUrl="~/WFResources/Common/Images/Icons/delete.png"/></td>
                                                </tr>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <asp:Label ID="lblNoSteps" runat="server" />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblFilterMarker" runat="server" /></td>
                                <td>
                                    <asp:DropDownList ID="ddlFilterMarker" AutoPostBack="true" runat="server" /><br />
                                    <asp:DropDownList ID="ddlMarkerValue" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblFilterValue" runat="server" /></td>
                                <td>
                                    <asp:DropDownList ID="ddlValues" runat="server" /><br />
                                    <asp:DropDownList ID="ddlCompare" runat="server" /><br />
                                    <asp:textbox ID="txtCompareValue" runat="server" />
                                </td>
                            </tr>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </table>
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="Item">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                    <colgroup>
                        <col width="40%" />
                        <col width="60%" />
                    </colgroup>
                    <tr>
                        <td><asp:Label ID="lblTemplates" runat="server" /></td>
                        <td><asp:DropDownList Width="300px" ID="ddlTemplates" runat="server" /></td>
                    </tr>
                </table>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
            <table border="0" cellspacing="10" cellpadding="10" width="100%">	 
                <tr>
                    <td align="right"><asp:Button ID="btnok" runat="server" /></td>
                    <td align="left"><input id="btncancel" type="button" onclick="javascript: CancelEdit();" runat="server" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>