private void load_data_2_thong_tin_lop_hoc(US_DM_LOP_HOC v_us_lop_hoc) { US_DM_HOC_KY v_us_hoc_ky = new US_DM_HOC_KY(CIPConvert.ToDecimal(v_us_lop_hoc.dcID_HOC_KY)); US_DM_HOC_PHAN v_us_hoc_phan = new US_DM_HOC_PHAN(CIPConvert.ToDecimal(v_us_lop_hoc.dcID_HOC_PHAN)); m_cbo_ma_lop_hoc.SelectedValue = v_us_lop_hoc.dcID; m_txt_ma_hoc_phan.Text = v_us_hoc_phan.strMA_HOC_PHAN.ToString(); m_txt_trong_so.Text = v_us_hoc_phan.dcTRONG_SO.ToString(); m_txt_so_tin_chi_hoc_phan.Text = v_us_hoc_phan.dcSO_TIN_CHI_HOC_PHAN.ToString(); }
private void DoRowClick(GridView view, Point pt) { GridHitInfo info = view.CalcHitInfo(pt); if (info.InRow || info.InRowCell) { DataRow v_dr = m_grv_diem_thi.GetDataRow(m_grv_diem_thi.FocusedRowHandle); if (v_dr != null) { US_DM_SINH_VIEN v_us_sinh_vien = new US_DM_SINH_VIEN(CIPConvert.ToDecimal(v_dr["ID_SINH_VIEN"].ToString())); load_data_2_thong_tin_sinh_vien(v_us_sinh_vien); US_DM_LOP_HOC v_us_lop_hoc = new US_DM_LOP_HOC(CIPConvert.ToDecimal(v_dr["ID_LOP_HOC"].ToString())); load_data_2_thong_tin_lop_hoc(v_us_lop_hoc); m_txt_diem_qua_trinh.Text = v_dr["DIEM_QUA_TRINH"].ToString(); m_txt_diem_thi.Text = v_dr["DIEM_THI"].ToString(); } } }