示例#1
0
        private void btnDanhsachNhanvien_Click(object sender, EventArgs e)
        {
            NhanvienBUL cls = new NhanvienBUL();

            Report.frmBaoBieu.dt = cls.DanhsachNhanvien();
            Nhanvienreport obj = new Nhanvienreport();

            obj.SetDataSource(dt);
            crystalReportViewer1.ReportSource = obj;
            crystalReportViewer1.Refresh();
        }
示例#2
0
        private void frmNhanvien_Load(object sender, EventArgs e)
        {
            NhanvienBUL cls = new NhanvienBUL();

            dataGridView1.DataSource = cls.DanhsachNhanvien();
            dataGridView1.AutoResizeColumns();
            for (int i = 0; i < 7; i++)
            {
                chuatextbox[i].Enabled = false;
            }

            dtpNgsinh.Enabled = false;
            dtpNgvl.Enabled   = false;
            btnOK.Enabled     = false;
            btnCancel.Enabled = false;
        }