Files
piaps-course-work-university/contingent_report_desktop/DataModels/Models/ContingentReport.cs

29 lines
792 B
C#

using Xceed.Words.NET;
namespace DataModels.Models
{
public class ContingentReport<T> : Model where T : class
{
//public List<T?>? Contingent { get; set; }
public List<Specialization?>? Specializations { get; set; }
public List<Group?>? Groups { get; set; }
public int? CurrentDeanId { get; set; }
public DateTime? Date { get; set; } = DateTime.Now;
private string TemplatePath { get; } = string.Empty;
private int GetStudentsCount()
{
return 1;
}
public void FillTemplate(DocX doc)
{
}
public void CreateDocument(string path)
{
var doc = DocX.Load(TemplatePath);
FillTemplate(doc);
doc.SaveAs(path);
}
}
}