Esempio n. 1
0
        private void BtnChonChuHo_Click(object sender, EventArgs e)
        {
            if (congDanSelect == null)
            {
                return;
            }

            congDanSelect.SetChuHo(hoKhau);
            tbChuSo.Text = congDanSelect.HoTen;
        }
Esempio n. 2
0
        public bool Update(CongDan cd)
        {
            bool result = CongDanDAL.GetInstance().Update(cd);

            if (result)
            {
                HoKhau hk = HoKhauDAL.GetInstance().ReadByMaChuHo(cd.Ma);

                if (hk != null)
                {
                    cd.SetChuHo(hk);
                    HoKhauDAL.GetInstance().Update(hk);
                }
            }

            return(result);
        }