Files
raven/server/AyaNova/models/Report.cs
2020-08-26 17:20:31 +00:00

48 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace AyaNova.Models
{
public class Report
{
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public string Name { get; set; }
public bool Active { get; set; }
public string Notes { get; set; }
public AuthorizationRoles Roles { get; set; }
[Required]
public AyaType ObjectType { get; set; }
public string Template { get; set; }
public string Style { get; set; }
public string JsPrerender { get; set; }
public string JsHelpers { get; set; }
[Required]
public ReportRenderType RenderType { get; set; }
//tentative in case of need
// public string Locale { get; set; }
// public string Header { get; set; }
// public string Footer { get; set; }
public Report()
{
RenderType = ReportRenderType.PDF;
ObjectType = AyaType.NoType;
Roles = AuthorizationRoles.All;
Active = true;
}
}//eoc
}//eons