private void UibotonCrearConteo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (ConteoDetalles == null || ConteoDetalles.Count <= 0) { return; } UsuarioDeseaGrabarConteoFisico?.Invoke(sender, new ConteoFisicoArgumento { Tarea = new Tarea { CREATE_BY = InteraccionConUsuarioServicio.ObtenerUsuario() , TASK_TYPE = Enums.GetStringValue(TareasTipo.Conteo) , TASK_ASSIGNED_TO = InteraccionConUsuarioServicio.ObtenerUsuario() , REGIMEN = UiListaRegimen.EditValue?.ToString() ?? "" , PRIORITY = Convert.ToInt16(UiListaPrioridad.EditValue?.ToString() ?? "1") , COMMENTS = "" } , ConteoFisicoEncabezado = new ConteoFisicoEncabezado { REGIMEN = UiListaRegimen.EditValue?.ToString() ?? "" , DISTRIBUTION_CENTER = InteraccionConUsuarioServicio.ObtenerCentroDistribucion() } , ConteoFisicoDetalle = ConteoDetalles.ToList() }); LimpiarControles(); }
private void AsignacionConteoFisico_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); UsuarioSeleccionoListaOperadoresCompleta = false; UsuarioSeleccionoListaBodegasCompleta = false; UsuarioSeleccionoListaZonasCompleta = false; UsuarioSeleccionoListaUbicacionesCompleta = false; UsuarioSeleccionoListaClientesCompleta = false; UsuarioSeleccionoListaSkusCompleta = false; UiListaRegimen.EditValue = "GENERAL"; UiListaPrioridad.EditValue = "2"; UiListaOperadores.Properties.PopupFormWidth = UiListaOperadores.Width; UiListaBodegas.Properties.PopupFormWidth = UiListaBodegas.Width; UiListaZonas.Properties.PopupFormWidth = UiListaZonas.Width; UiListaUbicaciones.Properties.PopupFormWidth = UiListaUbicaciones.Width; UiListaClientes.Properties.PopupFormWidth = UiListaClientes.Width + 100; UiListaSkus.Properties.PopupFormWidth = UiListaSkus.Width + 100; UiLabelCentroDistribucion.Caption = "Centro De Distribucion: " + InteraccionConUsuarioServicio.ObtenerCentroDistribucion(); CargarOGuardarDisenios(UiContenedorVistaConteos, false, Usuario, GetType().Name); }
private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e) { try { _vista.Operadores = UsuarioServicio.ObtenerUsuariosTipoBodegaAsignadosCD(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); _vista.TiposDeRecepcion = ConfiguracionServicio.ObtenerConfiguracionesGrupoYTipo(new Entidades.Configuracion { PARAM_TYPE = "SISTEMA", PARAM_GROUP = "TYPE_RECEPTION" }); _vista.Prioridad = ConfiguracionServicio.ObtenerConfiguracionesGrupoYTipo(new Entidades.Configuracion { PARAM_TYPE = "SISTEMA", PARAM_GROUP = "PRIORITY" }); _vista.FuenteExterna = FuenteExternaServicio.ObtenerFuentesExternas(); _vista.Usuario = InteraccionConUsuarioServicio.ObtenerUsuario(); _vista.ParametrosDeSistema = ParametroServicio.ObtenerParametro(new ConsultaArgumento { GrupoParametro = Enums.GetStringValue(GrupoParametro.Sistema), IdParametro = Enums.GetStringValue(IdParametro.TipoDeClienteMovilDe3Pl) }); } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }
private void _vista_UsuarioDeseaObtenerUsuario(object sender, Argumentos.DocumentoRecepcionERPArgumento e) { try { _vista.Operadores = UsuarioServicio.ObtenerUsuariosTipoBodegaAsignadosCD(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }
private void _vista_UsuarioDeseaObtenerUbicaciones(object sender, Argumentos.DocumentoRecepcionERPArgumento e) { try { _vista.Ubicaciones = UbicacionServicio.ObtenerUbicacionesTipoRampaYPuertaParaRecepcion(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }
private void _vista_UsuarioDeseaObtenerUsuarios(object sender, EventArgs e) { try { _vista.Usuarios = UsuarioServicio.ObtenerUsuariosTipoBodegaAsignadosCD(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }
private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e) { try { _vista.Parametros = new List <Parametro>(); _vista.Clientes = ClienteServicio.ObtenerClientes(); _vista.Vehiculos = VehiculoServicio.ObtenerVehiculos(new VehiculoArgumento { Vehiculo = new Vehiculo() }); _vista.Bodegas = BodegaServicio.ObtenerBodegaAsignadaAUsuario(InteraccionConUsuarioServicio.ObtenerUsuario()); _vista.UsuariosParaAutorizar = UsuarioServicio.ObtenerUsuariosActivosPorCentroDeDistribucion(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); _vista.UsuariosParaEntrega = UsuarioServicio.ObtenerUsuariosActivosPorCentroDeDistribucion(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); ObtenerParametros(); _vista.SoloVehiculos = VehiculoServicio.ObtenerVehiculos(new VehiculoArgumento { Vehiculo = new Vehiculo() }); _vista.Pilotos = PilotoServicio.ObtenerPilotos(new PilotoArgumento { Piloto = new Piloto() }); _vista.DespachosDetalles = new List <DemandaDespachoDetalle>(); _vista.PaseDeSalidas = new List <PaseDeSalida>(); ObtenerTiposDeSalida(); } catch (Exception ex) { InteraccionConUsuarioServicio.MensajeErrorDialogo(ex.Message); } }
private void _vista_UsuarioDeseaObtnerAutorizados(object sender, PaseDeSalidaArgumento e) { try { _vista.UsuariosParaAutorizar = UsuarioServicio.ObtenerUsuariosActivosPorCentroDeDistribucion(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); } catch (Exception ex) { InteraccionConUsuarioServicio.MensajeErrorDialogo(ex.Message); } }