Files
SISBusiness/SISBusiness.Web.Support/DevExpress/ASPxSchedulerForms/HorizontalAppointmentTemplate.ascx
T
2017-03-26 20:00:03 +02:00

84 lines
5.9 KiB
Plaintext

<%--
{************************************************************************************}
{ }
{ DO NOT MODIFY THIS FILE! }
{ }
{ It will be overwritten without prompting when a new version becomes }
{ available. All your changes will be lost. }
{ }
{ This file contains the default template and is required for the appointment }
{ rendering. Improper modifications may result in incorrect appearance of the }
{ appointment. }
{ }
{ In order to create and use your own custom template, perform the following }
{ steps: }
{ 1. Save a copy of this file with a different name in another location. }
{ 2. Add a Register tag in the .aspx page header for each template you use, }
{ as follows: <%@ Register Src="PathToTemplateFile" TagName="NameOfTemplate"}
{ TagPrefix="ShortNameOfTemplate" %> }
{ 3. In the .aspx page find the tags for different scheduler views within }
{ the ASPxScheduler control tag. Insert template tags into the tags }
{ for the views which should be customized. }
{ The template tag should satisfy the following pattern: }
{ <Templates> }
{ <HorizontalAppointmentTemplate> }
{ < ShortNameOfTemplate: NameOfTemplate runat="server"/> }
{ </HorizontalAppointmentTemplate> }
{ </Templates> }
{ where ShortNameOfTemplate, NameOfTemplate are the names of the }
{ registered templates, defined in step 2. }
{************************************************************************************}
--%>
<%@ Control Language="vb" AutoEventWireup="true" Inherits="HorizontalAppointmentTemplate" Codebehind="HorizontalAppointmentTemplate.ascx.vb" %>
<%@ Register Assembly="DevExpress.Web.ASPxScheduler.v15.2, Version=15.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxScheduler" TagPrefix="dxwschs" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dxe" %>
<div id="appointmentDiv" runat="server" class='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.AppointmentStyle.CssClass%>'>
<table style="width:100%; height:100%;" cellpadding="0" cellspacing="0">
<tr>
<td runat="server" id="statusContainer" valign="top">
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" style="width:100%; padding-bottom:2px; padding-top:2px; padding-left:1px; padding-right:1px;">
<tr valign="middle" align="left">
<td>
<asp:Image runat="server" ID="imgStartContinueArrow" Visible='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.StartContinueArrow.Visible%>'></asp:Image>
</td>
<td>
<dxe:ASPxLabel runat="server" EnableViewState="false" EncodeHtml="true" ID="lblStartContinueText" Text='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.StartContinueText.Text%>' Visible='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.StartContinueText.Visible%>'> </dxe:ASPxLabel>
</td>
<td runat="server" id="startTimeClockContainer"> </td>
<td>
<dxe:ASPxLabel runat="server" EnableViewState="false" EncodeHtml="true" ID="lblStartTime" Text='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.StartTimeText.Text%>' Visible='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.StartTimeText.Visible%>' ></dxe:ASPxLabel>
</td>
<td style="width: 100%;" align="center">
<table cellpadding="1" cellspacing="1" style="vertical-align: middle;">
<tr>
<td>
<table id="imageContainer" runat="server" cellpadding="0" cellspacing="0" style="vertical-align: middle;">
</table>
</td>
<td align="center">
<dxe:ASPxLabel runat="server" EnableViewState="false" EncodeHtml="true" ID="lblTitle" Text='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.Title.Text%>'></dxe:ASPxLabel>
</td>
</tr>
</table>
</td>
<td runat="server" id="endTimeClockContainer">
</td>
<td>
<dxe:ASPxLabel runat="server" EnableViewState="false" EncodeHtml="true" ID="lblEndTime" Text='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.EndTimeText.Text%>' Visible='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.EndTimeText.Visible%>' ></dxe:ASPxLabel>
</td>
<td>
<dxe:ASPxLabel runat="server" EnableViewState="false" EncodeHtml="true" ID="lblEndContinueText" Text='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.EndContinueText.Text%>' Visible='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.EndContinueText.Visible%>'></dxe:ASPxLabel>
</td>
<td>
<asp:Image runat="server" ID="imgEndContinueArrow" Visible='<%#(CType(Container, HorizontalAppointmentTemplateContainer)).Items.EndContinueArrow.Visible%>'></asp:Image>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>