This commit is contained in:
2020-08-26 17:20:31 +00:00
parent 387ede6924
commit fc24607c5b
6 changed files with 79 additions and 5 deletions

View File

@@ -0,0 +1,47 @@
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