PC SOFT

WINDEV的在线文档

  • Overview
  • Control found in a window, page or report
  • Describing a schedule
  • The options of the control
  • A popup menu automatically proposed
  • Customize the appointment area
  • Modes for filling a Scheduler control
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview

Control found in a window, page or report

The Scheduler control is used to automatically display and handle the schedules. It is used to manage the display of multiple resources and it is used in several applications or sites.

The display can be done on a daily, weekly or monthly basis.

The time period, the first day of the week and the number of days to display can be configured. These parameters can be easily defined from the description window of the control.

To create a Scheduler control:

  1. In the window editor or in the page editor, click(or select "Insert .. Control .. Scheduler control").On the "创建" pane, in the "显示控件" group, expand "时间" and select "Schedule".
  2. Click the position where the control must be created in the window or in the page. The wizard for creating the Scheduler control starts. Answer the questions and validate. The control appears in creation mode.
20版本和更高版本
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.
20新版本
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.

To display the characteristics of the control, select "Description" from the popup menu of the control.

Notes:

  • A Scheduler control can be anchored:
    • WinDev via the WinDev anchoring functions.
  • 17版本和更高版本
    The Scheduler controls are available in the Scheduler reports. See Scheduler report for more details.
    17新版本
    The Scheduler controls are available in the Scheduler reports. See Scheduler report for more details.
    The Scheduler controls are available in the Scheduler reports. See Scheduler report for more details.

Describing a schedule

The options of the control

The Scheduler control can be customized in the editor via the description window ("Details" tab for WinDev and "General" tab for WebDev).The Scheduler control can be customized in the editor via the description window ("Details" tab).

The parameters of the Scheduler control are as follows:
  • With buttons for changing period: This option is used to display buttons in order for the user to scroll the different periods of the schedule. These buttons are displayed at the top left of the schedule.
  • Number of days to display: By default, the display is performed on a monthly basis but a schedule can also be displayed on a daily basis, on a weekly basis (on 5 or 7 days), according to the number of appointments or according to a specified number of days.
    WinDev This display mode can be modified by the user via the popup menu of the control.
  • Display mode of resources: By default, the resources are displayed in row but they can also be displayed in column.
  • Display masks: Used to define:
    • the format of the date displayed for the "day" columns (or rows) of the scheduler.
    • the format of the time displayed for the "day" columns (or rows) of the scheduler.
    • 17版本和更高版本
      whether the week number must be displayed or not, as well as its format. In the format, the '%1' string corresponds to the week number. Example of format: "Wk. %1".
      17新版本
      whether the week number must be displayed or not, as well as its format. In the format, the '%1' string corresponds to the week number. Example of format: "Wk. %1".
      whether the week number must be displayed or not, as well as its format. In the format, the '%1' string corresponds to the week number. Example of format: "Wk. %1".
  • Time period: Used to define:
    • the visible time period: Time period that will be displayed in the control.
    • the working time period: Time period for which an appointment can be defined.
  • Characteristics of an appointment:
    • Overlap: Managing the overlap of appointments. The appointments can be displayed side by side or slightly shifted.
    • Granularity of appointments: Precision for displaying the schedule. By default, the granularity is set to 30 minutes.
      You have the ability to define:
      • the granularity regarding the move of an appointment.
      • the granularity of the appointment duration, which means the minimum duration of an appointment. Caution: by default, this duration is set to 24 hours.
  • Allow the selection of periods: Allows the user to select a period with the mouse.
  • Allow the direct input of an appointment: Allows the user to add an appointment directly. To do so, click the Scheduler control to create the appointment and enter its caption via the keyboard.
18版本和更高版本
  • Display and allow the appointments for the entire day: Used to specify that an appointment can correspond to a whole day. In this case, a specific area is displayed in the Scheduler control. The area is used to enter the appointments for the day.
    WinDev You have the ability to specify the height of the area.
    Examples:
    • if the schedule is displayed with the resources in row:
      • WinDev In WinDev:
    • if the schedule is displayed with the resources in column:
      • WinDev In WinDev:
