Exemple #1
0
        private void btnThemKH_BaseMH_BH_Click(object sender, EventArgs e)
        {
            fThemKhachHang kh = new fThemKhachHang();

            kh.ShowDialog();
            leKH.Properties.DataSource   = BUS_KhachHang.LayKhachHang();
            leMaKH.Properties.DataSource = BUS_KhachHang.LayKhachHang();
        }
Exemple #2
0
        private void BtnSua_ItemClick(object sender, ItemClickEventArgs e)
        {
            int        rowIndex = gvMain.FocusedRowHandle;
            CKhachHang kh       = new CKhachHang
            {
                MaKH      = gvMain.GetRowCellValue(rowIndex, "Customer_ID").ToString(),
                TenKH     = gvMain.GetRowCellValue(rowIndex, "CustomerName").ToString(),
                KhuVuc    = gvMain.GetRowCellValue(rowIndex, "Customer_Group_ID").ToString(),
                LienHe    = gvMain.GetRowCellValue(rowIndex, "Contact").ToString(),
                DiaChi    = gvMain.GetRowCellValue(rowIndex, "CustomerAddress").ToString(),
                DienThoai = gvMain.GetRowCellValue(rowIndex, "Tel").ToString(),
                DiDong    = gvMain.GetRowCellValue(rowIndex, "Mobile").ToString(),
                Fax       = gvMain.GetRowCellValue(rowIndex, "Fax").ToString(),
                Email     = gvMain.GetRowCellValue(rowIndex, "Email").ToString(),
                Website   = gvMain.GetRowCellValue(rowIndex, "Website").ToString(),
                MaSoThue  = gvMain.GetRowCellValue(rowIndex, "Tax").ToString(),
                TaiKhoan  = gvMain.GetRowCellValue(rowIndex, "BankAccount").ToString(),
                NganHang  = gvMain.GetRowCellValue(rowIndex, "BankName").ToString(),
                ConQL     = bool.Parse(gvMain.GetRowCellValue(rowIndex, "Active").ToString())
            };
            fThemKhachHang sua = new fThemKhachHang(false, kh, LoadData);

            sua.ShowDialog();
        }
Exemple #3
0
        private void BtnThem_ItemClick(object sender, ItemClickEventArgs e)
        {
            fThemKhachHang kh = new fThemKhachHang(true, null, LoadData);

            kh.ShowDialog();
        }
Exemple #4
0
        private void btnKhachhang_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            fThemKhachHang kh = new fThemKhachHang();

            kh.ShowDialog();
        }
        private void btnNhaPhanPhoi_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            fThemKhachHang fThemKH = new fThemKhachHang();

            fThemKH.Show();
        }
        //void loadTable()
        //{

        //    string query = "exec sp_LoadStudentById @masv , @tensv";

        //    DataProvider provider = new DataProvider();

        //    dgvProduct.DataSource = provider.ExecuteQuery(query, new object[]{"sv001","anh vũ"});

        //}

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            fThemKhachHang fThemKH = new fThemKhachHang();

            fThemKH.Show();
        }