public void Buscar_Transportista() { ENResultOperation R = ClsTransportistaBC.Listar(txtTransportista.Text); if (R.Proceder) { DataTable dt = (DataTable)R.Valor; if (dt.Rows.Count == 1) { DataRow ROW = dt.Rows[0]; txtTransportista.Text = ROW["TRAN_RAZON_SOCIAL"].ToString(); nTran_Ide = Convert.ToInt32(ROW["TRAN_IDE"]); txtTran_Ide.Text = nTran_Ide.ToString(); } else { Transportista.frmTransportista_Buscar frmBuscarTran = new Transportista.frmTransportista_Buscar(); frmBuscarTran.TransportistaRazon = txtTransportista.Text; frmBuscarTran.ShowDialog(); txtTransportista.Text = frmBuscarTran.TransportistaRazon; nTran_Ide = Convert.ToInt32(frmBuscarTran.TransportistaID); txtTran_Ide.Text = nTran_Ide.ToString(); } txtPlaca.Focus(); } }
private void Buscar_Transportista() { Transportista.frmTransportista_Buscar frmTransportista_Buscar = new Transportista.frmTransportista_Buscar(); frmTransportista_Buscar.TransportistaRazon = txtTransportista.Text; frmTransportista_Buscar.ShowDialog(); txtTransportista.Text = frmTransportista_Buscar.TransportistaRazon; nTran_Ide = Convert.ToInt32(frmTransportista_Buscar.TransportistaID); }