<%@ Page Title="SHIOL :: RESERVAS" Language="vb" AutoEventWireup="false" MasterPageFile="~/SIG/DashBoard/BashBoardMaestro.Master" 
CodeBehind="Form_ReservasCalendar.aspx.vb" Inherits="SGHweb.Form_ReservasCalendar" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
        <script type ="text/javascript">
            function openForm(idenviada, eventoDia) 
            {
                var oWnd = radopen("Frm_ReservasCalendarPopUp.aspx?fechaDia=" + idenviada + "&diaEvento=" + eventoDia, "NuevoReque");
            }

            function CerrarVentana()
            {
                $find("<%= RadAjaxManager1.ClientID%>").ajaxRequest("CierraVentanaRebind");
            }

            function clientLoadHandler(sender) {
                var combo = sender;
                var items = combo.get_items();
                var itemCount = items.get_count()
                for (var counter = 0; counter < itemCount; counter++) {
                    var item = items.getItem(counter);
                    item.set_checked(true)
                }
            }
        </script>   
    </telerik:RadScriptBlock>
    <style type="text/css">
            .divResponsables {
	            border:1px solid #8db2e3;
	            margin:0.7em;
	            padding:0.2em;
	            font-size:1em;
	            overflow:hidden;
	            width:95%;
	            text-align:center;
            }
            .divtableInterior {
	            border:1px solid #8db2e3;
	            font-size:1em;
	            overflow:hidden;
	            width:100%;
	            text-align:center;
            }
            .divtableInterior1 {
	            border:1px solid #8db2e3;
	            font-size:1em;
	            overflow:hidden;
	            width:100%;
	            height:25px;
	            text-align:center;
            }
    </style>

<center>
    <table border="0" width="90%">
        <tr>
            <td style=" width:85%" colspan="6">
            <%--SelectedDate="2012-02-01" --%>
                <telerik:RadScheduler ID="RadScheduler1" runat="server" Height="900px" Skin="Windows7"
                    SelectedView="MonthView" 
                    DayStartTime="00:00:00" DayEndTime="23:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
                    EnableDescriptionField="True" AppointmentStyleMode="Default"
                    DataSourceID="SqlDataSource1" Width ="100%"
                    DataKeyField="Dia" DataSubjectField="anombre" 
                    DataStartField="HoraInicioEvento1" DataEndField="HoraFinalEvento1" 
                    DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" 
                    OverflowBehavior="Auto" Culture="es-ES" 
                    StartEditingInAdvancedForm="False" ShowViewTabs="True" ShowFooter="True" 
                    DataDescriptionField="Dia" NumberOfHoveredRows="2" RowHeight="30px" 
                    Font-Size="7pt" >
                    <AdvancedForm Modal="true"></AdvancedForm>
                    <TimeSlotContextMenuSettings EnableDefault="False"></TimeSlotContextMenuSettings>
                    <DayView DayEndTime="23:00:00" DayStartTime="00:00:00" 
                        WorkDayEndTime="230:00:00" WorkDayStartTime="07:00:00" />
                    <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
                </telerik:RadScheduler>
            </td>
        </tr>
    </table>
</center>
    <asp:HiddenField runat="server" ID="HiddenField1" />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        SelectCommand="SWP_ReservaPronosticoOcupacionCalendar" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="01/01/2000" Name="Desde" 
                SessionField="fechaV" Type="Int32" />
            <asp:SessionParameter DefaultValue="31/01/2000" Name="Hasta" 
                SessionField="fechaLimiteV" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>       
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Overlay="True" Skin="WebBlue">
            <Windows>
                <telerik:RadWindow ID="NuevoReque" runat="server" Animation="Fade" Behavior="Close, Move"
                    Behaviors="Close, Move" Height="560px" InitialBehavior="Close, Move" InitialBehaviors="Close, Move"
                    Left="" Modal="True" NavigateUrl="" ReloadOnShow="True" OnClientClose="CerrarVentana" 
                    Skin="WebBlue" Style="display: none;" Top="" VisibleStatusbar="false" Width="1000px" 
                    Title="Observaciones Por Area" >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
</asp:Content>
