This commit is contained in:
@@ -69,6 +69,7 @@ namespace AyaNova.Models
|
||||
|
||||
|
||||
public virtual DbSet<Logo> Logo { get; set; }
|
||||
public virtual DbSet<Report> Report { get; set; }
|
||||
|
||||
//Note: had to add this constructor to work with the code in startup.cs that gets the connection string from the appsettings.json file
|
||||
//and commented out the above on configuring
|
||||
|
||||
47
server/AyaNova/models/Report.cs
Normal file
47
server/AyaNova/models/Report.cs
Normal 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
|
||||
Reference in New Issue
Block a user