Add the Scheduler Module 添加计划程序模块

Important 重要
Scheduler requires the Event business class to be in your XAF application model. Follow the steps described in the Add a Class from the Business Class Library (EF/XPO ) lesson to learn how to add it.
计划程序要求事件业务类位于 XAF 应用程序模型中。按照从商务舱库 (EF/XPO) 中添加类课程中描述的步骤,了解如何添加它。

 

The eXpressApp Framework (XAF) supplies the Scheduler module. When this module is referenced, the Event List View is displayed via a special control. In WinForms applications, this control is supplied by the XtraScheduler Suite; in ASP.NET applications, the control supplied by the ASPxScheduler Suite is used. Both of these controls provide a number of features that will be helpful if you need to switch between different date views, use a date navigator and various appointment techniques, print and export source data, or customize the appearance. For details, refer to the ASP.NET Scheduling Demosand the Scheduler's Main Features topic. More examples of using XAF extra modules are provided in the Extra Modules section of this tutorial.

eXpressApp 框架 (XAF) 提供计划程序模块。引用此模块时,事件列表视图将通过特殊控件显示。在 WinForms 应用程序中,此控件由 Xtra计划程序套件提供;在ASP.NET应用程序中,使用 ASPx计划程序套件提供的控件。如果您需要在不同日期视图之间切换、使用日期导航器和各种约会技术、打印和导出源数据或自定义外观,这两个控件都提供了许多功能,这些功能将非常有用。有关详细信息,请参阅ASP.NET计划演示和计划程序的主要功能主题。本教程的"额外模块"部分提供了使用 XAF 额外模块的更多示例。

 

  • To use the Scheduler module in the WinForms application, add it to the WinForms module project. For this purpose, find the WinModule.cs (WinModule.vb) file in the MySolution.Module.Win application project displayed in the Solution Explorer. Double-click this file to invoke the Module Designer. In the Toolbox, navigate to the DX.19.2: XAF Modules section. Drag the SchedulerWindowsFormsModule item to the Designer's Required Modules panel, and build the project.

  • 要在 WinForms 应用程序中使用计划程序模块,请将其添加到 WinForms 模块项目中。为此,在 MySolution.module.win 应用程序项目中查找解决方案资源管理器中显示的WinModule.cs (WinModule.vb) 文件。双击此文件以调用模块设计器。在工具箱中,导航到 DX.19.2:XAF 模块部分。将计划程序Windows窗体模块项目拖动到设计器的"必需模块"面板,然后生成项目。

    Add the Scheduler Module 添加计划程序模块

    To use the Scheduler module in an ASP.NET application, add it to the ASP.NET module project. To do this, invoke the Module Designer by double-clicking the WebModule.cs (WebModule.vb) file. Then, drag the SchedulerAspNetModule item from the Toolbox to the RequiredModules panel.

  • 要在ASP.NET应用程序中使用计划程序模块,请将其添加到ASP.NET模块项目中。为此,请通过双击WebModule.cs(WebModule.vb)文件来调用模块设计器。然后,将计划程序AspNet模块项目从工具箱拖动到"必需模块"面板。

    Add the Scheduler Module 添加计划程序模块

  • Run the WinForms or ASP.NET application. Select the Scheduler Event item in the Navigation Control. The Event object list (called the "Event List View") will be displayed using the Scheduler control. You can create new Event objects by clicking the New (Add the Scheduler Module 添加计划程序模块) button on the toolbar. Alternatively, you can select an area in the timeline view, right-click it and choose New Appointment.

  • 运行 WinForms 或ASP.NET应用程序。在导航控件中选择计划程序事件项。事件对象列表(称为"事件列表视图")将使用计划程序控件显示。您可以通过单击工具栏上的"新建(btn_new)"按钮创建新的事件对象。或者,您可以在时间线视图中选择一个区域,右键单击它并选择"新建约会"。

    Add the Scheduler Module 添加计划程序模块

     

    Add the Scheduler Module 添加计划程序模块

Note 注意
The new Event's default start and end times correspond to the interval selected in the scheduler control. Additionally, you can create events with the New command in the control's context menu.
新事件的默认开始和结束时间对应于计划程序控件中选择的时间间隔。此外,您可以在控件的上下文菜单中使用"新建"命令创建事件。
Tip 提示
XAF has a special Notifications module that allows to set notifications for events. Refer to the How to: Use Notifications with the Scheduler Event help topic to learn how to use it in your application.

XAF 具有一个特殊的通知模块,允许设置事件通知。请参阅"如何:将通知与计划程序事件一起使用"帮助主题,了解如何在应用程序中使用它。

上一篇:js error 错误处理


下一篇:XAF导航系统介绍