protected void Page_Init(object sender, EventArgs e) { if (!ValidarConexionYUsuarioLogueado(sender)) { return; } var mvx = new CMvx(); mvx.RegisterSingleton <IConfiguracionDeConexion, frmMainMenu.ConfiguracionDeConexion>(new frmMainMenu.ConfiguracionDeConexion()); mvx.RegisterType <IBaseDeDatosServicio, BaseDeDatosServicio>(); mvx.RegisterType <ILiquidacionServicio, LiquidacionServicio>(); mvx.Register <IParametroServicio, ParametroServicio>(); mvx.RegisterType <IRutaServicio, RutaServicio>(); mvx.RegisterSingleton <ILiquidacionVista, FrmLiquidation>(this); mvx.RegisterType <ILiquidacionControlador, LiquidacionControlador>(); mvx.Resolve <ILiquidacionControlador>(); if (!Page.IsPostBack) { Session["UiVistaEncabezadoPendiente"] = null; Session["UiVistaPendienteDetalle"] = null; Session["UiListaRutaPendiente"] = null; Session["UiListaLiquidacionPendiente"] = null; Session["UiVistaLiquidacionesCompletadas"] = null; Session["UiVistaDepositos"] = null; Session["UiVistaDepositosLiquidacionesCompletadas"] = null; UiFecha.Value = DateTime.Today; UiFechaFinalCompletadas.Value = DateTime.Today; UiFechaInicialCompletadas.Value = DateTime.Today; VistaCargandosePorPrimeraVez?.Invoke(this, null); UsuarioDeseaObtenerRutas?.Invoke(this, new LiquidacionArgumento { Login = Session["LOGIN"].ToString() }); } }
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); }
protected void Page_Init(object sender, EventArgs e) { if (!ValidarConexionYUsuarioLogueado(sender)) { return; } var mvx = new CMvx(); mvx.RegisterSingleton <IConfiguracionDeConexion, frmMainMenu.ConfiguracionDeConexion>(new frmMainMenu.ConfiguracionDeConexion()); mvx.RegisterType <IBaseDeDatosServicio, BaseDeDatosServicio>(); mvx.RegisterType <IMonedaServicio, MonedaServicio>(); mvx.RegisterSingleton <IMonedaVista, FrmCurrency>(this); mvx.RegisterType <IMonedaControlador, MonedaControlador>(); mvx.Resolve <IMonedaControlador>(); if (!Page.IsPostBack) { Session["UiVistaMoneda"] = null; VistaCargandosePorPrimeraVez?.Invoke(this, null); } }
protected void Page_Init(object sender, EventArgs e) { if (!ValidarConexionYUsuarioLogueado(sender)) { return; } var mvx = new CMvx(); mvx.RegisterSingleton <IConfiguracionDeConexion, frmMainMenu.ConfiguracionDeConexion>(new frmMainMenu.ConfiguracionDeConexion()); mvx.RegisterType <IBaseDeDatosServicio, BaseDeDatosServicio>(); mvx.RegisterType <IOrdenDeVentaServicio, OrdenDeVentaServicio>(); mvx.RegisterType <IParametroServicio, ParametroServicio>(); mvx.RegisterSingleton <IOrdenDeVentaDestallesVista, FrmDetailsSaleOrders>(this); mvx.RegisterType <IOrdenDeVentaDetallesControlador, OrdenDeVentaDetallesControlador>(); mvx.Resolve <IOrdenDeVentaDetallesControlador>(); if (!Page.IsPostBack) { Session["UiVistaDetallesDeOrdenesDeVenta"] = null; VistaCargandosePorPrimeraVez?.Invoke(this, null); } }
private void BloqueoDeInventarioVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); UIListaEstados.Properties.PopupFormWidth = UIListaEstados.Width - 10; CargarOGuardarDisenios(UiVistaBloqueoDeInventario, false, Usuario, GetType().Name); }
private void BalanceDeSaldosFiscalVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); }
private void ConsultaDePaseDeSalidaVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); CargarOGuardarDisenios(UiContenedorVistaPaseDeSalida, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); }
private void EmpresaDeTransporteVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); CargarOGuardarDisenios(UiVistasPrincipal, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); }
private void ConsultaDeInventarioDiarioVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); UiFecha.EditValue = DateTime.Now.Date; CargarOGuardarDisenios(UiGridControlReporteDeInventario, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); }
private void ClaseVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); CargarOGuardarDisenios(UiContenedorVistaClase, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); CargarOGuardarDisenios(UiContenedorVistaRelacionDeClases, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); }
private void EstadoDeUbicacionesVista_Load(object sender, EventArgs e) { CargarOGuardarDisenios(UiGridControlEstadoUbicacion, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); VistaCargandosePorPrimeraVez?.Invoke(sender, e); CargarGrafica(); }
private void UiBotonNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); LimpiarCampos(); }
private void SolicitudDeTrasladoVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); CargarOGuardarDisenios(UiContenedorVistaSolicitudDeTraslado, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); ManejarColumnaDeInventarioDisponible(); }
protected void UiVistaOficinaDeVentas_OnCustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { OficinaDeVentaArgumento oficinaDeVentaArgumento; switch (e.Parameters.Split('|')[0]) { case "ExpandirColumnas": UiVistaOficinaDeVentas.ExpandAll(); break; case "ColapsarColumnas": UiVistaOficinaDeVentas.CollapseAll(); break; case "ObtenerOficinas": VistaCargandosePorPrimeraVez?.Invoke(sender, null); break; case "CrearOficina": var salesOrgId = 0; if (UiListaOrgVentas.Value != null) { salesOrgId = int.Parse(UiListaOrgVentas.Value.ToString()); } oficinaDeVentaArgumento = new OficinaDeVentaArgumento { OficinaDeVenta = new OficinaDeVenta { DESCRIPTION_SALES_OFFICE = UiTxtDescripcion.Text , NAME_SALES_OFFICE = UiTxtNombre.Text , SALES_ORGANIZATION_ID = salesOrgId } }; UsuarioDeseaAgregarOficinaDeVentas?.Invoke(sender, oficinaDeVentaArgumento); if (VendedoresAsociados != null && VendedoresAsociados.Count > 0 && OficinaDeVentas.SALES_OFFICE_ID != null) { foreach (var item in VendedoresAsociados) { UsuarioDeseaAgregarVendedorALaOficinaDeVentas?.Invoke(sender, new OficinaDeVentaArgumento { Vendedor = item , OficinaDeVenta = new OficinaDeVenta { SALES_OFFICE_ID = OficinaDeVentas.SALES_OFFICE_ID } }); } } VendedoresAsociados = null; if (BodegasAsociadas != null && BodegasAsociadas.Count > 0 && OficinaDeVentas.SALES_OFFICE_ID != null) { foreach (var item in BodegasAsociadas) { UsuarioDeseaAgregarBodegaALaOficinaDeVentas?.Invoke(sender, new OficinaDeVentaArgumento { Bodega = item , OficinaDeVenta = new OficinaDeVenta { SALES_OFFICE_ID = OficinaDeVentas.SALES_OFFICE_ID } }); } } BodegasAsociadas = null; if (OficinaDeVentas != null) { UiVistaOficinaDeVentas.JSProperties.Add("cpTerminoCreacion", "Enabled"); } break; case "ActualizarOficina": int?orgId = null; if (UiListaOrgVentas.Value != null) { orgId = int.Parse(UiListaOrgVentas.Value.ToString()); } oficinaDeVentaArgumento = new OficinaDeVentaArgumento { OficinaDeVenta = new OficinaDeVenta { SALES_OFFICE_ID = int.Parse(UiTxtCodigo.Text) , DESCRIPTION_SALES_OFFICE = UiTxtDescripcion.Text , NAME_SALES_OFFICE = UiTxtNombre.Text , SALES_ORGANIZATION_ID = orgId } }; UsuarioDeseaActualizarOficinaDeVentas?.Invoke(sender, oficinaDeVentaArgumento); UiVistaOficinaDeVentas.JSProperties.Add("cpTerminoActualizacion", "Enabled"); break; case "UsuarioSeleccionoOficina": Session["IdOficina"] = int.Parse(e.Parameters.Split('|')[1]); oficinaDeVentaArgumento = new OficinaDeVentaArgumento { OficinaDeVenta = new OficinaDeVenta { SALES_OFFICE_ID = int.Parse(e.Parameters.Split('|')[1]) } }; UsuarioSeleccionoOficinaDeVentas?.Invoke(sender, oficinaDeVentaArgumento); UiVistaOficinaDeVentas.JSProperties.Add("cpTerminoDeSeleccionarOficina", e.Parameters.Split('|')[2]); break; case "EliminarOficina": oficinaDeVentaArgumento = new OficinaDeVentaArgumento { OficinaDeVenta = new OficinaDeVenta { SALES_OFFICE_ID = int.Parse(e.Parameters.Split('|')[1]) } }; UsuarioDeseaEliminarOficinaDeVentas?.Invoke(sender, oficinaDeVentaArgumento); break; } }
private void AdministradorDeLineaDePickingVista_Load(object sender, EventArgs e) { VistaCargandosePorPrimeraVez?.Invoke(sender, e); CargarOGuardarDisenios(UiContenedorPrincipal, false, InteraccionConUsuarioServicio.ObtenerUsuario(), GetType().Name); }