public static void DeleteAccountantAccount(DeletedEntityDTO pDeletedEntityDTO)
 {
     iAccountantAccountSvc.DeleteAccountantAccount(pDeletedEntityDTO);
 }
 // Los metodos siguientes no se implementaran ya que no son necesarios.
 
 
 public void DeleteDocumentType(DeletedEntityDTO pDocumentTypeToDelete)
 {
     throw new System.NotImplementedException();
 }
        public void DeleteAccountantAccount(DeletedEntityDTO pAccountantAccountToDelete)
        {
          //validamos que el Id este en el rango correcto
          if (pAccountantAccountToDelete.Id < -1) throw new System.ArgumentOutOfRangeException("pAccountantAccountToDelete");

          // eliminamos la cuenta contable
          this.iAccountantAccountDAO.Delete(pAccountantAccountToDelete.Id);
        }
 public void DeleteAccountType(DeletedEntityDTO pAccountTypeToDelete)
 {
     throw new NotImplementedException();
 }
        private void bDelete_Click(object sender, EventArgs e)
        {
            try
            {
                DialogResult mAnswer = MessageBox.Show("¿Está seguro que desea eliminar dicha cuenta?", "Atención", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (mAnswer == DialogResult.Yes)
                {
                    DeletedEntityDTO mDeletedEntity = new DeletedEntityDTO
                    {
                        Id = Convert.ToInt32(tbId.Text)
                    };

                    AccountantAccountFacade.DeleteAccountantAccount(mDeletedEntity);

                    MessageBox.Show("Cuenta eliminada satisfactoriamente", "", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    //Recargo la lista de cuentas contables
                    LoadAccountantAccount();
                }
            }
            catch (BusinessException ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (DataBaseException ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void bDelete_Click(object sender, EventArgs e)
        {
            try
            {
                DialogResult mAnswer = MessageBox.Show("¿Está seguro que desea eliminar dicho cobrador?", "Atención", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (mAnswer == DialogResult.Yes)
                {
                    DeletedEntityDTO mDeletedEntity = new DeletedEntityDTO
                    {
                        Id = Convert.ToInt32(tbId.Text)
                    };

                   // OfficerFacade.DeleteOfficer(mDeletedEntity);

                    MessageBox.Show("Cobrador dado de baja satisfactoriamente", "", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    //Recargo la lista de cobrador
                    LoadDGOfficer();
                }
            }
            catch (BusinessException ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (DataBaseException ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }