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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using Volo.Abp.Domain.Entities;
  11. using Volo.Abp.Domain.Entities.Auditing;
  12. namespace Shentun.Peis.Models
  13. {
  14. [Table("report_format_template")]
  15. public class ReportFormatTemplate:AuditedEntity<string>, IDisplayName, IHasConcurrencyStamp
  16. {
  17. [Column("Id")]
  18. [Comment("主键Id")]
  19. [StringLength(16)]
  20. public override string Id { get => base.Id; protected set => base.Id = value; }
  21. [ForeignKey(nameof(ReportFormatId))]
  22. [InverseProperty("ReportFormatTemplates")]
  23. public virtual ReportFormat ReportFormat { get; set; }
  24. [Column("report_format_id")]
  25. [Comment("报表格式ID")]
  26. public string ReportFormatId { get; set; }
  27. [Column("display_name")]
  28. [Comment("模板名称")]
  29. [MaxLength(128)]
  30. public string DisplayName { get; set; }
  31. [Column("template_file_type")]
  32. [Comment("模板文件类型(0:FastReport,1:Grid++Report)")]
  33. [Required]
  34. [MaxLength(1)]
  35. [DefaultValue('0')]
  36. public char TemplateFileType { get; set; }
  37. [Column("template_file")]
  38. [Comment("模板文件")]
  39. public string TemplateFile { get; set; }
  40. [Column("data_set_json")]
  41. [Comment("模板文件")]
  42. public string DataSetJson { get; set; }
  43. [Column("is_system")]
  44. [Comment("是否系统自定义(N:停用,Y:启用)")]
  45. [Required]
  46. [MaxLength(1)]
  47. [DefaultValue('N')]
  48. public char IsSystem { get; set; }
  49. [Column("is_default")]
  50. [Comment("是否默认(N:不默认,Y:默认)")]
  51. [Required]
  52. [MaxLength(1)]
  53. [DefaultValue('N')]
  54. public char IsDefault { get; set; }
  55. [Column("concurrency_stamp")]
  56. public string ConcurrencyStamp { get; set; }
  57. public void SetId(string id)
  58. {
  59. Id = id;
  60. }
  61. }
  62. }