Exemple #1
0
        private void btnTipoNovedad_Click(object sender, EventArgs e)
        {
            var _formulario = new _00018_ABM_TipoNovedadAgente();

            _formulario.TipoOperacion = TipoOperacion.Insertar;
            _formulario.ShowDialog();
            PoblarComboBox(this.cmbTipoNovedadAgente, _tipoNovedadAgente.ObtenerTodo(), "Descripcion");
        }
Exemple #2
0
        public _00017_NovedadAgente()
        {
            InitializeComponent();
            _agenteServicio    = new AgenteServicio();
            _tipoNovedadAgente = new TipoNovedadAgenteServicio();
            _novedadAgente     = new NovedadAgenteServicio();
            listaNovedades     = new List <NovedadAgenteDTO>();

            PoblarGrilla();
            FormatearGrilla(this.dgvNovedadAgente);
            PoblarComboBox(this.cmbTipoNovedadAgente, _tipoNovedadAgente.ObtenerTodo(), "Descripcion");

            this.btnGrabar.Image      = Imagenes.BotonEjecutar;
            this.btnLimpiar.Image     = Imagenes.BotonLimpiar;
            this.btnTipoNovedad.Image = Imagenes.BotonModificar;
            this.btnSalir.Image       = Imagenes.BotonSalir;
        }