private void save_data()
{
US_GD_CONG_TAC v_us_gd_ct = new US_GD_CONG_TAC();
form_2_us_gd_cong_tac(v_us_gd_ct);
try
{
switch (m_e_form_mode)
{
case DataEntryFormMode.InsertDataState:
if (m_id_gd_ct != -1)
{
//Nhan vien da co GD cong tac
if (m_loai_ctac_cthuc == true && CIPConvert.ToDecimal(m_sle_chon_loai_cong_tac.EditValue) == CONST_ID_LOAI_CONG_TAC.CHINH_THUC)
{
cho_gd_ct_da_xoa_Y();
}
}
v_us_gd_ct.BeginTransaction();
v_us_gd_ct.Insert();
v_us_gd_ct.CommitTransaction();
break;
case DataEntryFormMode.UpdateDataState:
v_us_gd_ct.BeginTransaction();
v_us_gd_ct.Update();
v_us_gd_ct.CommitTransaction();
break;
default:
break;
}
}
catch (Exception v_e)
{
CSystemLog_301.ExceptionHandle(v_e);
}
}