private void form_2_us_obj()
{
if(m_dat_ngay_bat_dau.EditValue == null)
{
m_us_phu_thuoc_details.SetTU_NGAYNull();
}
else
{
m_us_phu_thuoc_details.datTU_NGAY = m_dat_ngay_bat_dau.DateTime.Date;
}
if(m_dat_ngay_ket_thuc.EditValue == null)
{
m_us_phu_thuoc_details.SetDEN_NGAYNull();
}
else
{
m_us_phu_thuoc_details.datDEN_NGAY = m_dat_ngay_ket_thuc.DateTime.Date;
}
if(m_dat_ngay_sinh_npt.EditValue == null)
{
m_us_phu_thuoc_details.SetNGAY_SINHNull();
}
else
{
m_us_phu_thuoc_details.datNGAY_SINH = m_dat_ngay_sinh_npt.DateTime.Date;
}
m_us_phu_thuoc_details.strHO_TEN_NGUOI_PHU_THUOC = m_txt_ho_ten_nguoi_phu_thuoc.Text;
m_us_phu_thuoc_details.strMA_SO_THUE = m_txt_mst_phu_thuoc.Text;
m_us_phu_thuoc_details.strQUAN_HE_VOI_NGUOI_NOP_THUE = m_txt_quan_he.Text;
m_us_phu_thuoc_details.strQUOC_TICH = m_txt_quoc_tich_npt.Text;
m_us_phu_thuoc_details.strTTGKS_SO = m_txt_so.Text;
m_us_phu_thuoc_details.strTTGKS_QUYEN = m_txt_quyen_so.Text;
m_us_phu_thuoc_details.strTTGKS_QUOC_GIA = m_txt_quoc_gia.Text;
m_us_phu_thuoc_details.strTTGKS_TINH_THANH = m_txt_thanh_pho.Text;
m_us_phu_thuoc_details.strTTGKS_QUAN_HUYEN = m_txt_quan.Text;
m_us_phu_thuoc_details.strTTGKS_PHUONG_XA = m_txt_phuong.Text;
m_us_phu_thuoc_details.strSO_CMT_HO_CHIEU = m_txt_CMND_npt.Text;
m_us_phu_thuoc_details.dcID_GD_PHU_THUOC = (decimal)m_sle_chon_nhan_vien.EditValue;
m_us_phu_thuoc_details.strDA_XOA = "N";
if(m_e_form_mode == DataEntryFormMode.InsertDataState)
{
m_us_phu_thuoc_details.strNGUOI_LAP = CAppContext_201.getCurrentUserName();
m_us_phu_thuoc_details.datNGAY_LAP = DateTime.Now.Date;
}
else if(m_e_form_mode == DataEntryFormMode.UpdateDataState)
{
m_us_phu_thuoc_details.strNGUOI_SUA = CAppContext_201.getCurrentUserName();
m_us_phu_thuoc_details.datNGAY_SUA = DateTime.Now.Date;
}
}