private void ssTipoDocumento_Search(object sender, EventArgs e) { try { FrmSelectedEntity FrmSeleccionarTipoDocumento = new FrmSelectedEntity(); TipoSolicitudCotizacion TipoDocumento = (TipoSolicitudCotizacion)FrmSeleccionarTipoDocumento.GetSelectedEntity(typeof(TipoSolicitudCotizacion), "Tipo Solicitud de Cotización"); if (TipoDocumento != null) { InfoAsistente.TipoDocumento = TipoDocumento; ssTipoDocumento.Text = InfoAsistente.TipoDocumento.Nombre; InfoAsistente.Responsable = ObtenerResponsable(); ssReponsable.Text = (InfoAsistente.Responsable != null) ? InfoAsistente.Responsable.Nombre : ""; } } catch (Exception ex) { SoftException.Control(ex); } }
private void ssTipoDocumento_Search(object sender, EventArgs e) { try { FrmSelectedEntity FrmSeleccionarTipoDocumento = new FrmSelectedEntity(); TipoSolicitudCotizacion TipoDocumento = (TipoSolicitudCotizacion)FrmSeleccionarTipoDocumento.GetSelectedEntity(typeof(TipoSolicitudCotizacion), "Tipo Solicitud de Cotización"); if ((SolicitudCotizacion.TipoDocumento == null) || (SolicitudCotizacion.TipoDocumento.Codigo != TipoDocumento.Codigo)) { SolicitudCotizacion.TipoDocumento = (TipoSolicitudCotizacion)HelperNHibernate.GetEntityByID("TipoSolicitudCotizacion", TipoDocumento.ID); SolicitudCotizacion.Responsable = ObtenerResponsable(); ssResponsable.Text = (SolicitudCotizacion.Responsable != null) ? SolicitudCotizacion.Responsable.Nombre : ""; ssTipoDocumento.Text = (SolicitudCotizacion.TipoDocumento != null) ? SolicitudCotizacion.TipoDocumento.Nombre : ""; } } catch (Exception ex) { SoftException.Control(ex); } }