private void btnAddNew_Click(object sender, EventArgs e) { try { aContracts_AllowancesEN.RealSalaryPlus = Convert.ToDecimal(txtRealSalaryPlus.Text); aContracts_AllowancesEN.ApplyDate = Convert.ToDateTime(dtpApplyDate.Text); aContracts_AllowancesEN.Type = cboType.SelectedIndex + 1; aContracts_AllowancesEN.Status = cboStatus.SelectedIndex + 1; aContracts_AllowancesEN.Disable = Convert.ToBoolean(cboDisable.Text); Contracts_AllowancesBO aContracts_AllowancesBO = new Contracts_AllowancesBO(); aContracts_AllowancesBO.Insert(aContracts_AllowancesEN); MessageBox.Show("Thêm mới thành công.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); this.afrmLst_Contracts_Allowances.ReloadData(); this.Close(); } catch (Exception ex) { MessageBox.Show("frmIns_Contracts_Allowances.btnAddNew_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }