91 lines
5.8 KiB
C#
91 lines
5.8 KiB
C#
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);
|
|
// }
|
|
}
|
|
|
|
} |