This commit is contained in:
funa4i 2024-12-10 12:32:34 +04:00
parent cd503a37d1
commit 954efe5a15
3 changed files with 2 additions and 3 deletions

View File

@ -304,8 +304,7 @@ namespace StudentProgressRecord.Reports
while (dividend > 0)
{
modulo = (dividend - 1) % 26;
columnName = Convert.ToChar(65 + modulo).ToString() +
columnName;
columnName = Convert.ToChar(65 + modulo).ToString() + columnName;
dividend = (dividend - modulo) / 26;
}
return columnName;

View File

@ -27,7 +27,6 @@ namespace StudentProgressRecord.Reports
{
var paragraph = _body.AppendChild(new Paragraph());
var run = paragraph.AppendChild(new Run());
// TODO прописать настройки под жирный текст
run.AppendChild(new Text(header));
return this;
}

View File

@ -116,6 +116,7 @@ namespace StudentProgressRecord.RepositoryImp
builder.AddCondition("st.date <= @dateTo");
}
using var connection = new NpgsqlConnection(_connectionString.GetConnectionString());
var querySelect =
@$"SELECT
st.*, s.Name as SubjectName, t.Name as TeacherName, m.StudentId, m.Mark, Student.Name as StudentName FROM Statement st