private void form_to_us_hd()
{
m_us_gd_hd.dcID_NHAN_VIEN = CIPConvert.ToDecimal(m_sle_chon_nhan_vien.EditValue);
m_us_gd_hd.dcID_LOAI_HOP_DONG = CIPConvert.ToDecimal(m_sle_loai_hop_dong.EditValue);
m_us_gd_hd.dcID_LOAI_LAO_DONG = CIPConvert.ToDecimal(m_sle_loai_lao_dong.EditValue);
m_us_gd_hd.strMA_HOP_DONG = m_txt_ma_hd.Text;
m_us_gd_hd.datNGAY_BAT_DAU = m_dat_ngay_bat_dau.DateTime;
m_us_gd_hd.datNGAY_KY_HOP_DONG = m_dat_ngay_ky.DateTime;
if (m_dat_ngay_ket_thuc.DateTime != DateTime.MinValue)
m_us_gd_hd.datNGAY_KET_THUC = m_dat_ngay_ket_thuc.DateTime;
if (get_luong_cd_theo_ma_muc() != null)
{
m_us_gd_hd.dcID_LUONG_CHE_DO = CIPConvert.ToDecimal(get_luong_cd_theo_ma_muc()["ID"]);
m_us_gd_hd.dcSO_TIEN_LCD = CIPConvert.ToDecimal(m_txt_so_tien_lcd.Text);
}
m_us_gd_hd.dcID_DON_VI = CIPConvert.ToDecimal(m_sle_don_vi.EditValue);
m_us_gd_hd.dcID_CHUC_VU = CIPConvert.ToDecimal(m_sle_chuc_vu.EditValue);
m_us_gd_hd.strGHI_CHU = m_txt_mo_ta_cv.Text;
if (m_e_form_mode == DataEntryFormMode.InsertDataState)
{
m_us_gd_hd.datNGAY_LAP = DateTime.Now.Date;
m_us_gd_hd.strNGUOI_LAP = CAppContext_201.getCurrentUserName();
}
else if (m_e_form_mode == DataEntryFormMode.UpdateDataState)
{
m_us_gd_hd.datNGAY_SUA = DateTime.Now.Date;
m_us_gd_hd.strNGUOI_SUA = CAppContext_201.getCurrentUserName();
}
}