feature: job exporting (resolves #155)

This commit is contained in:
Gary Sharp
2024-12-12 16:02:12 +11:00
parent 90c709c4c1
commit a6b9cd1af2
55 changed files with 3197 additions and 412 deletions
@@ -1,5 +1,7 @@
using Disco.Data.Repository;
using Disco.Models.Services.Job;
using Disco.Models.Services.Devices.Exporting;
using Disco.Models.Services.Jobs;
using Disco.Models.Services.Jobs.Exporting;
using System;
using System.Collections.Generic;
@@ -92,5 +94,20 @@ namespace Disco.Data.Configuration.Modules
get { return Get<string>(null); }
set { Set(value); }
}
public JobExportOptions LastExportOptions
{
get { return this.Get(JobExportOptions.DefaultOptions()); }
set {
this.Set(value);
this.LastExportDate = DateTime.Now;
}
}
public DateTime? LastExportDate
{
get { return this.Get<DateTime?>(null); }
set { this.Set(value); }
}
}
}