private void save_data(ref decimal v_id_gd_thu_nhap_khac)
{
US_GD_THU_NHAP_KHAC v_us_gd_thu_nhap_khac = new US_GD_THU_NHAP_KHAC();
form_2_us_obj(v_us_gd_thu_nhap_khac);
try
{
switch (m_e_form_mode)
{
case DataEntryFormMode.InsertDataState:
v_us_gd_thu_nhap_khac.BeginTransaction();
v_us_gd_thu_nhap_khac.Insert();
v_us_gd_thu_nhap_khac.CommitTransaction();
v_id_gd_thu_nhap_khac = v_us_gd_thu_nhap_khac.dcID;
CHRM_BaseMessages.MsgBox_Infor(CONST_ID_MSGBOX.INFOR_LUU_DU_LIEU_THANH_CONG);
break;
case DataEntryFormMode.UpdateDataState:
v_us_gd_thu_nhap_khac.BeginTransaction();
v_us_gd_thu_nhap_khac.dcID = CIPConvert.ToDecimal(m_grv_quan_ly_thu_nhap_khac.GetRowCellValue(m_grv_quan_ly_thu_nhap_khac.FocusedRowHandle, "ID").ToString());
v_us_gd_thu_nhap_khac.Update();
v_us_gd_thu_nhap_khac.CommitTransaction();
CHRM_BaseMessages.MsgBox_Infor(CONST_ID_MSGBOX.INFOR_DU_LIEU_DA_DUOC_CAP_NHAT);
break;
default:
break;
}
}
catch (Exception v_e)
{
throw v_e;
}
}