Пример #1
0
        public void initData(string tenKhoa, rpThongTin tt, List <DTO.rpHocBong> data)
        {
            pkhoa.Value        = tenKhoa;
            pchuyennganh.Value = tt.chuyenNganh;
            phedaotao.Value    = tt.hedaotao;
            phocky.Value       = tt.hocky;
            pnamHoc.Value      = tt.namHoc;

            objectDataSource1.DataSource = data;
        }
Пример #2
0
        public rpThongTin getThongTinNamHoc(string maHKy)
        {
            rpThongTin rp    = null;
            string     query = "Exec USP_GetThongTinNamHoc @maHocKy";
            DataTable  data  = DataProvider.Instance.ExecuteQuery(query, new object[] { maHKy });

            foreach (DataRow row in data.Rows)
            {
                rp = new rpThongTin(row[0].ToString(), row[1].ToString(), row[2].ToString(), row[3].ToString());
            }
            return(rp);
        }
Пример #3
0
        private void btnprinter_Click(object sender, EventArgs e)
        {
            if (gridControl1.DataSource != null)
            {
                using (frmPrint frm = new frmPrint())
                {
                    rpThongTin rp = ThongTinDAO.Instance.getThongTinNamHoc(maHKy);

                    frm.printDHB(tenKhoa, rp, DiemMonHocDAO.Instance.GetListHBSV(maHKy, maKhoa));
                    frm.ShowDialog();
                }
            }
        }