60 lines
3.1 KiB
Plaintext
60 lines
3.1 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_giornata.ascx.cs" Inherits="WebSCR.WebUserControls.mod_giornata" %>
|
|
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
|
|
|
|
|
|
<script type="text/javascript">
|
|
function eventClick(e) {
|
|
//alert('Event with id ' + e.id() + ' was selected.');
|
|
document.location = '<%= SteamWare.devicesAuthProxy.pagCorrente %>?CodCliente=<%= this.CodCliente %>&Indir=<%= this.Indir %>&Data=<%= this.Data %>&IdxImpegno=' + e.id();
|
|
}
|
|
</script>
|
|
|
|
<asp:Label runat="server" ID="lblCodCli" Visible="true" />
|
|
<asp:Label runat="server" ID="lblData" Visible="true" />
|
|
<div class="ui-grid-a ui-mini">
|
|
<div class="ui-block-a" style="text-align: right;">
|
|
<asp:Button runat="server" ID="btnAllSquadre" Text="Squadre (tutte)" OnClick="btnAllSquadre_Click" />
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<fieldset data-role="controlgroup" data-type="horizontal" class="ui-controlgroup ui-controlgroup-horizontal ui-corner-all">
|
|
<asp:RadioButtonList ID="rblSquadre" runat="server" DataSourceID="odsSquadre" DataTextField="CodSquadra" DataValueField="CodSquadra" RepeatDirection="Horizontal" RepeatLayout="Flow" AppendDataBoundItems="false" AutoPostBack="True" OnSelectedIndexChanged="rblSquadre_SelectedIndexChanged">
|
|
<asp:ListItem Selected="True" Text="Tutte" Value="*"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</fieldset>
|
|
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.DisponibilitaTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="lblData" Name="Data" PropertyName="Text" Type="DateTime" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
</div>
|
|
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server"
|
|
DataSourceID="ods"
|
|
DataIdField="IdxImpegno"
|
|
DataValueField="IdxImpegno"
|
|
DataTextField="NomeImpegno"
|
|
DataStartField="Inizio"
|
|
DataEndField="Fine"
|
|
TimeFormat="Clock24Hours"
|
|
ViewType="Day"
|
|
HeightSpec="BusinessHours"
|
|
BusinessBeginsHour="8"
|
|
BusinessEndsHour="19"
|
|
ScrollPositionHour="13"
|
|
ShowEventStartEnd="True"
|
|
CellHeight="15"
|
|
TimeRangeSelectedHandling="CallBack"
|
|
EventMoveHandling="CallBack"
|
|
EventClickHandling="JavaScript"
|
|
EventClickJavaScript="eventClick(e)"
|
|
Theme="calendar_white"
|
|
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
|
|
OnEventClick="DayPilotCalendar1_EventClick"
|
|
>
|
|
</DayPilot:DayPilotCalendar>
|
|
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDate" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.v_ImpegniCalTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="lblData" Name="Data" PropertyName="Text" Type="DateTime" />
|
|
<asp:ControlParameter ControlID="rblSquadre" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource> |