Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 3
0
        private void BtnThem_ItemClick(object sender, ItemClickEventArgs e)
        {
            fThemKhachHang kh = new fThemKhachHang(true, null, LoadData);

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

            kh.ShowDialog();
        }