public void LoadForm(string maDV, string maLop)
 {
     labelTenDV.Text = DichVuSucKhoeBLL.GetTenDV(maDV);
     this.maLop      = maLop;
     this.maDV       = maDV;
     LoadDataGridView();
 }
Пример #2
0
 public void LoadForm(string maDV)
 {
     this.maDV       = maDV;
     labelTenDV.Text = DichVuSucKhoeBLL.GetTenDV(maDV);
     if (maDV != "")
     {
         LoadDataGridView();
     }
 }
Пример #3
0
        private void FillValue()
        {
            ReportParameter[] key      = new ReportParameter[8];
            ReportParameter   Nam      = new ReportParameter("Nam", nam.ToString());
            ReportParameter   NgayIn   = new ReportParameter("NgayIn", DateTime.Today.ToShortTimeString());
            ReportParameter   TenTre   = new ReportParameter("TenTre", TreBLL.GetHoTen(maTre));
            ReportParameter   TenDV    = new ReportParameter("TenDV", DichVuSucKhoeBLL.GetTenDV(maDV));
            ReportParameter   NgayKham = new ReportParameter("NgayKham", DichVuSucKhoeBLL.GetDV(maDV).NgayKham.ToShortDateString());
            ReportParameter   CanNang  = new ReportParameter("CanNang", canNang);
            ReportParameter   ChieuCao = new ReportParameter("ChieuCao", chieuCao);
            ReportParameter   TheTrang = new ReportParameter("TinhTrang", theTrang);

            key[0] = NgayIn;
            key[1] = Nam;
            key[2] = TenTre;
            key[3] = TenDV;
            key[4] = NgayKham;
            key[5] = CanNang;
            key[6] = ChieuCao;
            key[7] = TheTrang;

            reportViewer1.LocalReport.SetParameters(key);
        }