void GetScoreForTeacher(string MaHocSinh, string MaHocKy, string MaNamHoc) { DTO.Point temp = new DTO.Point(); string[] item = temp.GetScoreForTeacher(MaHocSinh, MaHocKy, MaNamHoc); tbMath1.Text = item[0]; tbMath2.Text = item[1]; tbMath3.Text = item[2]; tbMath4.Text = item[3]; tbChem1.Text = item[4]; tbChem2.Text = item[5]; tbChem3.Text = item[6]; tbChem4.Text = item[7]; tbEng1.Text = item[8]; tbEng2.Text = item[9]; tbEng3.Text = item[10]; tbEng4.Text = item[11]; tbPhy1.Text = item[12]; tbPhy2.Text = item[13]; tbPhy3.Text = item[14]; tbPhy4.Text = item[15]; tbPhi1.Text = item[16]; tbPhi2.Text = item[17]; tbPhi3.Text = item[18]; tbPhi4.Text = item[19]; }
void EditScoreStudent(string[] item) { DTO.Point z = new DTO.Point(); string CodeClass = z.GetCodeClassStudent(txbCodeStudent.Text, GetAcademic(), "K12A1"); z.EditAllScoreStudent(item, CodeClass, GetAcademic(), cbbTerm.Text); }
void DisplayPoint(string MaHocSinh) { lvShowPoint.Items.Clear(); string MaHocKy = cbbChoseTerm.SelectedItem.ToString(); string MaNamHoc = null; if (cbbChoseSchoolYear.SelectedItem.ToString() == "2016-2017") { MaNamHoc = "017"; } else { if (cbbChoseSchoolYear.SelectedItem.ToString() == "2017-2018") { MaNamHoc = "018"; } else { MaNamHoc = "019"; } } DTO.Point z = new DTO.Point(); string [] item = z.GetScores(MaHocSinh, MaHocKy, MaNamHoc); for (int i = 1; i < item.Length; i++) { ListViewItem lvItem = new ListViewItem(item[i++]); lvItem.SubItems.Add(item[i++]); lvItem.SubItems.Add(item[i++]); lvItem.SubItems.Add(item[i++]); lvItem.SubItems.Add(item[i++]); lvItem.SubItems.Add(item[i]); lvShowPoint.Items.Add(lvItem); } ListViewItem lvItem1 = new ListViewItem(); lvShowPoint.Items.Add(lvItem1); ListViewItem lvItem2 = new ListViewItem("Điểm trung bình học kỳ"); lvItem2.SubItems.Add(item[0]); lvShowPoint.Items.Add(lvItem2); }