Beispiel #1
0
        /*
         * Alteração de gastos
         */
        public void Alterar(TipoGastosTO objTipoGastosTO)
        {
            TipoGastosBLL gastoBLL = new TipoGastosBLL();

            this.tipoGastoTO = gastoBLL.SelectScalar(objTipoGastosTO.ID_TIPO_GASTOS);

            if (tipoGastoTO != null)
            {
                PreencherValoresTela(tipoGastoTO);
                tipoGastoTO.StatusBD = StatusTransacao.Update;
            }

            this.ShowDialog();
        }
Beispiel #2
0
        public void Excluir(TipoGastosTO objTipoGastoTO)
        {
            TipoGastosBLL gastoBLL = new TipoGastosBLL();

            this.tipoGastoTO = gastoBLL.SelectScalar(objTipoGastoTO.ID_TIPO_GASTOS);

            if (tipoGastoTO != null)
            {
                PreencherValoresTela(tipoGastoTO);
                tipoGastoTO.StatusBD = StatusTransacao.Delete;
            }

            DesabilitarComponentes();
            this.ShowDialog();
        }