<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/ModalAdminPage.master" CodeBehind="Procedure.aspx.vb" Inherits="WebFoundations.WFWorkflow.Modules.UI.Procedure" %>
<%@ Register TagPrefix="wff" Namespace="WebFoundations.WFWorkflow.Services.UI" Assembly="WebFoundations.WFWorkflow.Services" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="wff" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h1>
    <asp:Label Text="" ID="lblModuleName" runat="server" /></h1>
    <div class="fields">
        <label>
            <asp:Label ID="lblnome" runat="server" />
            <asp:TextBox ID="txtnome" runat="server" MaxLength="50" />
            <asp:RequiredFieldValidator ID="obrnome" runat="server" Display="Dynamic" ControlToValidate="txtnome" />
        </label>
        <label>
            <asp:Label ID="lblalias" runat="server" />
            <asp:TextBox ID="txtalias" runat="server" MaxLength="50" />
            <asp:RegularExpressionValidator ID="vlalias" runat="server" ControlToValidate="txtalias" ValidationExpression="[A-Za-z][A-Za-z0-9_-]*" />
        </label>
        <label>
            <asp:Label ID="lblconnection" runat="server" />
            <asp:DropDownList ID="lstconnection" CssClass="select_geralModulo largForms" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblprocname" runat="server" />
            <asp:TextBox ID="txtprocname" runat="server" MaxLength="100" />
            <asp:RequiredFieldValidator ID="obrprocname" runat="server" Display="Dynamic" ControlToValidate="txtprocname" />
        </label>
        <label>
            <asp:Button ID="btnloadproc" runat="server" />
        </label>
        <tr id="addProcParams" runat="server" visible="false">
            <td colspan="2" align="center">
                <asp:Label ID="addManualParams" runat="server" /><br />
                <asp:TextBox ID="txtParamName" runat="server" /><br />
                <asp:Button ID="btnAddParam" runat="server" />
                <asp:Button ID="btnDelParam" runat="server" />
            </td>
        </tr>
        <label id="procresults" runat="server" visible="false">
            <table>
                <tr>
                    <th><asp:Label ID="lblparam" runat="server" /></th>
                    <th><asp:Label ID="lblrun"   runat="server" /></th>
                    <th><asp:Label ID="lbltst"   runat="server" /></th>
                </tr>
                <asp:Repeater ID="repParams" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:Label ID="lblparname" runat="server"></asp:Label>
                                <asp:Label ID="lblpardets" runat="server" Visible="false"></asp:Label></td>
                            <td><wff:ZuriValuePicker id="ddlParValue" DropDownAutoWidth="enabled" width="100%" PagerSize="10" runat="server" /></td>
                            <td>
                                <asp:TextBox ID="txtpartstvalue" runat="server" Width="60px">NULL</asp:TextBox>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </label>
        <label>
            <asp:Button ID="btntestproc" Visible="false" runat="server" />
        </label>
        <label>
            <asp:CheckBox ID="chkaddXML" CssClass="checkbox" runat="server" />
        </label>
        <label>
            <asp:CheckBox ID="chkAllowEmpty" CssClass="checkbox" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblacesso" runat="server" />
            <wff:AccessList id="listaacesso" DisableItems="-7;-6;-5;-4;-3;-2;" EnableUser="true"
                EnableRole="true" EnableRoleGroup="true" runat="server" />
        </label>
    </div>
    <section class="actions">
        <asp:Button ID="btnok" runat="server" Enabled="false" />
        <input id="btncancel" type="button" value="button" runat="server" />
    </section>
</asp:Content>
