49 lines
1.2 KiB
C#
49 lines
1.2 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 : FullAuditedAggregateRoot<Guid>
|
||
|
|
{
|
||
|
|
[Required]
|
||
|
|
[StringLength(256)]
|
||
|
|
public string Name { get; set; }
|
||
|
|
|
||
|
|
[StringLength(1000)]
|
||
|
|
public string Description { get; set; }
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
public string HtmlContent { get; set; }
|
||
|
|
|
||
|
|
[StringLength(100)]
|
||
|
|
public string Category { get; set; }
|
||
|
|
|
||
|
|
public string Tags { get; set; } // JSON string array
|
||
|
|
|
||
|
|
// Navigation property
|
||
|
|
public virtual ICollection<ReportParameter> Parameters { get; set; }
|
||
|
|
|
||
|
|
public ReportTemplate()
|
||
|
|
{
|
||
|
|
Parameters = new List<ReportParameter>();
|
||
|
|
}
|
||
|
|
|
||
|
|
public ReportTemplate(
|
||
|
|
Guid id,
|
||
|
|
string name,
|
||
|
|
string description,
|
||
|
|
string htmlContent,
|
||
|
|
string category = "Genel"
|
||
|
|
) : base(id)
|
||
|
|
{
|
||
|
|
Name = name;
|
||
|
|
Description = description;
|
||
|
|
HtmlContent = htmlContent;
|
||
|
|
Category = category;
|
||
|
|
Parameters = new List<ReportParameter>();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|