You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.1 KiB

using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
namespace Shentun.Peis.Models
{
[Table("report_format_template")]
public class ReportFormatTemplate:AuditedEntity<string>, IDisplayName, IHasConcurrencyStamp
{
[Column("Id")]
[Comment("主键Id")]
[StringLength(16)]
public override string Id { get => base.Id; protected set => base.Id = value; }
[ForeignKey(nameof(ReportFormatId))]
[InverseProperty("ReportFormatTemplates")]
public virtual ReportFormat ReportFormat { get; set; }
[Column("report_format_id")]
[Comment("报表格式ID")]
public string ReportFormatId { get; set; }
[Column("display_name")]
[Comment("模板名称")]
[MaxLength(128)]
public string DisplayName { get; set; }
[Column("template_file_type")]
[Comment("模板文件类型(0:FastReport,1:Grid++Report)")]
[Required]
[MaxLength(1)]
[DefaultValue('0')]
public char TemplateFileType { get; set; }
[Column("template_file")]
[Comment("模板文件")]
public string TemplateFile { get; set; }
[Column("data_set_json")]
[Comment("模板文件")]
public string DataSetJson { get; set; }
[Column("is_system")]
[Comment("是否系统自定义(N:停用,Y:启用)")]
[Required]
[MaxLength(1)]
[DefaultValue('N')]
public char IsSystem { get; set; }
[Column("is_default")]
[Comment("是否默认(N:不默认,Y:默认)")]
[Required]
[MaxLength(1)]
[DefaultValue('N')]
public char IsDefault { get; set; }
[Column("concurrency_stamp")]
public string ConcurrencyStamp { get; set; }
public void SetId(string id)
{
Id = id;
}
}
}