public List <NhanVienBan> GetAll() { context = new QuanLyHoaDonContext(); try { return(context.NhanVienBans.Where(item => item.DaXoa == false).ToList()); } catch { return(null); } }
public List <DonViMuaHang> GetAll() { context = new QuanLyHoaDonContext(); error = null; try { return(context.DonViMuaHangs.ToList()); } catch (Exception ex) { error = ex; return(null); } }
public List <HangHoa> getAllHangHoa() { errorHHBUS = null; List <HangHoa> hh = null; hhDAO = new QuanLyHoaDonContext(); try { hh = hhDAO.HangHoas.Where(x => x.DaXoa == false).ToList(); } catch (System.Exception ex) { errorHHBUS = ex; } return(hh); }
public FormExampleGrid() { InitializeComponent(); db = new QuanLyHoaDonContext(); }
public CTHoaDonBUS() { cthdDAO = new QuanLyHoaDonContext(); }
public NhanVienBanBUS() { nvbDAO = new QuanLyHoaDonContext(); }
public NguoiMuaBUS() { nmDAO = new QuanLyHoaDonContext(); }
public DonViMuaHangBUS() { dvmhDAO = new QuanLyHoaDonContext(); }
public HangHoaBUS() { hhDAO = new QuanLyHoaDonContext(); }
public F1() { InitializeComponent(); db = new QuanLyHoaDonContext(); }
public HinhThucThanhToanBUS() { htttDAO = new QuanLyHoaDonContext(); }
public HoaDonBUS() { hdDAO = new QuanLyHoaDonContext(); }
public frmPrintBill() { InitializeComponent(); hdBUS = new HoaDonBUS(); db = new QuanLyHoaDonContext(); }