Ejemplo n.º 1
0
        //CHỌN CHỨC NĂNG TRANG CHỦ
        private void ChonChucNang_TrangChu(object sender, EventArgs e)
        {
            TrangChuUPresentation wpf = (TrangChuUPresentation)sender;
            int _ChucNang             = wpf._ChucNang;

            switch (_ChucNang)
            {
            case 1:
                BanHangUPresentation _bh = new BanHangUPresentation();
                _bh._NhanVien = _NhanVien;
                gdContentMain.Children.Clear();
                gdContentMain.Children.Add(_bh);

                lbTitle.Content = "LẬP HÓA ĐƠN BÁN HÀNG";
                break;

            case 2:
                NhapHangTraUPresentation _nht = new NhapHangTraUPresentation();
                gdContentMain.Children.Clear();
                gdContentMain.Children.Add(_nht);

                lbTitle.Content = "NHẬP HÀNG TRẢ";
                break;

            case 3:
                NhapMuaUPresentation _nm = new NhapMuaUPresentation();
                gdContentMain.Children.Clear();
                gdContentMain.Children.Add(_nm);

                lbTitle.Content = "NHẬP MUA";
                break;

            case 4:
                TaoMaVachUPresentation _tmv = new TaoMaVachUPresentation();
                gdContentMain.Children.Clear();
                gdContentMain.Children.Add(_tmv);

                lbTitle.Content = "TẠO MÃ VẠCH SẢN PHẨM";
                break;

            case 5:
                KhachHangUPresentation _kh = new KhachHangUPresentation();
                gdContentMain.Children.Clear();
                gdContentMain.Children.Add(_kh);

                lbTitle.Content = "QUẢN LÝ KHÁCH HÀNG";
                break;

            case 6:
                SanPhamUPresentation _sp = new SanPhamUPresentation();
                gdContentMain.Children.Clear();
                gdContentMain.Children.Add(_sp);

                lbTitle.Content = "QUẢN LÝ SẢN PHẨM";
                break;
            }
            lbTitle.Visibility = System.Windows.Visibility.Visible;
            btnBack.Visibility = System.Windows.Visibility.Visible;
            _menu = 1;
        }
Ejemplo n.º 2
0
        private void btnBanHang_Click(object sender, RoutedEventArgs e)
        {
            frm           = new BanHangUPresentation();
            frm._NhanVien = _NhanVien;
            gdContentMain.Children.Clear();
            gdContentMain.Children.Add(frm);

            FocusButon(2);
            lbTitle.Visibility = System.Windows.Visibility.Visible;
            lbTitle.Content    = "LẬP HÓA ĐƠN BÁN HÀNG";
            btnBack.Visibility = System.Windows.Visibility.Collapsed;
        }
Ejemplo n.º 3
0
        //Phương thức tiếp tục mua
        private void TiepTucMua(object sender, EventArgs e)
        {
            //Lấy danh sách hàng tiếp tục mua
            NhapHangTraUPresentation wpf_nhapHangTra  = (NhapHangTraUPresentation)sender;
            List <SanPhamPublic>     _LstSpTiepTucMua = wpf_nhapHangTra._lstSpTiepTucMua;
            HoaDonPublic             _hoaDonCu        = wpf_nhapHangTra._hoaDonMoi;

            BanHangUPresentation wpf_bh = new BanHangUPresentation();

            wpf_bh._hoaDonCu        = _hoaDonCu;
            wpf_bh._lstSpTiepTucMua = _LstSpTiepTucMua;

            gdContentMain.Children.Clear();
            gdContentMain.Children.Add(wpf_bh);
        }