Exemplo n.º 1
0
        private void btnIn_Click(object sender, EventArgs e)
        {
            Connection cnn  = Access.CnnList[cbbChiNhanh.SelectedIndex];
            string     maCN = cnn.MaCN;

            string[] param = { maCN };

            Report    rpt = new Report();
            DataTable x   = rpt.Load_REPORT_DS_NHANVIEN_THEOMA(param);

            REPORT.rptDanhSachNhanVien report = new REPORT.rptDanhSachNhanVien();
            report.DataSource = x;
            report.DataMember = x.TableName;
            report.ShowPreviewDialog();
        }
Exemplo n.º 2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            Connection cnn  = Access.CnnList[cboxCHINHANH.SelectedIndex];
            string     MACN = cnn.MaCN;

            string[] param = { MACN };

            Report rpt = new Report();

            rp = rpt.Load_REPORT_DS_NHANVIEN_THEOMA(param);


            REPORT.rptDanhSachNhanVien report = new REPORT.rptDanhSachNhanVien();
            report.DataSource = rp;
            report.ShowPreviewDialog();
        }