コード例 #1
0
        /*
         * Alteração de gastos
         */
        public void Alterar(GastosTO objGastosTO)
        {
            GastosBLL gastoBLL = new GastosBLL();

            this.gastosTO = gastoBLL.SelectScalar(objGastosTO.ID_GASTOS);

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

            this.ShowDialog();
        }
コード例 #2
0
        public void Excluir(GastosTO objGastosTO)
        {
            GastosBLL gastoBLL = new GastosBLL();

            this.gastosTO = gastoBLL.SelectScalar(objGastosTO.ID_GASTOS);

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

            DesabilitarComponentes();
            this.ShowDialog();
        }