Skip to content

Commit

Permalink
fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
TranDinhKhoi2002 committed Jun 9, 2022
1 parent ea3059d commit 7c1a923
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 22 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void DataExport_toExcel()
{
Action.Excel.ListStudent.Item temp = new studMin.Action.Excel.ListStudent.Item()
{
MaHocSinh = student.ID.ToString(),
MaHocSinh = student.ID.ToString().Substring(0, 8).ToUpper(),
HoTen = student.INFOR.FIRSTNAME + " " + student.INFOR.LASTNAME,
NgaySinh = (DateTime)student.INFOR.DAYOFBIRTH,
GioiTinh = student.INFOR.SEX == 1,
Expand Down Expand Up @@ -331,8 +331,20 @@ private void ClassInfor_SubTab_Load(object sender, EventArgs e)
}
}

Filter_ComboBox.SelectedIndex = 1;
}));
}

private void Filter_ComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
if (Filter_ComboBox.SelectedIndex == 0 || Filter_ComboBox.SelectedIndex == 2)
{
DataGridViewExport_Button.Enabled = false;
}
else
{
DataGridViewExport_Button.Enabled = true;
}
}
}
}

0 comments on commit 7c1a923

Please sign in to comment.