42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Kurs.Platform.Entities
|
|
{
|
|
public class ReportTemplate : FullAuditedEntity<Guid>
|
|
{
|
|
[Required]
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
|
|
[Required]
|
|
public string HtmlContent { get; set; }
|
|
public string CategoryName { get; set; }
|
|
public string Tags { get; set; } // JSON string array
|
|
|
|
public ReportCategory ReportCategory { get; set; }
|
|
public ICollection<ReportParameter> Parameters { get; set; }
|
|
|
|
public ReportTemplate()
|
|
{
|
|
Parameters = [];
|
|
}
|
|
|
|
public ReportTemplate(
|
|
Guid id,
|
|
string name,
|
|
string description,
|
|
string htmlContent,
|
|
string categoryName = "Genel"
|
|
) : base(id)
|
|
{
|
|
Name = name;
|
|
Description = description;
|
|
HtmlContent = htmlContent;
|
|
CategoryName = categoryName;
|
|
Parameters = new List<ReportParameter>();
|
|
}
|
|
}
|
|
}
|