I cant get my custom appointment class to be related with my resources.
I follow the forum examples about custom appointment class.
In the form I do the following:
the Appointment class is the "QuickTask" and the Users are the resources.
If I disable resource grouping the Appointments are displayed.If I enabled it,only the resources are shown.
Am I missing something?
Thank you very much for your time
I follow the forum examples about custom appointment class.
In the form I do the following:
public frmScheduler() |
{ |
InitializeComponent(); |
this.schedQuickTasks.AppointmentFactory = new QuickTaskFactory(); |
this.schedQuickTasksBindingSource.EventProvider.AppointmentFactory = schedQuickTasks.AppointmentFactory; |
#region QuickTask custom dialog mappings |
AppointmentMappingInfo appointmentMappingInfo = schedQuickTasksBindingSource.EventProvider.Mapping as AppointmentMappingInfo; |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("ID", "ID")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("ProjectID", "Project_ID")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("Description", "Description")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("TaskTypeID", "TaskType_ID")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("CustomerDeadline", "CustomerDeadline")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("OurDeadline", "OurDeadline")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("UserID", "User_ID")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("CustomerImportance", "CustomerImportance")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("OurImportance", "OurImportance")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("OrderForUser", "OrderForUser")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("TimeEstimation", "TimeEstimation")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("Comments", "Comments")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("TaskStatus", "Status")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("DateEntered", "DateEntered")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("AssignerID", "AssignerUser_ID")); |
appointmentMappingInfo.Mappings.Add(new SchedulerMapping("Start", "DateEntered")); |
appointmentMappingInfo.ResourceId = "User_ID"; |
#endregion |
#region Resources custom mapping |
ResourceMappingInfo resourceMappingInfo = new ResourceMappingInfo(); |
resourceMappingInfo.Id = "User_ID"; |
resourceMappingInfo.Name = "FullName"; |
schedQuickTasksBindingSource.ResourceProvider.Mapping = resourceMappingInfo; |
#endregion |
} |
the Appointment class is the "QuickTask" and the Users are the resources.
If I disable resource grouping the Appointments are displayed.If I enabled it,only the resources are shown.
Am I missing something?
Thank you very much for your time