예제 #1
0
 private void txtTenCha_OnSelected(object sender, EventArgs e)
 {
     if (txtTenCha.MaGiaoDan > 0)
     {
         Dictionary <object, object> dicChaMe = GxGiaDinhList.GetTenVoChong(txtTenCha.MaGiaoDan, GxConstants.VAITRO_CHONG);
         txtTenMe.Text = dicChaMe[GxConstants.VAITRO_VO].ToString();
         maGiaDinhMoi  = (int)dicChaMe[GiaDinhConst.MaGiaDinh];
         if (maGiaDinhMoi > -1)
         {
             getDiaChiGiaDinh();
         }
     }
 }
예제 #2
0
        private bool isValidGiaDinh(int maGiaDinh, int maGiaoDan)
        {
            DataRow row = GxGiaDinhList.GetRowGiaDinhVoChong(maGiaoDan);

            if (row != null)
            {
                if ((int)row[GiaDinhConst.MaGiaDinh] == maGiaDinh)
                {
                    MessageBox.Show("Giáo dân được chọn đã là [vợ] hoặc [chồng] trong gia đình bạn nhập. Xin vui lòng xem lại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return(false);
                }
            }
            return(true);
        }
예제 #3
0
        public static void GetDataGioiThieuHonPhoi(int maGiaoDan)
        {
            try
            {
                ds = new DataSet();
                //Get Giaoxu info
                DataTable tblGiaoXu = Memory.GetData(SqlConstants.SELECT_GIAOXU);
                if (Memory.ShowError())
                {
                    return;
                }
                if (tblGiaoXu.Rows.Count == 0)
                {
                    MessageBox.Show("Không tìm thấy thông tin giáo xứ. Vui lòng nhập thông tin giáo xứ trước khi sử dụng chức năng này.");
                    return;
                }
                tblGiaoXu.Columns.Add(ReportGiaoDanConst.TenLinhMucGui);
                //get linh muc info
                DataTable tblLinhMuc = Memory.GetData(SqlConstants.SELECT_LINHMUC_LIST + " AND DenNgay IS NULL ");
                if (!Memory.ShowError() && tblLinhMuc != null && tblLinhMuc.Rows.Count > 0)
                {
                    tblGiaoXu.Rows[0][ReportGiaoDanConst.TenLinhMucGui] = tblLinhMuc.Rows[0][LinhMucConst.TenThanh].ToString() + " " + tblLinhMuc.Rows[0][LinhMucConst.HoTen].ToString();
                }
                tblGiaoXu.TableName = GiaoXuConst.TableName;
                ds.Tables.Add(tblGiaoXu);

                //get giao dan info
                DataTable tblTmp = Memory.GetData(SqlConstants.SELECT_GIAODAN_LIST_CO_GIAOHO + " AND MaGiaoDan=?", new object[] { maGiaoDan });
                if (Memory.ShowError() || tblTmp == null || tblTmp.Rows.Count == 0)
                {
                    MessageBox.Show("Rất tiếc! Có lỗi không mong muốn xảy ra.\r\nVui lòng liên hệ với người chịu trách nhiệm phần mềm", "Lỗi không tìm thấy dữ liệu giáo dân", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                DataRow row = tblTmp.Rows[0];

                DataTable tblGiaoDan = tblTmp;
                Dictionary <object, object> dicChaMe = GxGiaDinhList.GetTenChaMe((int)row[GiaoDanConst.MaGiaoDan], row[GiaoDanConst.HoTenCha], row[GiaoDanConst.HoTenMe]);
                row[GiaoDanConst.HoTenCha] = dicChaMe[GxConstants.VAITRO_CHONG];
                row[GiaoDanConst.HoTenMe]  = dicChaMe[GxConstants.VAITRO_VO];

                tblGiaoDan.TableName = GiaoDanConst.TableName;
                ds.Tables.Add(tblGiaoDan);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Lỗi Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #4
0
 public void XuatChungNhanHonPhoi()
 {
     if (this.SelectedItems.Count > 1)
     {
         foreach (Janus.Windows.GridEX.GridEXSelectedItem item in this.SelectedItems)
         {
             GxGiaDinhList.ChungNhanHonPhoi((int)(item.GetRow().DataRow as DataRowView).Row[HonPhoiConst.MaHonPhoi], false);
             if (Memory.ShowError())
             {
                 return;
             }
         }
     }
     else if (this.CurrentRow != null && (this.CurrentRow.DataRow is DataRowView))
     {
         GxGiaDinhList.ChungNhanHonPhoi((int)(this.CurrentRow.DataRow as DataRowView).Row[HonPhoiConst.MaHonPhoi], false);
     }
 }
예제 #5
0
        private void cbPhai_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!isLoaded)
            {
                return;
            }
            DataRow row = GxGiaDinhList.GetRowGiaDinhVoChong(id);

            if (row != null)
            {
                isLoaded = false;
                Memory.ShowError("Giáo dân này đã được nhập là vợ/chồng trong một gia đình hoặc hôn phối. Không thể thay đổi giới tính cho giáo dân này.\r\n" +
                                 "Để thay đổi giới tính, bạn phải tìm tất cả các gia đình hoặc hôn phối mà giáo dân này là vợ/chồng và bỏ đi quan hệ đó trước");
                if (cbPhai.SelectedIndex == 0)
                {
                    cbPhai.SelectedIndex = 1;
                }
                else
                {
                    cbPhai.SelectedIndex = 0;
                }
                isLoaded = true;
            }
        }
예제 #6
0
        public bool GetDataRaoHonPhoi(DataRow row1, DataRow row2)
        {
            try
            {
                DataObj = new DataSet();
                //Get Giaoxu info
                //Get Giaoxu info
                DataTable tblGiaoXu = Memory.GetData(SqlConstants.SELECT_GIAOXU);
                if (Memory.ShowError())
                {
                    return(false);
                }
                if (tblGiaoXu.Rows.Count == 0)
                {
                    MessageBox.Show("Không tìm thấy thông tin giáo xứ. Vui lòng nhập thông tin giáo xứ trước khi sử dụng chức năng này.",
                                    "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return(false);
                }
                tblGiaoXu.TableName = GiaoXuConst.TableName;
                DataObj.Tables.Add(tblGiaoXu);

                //get main report data
                DataTable tblReportRaoHonPhoi = new DataTable(ReportRaoHonPhoiConst.TableName);
                //Add columns
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.HoTen1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.HoTen2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NgaySinh1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NgaySinh2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NgayThangNam);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NoiSinh1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NoiSinh2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenCha1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenCha2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoPhan1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoPhan2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoPhanTruoc1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoPhanTruoc2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoXu1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoXu2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoXuTruoc1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenGiaoXuTruoc2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenLinhMucGui);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenLinhMucNhan);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.GiaoXuNhan);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenMe1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.TenMe2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NgayRT1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NoiRT1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.SoRT1);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NgayRT2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.NoiRT2);
                tblReportRaoHonPhoi.Columns.Add(ReportRaoHonPhoiConst.SoRT2);
                //Assign value
                DataRow newRow = tblReportRaoHonPhoi.NewRow();
                newRow[ReportRaoHonPhoiConst.HoTen1]    = string.Format("{0} {1}", row1[GiaoDanConst.TenThanh], row1[GiaoDanConst.HoTen]);
                newRow[ReportRaoHonPhoiConst.HoTen2]    = string.Format("{0} {1}", row2[GiaoDanConst.TenThanh], row2[GiaoDanConst.HoTen]);
                newRow[ReportRaoHonPhoiConst.NgaySinh1] = row1[GiaoDanConst.NgaySinh];
                newRow[ReportRaoHonPhoiConst.NgaySinh2] = row2[GiaoDanConst.NgaySinh];
                if (Memory.GetConfig(GxConstants.CF_LANGUAGE) == GxConstants.LANG_EN)
                {
                    newRow[ReportRaoHonPhoiConst.NgayThangNam] = Memory.GetReportNgayThangNamEn();
                }
                else
                {
                    newRow[ReportRaoHonPhoiConst.NgayThangNam] = Memory.GetReportNgayThangNamVn();
                }
                newRow[ReportRaoHonPhoiConst.NoiSinh1] = row1[GiaoDanConst.NoiSinh];
                newRow[ReportRaoHonPhoiConst.NoiSinh2] = row2[GiaoDanConst.NoiSinh];

                newRow[ReportRaoHonPhoiConst.NgayRT1] = row1[GiaoDanConst.NgayRuaToi];
                newRow[ReportRaoHonPhoiConst.NoiRT1]  = row1[GiaoDanConst.NoiRuaToi];
                newRow[ReportRaoHonPhoiConst.SoRT1]   = row1[GiaoDanConst.SoRuaToi];

                newRow[ReportRaoHonPhoiConst.NgayRT2] = row2[GiaoDanConst.NgayRuaToi];
                newRow[ReportRaoHonPhoiConst.NoiRT2]  = row2[GiaoDanConst.NoiRuaToi];
                newRow[ReportRaoHonPhoiConst.SoRT2]   = row2[GiaoDanConst.SoRuaToi];

                newRow[ReportRaoHonPhoiConst.TenGiaoPhan1]      = txtGiaoPhan1.Text;
                newRow[ReportRaoHonPhoiConst.TenGiaoPhan2]      = txtGiaoPhan2.Text;
                newRow[ReportRaoHonPhoiConst.TenGiaoPhanTruoc1] = txtGiaoPhanTruoc1.Text;
                newRow[ReportRaoHonPhoiConst.TenGiaoPhanTruoc2] = txtGiaoPhanTruoc2.Text;
                newRow[ReportRaoHonPhoiConst.TenGiaoXu1]        = txtGiaoXu1.Text;
                newRow[ReportRaoHonPhoiConst.TenGiaoXu2]        = txtGiaoXu2.Text;
                newRow[ReportRaoHonPhoiConst.TenGiaoXuTruoc1]   = txtGiaoXuTruoc1.Text;
                newRow[ReportRaoHonPhoiConst.TenGiaoXuTruoc2]   = txtGiaoXuTruoc2.Text;
                newRow[ReportRaoHonPhoiConst.TenLinhMucGui]     = cbChaGui.Text;
                newRow[ReportRaoHonPhoiConst.TenLinhMucNhan]    = txtChaNhan.Text;
                newRow[ReportRaoHonPhoiConst.GiaoXuNhan]        = txtGiaoXuNhan.Text;

                Dictionary <object, object> dicChaMe = GxGiaDinhList.GetTenChaMe((int)row1[GiaoDanConst.MaGiaoDan], row1[GiaoDanConst.HoTenCha], row1[GiaoDanConst.HoTenMe]);
                newRow[ReportRaoHonPhoiConst.TenCha1] = dicChaMe[GxConstants.VAITRO_CHONG];
                newRow[ReportRaoHonPhoiConst.TenMe1]  = dicChaMe[GxConstants.VAITRO_VO];

                dicChaMe = GxGiaDinhList.GetTenChaMe((int)row2[GiaoDanConst.MaGiaoDan], row2[GiaoDanConst.HoTenCha], row2[GiaoDanConst.HoTenMe]);
                newRow[ReportRaoHonPhoiConst.TenCha2] = dicChaMe[GxConstants.VAITRO_CHONG];
                newRow[ReportRaoHonPhoiConst.TenMe2]  = dicChaMe[GxConstants.VAITRO_VO];

                tblReportRaoHonPhoi.Rows.Add(newRow);
                DataObj.Tables.Add(tblReportRaoHonPhoi);
                return(true);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Lỗi Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }
        }
