This commit is contained in:
2021-06-15 16:58:32 +00:00
parent 595feb1516
commit ef5a8e965f
2 changed files with 50 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace AyaNova.Models namespace AyaNova.Models
@@ -30,15 +31,55 @@ namespace AyaNova.Models
public long? TaxRateSaleId { get; set; } public long? TaxRateSaleId { get; set; }
//DEFAULT WO MINUTES //DEFAULT WO MINUTES
[Required] [Required]
public int WorkLaborScheduleDefaultMinutes {get;set;} public int WorkLaborScheduleDefaultMinutes { get; set; }
[Required] [Required]
public int WorkOrderTravelDefaultMinutes {get;set;} public int WorkOrderTravelDefaultMinutes { get; set; }
[Required] [Required]
public TimeSpan WorkOrderCompleteByAge { get; set; } = TimeSpan.Zero;//was workorderclosebyage public TimeSpan WorkOrderCompleteByAge { get; set; } = TimeSpan.Zero;//was workorderclosebyage
//CUSTOMER ACCESS FEATURES AND SETTINGS
public long? CustomerDefaultWorkOrderReportId { get; set; }
public string CustomerServiceRequestInfoHTML { get; set; }
public bool CustomerAllowCSR { get; set; }
public List<string> CustomerAllowCSRInTags { get; set; }
public List<string> CustomerAllowCSROutTags { get; set; }
public bool CustomerAllowViewWO { get; set; }
public List<string> CustomerAllowViewWOInTags { get; set; }
public List<string> CustomerAllowViewWOOutTags { get; set; }
public bool CustomerAllowWOWiki { get; set; }
public List<string> CustomerAllowWOWikiInTags { get; set; }
public List<string> CustomerAllowWOWikiOutTags { get; set; }
public bool CustomerAllowUserSettings { get; set; }
public List<string> CustomerAllowUserSettingsInTags { get; set; }
public List<string> CustomerAllowUserSettingsOutTags { get; set; }
public bool CustomerAllowNotifyServiceImminent { get; set; }
public List<string> CustomerAllowNotifyServiceImminentInTags { get; set; }
public List<string> CustomerAllowNotifyServiceImminentOutTags { get; set; }
public bool CustomerAllowNotifyCSRAccepted { get; set; }
public List<string> CustomerAllowNotifyCSRAcceptedInTags { get; set; }
public List<string> CustomerAllowNotifyCSRAcceptedOutTags { get; set; }
public bool CustomerAllowNotifyCSRRejected { get; set; }
public List<string> CustomerAllowNotifyCSRRejectedInTags { get; set; }
public List<string> CustomerAllowNotifyCSRRejectedOutTags { get; set; }
public bool CustomerAllowNotifyWorkorderCreated { get; set; }
public List<string> CustomerAllowNotifyWorkorderCreatedInTags { get; set; }
public List<string> CustomerAllowNotifyWorkorderCreatedOutTags { get; set; }
public GlobalBizSettings() public GlobalBizSettings()
{ {
Id = 1;//always 1 Id = 1;//always 1

View File

@@ -255,7 +255,10 @@ namespace AyaNova.Util
+ "useinventory BOOL DEFAULT TRUE, " + "useinventory BOOL DEFAULT TRUE, "
+ "workordercompletebyage INTERVAL NOT NULL DEFAULT '00:00:00', " + "workordercompletebyage INTERVAL NOT NULL DEFAULT '00:00:00', "
+ "workordertraveldefaultminutes INTEGER NOT NULL DEFAULT 0, " + "workordertraveldefaultminutes INTEGER NOT NULL DEFAULT 0, "
+ "worklaborscheduledefaultminutes INTEGER NOT NULL DEFAULT 0 " + "worklaborscheduledefaultminutes INTEGER NOT NULL DEFAULT 0, "
+ "customerdefaultworkorderreportid BIGINT NULL REFERENCES areport(id), "
+ "CustomerServiceRequestInfoHTML TEXT, "
+ "customerallowcsr BOOL DEFAULT FALSE, customerallowcsrintags VARCHAR(255) ARRAY, customerallowcsrouttags VARCHAR(255) ARRAY, "
+ ")"); + ")");
//create global ops BACKUP settings table //create global ops BACKUP settings table