private void HienThi() { Ldata = PhiBiz.getListPhi(); DataGridView.DataSource = Ldata.ToArray(); FixDataGirdView(); }
//------------------------------------------> private void HienThi() { switch (chose) { case CONFIG.ConstFrm.frmDMLoaiTaiSan: { Lloaitaisan = LoaiTaiSanBiz.getListLoaiTaiSan(); DataGridView.DataSource = Lloaitaisan.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMTaiSan: { Ltaisan = TaiSanBiz.getListTaiSan(); DataGridView.DataSource = Ltaisan.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMPhanNhomTaiSan: { Lphannhomtaisan = PhanNhomTaiSanBiz.getListPhanNhomTaiSan(); DataGridView.DataSource = Lphannhomtaisan.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMLyDoTangGiamTaiSan: { Llydotanggiamtaisan = LyDoTangGiamTaiSanBiz.getListLyDoTangGiamTaiSan(); DataGridView.DataSource = Llydotanggiamtaisan.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMBoPhanHachToan: { Lbophanhachtoan = BoPhanHachToanBiz.getListBoPhanHachToan(); DataGridView.DataSource = Lbophanhachtoan.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMPhanXuong: { Lphanxuong = PhanXuongBiz.getListPhanXuong(); DataGridView.DataSource = Lphanxuong.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMPhi: { Lphi = PhiBiz.getListPhi(); DataGridView.DataSource = Lphi.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMBoPhanSuDung: { Lbophansusung = BoPhanSuDungBiz.getListBoPhanSuDung(); DataGridView.DataSource = Lbophansusung.ToArray(); FixDataGirdView(); break; } case CONFIG.ConstFrm.frmDMNguonVon: { Lnguonvon = NguonVonBiz.getListNguonVon(); DataGridView.DataSource = Lnguonvon.ToArray(); FixDataGirdView(); break; } default: break; } }