예제 #7
0
        public static void GetDataChungNhanBiTich(int maGiaoDan)
        {
            try
            {
                ds = new DataSet();
                //Get Giaoxu info
                DataTable tblGiaoXu = Memory.GetData(SqlConstants.SELECT_GIAOXU);
                if (Memory.ShowError())
                {
                    return;
                }
                if (tblGiaoXu.Rows.Count == 0)
                {
                    MessageBox.Show("Không tìm thấy thông tin giáo xứ. Vui lòng nhập thông tin giáo xứ trước khi sử dụng chức năng này.");
                    return;
                }
                tblGiaoXu.Columns.Add(ReportGiaoDanConst.TenLinhMucGui);
                //get linh muc info
                DataTable tblLinhMuc = Memory.GetData(SqlConstants.SELECT_LINHMUC_LIST + " AND ChucVu='Chánh xứ' AND DenNgay IS NULL ");
                if (!Memory.ShowError() && tblLinhMuc != null && tblLinhMuc.Rows.Count > 0)
                {
                    tblGiaoXu.Rows[0][ReportGiaoDanConst.TenLinhMucGui] = tblLinhMuc.Rows[0][LinhMucConst.TenThanh].ToString() + " " + tblLinhMuc.Rows[0][LinhMucConst.HoTen].ToString();
                }
                tblGiaoXu.TableName = GiaoXuConst.TableName;
                ds.Tables.Add(tblGiaoXu);

                //get giao dan info
                DataTable tblTmp = Memory.GetData(SqlConstants.SELECT_GIAODAN_LIST_CO_GIAOHO + " AND MaGiaoDan=?", new object[] { maGiaoDan });
                if (Memory.ShowError() || tblTmp == null || tblTmp.Rows.Count == 0)
                {
                    MessageBox.Show("Rất tiếc! Có lỗi không mong muốn xảy ra.\r\nVui lòng liên hệ với người chịu trách nhiệm phần mềm", "Lỗi không tìm thấy dữ liệu giáo dân", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                tblTmp.Columns.Add("TenGiaoHoCha", typeof(string));
                DataRow row = tblTmp.Rows[0];

                //select GiaoHo, GiaoXom
                if (!Memory.IsNullOrEmpty(row[GiaoHoConst.MaGiaoHoCha])) //if is GiaoXom, them Select GiaoHo
                {
                    DataTable tblGiaoHo = Memory.GetData("SELECT * FROM GiaoHo WHERE MaGiaoHo=" + row[GiaoHoConst.MaGiaoHoCha].ToString());
                    if (!Memory.ShowError() && tblGiaoHo != null && tblGiaoHo.Rows.Count != 0)
                    {
                        row["TenGiaoHoCha"] = tblGiaoHo.Rows[0]["TenGiaoHo"].ToString();
                    }
                }
                else
                {
                    row["TenGiaoHoCha"] = row[GiaoHoConst.TenGiaoHo];
                }

                DataTable tblGiaoDan = tblTmp;
                Dictionary <object, object> dicChaMe = GxGiaDinhList.GetTenChaMe((int)row[GiaoDanConst.MaGiaoDan], row[GiaoDanConst.HoTenCha], row[GiaoDanConst.HoTenMe]);
                row[GiaoDanConst.HoTenCha] = dicChaMe[GxConstants.VAITRO_CHONG];
                row[GiaoDanConst.HoTenMe]  = dicChaMe[GxConstants.VAITRO_VO];

                tblGiaoDan.TableName = GiaoDanConst.TableName;
                ds.Tables.Add(tblGiaoDan);

                //get hon phoi
                if ((bool)row[GiaoDanConst.DaCoGiaDinh])
                {
                    DataTable tblHonPhoi = Memory.GetData(SqlConstants.SELECT_HONPHOI_THEO_MAGIAODAN + " AND GiaoDanHonPhoi_1.MaGiaoDan <> ?  ORDER BY HP.NgayHonPhoi DESC", maGiaoDan, maGiaoDan);
                    if (tblHonPhoi != null && tblHonPhoi.Rows.Count > 0)
                    {
                        tblHonPhoi.TableName = HonPhoiConst.TableName;
                        ds.Tables.Add(tblHonPhoi);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Lỗi Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #8
0
 private void gxCommand1_Button1Click(object sender, EventArgs e)
 {
     GxGiaDinhList.ChungNhanHonPhoi(MaHonPhoi, false);
 }
예제 #9
0
        public void AssignControlData(DataRow row)
        {
            id = (int)row[GiaoDanConst.MaGiaoDan];
            txtMaGiaoDan.Text         = id.ToString();
            txtLinhMucRuaToi.Text     = row[GiaoDanConst.ChaRuaToi].ToString();
            txtLinhMucRuocLe.Text     = row[GiaoDanConst.ChaRuocLe].ToString();
            txtLinhMucThemSuc.Text    = row[GiaoDanConst.ChaThemSuc].ToString();
            chkConHoc.Checked         = (bool)row[GiaoDanConst.ConHoc];
            txtHoTen.Text             = row[GiaoDanConst.HoTen].ToString();
            dtNgayRuaToi.Value        = row[GiaoDanConst.NgayRuaToi];
            dtNgayRuocLe.Value        = row[GiaoDanConst.NgayRuocLe];
            dtNgaySinh.Value          = row[GiaoDanConst.NgaySinh];
            dtNgayThemSuc.Value       = row[GiaoDanConst.NgayThemSuc];
            dtNgayQuaDoi.Value        = row[GiaoDanConst.NgayQuaDoi];
            cbNgheNghiep.SelectedText = row[GiaoDanConst.NgheNghiep].ToString();
            txtNguoiDoDauRuaToi.Text  = row[GiaoDanConst.NguoiDoDauRuaToi].ToString();
            txtNguoiDoDauThemSuc.Text = row[GiaoDanConst.NguoiDoDauThemSuc].ToString();
            txtNoiRuaToi.Text         = row[GiaoDanConst.NoiRuaToi].ToString();
            txtNoiRuocLe.Text         = row[GiaoDanConst.NoiRuocLe].ToString();
            txtNoiSinh.Text           = row[GiaoDanConst.NoiSinh].ToString();
            txtNoiThemSuc.Text        = row[GiaoDanConst.NoiThemSuc].ToString();
            cbPhai.SelectedText       = row[GiaoDanConst.Phai].ToString();
            chkQuaDoi.Checked         = (bool)row[GiaoDanConst.QuaDoi];
            txtTenThanh.Text          = row[GiaoDanConst.TenThanh].ToString();
            cbVanHoa.SelectedText     = row[GiaoDanConst.TrinhDoVanHoa].ToString();
            cbGiaoHo.SelectedValue    = row[GiaoDanConst.MaGiaoHo];
            txtDienThoai.Text         = row[GiaoDanConst.DienThoai].ToString();
            txtEmail.Text             = row[GiaoDanConst.Email].ToString();
            txtSoRuaToi.Text          = row[GiaoDanConst.SoRuaToi].ToString();
            txtSoRuocLe.Text          = row[GiaoDanConst.SoRuocLe].ToString();
            txtSoThemSuc.Text         = row[GiaoDanConst.SoThemSuc].ToString();
            txtGhiChu.Text            = row[GiaoDanConst.GhiChu].ToString();

            txtTenCha.Text         = row[GiaoDanConst.HoTenCha].ToString();
            txtTenMe.Text          = row[GiaoDanConst.HoTenMe].ToString();
            chkDaCoGiaDinh.Checked = (bool)row[GiaoDanConst.DaCoGiaDinh];
            chkGiaoDanAo.Checked   = (bool)row[GiaoDanConst.GiaoDanAo];
            chkTanTong.Checked     = (bool)row[GiaoDanConst.TanTong];

            if (row[ChuyenXuConst.LoaiChuyen] != DBNull.Value)
            {
                cbChuyenXu.SelectedValue = int.Parse(row[ChuyenXuConst.LoaiChuyen].ToString());
            }
            if (row[ChuyenXuConst.NgayChuyen] != DBNull.Value)
            {
                dtNgayChuyen.Value = row[ChuyenXuConst.NgayChuyen];
            }
            if (row[ChuyenXuConst.NoiChuyen] != DBNull.Value)
            {
                txtGiaoXuChuyen.Text = row[ChuyenXuConst.NoiChuyen].ToString();
            }
            if (row[ChuyenXuConst.GhiChuChuyen] != DBNull.Value)
            {
                txtGhiChuChuyenXu.Text = row[ChuyenXuConst.GhiChuChuyen].ToString();
            }

            if ((bool)row[GiaoDanConst.DaXoa])
            {
                chkDelete.Checked = (bool)row[GiaoDanConst.DaXoa];
                chkDelete.Visible = true;
            }
            //find TenCha, TenMe if not exist in GiaoDan Table
            //Dictionary<int, string> chaMe = GXGiaDinhList.GetTenChaMe(Id, row[GiaoDanConst.HoTenCha].ToString(), row[GiaoDanConst.HoTenMe].ToString());
            //txtTenCha.Text = chaMe[GXConstants.VAITRO_CHONG];
            //txtTenMe.Text = chaMe[GXConstants.VAITRO_VO];

            if (rowGiaDinh == null)
            {
                rowGiaDinh = GxGiaDinhList.GetRowGiaDinh(id, GxConstants.VAITRO_CON);
            }
            if (rowGiaDinh != null)
            {
                if (txtTenCha.Text.Trim() == "")
                {
                    txtTenCha.Text = rowGiaDinh[GiaDinhConst.TenChong].ToString();
                }
                txtTenCha.DisplayMode = DisplayMode.Mode2;
                //txtTenCha.ReadOnly = true;
                //txtTenCha.EditControl.SelectButton.Visible = false;
                //txtTenCha.TextBox.Width = txtNoiSinh.TextBox.Width;
                if (txtTenMe.Text.Trim() == "")
                {
                    txtTenMe.Text = rowGiaDinh[GiaDinhConst.TenVo].ToString();
                }
                txtTenMe.DisplayMode = DisplayMode.Mode2;
                //txtTenMe.ReadOnly = true;
                //txtTenMe.EditControl.SelectButton.Visible = false;
                //txtTenMe.TextBox.Width = txtNoiSinh.TextBox.Width;
            }
            if (GxGiaoDanList.DaCoThongTinHonPhoi(id))
            {
                chkDaCoGiaDinh.Checked = true;
                chkDaCoGiaDinh.Enabled = false;
            }

            txtGiaoXu.Text        = row[GiaoDanConst.ThuocGiaoXu].ToString();
            txtGiaoPhan.Text      = row[GiaoDanConst.ThuocGiaoPhan].ToString();
            txtDiaChi.Text        = row[GiaoDanConst.DiaChi].ToString();
            cbDanToc.SelectedText = row[GiaoDanConst.DanToc].ToString();
            txtNoiQuaDoi.Text     = row[GiaoDanConst.NoiQuaDoi].ToString();
            txtSoAnTang.Text      = row[GiaoDanConst.SoAnTang].ToString();
            txtNoiAnTang.Text     = row[GiaoDanConst.NoiAnTang].ToString();

            currentRow = row;
        }