private void uctrlTablaConFiltroBDs_GridDatos_DoubleClick(object sender, uctrlTablaConFiltro.GridDatos_DoubleClickEnventArgs e)
        {
            _dROBDs = ((DataRowView)uctrlTablaConFiltroBDs.gridDatos.CurrentRow.DataBoundItem).Row;

            if (_dROBDs != null)
            {
                //Asig de Valores->>
                tsbEliminarBD.Visible = true;
                tsbProbarConn.Visible = true;
                tsbAgregarBD.Visible = false;

                txtUserBD.Enabled = false;
                txtPasswodBD.Enabled = false;
                txtIP.Enabled = false;
                txtRuta.Enabled = false;
                txtNombreBD.Enabled = false;
                txtDescrip.Enabled = false;

                txtUserBD.Text = _dROBDs[1].ToString().Trim();
                txtPasswodBD.Text = _dROBDs[2].ToString().Trim();
                txtIP.Text = _dROBDs[3].ToString().Trim();
                txtRuta.Text = _dROBDs[4].ToString().Trim();
                txtNombreBD.Text = _dROBDs[5].ToString().Trim();
                txtDescrip.Text = _dROBDs[6].ToString().Trim(); 
            
            }
                                     
        }
        private void uctrTbSeriales_GridDatos_DoubleClick(object sender, uctrlTablaConFiltro.GridDatos_DoubleClickEnventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            _dROBDs = ((DataRowView)uctrTbSeriales.gridDatos.CurrentRow.DataBoundItem).Row;

            if (_dROBDs != null)
            {
                try
                {
                    DataTable dtMovs = _mSecurity.dtLeerDatosTXT(_dROBDs[0].ToString().Trim()).Tables[1].Copy();
                    uctrTbFiltroMovimientos.DataSource = dtMovs.Copy();
                    uctrTbSeriales.gridDatos.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
                    uctrTbSeriales.gridDatos.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
                }
                catch { }
            }

            Cursor.Current = Cursors.Arrow;
        }
        private void uctrlTablaConFiltroREPs_GridDatos_DoubleClick(object sender, uctrlTablaConFiltro.GridDatos_DoubleClickEnventArgs e)
        {
            _drSelectedRO = ((DataRowView)uctrlTablaConFiltroREPs.gridDatos.CurrentRow.DataBoundItem).Row;

            if (_drSelectedRO != null)
            {
                txtIDREP.Text = _drSelectedRO[0].ToString();
                txtNombreRep.Text = _drSelectedRO[1].ToString();
                txtNombreBD.Text = _drSelectedRO[4].ToString(); ;
            }

        }
예제 #4
0
        private void uctrlTablaConFiltroStatus_GridDatos_DoubleClick(object sender, uctrlTablaConFiltro.GridDatos_DoubleClickEnventArgs e)
        {
            _dROBDs = ((DataRowView)uctrlTablaConFiltroStatus.gridDatos.CurrentRow.DataBoundItem).Row;

            if (_dROBDs != null)
            {
                tsbEliminar.Visible = true;
                tsbModificar.Visible = true;
                tsbGuardar.Visible = false;

                //Asig de Valores->>
                chkAR.Checked = Convert.ToBoolean(_dROBDs[3]);
                txtEstatus.Text = _dROBDs[1].ToString();
                txtDescripcion.Text = _dROBDs[2].ToString();
            }


        }
예제 #5
0
        private void uctrlTablaConFiltro1_GridDatos_DoubleClick(object sender, uctrlTablaConFiltro.GridDatos_DoubleClickEnventArgs e)
        {
            _drDM = ((DataRowView)uctrlTablaConFiltro1.gridDatos.CurrentRow.DataBoundItem).Row;

            if (_drDM != null)
            {
                txtBinTexto.Text = _drDM["vchCodigoBinTexto"].ToString().Trim();
                txtBin1.Text = _drDM["vchBin1"].ToString().Trim();
                txtBin2.Text = _drDM["vchBin2"].ToString().Trim();
                txtBin3.Text = _drDM["vchBin3"].ToString().Trim();
                txtBinCC.Text = _drDM["vchDatamatrixCC"].ToString().Trim();
            }

        }
예제 #6
0
        private void uctrlTablaConFiltro1_GridDatos_DoubleClick(object sender, uctrlTablaConFiltro.GridDatos_DoubleClickEnventArgs e)
        {
            _dROBDs = ((DataRowView)uctrlTablaConFiltro1.gridDatos.CurrentRow.DataBoundItem).Row;

            if (_dROBDs != null)
            {
                tsbEliminar.Visible = true;
                tsbModificar.Visible = true;
                tsbGuardar.Visible = false;
                btnActPass.Enabled = true;

                //Asig de Valores->>
                txtNombre.Text = _dROBDs["Nombre Usuario"].ToString();
                txtUsuario.Text = _dROBDs["vchUsuario"].ToString();
                txtCorreoElectronico.Text = _dROBDs["vchCorreoElectronico"].ToString();
                cmbEstatus.Text = _dROBDs["vchStatus"].ToString();
                cmbTipoUsuario.SelectedValue = intIdTipoUsuario(_dROBDs["Tipo Usuario"].ToString().Trim());


            }
        }