18新版本
  • Display and allow the appointments for the entire day: Used to specify that an appointment can correspond to a whole day. In this case, a specific area is displayed in the Scheduler control. The area is used to enter the appointments for the day.
    WinDev You have the ability to specify the height of the area.
    Examples:
    • if the schedule is displayed with the resources in row:
      • WinDev In WinDev:
    • if the schedule is displayed with the resources in column:
      • WinDev In WinDev:
  • Display and allow the appointments for the entire day: Used to specify that an appointment can correspond to a whole day. In this case, a specific area is displayed in the Scheduler control. The area is used to enter the appointments for the day.
    WinDev You have the ability to specify the height of the area.
    Examples:
    • if the schedule is displayed with the resources in row:
      • WinDev In WinDev:
    • if the schedule is displayed with the resources in column:
      • WinDev In WinDev:

The edit options via the mouse are as follows:
  • Modifying the duration. You can allow (or not) the user to modify the duration of an appointment.
  • Movement. You can allow (or not) the user to move an appointment.
  • 17版本和更高版本
    WinDev Allow the overlapping by the user. If this option is checked, when moving appointments, the user will be able to make them overlap. In this case, the options defined for overlapping appointments (offset or side by side) will be taken into account.
    17新版本
    WinDev Allow the overlapping by the user. If this option is checked, when moving appointments, the user will be able to make them overlap. In this case, the options defined for overlapping appointments (offset or side by side) will be taken into account.
    WinDev Allow the overlapping by the user. If this option is checked, when moving appointments, the user will be able to make them overlap. In this case, the options defined for overlapping appointments (offset or side by side) will be taken into account.
The options regarding the dimension of areas are as follows:
  • if the resources are displayed in row:
    • Minimum width of a day.
    • Minimum height of a resource.
    • Width of resource header.
  • if the resources are displayed in column:
    • Minimum width of a resource.
    • Minimum height of a day.
    • Height of the break (for changing day)
17版本和更高版本
WinDev Most of these parameters can be modified by programming. See Properties associated with the Scheduler control for more details.
17新版本
WinDev Most of these parameters can be modified by programming. See Properties associated with the Scheduler control for more details.
WinDev Most of these parameters can be modified by programming. See Properties associated with the Scheduler control for more details.
Most of these parameters can be modified by programming. See Properties associated with the Scheduler control for more details.

WinDev

A popup menu automatically proposed

The Scheduler control can display a specific popup menu proposing automatic features to the user. This menu is proposed by the AAF (Automatic Application Features).

As soon as at least one resource is found in the schedule, this menu allows the user to:

  • Modifying the display mode of the scheduler: daily, weekly, monthly display or display of the current day only.
  • Add, delete or modify an appointment when selecting a time period.
  • Copy the content of an appointment.
  • 17版本和更高版本
    Print the content of the Scheduler control.
    17新版本
    Print the content of the Scheduler control.
    Print the content of the Scheduler control.
See Automatic features of the Scheduler control for more details.

WinDev

Customize the appointment area

In the Scheduler control, the appointment is displayed in a specific area. You have the ability to translate and customize this area: color of title, background color of the appointment, ...

To customize the display of appointments

  1. Display the description window of the Scheduler control.
  2. In the "General" tab, select the internal window used for the appointments:
    • "None": the default display will be used.
    • "Preset window": a preset window is automatically added to the project. By default, this window is named "IW_WinDevViewAPT.wdw".
  3. The internal window is available in the project explorer. It can be modified in the window editor.
Notes:
  • You also have the ability to use any internal window of your project.
  • 17版本和更高版本
    The aspect of the appointments proposed by default can be configured in the "Style" tab of the description window of the control, in the "预约型" element.
    17新版本
    The aspect of the appointments proposed by default can be configured in the "Style" tab of the description window of the control, in the "预约型" element.
    The aspect of the appointments proposed by default can be configured in the "Style" tab of the description window of the control, in the "预约型" element.

Modes for filling a Scheduler control

A Scheduler control can be filled: