private void Llenar_CboAyudante() { DataTable TEMP = new DataTable(); ENResultOperation R = ClsTransportista_ContactoBC.Listar(ID_Tran_Ide); if (R.Proceder) { TEMP = (DataTable)R.Valor; this.cboAyudante.DataSource = TEMP; this.cboAyudante.DisplayMember = "Nombre_Completo"; this.cboAyudante.ValueMember = "Tran_Cont_Ide"; this.cboAyudante.AutoCompleteMode = AutoCompleteMode.Suggest; this.cboAyudante.AutoCompleteSource = AutoCompleteSource.ListItems; this.cboAyudante.DropDownHeight = 250; this.cboAyudante.DropDownStyle = ComboBoxStyle.DropDownList; //this.cboAyudante.SelectedIndex = Convert.ToInt32(txtTran_Cont_Ide.Text); } }
private void Buscar_Trabajador(string cNroDoc) { ENResultOperation R = ClsTransportista_ContactoBC.Buscar_Por_Documento(cNroDoc, iTran_Ide); DataTable dtg = (DataTable)R.Valor; if (dtg.Rows.Count != 0) { DataRow ROWG = dtg.Rows[0]; txtPaterno.Text = ROWG["TRAN_CONT_PATERNO"].ToString(); txtMaterno.Text = ROWG["TRAN_CONT_MATERNO"].ToString(); txtNombres.Text = ROWG["TRAN_CONT_NOMBRE"].ToString(); txtTelfCasa.Text = ROWG["TRAN_CONT_TELEFONO_CASA"].ToString(); txtCelular.Text = ROWG["TRAN_CONT_TELEFONO_CELULAR"].ToString(); txtDireccion.Text = ROWG["TRAN_CONT_DIRECCION"].ToString(); txtCorreo.Text = ROWG["TRAN_CONT_CORREO"].ToString(); txtNota.Text = ROWG["TRAN_CONT_NOTA"].ToString(); cboSexo.Text = ROWG["TRAN_CONT_SEXO"].ToString(); cboEstado_Civil.Text = ROWG["TRAN_CONT_ESTADO_CIVIL"].ToString(); cboLocalidad.SelectedValue = Convert.ToInt32(ROWG["LOCA_IDE"].ToString()); txtLocalidad.Text = ROWG["LOCA_IDE"].ToString(); cboCargos.SelectedValue = Convert.ToInt32(ROWG["CARG_IDE"].ToString()); txtCargo.Text = ROWG["CARG_IDE"].ToString(); } }