Пример #1
0
        private void xlSua()
        {
            editKhachHang.MaKH      = txtMa.Text;
            editKhachHang.TenKH     = txtTen.Text;
            editKhachHang.DiaChi    = txtDiaChi.Text;
            editKhachHang.KhuVuc    = leKhuVuc.EditValue.ToString();
            editKhachHang.MaSoThue  = txtMaSoThue.Text;
            editKhachHang.DienThoai = txtDienThoai.Text;
            editKhachHang.Email     = txtEmail.Text;
            editKhachHang.TaiKhoan  = txtTaiKhoan.Text;
            editKhachHang.GioiHanNo = (calcGioiHanNo.Text == ""? 0 : float.Parse(calcGioiHanNo.Text));
            editKhachHang.ChietKhau = (calcChietKhau.Text == "" ? 0 : float.Parse(calcChietKhau.Text));
            editKhachHang.LienHe    = txtNguoiLienHe.Text;
            editKhachHang.Fax       = txtFax.Text;
            editKhachHang.DiDong    = txtMobile.Text;
            editKhachHang.Website   = txtWebsite.Text;
            editKhachHang.NganHang  = txtNganHang.Text;
            editKhachHang.NickYM    = txtNickYahoo.Text;
            editKhachHang.NickSky   = txtNickSkype.Text;
            editKhachHang.ConQL     = checkConQL.Checked;
            editKhachHang.LoaiKH    = bool.Parse(radioLoaiKH.EditValue.ToString());
            BUS_KhachHang.SuaKH(editKhachHang);
            sendKH();

            Action.Module     = "Khách Hàng";
            Action.ActionName = "Sửa";
            Action.Reference  = txtMa.Text;
            Action.LuuThongTin();

            this.Close();
        }