ComplianceServer/code/Hg.Core.Domain/Dto/Meeting/MeetingDetailDto.cs

144 lines
3.5 KiB
C#

using System;
namespace Hg.Core.Domain.Dto.Meeting
{
public class MeetingDetailDto
{
public MeetingDetailDto()
{
}
public int? Id { get; set; }
/// <summary>
/// 会议名称
/// </summary>
public string? MeetingName { get; set; }
/// <summary>
/// 会议类型
/// </summary>
public string? MeetingType { get; set; }
/// <summary>
/// 参训事业部
/// </summary>
[JsonIgnore]
public string? Channels { get; set; }
/// <summary>
/// 参训事业部
/// </summary>
public List<string> ChannelList
{
get
{
return string.IsNullOrEmpty(Channels) ? new List<string>() :
Channels.Split(',').ToList();
}
}
/// <summary>
/// 开始时间
/// </summary>
public DateTime? BeginTime { get; set; }
/// <summary>
/// 会议时长
/// </summary>
public int ContinueHour { get; set; }
/// <summary>
/// 会议时长
/// </summary>
public int ContinueMinute { get; set; }
/// <summary>
/// 会议地点
/// </summary>
public string? MeetingSite { get; set; }
/// <summary>
/// 主讲人
/// </summary>
[JsonIgnore]
public string? Compere { get; set; }
/// <summary>
/// 参与人
/// </summary>
[JsonIgnore]
public string? Participant { get; set; }
/// <summary>
/// 附件
/// </summary>
public string? Accessories { get; set; }
/// <summary>
/// 备注
/// </summary>
public string? Remark { get; set; }
/// <summary>
/// 附件
/// </summary>
public List<AccessoryDto>? AccessoryList
{
get
{
return string.IsNullOrEmpty(Accessories) ? new List<AccessoryDto>() :
JsonSerializer.Deserialize<List<AccessoryDto>>(Accessories);
}
}
/// <summary>
/// 主讲人
/// </summary>
[JsonIgnore]
public List<InneruserDto>? CompereList
{
get
{
return string.IsNullOrEmpty(Compere) ? new List<InneruserDto>() :
JsonSerializer.Deserialize<List<InneruserDto>>(Compere);
}
}
/// <summary>
/// 主讲人
/// </summary>
public List<string>? CompereIds
{
get
{
return CompereList == null || !CompereList.Any() ? new List<string>() : CompereList.Select(x => x.Name).ToList();
}
}
/// <summary>
/// 参与人
/// </summary>
[JsonIgnore]
public List<InneruserDto>? ParticipantList
{
get
{
return string.IsNullOrEmpty(Participant) ? new List<InneruserDto>() :
JsonSerializer.Deserialize<List<InneruserDto>>(Participant);
}
}
/// <summary>
/// 参与人
/// </summary>
public List<string>? ParticipantIds
{
get
{
return ParticipantList == null || !ParticipantList.Any() ? new List<string>() : ParticipantList.Select(x => x.EId.ToString()).ToList();
}
}
}
}