示例#1
0
        private void btThemNV_Click(object sender, EventArgs e)
        {
            fmCapNhatKhachHang fm = new fmCapNhatKhachHang();

            fm.ShowDialog();
            load_dskh();
        }
示例#2
0
        private void btSuaKH_Click(object sender, EventArgs e)
        {
            string ma; string ten; string sdt; string mail; string gc; float sotienno;

            ma       = gView_DSKH.GetRowCellValue(gView_DSKH.FocusedRowHandle, "Mã khách hàng").ToString();
            ten      = gView_DSKH.GetRowCellValue(gView_DSKH.FocusedRowHandle, "Tên khách hàng").ToString();
            sdt      = gView_DSKH.GetRowCellValue(gView_DSKH.FocusedRowHandle, "Số điện thoại").ToString();
            mail     = gView_DSKH.GetRowCellValue(gView_DSKH.FocusedRowHandle, "Email").ToString();
            sotienno = float.Parse(gView_DSKH.GetRowCellValue(gView_DSKH.FocusedRowHandle, "Số tiền nợ").ToString());
            gc       = gView_DSKH.GetRowCellValue(gView_DSKH.FocusedRowHandle, "Ghi chú").ToString();


            fmCapNhatKhachHang fm = new fmCapNhatKhachHang(ma, ten, sdt, mail, sotienno, gc);

            fm.ShowDialog();
            load_dskh();
        }