【发布时间】:2012-04-09 20:09:28
【问题描述】:
您好,我正在使用 dhtmlx 调度程序。
我已经创建了单位选项卡。但我不知道如何在不同的单位之间划分事件。这是我的代码。
this.Scheduler = new DHXScheduler();
Scheduler.InitialDate = DateTime.Now.Date;// the initial data of Scheduler
var unit = new UnitsView("Employee", "EmpID");//initializes the view
var rooms = new List<object>(){
new { key = "1", label = "Employee1"},
new { key = "2", label = "Employee2"},
new { key = "3", label = "Employee3"},
new { key = "4", label = "Employee4"},
new { key = "5", label = "Employee5"},
new { key = "6", label = "Employee6"}
};
unit.Label = "Employee";
unit.Property = "ID";
unit.Size = 5;
unit.AddOptions(rooms);
Scheduler.Views.Add(unit);
【问题讨论】: