net6.0 Ready to test

This commit is contained in:
2022-03-29 07:23:13 -07:00
parent 836f70ed7f
commit 289547180a
135 changed files with 3189 additions and 7648 deletions

View File

@ -1,3 +1,5 @@
using Shared;
namespace APCViewer.Models.Methods;
public interface IBackground
@ -14,6 +16,6 @@ public interface IBackground
string GetIPDSF(long Sequence);
void Catch(Exception exception);
Tuple<List<string[]>, List<string[]>> GetTimePivot(bool isGaN = false, bool isSi = false);
Tuple<int, object, object, string> SetViewBag(string directory, string filter, bool isGaN = false, bool isSi = false, bool forPDSF = false, bool forIPDSF = false);
Tuple<int, Dictionary<string, Dictionary<string, List<Logistics>>>, List<Tuple<string[], Logistics>>, string?> SetViewBag(string? directory, string? filter, bool isGaN = false, bool isSi = false, bool forPDSF = false, bool forIPDSF = false);
}

View File

@ -1,6 +1,6 @@
namespace APCViewer.Models.Properties;
public interface IBackgroundController
public interface IBackgroundPage
{
public List<Exception> Exceptions { get; }

View File

@ -0,0 +1,11 @@
namespace APCViewer.Models.Properties;
public interface IIPDSFPage
{
string? Directory { get; }
int Files { get; }
Dictionary<string, Dictionary<string, List<Shared.Logistics>>> Grouped { get; }
List<Tuple<string[], Shared.Logistics>> Sorted { get; }
}

View File

@ -0,0 +1,11 @@
namespace APCViewer.Models.Properties;
public interface IPDSFPage
{
string? Directory { get; }
int Files { get; }
Dictionary<string, Dictionary<string, List<Shared.Logistics>>> Grouped { get; }
List<Tuple<string[], Shared.Logistics>> Sorted { get; }
}

View File

@ -0,0 +1,9 @@
namespace APCViewer.Models.Properties;
public interface ITimePivotPage
{
List<string[]> ForIPDSF { get; }
List<string[]> ForPDSF { get; }
}

View File

@ -1,12 +0,0 @@
using Microsoft.AspNetCore.Mvc;
namespace APCViewer.Models.Stateless.Methods;
public interface IBackgroundController
{
ActionResult Index(bool? message_clear = null, bool? exceptions_clear = null, bool? set_is_primary_instance = null);
static string GetRouteName() => nameof(IBackgroundController).Replace("Controller", string.Empty)[1..];
}

View File

@ -0,0 +1,10 @@
namespace APCViewer.Models.Stateless.Methods;
public interface IBackgroundPage
{
void OnGet(bool? message_clear = null, bool? exceptions_clear = null, bool? set_is_primary_instance = null);
static string GetRouteName() => nameof(IBackgroundPage).Replace("Page", string.Empty)[1..];
}

View File

@ -0,0 +1,14 @@
namespace APCViewer.Models.Stateless.Methods;
public interface IIPDSFPage
{
void OnGet(string? directory = null, string? filter = null, bool is_gaN = false, bool is_Si = false);
// ContentResult OnGetView(string? id = null);
// FileResult OnGetDownloadFile(string? id = null);
// ContentResult OnGetViewCustom(string? ipdsf_file = null);
// FileResult OnGetDownloadFileCustom(string? ipdsf_file = null);
static string GetRouteName() => nameof(IIPDSFPage).Replace("Page", string.Empty)[1..];
}

View File

@ -0,0 +1,14 @@
namespace APCViewer.Models.Stateless.Methods;
public interface IPDSFPage
{
void OnGet(string? directory = null, string? filter = null, bool is_gaN = false, bool is_Si = false);
// ContentResult OnGetView(string? id = null);
// FileResult OnGetDownloadFile(string? id = null);
// ContentResult OnGetViewCustom(string? pdsf_file = null);
// FileResult OnGetDownloadFileCustom(string? pdsf_file = null);
static string GetRouteName() => nameof(IPDSFPage).Replace("Page", string.Empty)[1..];
}

View File

@ -0,0 +1,10 @@
namespace APCViewer.Models.Stateless.Methods;
public interface ITimePivotPage
{
void OnGet(bool is_gaN = false, bool is_Si = false);
static string GetRouteName() => nameof(ITimePivotPage).Replace("Page", string.Empty)[1..];
}