static MVCxAppointmentStorage CreateDefaultAppointmentStorage() { MVCxAppointmentStorage appointmentStorage = new MVCxAppointmentStorage(); appointmentStorage.Mappings.AppointmentId = "ID"; appointmentStorage.Mappings.Start = "StartTime"; appointmentStorage.Mappings.End = "EndTime"; appointmentStorage.Mappings.Subject = "Subject"; appointmentStorage.Mappings.Description = "Description"; appointmentStorage.Mappings.Location = "Location"; appointmentStorage.Mappings.AllDay = "AllDay"; appointmentStorage.Mappings.Type = "EventType"; appointmentStorage.Mappings.RecurrenceInfo = "RecurrenceInfo"; appointmentStorage.Mappings.ReminderInfo = "ReminderInfo"; appointmentStorage.Mappings.Label = "Label"; appointmentStorage.Mappings.Status = "Status"; appointmentStorage.Mappings.ResourceId = "OpportunityId"; #region dn Custome field appointmentStorage.CustomFieldMappings.Add("Price", "Price"); appointmentStorage.CustomFieldMappings.Add("ContactInfo", "ContactInfo"); appointmentStorage.CustomFieldMappings.Add("OpportunityId", "OpportunityId"); //appointmentStorage.CustomFieldMappings.Add(new DevExpress.Web.ASPxScheduler.ASPxAppointmentCustomFieldMapping("CustomerId", "CustomerId")); appointmentStorage.CustomFieldMappings.Add("ScheduleTypeId", "ScheduleTypeId"); appointmentStorage.CustomFieldMappings.Add("CustomerId", "CustomerId"); appointmentStorage.CustomFieldMappings.Add("RequestBy", "RequestBy"); appointmentStorage.CustomFieldMappings.Add("RequestDate", "RequestDate"); appointmentStorage.CustomFieldMappings.Add("UserId", "UserId"); appointmentStorage.CustomFieldMappings.Add("Estimation", "Estimation"); appointmentStorage.CustomFieldMappings.Add("SpentTime", "SpentTime"); appointmentStorage.CustomFieldMappings.Add("Comment", "Comment"); #endregion return(appointmentStorage); }
static MVCxAppointmentStorage CreateDefaultAppointmentStorage() { MVCxAppointmentStorage appointmentStorage = new MVCxAppointmentStorage(); appointmentStorage.AutoRetrieveId = true; appointmentStorage.Mappings.AppointmentId = "ID"; appointmentStorage.Mappings.Start = "StartTime"; appointmentStorage.Mappings.End = "EndTime"; appointmentStorage.Mappings.Subject = "Subject"; appointmentStorage.Mappings.AllDay = "AllDay"; appointmentStorage.Mappings.Description = "Description"; appointmentStorage.Mappings.Label = "Label"; appointmentStorage.Mappings.Location = "Location"; appointmentStorage.Mappings.RecurrenceInfo = "RecurrenceInfo"; appointmentStorage.Mappings.ReminderInfo = "ReminderInfo"; appointmentStorage.Mappings.ResourceId = "OwnerId"; appointmentStorage.Mappings.Status = "Status"; appointmentStorage.Mappings.Type = "EventType"; appointmentStorage.CustomFieldMappings.Add(new DevExpress.Web.ASPxScheduler.ASPxAppointmentCustomFieldMapping("AppointmentCustomField", "CustomInfo")); appointmentStorage.CustomFieldMappings.Add(new DevExpress.Web.ASPxScheduler.ASPxAppointmentCustomFieldMapping("TimeBeforeStart", "TimeBeforeStart")); appointmentStorage.CustomFieldMappings.Add(new DevExpress.Web.ASPxScheduler.ASPxAppointmentCustomFieldMapping("AppointmentCompany", "CompanyID")); appointmentStorage.CustomFieldMappings.Add(new DevExpress.Web.ASPxScheduler.ASPxAppointmentCustomFieldMapping("AppointmentContact", "ContactID")); return(appointmentStorage); }
static MVCxAppointmentStorage CreateCustomAppointmentStorage() { MVCxAppointmentStorage appointmentStorage = CreateDefaultAppointmentStorage(); appointmentStorage.CustomFieldMappings.Add("Price", "Price"); appointmentStorage.CustomFieldMappings.Add("ContactInfo", "ContactInfo"); return(appointmentStorage); }
//public static IEnumerable GetData() { // CarsDBContext DB = new CarsDBContext(); // return DB.CarSchedulings.ToList(); //} public static MVCxAppointmentStorage CreateStorage() { MVCxAppointmentStorage appStorage = new MVCxAppointmentStorage(); appStorage.Mappings.AppointmentId = "ID"; appStorage.Mappings.Start = "StartTime"; appStorage.Mappings.End = "EndTime"; appStorage.Mappings.Subject = "Subject"; appStorage.Mappings.Description = "Description"; appStorage.Mappings.Type = "EventType"; appStorage.Mappings.RecurrenceInfo = "RecurrenceInfo"; appStorage.Mappings.Label = "Label"; appStorage.Mappings.Status = "Status"; return appStorage; }
//public static IEnumerable GetData() { // CarsDBContext DB = new CarsDBContext(); // return DB.CarSchedulings.ToList(); //} public static MVCxAppointmentStorage CreateStorage() { MVCxAppointmentStorage appStorage = new MVCxAppointmentStorage(); appStorage.Mappings.AppointmentId = "ID"; appStorage.Mappings.Start = "StartTime"; appStorage.Mappings.End = "EndTime"; appStorage.Mappings.Subject = "Subject"; appStorage.Mappings.Description = "Description"; appStorage.Mappings.Type = "EventType"; appStorage.Mappings.RecurrenceInfo = "RecurrenceInfo"; appStorage.Mappings.Label = "Label"; appStorage.Mappings.Status = "Status"; return(appStorage); }
static MVCxAppointmentStorage CreateDefaultAppointmentStorage() { MVCxAppointmentStorage appointmentStorage = new MVCxAppointmentStorage(); appointmentStorage.Mappings.AppointmentId = "ID"; appointmentStorage.Mappings.Start = "StartTime"; appointmentStorage.Mappings.End = "EndTime"; appointmentStorage.Mappings.Subject = "Subject"; appointmentStorage.Mappings.Description = "Description"; appointmentStorage.Mappings.Location = "Location"; appointmentStorage.Mappings.AllDay = "AllDay"; appointmentStorage.Mappings.Type = "EventType"; appointmentStorage.Mappings.RecurrenceInfo = "RecurrenceInfo"; appointmentStorage.Mappings.ReminderInfo = "ReminderInfo"; appointmentStorage.Mappings.Label = "Label"; appointmentStorage.Mappings.Status = "Status"; appointmentStorage.Mappings.ResourceId = "CarId"; return appointmentStorage; }
static MVCxAppointmentStorage CreateDefaultAppointmentStorage() { MVCxAppointmentStorage appointmentStorage = new MVCxAppointmentStorage(); appointmentStorage.Mappings.AppointmentId = "ID"; appointmentStorage.Mappings.Start = "StartTime"; appointmentStorage.Mappings.End = "EndTime"; appointmentStorage.Mappings.Subject = "Subject"; appointmentStorage.Mappings.Description = "Description"; appointmentStorage.Mappings.Location = "Location"; appointmentStorage.Mappings.AllDay = "AllDay"; appointmentStorage.Mappings.Type = "EventType"; appointmentStorage.Mappings.RecurrenceInfo = "RecurrenceInfo"; appointmentStorage.Mappings.ReminderInfo = "ReminderInfo"; appointmentStorage.Mappings.Label = "Label"; appointmentStorage.Mappings.Status = "Status"; appointmentStorage.Mappings.ResourceId = "CarId"; return(appointmentStorage); }
private static MVCxAppointmentStorage CreateDefaultAppointmentStorage() { var appointmentStorage = new MVCxAppointmentStorage(); appointmentStorage.Mappings.AppointmentId = "UniqueID"; appointmentStorage.Mappings.Start = "StartDate"; appointmentStorage.Mappings.End = "EndDate"; appointmentStorage.Mappings.Subject = "Subject"; appointmentStorage.Mappings.Description = "Description"; appointmentStorage.Mappings.Location = "Location"; appointmentStorage.Mappings.AllDay = "AllDay"; appointmentStorage.Mappings.Type = "Type"; appointmentStorage.Mappings.RecurrenceInfo = "RecurrenceInfo"; appointmentStorage.Mappings.ReminderInfo = "ReminderInfo"; appointmentStorage.Mappings.Label = "Label"; appointmentStorage.Mappings.Status = "Status"; appointmentStorage.Mappings.ResourceId = "ResourceID"; return(appointmentStorage); }
public static T[] GetAppointmentsToRemove <T>(SchedulerDataObject dataObject, MVCxAppointmentStorage appointmentStorage) where T : ScheduleBase { return(SchedulerExtension.GetAppointmentsToRemove <T>("scheduler", dataObject.Appointments, dataObject.Resources, appointmentStorage, SchedulerDemoHelper.DefaultResourceStorage)); }