PC SOFT

WINDEV的在线文档

  • Overview
  • Creating an Organizer report
  • Creating the report
  • Information specific to the creation of the Organizer
  • Characteristics of an Organizer report and Organizer control
  • Handling an organizer in a report by programming
  • WLanguage functions
  • WLanguage properties
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
The report editor gives you the ability to create "Organizer" reports.

In this case, the report includes an Organizer control only. This type of control is created when creating an Organizer control: it cannot be created independently of this report.

Example:
In the editor, this control includes two blocks:
  • The "Header" block, displaying the titles of the organizer columns.
  • The "Organizer" block, displaying the appointments in an Organizer control.

Creating an Organizer report

Creating the report

To create an "Organizer" report:
  1. Select "File .. New .. Report". The wizard for report creation starts.Clickamong the quick access buttons.
    • Click "Report" in the wheel that is displayed.The window for creating a new element is displayed: click "Report" then "Report".
    • The wizard for report creation starts.
  2. Select an "Organizer or Scheduler" report.
  3. In the rest of the wizard, specify:

Information specific to the creation of the Organizer

The information specific to the creation of the Organizer is as follows:
  • Initial display mode: The organizer can be displayed:
    • on a daily basis,
    • on a weekly basis,
    • on a monthly basis.
  • The granularity of gridlines. This granularity is used to define the size of the grid used to display the gridlines of the Organizer control. This granularity is set to 30 minutes by default. This information must be modified according to the number of days to display.
    This characteristic can be modified by programming via ..网格粒度.
Note: If the Organizer report is linked to a data source (query, data file), you must specify the items that will be taken into account for displaying the appointments. The following information must be specified:
  • the title of the appointment.
  • the start and end date of the appointment.

Characteristics of an Organizer report and Organizer control
You have the ability to modify the following characteristics of an Organizer report:
  • The data source of the Organizer report can be modified in the "Data" tab of the description window of the report ("Report description" from the popup menu of the report).
  • The "General" tab of the description window of the Organizer control is used to specify:
    • the initial display mode: Day, week, month.
    • the number of days displayed.
    • the visible time period.
    • the first day of the week.
    • the granularity of the gridlines.
    • 18版本和更高版本
      the display of appointments for the entire day. If "Display the appointments for the entire day" is checked, the report takes into account the appointments for which the "Whole day" characteristic is supported (see 预约型 for more details). In this case, an area used to display the daily appointments appears in the organizer:
      Note: Make sure that the area used to display the daily appointments has the proper dimensions in the report editor. It can be resized if necessary.
      18新版本
      the display of appointments for the entire day. If "Display the appointments for the entire day" is checked, the report takes into account the appointments for which the "Whole day" characteristic is supported (see 预约型 for more details). In this case, an area used to display the daily appointments appears in the organizer:
      Note: Make sure that the area used to display the daily appointments has the proper dimensions in the report editor. It can be resized if necessary.
      the display of appointments for the entire day. If "Display the appointments for the entire day" is checked, the report takes into account the appointments for which the "Whole day" characteristic is supported (see 预约型 for more details). In this case, an area used to display the daily appointments appears in the organizer:
      Note: Make sure that the area used to display the daily appointments has the proper dimensions in the report editor. It can be resized if necessary.
    • the display mask for the date and schedules.
    • 20版本和更高版本
      the custom report to display the appointments.
      • If the selected option is "None", the default display is used.
      • If "Preset report" is selected, a preset report is automatically added to the project. This report is named "RPT_WinDevViewAPT" by default and it is automatically used to display the appointments.
        This report can be customized, renamed, ...
      • If the selected option corresponds to a report of the project, this report will be used to display the appointments.
        We advise you to customize the report proposed by default.
        The same report can be used to customize the appointments in a Scheduler or Organizer report.
      20新版本
      the custom report to display the appointments.
      • If the selected option is "None", the default display is used.
      • If "Preset report" is selected, a preset report is automatically added to the project. This report is named "RPT_WinDevViewAPT" by default and it is automatically used to display the appointments.
        This report can be customized, renamed, ...
      • If the selected option corresponds to a report of the project, this report will be used to display the appointments.
        We advise you to customize the report proposed by default.
        The same report can be used to customize the appointments in a Scheduler or Organizer report.
      the custom report to display the appointments.
      • If the selected option is "None", the default display is used.
      • If "Preset report" is selected, a preset report is automatically added to the project. This report is named "RPT_WinDevViewAPT" by default and it is automatically used to display the appointments.
        This report can be customized, renamed, ...
      • If the selected option corresponds to a report of the project, this report will be used to display the appointments.
        We advise you to customize the report proposed by default.
        The same report can be used to customize the appointments in a Scheduler or Organizer report.
  • If the Organizer control is linked to a data source (data file, query, ...), the "Content" tab found in the description window of the control is used to linked the appointment data with the data found in the data source.
  • The "Style" tab found in the description window of the Organizer control is used to specify the style of the appointments displayed in the Organizer control.

