<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BancoCad.aspx.cs" Inherits="PortalTransparencia.Admin.BancoCad"
    MasterPageFile="Admin.Master" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script src="jquery-toastmessage/src/main/javascript/jquery.toastmessage.js" type="text/javascript"></script>
    <link href="jquery-toastmessage/src/main/resources/css/jquery.toastmessage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">

        function showSuccessToast() {
            $().toastmessage('showSuccessToast', "Dialogo Exibido com Sucesso...");
        }
        function showStickySuccessToast() {
            $().toastmessage('showToast', {
                text: 'Dialogo Exibido com Sucesso - Dialogo Fixo',
                sticky: true,
                position: 'top-right',
                type: 'success',
                closeText: '',
                close: function () {
                    console.log("toast is closed ...");
                }
            });

        }
        function showNoticeToast() {
            $().toastmessage('showNoticeToast', "Notice  Dialog ");
        }
        function showStickyNoticeToast() {
            $().toastmessage('showToast', {
                text: 'Notice Dialog Fixo',
                sticky: true,
                position: 'top-left',
                type: 'notice',
                closeText: '',
                close: function () { console.log("toast is closed ..."); }
            });
        }
        function showWarningToast() {
            $().toastmessage('showWarningToast', "Warning Dialog ");
        }
        function showStickyWarningToast() {
            $().toastmessage('showToast', {
                text: 'Warning Dialog Fixo',
                sticky: true,
                position: 'middle-right',
                type: 'warning',
                closeText: '',
                close: function () {
                    console.log("toast is closed ...");
                }
            });
        }
        function showErrorToast() {
            $().toastmessage('showErrorToast', "Error Dialog  ...");
        }
        function showStickyErrorToast() {
            $().toastmessage('showToast', {
                text: 'Error Dialog Fixo',
                sticky: true,
                position: 'center',
                type: 'error',
                closeText: '',
                close: function () {
                    console.log("toast is closed ...");
                }
            });
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManagerMaster1" EnableScriptGlobalization="true"
        AsyncPostBackTimeout="900" EnableScriptLocalization="true" EnablePageMethods="true">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upnCadastro">
        <ProgressTemplate>
            <%--<ldg:ucLoading ID="ucLoading1" runat="server" />--%>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel runat="server" ID="upnCadastro" ClientIDMode="Static">
        <ContentTemplate>
            <asp:MultiView runat="server" ID="mltCadatro" ActiveViewIndex="0">
                <asp:View runat="server" ID="viewGrid">
                    <div id="hosme" class="meio">
                        <div class="container">
                            <div class="limite">
                                <div class="esquerda">
                                    <div class="box">
                                        <h2 class="titulo">Cadastrar</h2>
                                        <ul class="form">
                                            <li><span class="titulo">Código:</span>
                                                <dx:ASPxTextBox ID="txtCodigo" ClientInstanceName="txtCodigo" Text="0" ReadOnly="true" runat="server"
                                                    Width="60%">
                                                </dx:ASPxTextBox>
                                            </li>
                                            <li><span class="titulo">
                                                <br />
                                            </span></li>
                                            <li><span class="titulo">* Exercício Inicial:</span>
                                                <dx:ASPxTextBox ID="txtAI" ClientInstanceName="txtAI" runat="server" Width="60%">
                                                </dx:ASPxTextBox>
                                            </li>
                                            <li><span class="titulo">
                                                <br />
                                            </span></li>
                                            <li><span class="titulo">* Exercício Final:</span>
                                                <dx:ASPxTextBox ID="txtAF" ClientInstanceName="txtAF" runat="server" Width="60%">
                                                </dx:ASPxTextBox>
                                            </li>
                                            <li><span class="titulo">
                                                <br />
                                            </span></li>
                                            <li><span class="titulo">* Nome Cliente:</span>
                                                <dx:ASPxTextBox ID="txtNomeCliente" ClientInstanceName="txtAF" runat="server" Width="60%">
                                                </dx:ASPxTextBox>
                                            </li>
                                            <li>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Preencha os campos Exercício Inicial / Exercício Final!" ControlToValidate="txtAI" ValidationGroup="valid" ForeColor="Red">
                                                </asp:RequiredFieldValidator>
                                                <br />
                                                <br />
                                                <asp:Label ID="lbl" runat="server" ForeColor="Red" Text="* Dados Cadastrados com Sucesso" Visible="false"></asp:Label>
                                            </li>
                                            <li><span class="titulo">
                                                <br />
                                            </span></li>
                                        </ul>
                                        <ul class="form">
                                            <li class="botoes">
                                                <asp:Button runat="server" ID="btnSalvar" CssClass="btazul" Text="Salvar" OnClick="btnSalvar_OnClick" ValidationGroup="valid" />
                                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                                                <asp:Button runat="server" ID="btnVoltar" CssClass="btazul" Text="Voltar" OnClick="btnVoltar_OnClick" CausesValidation="false" />
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:View>
                <asp:View runat="server" ID="viewCadastro">
                </asp:View>
            </asp:MultiView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
