| 1234567891011121314151617181920212223 |
- using Abp.Application.Services.Dto;
- using Abp.AutoMapper;
- using VberZero.BaseSystem;
- namespace VberZero.AppService.Calendars.Dto;
- [AutoMapFrom(typeof(SysCalendar))]
- public class CalendarDto : EntityDto<int>
- {
- public string Title { get; set; }
- public string Description { get; set; }
- public DateTime? Start { get; set; }
- public DateTime? End { get; set; }
- public string Colors { get; set; }
- public bool AllDay { get; set; }
- public int[] NotifyType { get; set; }
- private string[] _Colors => Colors?.Split('|');
- public string TextColor => _Colors == null || string.IsNullOrEmpty(_Colors[0]) ? "#fff" : _Colors[0];
- public string BackgroundColor => _Colors?.Length > 1 ? _Colors[1] : "#009EF7";
- public string BorderColor => _Colors?.Length > 2 ? _Colors[2] : BackgroundColor;
- }
|