Beispiel #1
0
        private void frmTachBill_Load(object sender, EventArgs e)
        {
            //gridViewA.OptionsSelection.EnableAppearanceFocusedRow = false;// Ẩn dòng đầu...
            gridViewB.OptionsSelection.EnableAppearanceFocusedRow = false;// Ẩn dòng đầu...
            //gridViewC.OptionsSelection.EnableAppearanceFocusedRow = false;// Ẩn dòng đầu...

            lblTenBan.Text = DAO_GoiMon.TenBan(DAO_Setting.KiemtraGiaDien(frmDangNhap.NguoiDung.Idchinhanh) == 0 ? frmBanHang.IDBan : frmBanHang2.IDBan);
            DanhSachHangHoaA();
        }
Beispiel #2
0
        private void frmGoiMon_Load(object sender, EventArgs e)
        {
            listChiTietHoaDon.Clear();
            lblTenBan.Text = DAO_GoiMon.TenBan(IDBan);
            DataTable danhsachhanghoa = BUS_HangHoa.DSHangHoa_Full();

            cmbHangHoa.Properties.DataSource    = danhsachhanghoa;
            cmbHangHoa.Properties.ValueMember   = "ID";
            cmbHangHoa.Properties.DisplayMember = "TenHangHoa";
        }
Beispiel #3
0
        private void frmGoiMon_Load(object sender, EventArgs e)
        {
            int IDHoaDon = DAO_Setting.KiemtraGiaDien(frmDangNhap.NguoiDung.Idchinhanh) == 0 ? DAO_BanHang.IDHoaDon(frmBanHang.IDBan) : DAO_BanHang.IDHoaDon(frmBanHang2.IDBan);
            int IDBan    = DAO_Setting.KiemtraGiaDien(frmDangNhap.NguoiDung.Idchinhanh) == 0 ? frmBanHang.IDBan : frmBanHang2.IDBan;

            DanhSachMonAnBanChay();
            listChiTietHoaDon.Clear();
            lblTenBan.Text = DAO_GoiMon.TenBan(IDBan);
            //  DataTable danhsachtuchon = DAO_HangHoa.DanhSachTuChon();
        }
Beispiel #4
0
 private void frmTinhGio_Load(object sender, EventArgs e)
 {
     lblTenBan.Text = DAO_GoiMon.TenBan(IDBan);
 }