Esempio n. 1
0
 private void frmTienMat_Load(object sender, EventArgs e)
 {
     bdtpDen1.MinValue      = DateTime.Now.AddDays(-30);
     bdtpDen1.MaxValue      = DateTime.Now.AddDays(-1);
     bdtpDen12.EditValue    = DateTime.Now.AddDays(-1);
     ibtnThemMoi.Visibility = DuLieuTaoSan.Q.TienMatThemSua ? BarItemVisibility.Always : BarItemVisibility.Never;
     btnDel.Visibility      = DuLieuTaoSan.Q.TienMatXoa ? BarItemVisibility.Always : BarItemVisibility.Never;
     LayDLNganHang();
     TaiLaiDuLieu();
     LayDLKhac();
     intStringBindingSource2.DataSource = DuLieuTaoSan.LoaiKhachHang_NganHang();
     DSNhanVien.DataSource = new D_DAILY().NhanVien();
 }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public void LayDLKhac()
 {
     IntStringBindingSource.DataSource     = DuLieuTaoSan.TrangThai_NganHang();
     loaiGiaoDichOBindingSource.DataSource = new D_LOAIGIAODICH().DuLieu();
     intStringBindingSource2.DataSource    = DuLieuTaoSan.LoaiKhachHang_NganHang();
 }