/// <summary> /// 界面初始化 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CP_StudentPunishmentRecords_Load(object sender, EventArgs e) { IsQuery = false; panelEDIT.Visible = IsEditable; punishment = new Punishment(); personInfo = new PersonInfo(); FillStudentInfoDatatable(personInfo.GetPersonInfoTable()); FillPunishRecordsDatatable(punishment.GetPunishmentDataTable()); }
/// <summary> /// 跟新处罚信息表格 /// </summary> private void UpdatePunishDataTable() { FillPunishRecordsDatatable(punishment.GetPunishmentDataTable()); }