<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Cecam.Master" AutoEventWireup="true" CodeBehind="wfCadastroServidor.aspx.cs"
    Inherits="Cecam.PortalTransparencia.Web.Pages.wfCadastroServidor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphConteudo" runat="server">
    <div class="cabecalho">
        Configuração de Servidor
    </div>
    <asp:UpdatePanel ID="uppServidor" runat="server">
        <ContentTemplate>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" HeaderText="Servidores" SkinID="Grupo">
                <PanelCollection>
                    <dx:PanelContent>
                        <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" HeaderText="Adicionar Servidor" SkinID="Grupo">
                            <PanelCollection>
                                <dx:PanelContent>
                                    <ul class="form1col">
                                        <li>
                                            <span class="titulo">*Servidor:</span>
                                            <ccn:TextBox runat="server" ID="txtNomeServidor" IsRequired="true" ValidationGroup="Servidor" />
                                        </li>
                                        <li>
                                            <span class="titulo">*Tipo:</span>
                                            <ccn:ComboBox runat="server" ID="cbxTipo" OnDataSearch="cbxTipo_DataSearch" ValidationGroup="Servidor"
                                                IsRequired="true" ValueField="Value" TextField="Text" />
                                        </li>
                                        <li>
                                            <span class="titulo">*Usuário:</span>
                                            <ccn:TextBox runat="server" ID="txtUsuario" IsRequired="true" ValidationGroup="Servidor" Text="CECAMTransparencia" />
                                        </li>
                                        <li>
                                            <span class="titulo">*Senha:</span>
                                            <ccn:TextBox runat="server" ID="txtSenha" IsRequired="true" ValidationGroup="Servidor" Text="cecam123" />
                                        </li>
                                    </ul>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxRoundPanel>
                        <ul class="botoes">
                            <li>
                                <ccn:Button ID="btnSalvarServidor" SkinID="Adicionar" runat="server" OnClick="btnSalvarServidor_Click" ValidationGroup="Servidor" />
                            </li>
                            <li>
                                <ccn:Button ID="btnCancelarServidor" SkinID="Cancelar" runat="server" OnClick="btnCancelarServidor_Click" />
                            </li>
                        </ul>
                        <ul class="form1col">
                            <li>
                                <ccn:GridView runat="server" ID="grvServidor" KeyFieldName="Id" OnDataSearch="grvServidor_DataSearch"
                                    OnDataDeleting="grvServidor_DataDeleting" OnDataSelecting="grvServidor_DataSelecting" SkinID="Lista">
                                    <Columns>
                                        <ccn:GridCommandSelectEditColumn />
                                        <ccn:GridCommandDeleteColumn />
                                        <ccn:GridDataColumn FieldName="Nome" Caption="Nome" />
                                        <ccn:GridDataColumn FieldName="Tipo" Caption="Tipo" />
                                    </Columns>
                                </ccn:GridView>
                            </li>
                        </ul>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel4" runat="server" HeaderText="Bancos" SkinID="Grupo">
                <PanelCollection>
                    <dx:PanelContent>
                        <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" HeaderText="Adicionar Banco" SkinID="Grupo">
                            <PanelCollection>
                                <dx:PanelContent>
                                    <ul class="form1col">
                                        <li>
                                            <span class="titulo">*Servidor:</span>
                                            <ccn:ComboBox runat="server" ID="cbxServidor" OnDataSearch="cbxServidor_DataSearch" ValidationGroup="Banco" AutoPostBack="true"
                                                OnValueChanged="cbxServidor_ValueChanged" IsRequired="true" ValueField="Id" TextField="Descricao" Width="30%" />
                                        </li>
                                        <li>
                                            <span class="titulo">Exercício:</span>
                                            <ccn:SpinText runat="server" ID="txtExercicio" MaxLength="4" SkinID="Label" ValidationGroup="Banco" />
                                        </li>
                                        <li>
                                            <span class="titulo">*Nome:</span>
                                            <ccn:TextBox runat="server" ID="txtNomeBanco" IsRequired="true" ValidationGroup="Banco" />
                                        </li>
                                    </ul>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxRoundPanel>
                        <ul class="botoes">
                            <li>
                                <ccn:Button ID="btnSalvar" SkinID="Adicionar" runat="server" OnClick="btnSalvar_Click" ValidationGroup="Banco" />
                            </li>
                            <li>
                                <ccn:Button ID="btnCancelar" SkinID="Cancelar" runat="server" OnClick="btnCancelar_Click" />
                            </li>
                        </ul>
                        <ul class="form1col">
                            <li>
                                <ccn:GridView runat="server" ID="grvBanco" KeyFieldName="Id" OnDataSearch="grvBanco_DataSearch"
                                    OnDataDeleting="grvBanco_DataDeleting" OnDataSelecting="grvBanco_DataSelecting" SkinID="Lista">
                                    <Columns>
                                        <ccn:GridCommandSelectEditColumn />
                                        <ccn:GridCommandDeleteColumn />
                                        <ccn:GridDataColumn FieldName="Exercicio" Caption="Exercício" Width="20%" CellStyle-HorizontalAlign="Center"
                                            HeaderStyle-HorizontalAlign="Center" SortOrder="Ascending" />
                                        <ccn:GridDataColumn FieldName="Nome" Caption="Nome" />
                                    </Columns>
                                </ccn:GridView>
                            </li>
                        </ul>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <ccn:LoadingProgress ID="LoadingProgress" runat="server" AssociatedUpdatePanelID="uppServidor" Text="Aguarde..." />
</asp:Content>