Match TFS Changeset 303361
This commit is contained in:
12
APC Viewer/Models/AppSettings.cs
Normal file
12
APC Viewer/Models/AppSettings.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace APCViewer.Models
|
||||
{
|
||||
public class AppSettings
|
||||
{
|
||||
public string Company { get; set; }
|
||||
public string EncryptedPassword { get; set; }
|
||||
public string MonARessource { get; set; }
|
||||
public string Server { get; set; }
|
||||
public string ServiceUser { get; set; }
|
||||
public string URLs { get; set; }
|
||||
}
|
||||
}
|
9
APC Viewer/Models/ErrorViewModel.cs
Normal file
9
APC Viewer/Models/ErrorViewModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace APCViewer.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
}
|
91
APC Viewer/Models/IBackground.cs
Normal file
91
APC Viewer/Models/IBackground.cs
Normal file
@ -0,0 +1,91 @@
|
||||
namespace APCViewer.Models
|
||||
{
|
||||
public interface IBackground
|
||||
{
|
||||
void APCDataCallback();
|
||||
// public void DataForApc(string workingDirectory, bool isGaN = false, bool isSi = false)
|
||||
// {
|
||||
// long ticks = DateTime.Now.Ticks;
|
||||
// string server = GetServer(debugIsNotEC: false);
|
||||
// Logic2019Q2 logic2019Q2 = new Logic2019Q2(_Log);
|
||||
// Logic2020Q3 logic2020Q3 = new Logic2020Q3(_Log);
|
||||
// string[] equipmentTypes = GetEquipmentTypes(isGaN, isSi);
|
||||
// Dictionary<string, string> pdsfFiles = new Dictionary<string, string>();
|
||||
// Dictionary<string, object> apcLogistics = new Dictionary<string, object>();
|
||||
// Dictionary<string, object> edaLogistics = new Dictionary<string, object>();
|
||||
// Dictionary<string, object> eafLogLogistics = new Dictionary<string, object>();
|
||||
// logic2019Q2.Data(server, equipmentTypes, apcLogistics, pdsfFiles, isAPC: true);
|
||||
// Tuple<int, object, object, string> tuple = logic2020Q3.SetViewBag(apcLogistics, edaLogistics, eafLogLogistics, directory: null, filter: null, forPDSF: true, forIPDSF: false);
|
||||
// if (tuple is null) { }
|
||||
// List<string[]> timePivot = logic2020Q3.GetTimePivot(equipmentTypes, apcLogistics, edaLogistics, eafLogLogistics, forPDSF: true, forIPDSF: false);
|
||||
// _Log.Debug(string.Concat("Took ", new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds, " second(s)"));
|
||||
// List<string> list = new List<string>();
|
||||
// StringBuilder stringBuilder = new StringBuilder();
|
||||
// foreach (string[] segments in timePivot)
|
||||
// {
|
||||
// foreach (string segment in segments)
|
||||
// stringBuilder.Append(segment).Append('\t');
|
||||
// list.Add(stringBuilder.ToString());
|
||||
// stringBuilder.Clear();
|
||||
// }
|
||||
// ShowWindow(workingDirectory, ShowWindowCommand.ShowMaximized, list);
|
||||
// }
|
||||
void EAFLogDataCallback();
|
||||
// public void DataForEafLog(string workingDirectory, bool isGaN = false, bool isSi = false)
|
||||
// {
|
||||
// long ticks = DateTime.Now.Ticks;
|
||||
// string server = GetServer(debugIsNotEC: false);
|
||||
// Logic2019Q2 logic2019Q2 = new Logic2019Q2(_Log);
|
||||
// Logic2020Q3 logic2020Q3 = new Logic2020Q3(_Log);
|
||||
// string[] equipmentTypes = GetEquipmentTypes(isGaN, isSi);
|
||||
// Dictionary<string, string> pdsfFiles = new Dictionary<string, string>();
|
||||
// Dictionary<string, object> apcLogistics = new Dictionary<string, object>();
|
||||
// Dictionary<string, object> edaLogistics = new Dictionary<string, object>();
|
||||
// Dictionary<string, object> eafLogLogistics = new Dictionary<string, object>();
|
||||
// logic2019Q2.Data(server, equipmentTypes, eafLogLogistics, pdsfFiles, isEAFLog: true);
|
||||
// Tuple<int, object, object, string> tuple = logic2020Q3.SetViewBag(apcLogistics, edaLogistics, eafLogLogistics, directory: null, filter: null, forPDSF: false, forIPDSF: true);
|
||||
// if (tuple is null) { }
|
||||
// List<string[]> timePivot = logic2020Q3.GetTimePivot(equipmentTypes, apcLogistics, edaLogistics, eafLogLogistics, forPDSF: false, forIPDSF: true);
|
||||
// _Log.Debug(string.Concat("Took ", new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds, " second(s)"));
|
||||
// List<string> list = new List<string>();
|
||||
// StringBuilder stringBuilder = new StringBuilder();
|
||||
// foreach (string[] segments in timePivot)
|
||||
// {
|
||||
// foreach (string segment in segments)
|
||||
// stringBuilder.Append(segment).Append('\t');
|
||||
// list.Add(stringBuilder.ToString());
|
||||
// stringBuilder.Clear();
|
||||
// }
|
||||
// ShowWindow(workingDirectory, ShowWindowCommand.ShowMaximized, list);
|
||||
// }
|
||||
void EDADataCallback();
|
||||
// public void DataForEda(string workingDirectory, bool isGaN = false, bool isSi = false)
|
||||
// {
|
||||
// long ticks = DateTime.Now.Ticks;
|
||||
// string server = GetServer(debugIsNotEC: true);
|
||||
// Logic2019Q2 logic2019Q2 = new Logic2019Q2(_Log);
|
||||
// Logic2020Q3 logic2020Q3 = new Logic2020Q3(_Log);
|
||||
// string[] equipmentTypes = GetEquipmentTypes(isGaN, isSi);
|
||||
// Dictionary<string, string> pdsfFiles = new Dictionary<string, string>();
|
||||
// Dictionary<string, object> apcLogistics = new Dictionary<string, object>();
|
||||
// Dictionary<string, object> edaLogistics = new Dictionary<string, object>();
|
||||
// Dictionary<string, object> eafLogLogistics = new Dictionary<string, object>();
|
||||
// logic2019Q2.Data(server, equipmentTypes, edaLogistics, pdsfFiles, isEDA: true);
|
||||
// Tuple<int, object, object, string> tuple = logic2020Q3.SetViewBag(apcLogistics, edaLogistics, eafLogLogistics, directory: null, filter: null, forPDSF: true, forIPDSF: false);
|
||||
// if (tuple is null) { }
|
||||
// List<string[]> timePivot = logic2020Q3.GetTimePivot(equipmentTypes, apcLogistics, edaLogistics, eafLogLogistics, forPDSF: true, forIPDSF: false);
|
||||
// _Log.Debug(string.Concat("Took ", new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds, " second(s)"));
|
||||
// List<string> list = new List<string>();
|
||||
// StringBuilder stringBuilder = new StringBuilder();
|
||||
// foreach (string[] segments in timePivot)
|
||||
// {
|
||||
// foreach (string segment in segments)
|
||||
// stringBuilder.Append(segment).Append('\t');
|
||||
// list.Add(stringBuilder.ToString());
|
||||
// stringBuilder.Clear();
|
||||
// }
|
||||
// ShowWindow(workingDirectory, ShowWindowCommand.ShowMaximized, list);
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
25
APC Viewer/Models/IHomeController.cs
Normal file
25
APC Viewer/Models/IHomeController.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace APCViewer.Models
|
||||
{
|
||||
public interface IHomeController
|
||||
{
|
||||
IActionResult Background(bool? message_clear = null, bool? exceptions_clear = null, bool? set_is_primary_instance = null, bool? logistics_clear = null);
|
||||
IActionResult DownloadCustomIPDSF(string ipdsf_file = null);
|
||||
IActionResult DownloadCustomPDSF(string pdsf_file = null);
|
||||
IActionResult DownloadIPDSF(string id = null);
|
||||
IActionResult DownloadPDSF(string id = null);
|
||||
IActionResult Encode(string value = null);
|
||||
IActionResult Error();
|
||||
IActionResult Index();
|
||||
IActionResult IPDSF(string directory = null, string filter = null, bool is_gaN = false, bool is_Si = false);
|
||||
IActionResult PDSF(string directory = null, string filter = null, bool is_gaN = false, bool is_Si = false);
|
||||
IActionResult Privacy();
|
||||
IActionResult TimePivot(bool is_gaN = false, bool is_Si = false);
|
||||
ContentResult ViewCustomIPDSF(string ipdsf_file = null);
|
||||
ContentResult ViewCustomPDSF(string pdsf_file = null);
|
||||
ContentResult ViewIPDSF(string id = null);
|
||||
ContentResult ViewPDSF(string id = null);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user