public void Reload()
 {
     AllowancesBO aAllowancesBO = new AllowancesBO();
     colSalaryPlus.DisplayFormat.FormatType = FormatType.Numeric;
     colSalaryPlus.DisplayFormat.FormatString = "{0:0,0}";
     dgvAllowances.DataSource = aAllowancesBO.Select_All();
     dgvAllowances.RefreshDataSource();
 }
        private void frmIns_Contracts_Allowances_Load(object sender, EventArgs e)
        {
            try
            {
                AllowancesBO aAllowancesBO = new AllowancesBO();
                List<Allowances> aListAllowances = aAllowancesBO.Select_All();
                lueIDAllowances.Properties.DataSource = aListAllowances;
                lueIDAllowances.Properties.DisplayMember = "ID";
                lueIDAllowances.Properties.ValueMember = "ID";

                if (aListAllowances.Count > 0)
                {
                    lueIDAllowances.EditValue = aListAllowances[0].ID;
                }

                LoadData();
            }
            catch (Exception ex)
            {
                MessageBox.Show("frmIns_Contracts_Allowances.frmIns_Contracts_Allowances_Load\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }