Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 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;
         }
     }
 }
Esempio n. 4
0
 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();
     }
 }