Handling an organizer in a report by programming

WLanguage functions

Several WLanguage functions are available in the report editor for handling the Organizer controls. These functions are as follows:
15版本和更高版本
日程表添加预约
日程表添加预约
Adds a new appointment into an Organizer control.
16版本和更高版本
日程表改变排列模式
日程表改变排列模式
Modifies the time range displayed by an Organizer control (Day/Week/Month).
17版本和更高版本
日程表背景颜色
日程表背景颜色
固定一个备忘录控件的时隙背景。
15版本和更高版本
日程表时间段显示
日程表时间段显示
Defines the time range displayed by the Organizer control in Day mode or in Week mode.
15版本和更高版本
日程表预约列表
日程表预约列表
Returns:
  • the list of appointments found between two dates in an Organizer control,
  • all the appointments found in an Organizer control,
  • a specific appointment (selected or hovered).
17版本和更高版本
日程表排列模式
日程表排列模式
Returns the display mode of an Organizer control: day, week, month, ...
15版本和更高版本
日程表位置
15新版本
日程表位置
日程表位置
Displays an Organizer control from a specified date or returns the date of the first day (or the date of the last day) displayed in an Organizer control.
15版本和更高版本
日程表删除预约
日程表删除预约
Deletes an appointment from an Organizer control.
15版本和更高版本
日程表删除全部
日程表删除全部
Deletes all the appointments from an Organizer control.

WLanguage properties

Several WLanguage properties are available in the report editor for handling the Organizer controls. These properties are as follows:
17版本和更高版本
显示时间段开始日期
显示时间段开始日期
..显示时间段开始日期 is used to find out the start date of the period currently printed in a Scheduler or Organizer control found in a report.
17版本和更高版本
显示时间段结束日期
显示时间段结束日期
..显示时间段结束日期 is used to find out the end date of the period currently printed in a Scheduler control or in an Organizer control found in a report.
17版本和更高版本
网格粒度
17新版本
网格粒度
网格粒度
..网格粒度 allows you to find out and modify the size of the grid used to display the gridlines in a Scheduler control or in an Organizer control found in a report.
09版本和更高版本
高度
09新版本
高度
高度
..高度 is used to find out and modify the height:
  • of a control or block in a report.
  • of a control (found in a window), window, row found in a table, in a list box or in a listview, option found in a radio button or in a check box, break header or break footer found in a table or in a looper.
  • of a control (found in a page), break header or break footer found in a table or in a looper. The control can be stackable or not.
09版本和更高版本
宽度
09新版本
宽度
宽度
..宽度 is used to find out and modify the width:
  • of a control or block in a report.
  • of a control (found in a window), window, column found in a table or column found in a list box (including listview).
  • of a control (found in a page), column found in a table or column found in a list box. The control can be stackable or not.
17版本和更高版本
控件头部时间段标签
控件头部时间段标签
..控件头部时间段标签 is used to find out and modify the content of the period caption displayed in the header of a Scheduler or Organizer control found in a report.
09版本和更高版本
名称
09新版本
名称
名称
..名称 is used to find out:
  • the name of the font associated with a Font variable.
  • the name of a control, report or report block.
  • the name of a control, group of controls or window.
  • the name of a control, group of controls or page.
18版本和更高版本
预约内容字体
预约内容字体
..预约内容字体 is used to:
  • Find out the characteristics of the font used for the content of appointments in the Scheduler and Organizer reports.
  • Modify the characteristics of the font used for the content of appointments in the Scheduler and Organizer reports.
18版本和更高版本
预约标题字体
预约标题字体
..预约标题字体 is used to:
  • Find out the characteristics of the font used for the title of the appointments in the Scheduler and Organizer reports.
  • Modify the characteristics of the font used for the title of the appointments in the Scheduler and Organizer reports.
09版本和更高版本
可见
09新版本
可见
可见
..可见 is used to:
  • Find out whether an element is visible
  • Make an element visible or invisible.
09版本和更高版本
X
09新版本
X
X
..X is used to:
  • Find out the X coordinate of a control, of a Table control column or of a window (position on the X axis).
  • Modify the X coordinate of a control or window (position on the X axis).
09版本和更高版本
Y
09新版本
Y
Y
..Y is used to:
  • Find out the Y coordinate of a control or window (position on the Y axis).
  • Modify the Y coordinate of a control or window.