Esempio n. 1
0
        private void sửaThôngTinToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FThemSinhVien frmSuaThongTin = new FThemSinhVien(strMaSV);

            frmSuaThongTin.StartPosition = FormStartPosition.CenterParent;
            frmSuaThongTin.ShowDialog();

            lblTenSV.Text = CSinhVien_BLL.loadTenSinhVien(strMaSV);
            FMainForm_SizeChanged(this, new EventArgs());
        }
        //MonHoc
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            strMaMon = comboBox1.SelectedValue.ToString();
            ReportParameter rparameter = new ReportParameter("HoTenSV", CSinhVien_BLL.loadTenSinhVien(strMaSV));

            reportViewerDiem.LocalReport.SetParameters(rparameter);
            //  = new ReportDataSource("dsDiem", CDiemSo_BLL.loadDSDiemMon(strMaSV, strMaMon, strMaHK));
            reportDiemBindingSource.DataSource = CDiemSo_BLL.loadDSDiemMon(strMaSV, strMaMon, strMaHK);
            //this.reportViewerDiem.LocalReport.DataSources.Add(reportDiemBindingSource);
            this.reportViewerDiem.RefreshReport();
        }
Esempio n. 3
0
        private void tmiDangNhap_Click(object sender, EventArgs e)
        {
            bool bCheck = CAccountSinhVien_BLL.checkAccount(ttxtTaiKhoan.Text, ttxtMatKhau.Text);

            if (bCheck == false)
            {
                MessageBox.Show("Đăng nhập thất bại.");
                bDangNhapThanhCong = false;
                return;
            }
            frmEmpty.Dispose();
            try
            {
                this.ActiveMdiChild.Close();
            }
            catch (Exception) {}

            bDangNhapThanhCong = true;
            this.strMaSV       = ttxtTaiKhoan.Text;
            //Tim ten sinh vien
            lblTenSV.Text = CSinhVien_BLL.loadTenSinhVien(strMaSV);

            lblTenSV.Location = new Point(this.Size.Width - 75 - lblTenSV.Width, lblTenSV.Location.Y);

            frmTongQuan = new FTongQuan(strMaSV);
            frmTongQuan.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            frmTongQuan.WindowState     = FormWindowState.Maximized;
            frmTongQuan.MdiParent       = this;
            frmTongQuan.Show();


            tmiDangNhap.Visible             = false;
            đăngKýToolStripMenuItem.Visible = false;

            ttxtMatKhau.Visible         = false;
            ttxtTaiKhoan.Visible        = false;
            tmiDangXuatTongQuan.Visible = true;
            lblTenSV.Visible            = true;
        }