Beispiel #1
0
        private void frmTomaActivo_Load(object sender, EventArgs e)
        {
            cliente = mConexion.Cliente();

            pEstadoDepreciacion = cliente.ParametroList(ESTADODEPRECIACION, 0, 0, "");
            pEstadoActivo       = cliente.ParametroList(ESTADOACTIVO, 0, 0, "");
            pGrupo = cliente.ParametroList(GRUPO, 0, 0, "");
            try
            {
                lblUbicacion.Text += " " + pUbicacion.Descripcion;
                lblCustodio.Text  += " " + eCustodio.NombreCompleto;

                cboEstadoActivo.DisplayMember = "Descripcion";
                cboEstadoActivo.ValueMember   = "Pardet_Secuencia";
                cboEstadoActivo.DataSource    = pEstadoActivo;

                cboDepreciacion.DisplayMember = "Descripcion";
                cboDepreciacion.ValueMember   = "Pardet_Secuencia";
                cboDepreciacion.DataSource    = pEstadoDepreciacion;

                cboGrupo.DisplayMember = "Descripcion";
                cboGrupo.ValueMember   = "Pardet_Secuencia";
                cboGrupo.DataSource    = pGrupo;
            }
            catch (Exception) {}
            this.btnGuardar.Enabled = false;
        }
Beispiel #2
0
 private void cboGrupo_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cboGrupo.SelectedIndex >= 0 && (int)cboGrupo.SelectedValue > 0)
     {
         pTipo = cliente.ParametroList(TIPO, GRUPO, (int)cboGrupo.SelectedValue, "");
         cboTipo.DisplayMember = "Descripcion";
         cboTipo.ValueMember   = "Pardet_Secuencia";
         cboTipo.DataSource    = pTipo;
     }
 }
Beispiel #3
0
        private void frmTomaActivo_Load(object sender, EventArgs e)
        {
            cliente = mConexion.Cliente();

            pEstadoDepreciacion = cliente.ParametroList(ESTADODEPRECIACION, 0, 0, "");
            pEstadoActivo = cliente.ParametroList(ESTADOACTIVO, 0, 0, "");
            pGrupo = cliente.ParametroList(GRUPO, 0, 0, "");
            try
            {
                lblUbicacion.Text += " " + pUbicacion.Descripcion;
                lblCustodio.Text += " " + eCustodio.NombreCompleto;

                cboEstadoActivo.DisplayMember = "Descripcion";
                cboEstadoActivo.ValueMember = "Pardet_Secuencia";
                cboEstadoActivo.DataSource = pEstadoActivo;

                cboDepreciacion.DisplayMember = "Descripcion";
                cboDepreciacion.ValueMember = "Pardet_Secuencia";
                cboDepreciacion.DataSource = pEstadoDepreciacion;

                cboGrupo.DisplayMember = "Descripcion";
                cboGrupo.ValueMember = "Pardet_Secuencia";
                cboGrupo.DataSource = pGrupo;
            }
            catch (Exception) {}
            this.btnGuardar.Enabled = false;
        }