Example #1
0
        private void CargarGrid()
        {
            TipoIntimacionImplement oTipoIntimidacionImplement = new TipoIntimacionImplement();

            this.dgvTipoIntimacion.DataSource = oTipoIntimidacionImplement.Buscar("");
            this.dgvTipoIntimacion.Enabled    = true;
        }
Example #2
0
        private void Inicializar()
        {
            TipoIntimacionImplement oTipoIntimacionImplement = new TipoIntimacionImplement();

            oTipoIntimacionImplement.CargarCombo(this.cmbTipoIntimacion, "Seleccione Tipo Intimación");
            CargarGrilla(_idSocio);
            this.panelAdd.Visible = false;
        }
 private void CargarSeleccion()
 {
     cod_intimaciones oIntimidacion = new cod_intimaciones();
     TipoIntimacionImplement oTipoIntimidacionImplement = new TipoIntimacionImplement();
     DataGridViewRow row = this.dgvTipoIntimacion.CurrentRow;
     int id = Convert.ToInt32(row.Cells[0].Value);
     oIntimidacion = oTipoIntimidacionImplement.Get(id);
     this.lblCodigo.Text = oIntimidacion.id_intimacion.ToString();
     this.txtNombre.Text = oIntimidacion.intimacion;
     this.gbIntimacion.Enabled = false;
     Deshabilitar();
 }
Example #4
0
        private void CargarSeleccion()
        {
            cod_intimaciones        oIntimidacion = new cod_intimaciones();
            TipoIntimacionImplement oTipoIntimidacionImplement = new TipoIntimacionImplement();
            DataGridViewRow         row = this.dgvTipoIntimacion.CurrentRow;
            int id = Convert.ToInt32(row.Cells[0].Value);

            oIntimidacion             = oTipoIntimidacionImplement.Get(id);
            this.lblCodigo.Text       = oIntimidacion.id_intimacion.ToString();
            this.txtNombre.Text       = oIntimidacion.intimacion;
            this.gbIntimacion.Enabled = false;
            Deshabilitar();
        }
Example #5
0
        private void Guardar()
        {
            cod_intimaciones        oIntimidacion = new cod_intimaciones();
            TipoIntimacionImplement oTipoIntimidacionImplement = new TipoIntimacionImplement();

            if (this.lblCodigo.Text == "")
            {
                oIntimidacion.intimacion = this.txtNombre.Text;
                oTipoIntimidacionImplement.Save(oIntimidacion);
            }
            else
            {
                DataGridViewRow row = this.dgvTipoIntimacion.CurrentRow;
                int             id  = Convert.ToInt32(row.Cells[0].Value);
                oIntimidacion            = oTipoIntimidacionImplement.Get(id);
                oIntimidacion.intimacion = this.txtNombre.Text;
                oTipoIntimidacionImplement.Update(oIntimidacion);
            }
            Deshabilitar();
            this.txtNombre.Text = "";
            CargarGrid();
        }
 private void CargarTipoIntimacion()
 {
     TipoIntimacionImplement oTipoIntimacionImplement = new TipoIntimacionImplement();
     oTipoIntimacionImplement.CargarCombo(this.cmbTipoIntimacion, "Seleccione tipo intimacion");
 }
        private void CargarTipoIntimacion()
        {
            TipoIntimacionImplement oTipoIntimacionImplement = new TipoIntimacionImplement();

            oTipoIntimacionImplement.CargarCombo(this.cmbTipoIntimacion, "Seleccione tipo intimacion");
        }
 private void Guardar()
 {
     cod_intimaciones oIntimidacion = new cod_intimaciones();
     TipoIntimacionImplement oTipoIntimidacionImplement = new TipoIntimacionImplement();
     if (this.lblCodigo.Text == "")
     {
         oIntimidacion.intimacion = this.txtNombre.Text;
         oTipoIntimidacionImplement.Save(oIntimidacion);
     }
     else
     {
         DataGridViewRow row = this.dgvTipoIntimacion.CurrentRow;
         int id = Convert.ToInt32(row.Cells[0].Value);
         oIntimidacion = oTipoIntimidacionImplement.Get(id);
         oIntimidacion.intimacion = this.txtNombre.Text;
         oTipoIntimidacionImplement.Update(oIntimidacion);
     }
     Deshabilitar();
     this.txtNombre.Text = "";
     CargarGrid();
 }
 private void CargarGrid()
 {
     TipoIntimacionImplement oTipoIntimidacionImplement = new TipoIntimacionImplement();
     this.dgvTipoIntimacion.DataSource = oTipoIntimidacionImplement.Buscar("");
     this.dgvTipoIntimacion.Enabled = true;
 }
Example #10
0
 private void Inicializar()
 {
     TipoIntimacionImplement oTipoIntimacionImplement = new TipoIntimacionImplement();
     oTipoIntimacionImplement.CargarCombo(this.cmbTipoIntimacion, "Seleccione Tipo Intimación");
     CargarGrilla(_idSocio);
     this.panelAdd.Visible = false;
 }