private void LlenaValoresLocalidad(InfoLocDto obj) { txtDistEntreHileras.Text = ((decimal)obj.DistEntreHileraM).ToString("0.00"); chkGmo.Checked = (bool)obj.Gmo; cboCrop.SelectedValue = obj.id_crop; txtDistEntreHileras.Enabled = false; chkGmo.Enabled = false; cboCrop.Enabled = false; txtDistEntreHileras.Focus(); }
private void LlenaComboTipoConversion(InfoLocDto locationSelected) { var data = new List <CropDto>(); data = EntryListBusiness.GetTipoConversion(usuarioValido.id_empresa, locationSelected.LocationCuartel); cboConversion.ValueMember = "Crop"; cboConversion.DisplayMember = "TipoConversion"; cboConversion.DataSource = data; cboConversion.Refresh(); }
private void CboLocation_SelectedValueChanged(object sender, EventArgs e) { if (cboLocation.SelectedItem != null) { locationSelected = (InfoLocDto)cboLocation.SelectedItem; if (locationSelected.Id > 0) { LlenaValoresLocalidad(locationSelected); txtVariedad.Focus(); btnExportar.Enabled = true; } } }
private void CboLocation_SelectedValueChanged(object sender, EventArgs e) { if (cboLocation.SelectedItem != null) { locationSelected = (InfoLocDto)cboLocation.SelectedItem; if (locationSelected.Id > 0) { LlenaComboTipoConversion(locationSelected); } } else { locationSelected = new InfoLocDto(); } }