Пример #1
0
        private void frmSelectNhom_Load(object sender, EventArgs e)
        {
            clbDsNhom.Items.Clear();
            List <string> DsNhom = XuLyXml.DocDsBacHoc();

            foreach (string st in DsNhom)
            {
                clbDsNhom.Items.Add(st);
            }
            SetData(nhom);
        }
Пример #2
0
        private void btnLoadFile_Click(object sender, EventArgs e)
        {
            DialogResult rs = openFileDialog.ShowDialog();

            try
            {
                if (rs == DialogResult.OK)
                {
                    grwDanhSach.Columns.Clear();
                    DataTable dt = Excel.Import(openFileDialog.FileName);
                    grwDanhSach.DataSource = dt;
                    grwDanhSach.Visible    = true;
                    DataGridViewComboBoxColumn objCol = XuLyDataGridView.CreateComboboxColumn("BẬC HỌC", XuLyXml.DocDsBacHoc());
                    grwDanhSach.Columns.Insert(3, objCol);
                    DataGridViewCheckBoxColumn objChe = XuLyDataGridView.CreateCheckBoxColumn("THI PHÒNG MÁY");
                    grwDanhSach.Columns.Insert(4, objChe);
                    grwDanhSach.Columns.RemoveAt(11);
                    DataGridViewTextBoxColumn objtex = XuLyDataGridView.CreateTextboxColumn("PHÒNG THI");
                    grwDanhSach.Columns.Insert(11, objtex);
                    DataGridViewButtonColumn objbot = XuLyDataGridView.CreateButtonColumn("THÊM");
                    grwDanhSach.Columns.Insert(12, objbot);
                    FormatColumn();
                    btnXepLichThi.Enabled = btnXuatExcel.Enabled = btnInKetQua.Enabled = true;
                }
            }
            catch (Exception)
            {
            }
        }
Пример #3
0
 public void frmQlBacHoc_Load(object sender, EventArgs e)
 {
     LoadData(XuLyXml.DocDsBacHoc());
 }