public frmTKDiemThi() { dtBUS = new DIemThiBUS(); svBUS = new SinhVienBUS(); InitializeComponent(); if (frmMain.user.LoaiUser == "SinhVien") { this.txtNhapMSSV.Text = frmMain.user.Ma; TimThongTin(); this.txtNhapMSSV.Enabled = false; } else { this.txtNhapMSSV.AutoCompleteMode = AutoCompleteMode.Suggest; this.txtNhapMSSV.AutoCompleteSource = AutoCompleteSource.CustomSource; var lstMSSV = svBUS.getMSSV(); AutoCompleteStringCollection AutoComp = new AutoCompleteStringCollection(); foreach (var sv in lstMSSV) { AutoComp.Add(sv); } this.txtNhapMSSV.AutoCompleteCustomSource = AutoComp; } }
public frmQLDiemThi() { dtBUS = new DIemThiBUS(); hpBUS = new HocPhanBUS(); svBUS = new SinhVienBUS(); InitializeComponent(); LoadData(); }
public frmQLHocPhi() { dtBUS = new DIemThiBUS(); svBUS = new SinhVienBUS(); InitializeComponent(); this.txtMSSV.AutoCompleteMode = AutoCompleteMode.Suggest; this.txtMSSV.AutoCompleteSource = AutoCompleteSource.CustomSource; var lstMSSV = svBUS.getMSSV(); AutoCompleteStringCollection AutoComp = new AutoCompleteStringCollection(); foreach (var sv in lstMSSV) { AutoComp.Add(sv.MaSV); } this.txtMSSV.AutoCompleteCustomSource = AutoComp; }
// Report Thong ke HocPhi public frmReport(string maSV, string tb, string tbTL, string soTCTL, string xepLoai) { InitializeComponent(); DIemThiBUS dtBUS = new DIemThiBUS(); ReportDataSource reportDataSource = new ReportDataSource(); reportDataSource.Name = "dsDiemThi_By_MSSV"; reportDataSource.Value = dtBUS.getDiemTheoMSSV(maSV); reportViewer1.LocalReport.DataSources.Add(reportDataSource); this.reportViewer1.LocalReport.ReportEmbeddedResource = "GUI.ReportViews.rpDSDiemThiTheoSinhVien.rdlc"; ReportParameter[] rp = new ReportParameter[4]; rp[0] = new ReportParameter("TB", tb); rp[1] = new ReportParameter("TBTL", tbTL); rp[2] = new ReportParameter("SoTCTL", soTCTL); rp[3] = new ReportParameter("XepLoai", xepLoai); reportViewer1.LocalReport.SetParameters(rp); }
public frmQLHocPhan() { mhBUS = new MonHocBUS(); hpBUS = new HocPhanBUS(); svBUS = new SinhVienBUS(); dtBUS = new DIemThiBUS(); gvBUS = new GiangVienBUS(); InitializeComponent(); LoadData(); this.txtMaSV.AutoCompleteMode = AutoCompleteMode.Suggest; this.txtMaSV.AutoCompleteSource = AutoCompleteSource.CustomSource; var lstMSSV = svBUS.getMSSV(); AutoCompleteStringCollection AutoComp = new AutoCompleteStringCollection(); foreach (var sv in lstMSSV) { AutoComp.Add(sv); } this.txtMaSV.AutoCompleteCustomSource = AutoComp; }