SchedulerReportPackageItem.cs
2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Vrh.iScheduler.Report
{
/// <summary>
/// Riportcsomagba tartozó riportok.
/// </summary>
[Table("SchedulerReportPackageItems")]
public class SchedulerReportPackageItem
{
/// <summary>
/// Riport csomag elemeinek belső egyedi azonosítója
/// </summary>
[Key]
public int Id { get; set; }
/// <summary>
/// Melyik riportcsomagba tartozik a report.
/// </summary>
[Index("IX_SchedulerReportPackageItems_SchedulerReportPackageId_ReportId_LCID_PresetId", 1, IsUnique = true)]
public int SchedulerReportPackageId { get; set; }
/// <summary>
/// Riport azonosítója (neve).
/// </summary>
[Required, MaxLength(50)]
[Index("IX_SchedulerReportPackageItems_SchedulerReportPackageId_ReportId_LCID_PresetId", 2, IsUnique = true)]
public string ReportId { get; set; }
/// <summary>
/// Melyik nyelvi változat kerül a csomagba.
/// </summary>
[Required, MaxLength(10)]
[Index("IX_SchedulerReportPackageItems_SchedulerReportPackageId_ReportId_LCID_PresetId", 3, IsUnique = true)]
public string LCID { get; set; }
/// <summary>
/// Melyik előzetes paraméterkészlettel fusson a riport.
/// </summary>
[Required, MaxLength(50)]
[Index("IX_SchedulerReportPackageItems_SchedulerReportPackageId_ReportId_LCID_PresetId", 4, IsUnique = true)]
public string PresetId { get; set; }
/// <summary>
/// Riport formátuma.
/// </summary>
[Required, MaxLength(10)]
public string ExportType { get; set; }
/// <summary>
/// Az a riport csomag, amelyhez ez az elem tartozik.
/// </summary>
[ForeignKey("SchedulerReportPackageId")]
public virtual SchedulerReportPackage SchedulerReportPackage { get; set; }
}
}