27 lines
662 B
C#
27 lines
662 B
C#
using Xceed.Words.NET;
|
|
|
|
namespace DataModels.Models
|
|
{
|
|
public class ContingentReport<T> where T : class
|
|
{
|
|
public List<T?>? Contingent { get; set; }
|
|
public Dean? CurrentDean { get; set; }
|
|
public DateTime? Date { get; set; } = DateTime.Now;
|
|
|
|
public 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);
|
|
}
|
|
}
|
|
}
|