erp-platform/api/src/Kurs.Platform.Domain/Entities/ReportTemplate.cs

43 lines
1.1 KiB
C#
Raw Normal View History

2025-08-15 09:19:20 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;
namespace Kurs.Platform.Entities
{
2025-08-20 15:00:58 +00:00
public class ReportTemplate : FullAuditedEntity<Guid>
2025-08-15 09:19:20 +00:00
{
[Required]
public string Name { get; set; }
public string Description { get; set; }
[Required]
public string HtmlContent { get; set; }
2025-08-15 13:01:24 +00:00
public string CategoryName { get; set; }
2025-08-15 09:19:20 +00:00
public string Tags { get; set; } // JSON string array
2025-08-15 13:01:24 +00:00
public ReportCategory ReportCategory { get; set; }
public ICollection<ReportParameter> Parameters { get; set; }
2025-08-15 09:19:20 +00:00
public ReportTemplate()
{
2025-08-15 12:21:22 +00:00
Parameters = [];
2025-08-15 09:19:20 +00:00
}
public ReportTemplate(
Guid id,
string name,
string description,
string htmlContent,
2025-08-15 13:01:24 +00:00
string categoryName = "Genel"
2025-08-15 09:19:20 +00:00
) : base(id)
{
Name = name;
Description = description;
HtmlContent = htmlContent;
2025-08-15 13:01:24 +00:00
CategoryName = categoryName;
2025-08-15 09:19:20 +00:00
Parameters = new List<ReportParameter>();
}
}
}