This finishes the first iteration of the project. Reports have been tested and are functional in terms of writing out and outputting some form of text. There are still a few bugs here and there that are found but ultimately this commit is so testing can begin. Since the changes are too large to individually summarize, here is the generalization: Reports have been integrated into the admin mode. They write out to text files rather than export to say email or a printer as it was not to be considered for this version. The files are appended too and exist in the debug director of the project. I made this easier to find by outputting where the files were output to after running the report. Other changes included some bug fixes, optimizations, and a few bit of automatic cleanup. This may lead to sylistic inconsistencies. Documentation will come in a later commit.
34 lines
613 B
C#
34 lines
613 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Ophelias.Models;
|
|
|
|
namespace Ophelias.Models
|
|
{
|
|
internal class BaseRate
|
|
{
|
|
internal int Id;
|
|
internal double Rate;
|
|
internal DateTime DateSet;
|
|
|
|
internal BaseRate(int id, double rate)
|
|
{
|
|
Id = id;
|
|
Rate = rate;
|
|
DateSet = DateTime.Now;
|
|
}
|
|
}
|
|
|
|
internal class Rates
|
|
{
|
|
internal List<BaseRate> BaseRates;
|
|
|
|
internal Rates()
|
|
{
|
|
BaseRates = new();
|
|
}
|
|
}
|
|
}
|