Beispiel #1
0
        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;
        }
Beispiel #4
0
        // 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);
        }
Beispiel #5
0
        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;
        }