private void frmThemGiaoDichTK_Load(object sender, EventArgs e) { loaiGiaoDichOBindingSource.DataSource = new D_LOAIGIAODICH().DuLieu_NganHang_TheoLoai(0, true); DataLoaiKhach.DataSource = DuLieuTaoSan.LoaiKhachHang_NganHang(); _NganHang = new D_NGANHANG().All(); nganHangNguonBindingSource.DataSource = _NganHang; nhanVienOBindingSource.DataSource = new D_DAILY().NhanVien(); IntStringBindingSource.DataSource = DuLieuTaoSan.TrangThai_NganHang(); if (CTM.NVGiaoDich < 1) { CTM.NVGiaoDich = DuLieuTaoSan.NV.ID; } DuLieuTaoSan.Adic = XuLyDuLieu.ConvertClassToTable(this, CTM); XuLyGiaoDien.OpenForm(this); if (!CTM.TrangThaiID) { iTrangThaiID.EditValue = true; } }
public void LayDLKhac() { IntStringBindingSource.DataSource = DuLieuTaoSan.TrangThai_NganHang(); loaiGiaoDichOBindingSource.DataSource = new D_LOAIGIAODICH().DuLieu(); intStringBindingSource2.DataSource = DuLieuTaoSan.LoaiKhachHang_NganHang(); }