void _vista_UsuarioDeseaObtenerSecuenciaDocumento(object sender, Argumentos.SecuenciaDocumentosArgumento e) { try { _vista.SecuenciaDeDocumentos = SecuenciaDocumentoServicio.ObtenerResoluciones(); } catch (Exception ex) { _vista.EstablecerError(ex.Message, sender); } }
void _vista_UsuarioDeseaObtenerMaximoSerie(object sender, Argumentos.SecuenciaDocumentosArgumento e) { try { _vista.MaximoRangoPorSerie = (SecuenciaDocumentoServicio.ObtenerResolucioesPorSerie(e.Data)[0].RANK + 1); } catch (Exception ex) { _vista.EstablecerError(ex.Message, sender); } }
void _vista_UsuarioDeseaObtenerClasificaciones(object sender, Argumentos.SecuenciaDocumentosArgumento e) { try { _vista.Clasificaciones = ClasificacionServicio.ObtenerClasificaciones(e.DataClasificacion); } catch (Exception ex) { _vista.EstablecerError(ex.Message, sender); } }
void _vista_UsuarioDeseaObtenerRutas(object sender, Argumentos.SecuenciaDocumentosArgumento e) { try { _vista.Rutas = RutaServicio.ObtnerRutasParaSecuenciaDocumentos(e.Data); _vista.TerminoProceso("TerminoDeObtenerRuta", e.Data.ASSIGNED_TO, sender); } catch (Exception ex) { _vista.EstablecerError(ex.Message, sender); } }
void _vista_UsuarioDeseaBorrarSecuenciaDocumento(object sender, Argumentos.SecuenciaDocumentosArgumento e) { try { var op = SecuenciaDocumentoServicio.Borrar(e.Data); if (op.Resultado == ResultadoOperacionTipo.Error) { _vista.EstablecerError(op.Mensaje, sender); } else { _vista.SecuenciaDeDocumentos = SecuenciaDocumentoServicio.ObtenerResoluciones(); _vista.TerminoProceso("TerminoDeGrabar", "", sender); } } catch (Exception ex) { _vista.EstablecerError(ex.Message, sender); } }