private void Update()
        {
            try
            {
                if (txtcatplanillaid.Text.Trim().Length == 0)
                {
                    MessageBox.Show("Falta Codigo de Categoria !!!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                else
                {
                    if (txtcatplanillaname.Text.Trim().Length == 0)
                    {
                        MessageBox.Show("Ingrese Nombre de Categoria", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        return;
                    }
                    else
                    {
                        var BL = new tb_me_categoriaplanillaBL();
                        var BE = new tb_me_categoriaplanilla();

                        BE.cateplanid = txtcatplanillaid.Text.ToString();
                        BE.cateplanname = txtcatplanillaname.Text.ToString();

                        if (BL.Update(EmpresaID, BE))
                        {
                            SEGURIDAD_LOG("M");
                            MessageBox.Show("Datos Modificado Correctamente !!!", "ConfirmaciĆ³n", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            procesado = true;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }