<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Cecam.master" AutoEventWireup="true" CodeBehind="wfFeriado.aspx.cs" Inherits="Cecam.Domain.WebApp.Shared.Config.wfFeriado" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphConteudo" runat="server">
    <div class="cabecalho">Datas Especiais</div>
    <asp:UpdatePanel ID="uppProto" runat="server">
        <ContentTemplate>
            <dx:ASPxRoundPanel runat="server" ID="rpnCalendario">
                <PanelCollection>
                    <dx:PanelContent>
                        <ul class="form4col" style="width: 89%">
                            <li>
                                <span class="titulo">Federal:</span>
                                <asp:Label ID="lgdFederal" runat="server" Width="20px" Height="20px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                            </li>
                            <li>
                                <span class="titulo">Estadual:</span>
                                <asp:Label ID="lgdEstadual" runat="server" Width="20px" Height="20px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                            </li>
                            <li>
                                <span class="titulo">Municipal:</span>
                                <asp:Label ID="lgdMunucipal" runat="server" Width="20px" Height="20px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                            </li>
                            <li>
                                <span class="titulo">Facultativo:</span>
                                <asp:Label ID="lgdFatultativo" runat="server" Width="20px" Height="20px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                            </li>
                        </ul>
                        <br />
                        <br />
                        <br />
                        <ccn:Calendar
                            ID="cldDatasEspeciais"
                            runat="server"
                            SkinID="Cecam-Calendario"
                            OnDayCellPrepared="cldDatasEspeciais_DayCellPrepared"
                            OnValueChanged="cldDatasEspeciais_ValueChanged"
                            AutoPostBack="true">
                        </ccn:Calendar>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>

            <ccn:Popup runat="server" ID="popUpConsulta" HeaderText="Datas Especiais"
                Width="480px" Modal="true" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" AllowDragging="true" AllowResize="false" CloseAction="OuterMouseClick"
                EnableAnimation="true" ShowShadow="true" ShowHeader="true" DragElement="Header">
                <ContentCollection>
                    <dx:PopupControlContentControl>
                        <ccn:GridView runat="server" SkinID="Lista" KeyFieldName="Id" ID="grvConsulta" OnDataSearch="grvConsulta_DataSearch">
                            <Columns>
                                <ccn:GridDataDateColumn Caption="Data" FieldName="HoraInicio" Width="20%" />
                                <ccn:GridDataColumn Caption="Nome" FieldName="Nome" Width="60%" />
                                <ccn:GridDataColumn Caption="Descrição" FieldName="Descricao" Width="60%" />
                                <ccn:GridDataColumn Caption="Feriado" FieldName="Tipo" Width="20%" />
                                <ccn:GridDataTimeColumn Caption="De" FieldName="HoraInicioReal" />
                                <ccn:GridDataTimeColumn Caption="Ate" FieldName="HoraFim" />
                            </Columns>
                        </ccn:GridView>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </ccn:Popup>
            <%--   <ccn:Popup runat="server" ID="popUpCalendar" HeaderText="Datas Especiais"
                Width="480px" ClientIDMode="Static" Modal="true" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" AllowDragging="true" AllowResize="false" CloseAction="CloseButton"
                EnableAnimation="true" ShowShadow="true" ShowHeader="true" DragElement="Header">
                <ContentCollection>
                    <dx:PopupControlContentControl>
                        <ul class="form1col">
                            <li>
                                <span class="titulo">Data:</span>
                                <ccn:DateText runat="server" ID="dttData" ClientEnabled="false" Width="60%" />
                            </li>
                            <li>
                                <span class="titulo">*Descrição:</span>
                                <ccn:TextBox runat="server" ID="txtDesFeriado" IsRequired="true" Width="60%" ValidationGroup="DataEspecial" />
                            </li>
                            <li>
                                <span class="titulo">*Tipo:</span>
                                <ccn:ComboBox OnDataSearch="ddlTipo_DataSearch" runat="server" ID="ddlTipo"
                                    ValueField="Key" TextField="Value" Width="60%" ValidationGroup="DataEspecial" IsRequired="true" />
                            </li>
                        </ul>
                        <ul class="botoes">
                            <li>
                                <ccn:Button SkinID="Salvar" ID="btnSalvar" runat="server" OnClick="btnSalvar_Click" ValidationGroup="DataEspecial" />
                            </li>
                            <li>
                                <ccn:Button SkinID="Cancelar" ID="btnCancelar" runat="server" OnClick="btnCancelar_Click" />
                            </li>
                            <li>
                                <ccn:Button SkinID="Limpar" ID="btnExcluir" runat="server" OnClick="btnExcluir_Click" />
                            </li>
                        </ul>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </ccn:Popup>--%>
        </ContentTemplate>
    </asp:UpdatePanel>
    <ccn:LoadingProgress ID="ldpLoading" runat="server" AssociatedUpdatePanelID="uppProto" Text="Aguarde..." />
</asp:Content>