예제 #1
0
 private void frmHoaDon_Load(object sender, EventArgs e)
 {
     tuyenBayOBindingSource.DataSource  = new D_TUYENBAY().DuLieu();
     DSLoaiKhach.DataSource             = DuLieuTaoSan.LoaiKhachHang_GiaoDich();
     khachHangOBindingSource.DataSource = new D_DAILY().All();
     nCCOBindingSource.DataSource       = new D_NHACUNGCAP().DuLieu();
     DuLieu();
 }
예제 #2
0
 private void frmTongHop_Load(object sender, EventArgs e)
 {
     loaiGiaoDichOBindingSource.DataSource = new D_LOAIGIAODICH().DuLieu_CongNo_TheoLoai(0);
     DSLoaiKhach.DataSource = DuLieuTaoSan.LoaiKhachHang_GiaoDich();
     lstDaiLy = new D_DAILY().All();
     daiLyOBindingSource.DataSource = lstDaiLy;
     btn2.Visibility = DuLieuTaoSan.Q.Lv2KhacAdmin ? BarItemVisibility.Always : BarItemVisibility.Never;
     btn4.Visibility = DuLieuTaoSan.Q.KhacThemSua ? BarItemVisibility.Always : BarItemVisibility.Never;
     NapDatCho();
 }
예제 #3
0
 private void frmHoaDonThem_Load(object sender, EventArgs e)
 {
     daiLyDs = new D_DAILY().All();
     daiLyOBindingSource1.DataSource   = daiLyDs;
     nCCOBindingSource.DataSource      = new D_NHACUNGCAP().DuLieu();
     tuyenBayOBindingSource.DataSource = new D_TUYENBAY().DuLieu();
     bindingSource1.DataSource         = daiLyD.NhanVien();
     IntStringBindingSource.DataSource = DuLieuTaoSan.LoaiKhachHang_GiaoDich(false);
     hoaDonOBindingSource1.DataSource  = _HoaDonD.LayThongTinMST();
     hangBayOBindingSource.DataSource  = new D_HANGBAY().DuLieu();
     XuLyGiaoDien.OpenForm(this);
     DuLieuTaoSan.Adic = XuLyDuLieu.ConvertClassToTable(this, _HoaDonO);
     daiLyOBindingSource.DataSource = daiLyDs.Where(w => w.LoaiKhachHang.Equals((int)iLoaiKhachHang.EditValue));
     bandedGridView1.BestFitColumns();
 }
예제 #4
0
 private void frmTongHopThem_Load(object sender, EventArgs e)
 {
     daiLyOs           = new D_DAILY().All();
     DuLieuTaoSan.Adic = XuLyDuLieu.ConvertClassToTable(this, Gd);
     loaiKhachOBindingSource.DataSource     = DuLieuTaoSan.LoaiKhachHang_GiaoDich().Where(w => w.ID.Equals(1) || w.ID.Equals(2));
     loaiGiaoDichOBindingSource1.DataSource = DuLieuTaoSan.LoaiGiaoDich_Ve(false);
     XuLyGiaoDien.OpenForm(this);
     iTenKhach.Text = "Thời gian: " + DateTime.Now.ToString("HH:mm");
     if ((new List <int>()
     {
         7, 11, 12
     }).Contains(Gd.LoaiGiaoDich))
     {
         iGiaThu.Value  = Gd.GiaHoan;
         iTenKhach.Text = Gd.TenKhach;
     }
 }