private void m_cmd_save_Click(object sender, EventArgs e)
{
try
{
//Kiem tra du lieu
if (check_data_is_ok() == true)
{
//Dua du lieu vao US
form_to_us();
if (m_e_form_mode == DataEntryFormMode.InsertDataState)
{
m_us.Insert();
}
else
{
m_us.Update();
}
XtraMessageBox.Show("Lưu thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.Close();
}
}
catch (Exception v_e)
{
CSystemLog_301.ExceptionHandle(v_e);
}
}