Beispiel #1
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         {
             CultureManager.GetEntity("PARENTI01"),
             ddlLocation.Selected > 0
                            ? DAOFactory.EmpresaDAO.FindById(ddlLocation.Selected).RazonSocial
                            : "Todos"
         },
         {
             CultureManager.GetEntity("PARENTI02"),
             ddlPlanta.Selected > 0
                            ? DAOFactory.LineaDAO.FindById(ddlPlanta.Selected).Descripcion
                            : "Todos"
         },
         {
             CultureManager.GetEntity("PARENTI19"),
             ddlEquipo.Selected > 0
                            ? DAOFactory.EquipoDAO.FindById(ddlEquipo.Selected).Descripcion
                            : String.Empty
         },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString() },
         { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
        /// <summary>
        /// Gets the filter values for the exported report version.
        /// </summary>
        /// <returns></returns>
        protected override Dictionary <string, string> GetFilterValues()
        {
            var hsInfraccion = TimeSpan.FromHours(Stadistics.HsInfraccion);

            return(new Dictionary <string, string>
            {
                { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
                { CultureManager.GetEntity("PARENTI02"), ddlBase.SelectedItem.Text },
                { CultureManager.GetEntity("PARENTI03"), ddlVehiculo.SelectedItem.Text },
                { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString() },
                { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString() },
                { CultureManager.GetLabel("TOTAL"), Stadistics.KilometrosTotales.ToString("#0.00") + " km" },
                { CultureManager.GetLabel("PROMEDIO_DIARIO"), Stadistics.KilometrosPromedio.ToString("#0.00") + " km" },
                { CultureManager.GetLabel("TOTALES"), Stadistics.Dias.ToString("#0") },
                { CultureManager.GetLabel("CON_ACTIVIDAD"), Stadistics.DiasActivo.ToString("#0") },
                { CultureManager.GetLabel("SIN_ACTIVIDAD"), (Stadistics.Dias - Stadistics.DiasActivo).ToString("#0") },
                { CultureManager.GetLabel("MAXIMA_ALCANZADA"), Stadistics.VelocidadMaxima + " km/h" },
                { CultureManager.GetLabel("PROMEDIO"), Stadistics.VelocidadPromedio + " km/h" },
                { CultureManager.GetLabel("MOVIMIENTO"), CultureManager.GetLabel("DIAS") + ": " + Stadistics.HorasMovimiento.Days + " - " +
                  CultureManager.GetLabel("HORAS") + ": " + Stadistics.HorasMovimiento.Hours.ToString("00") + ":" + Stadistics.HorasMovimiento.Minutes.ToString("00") + ":" + Stadistics.HorasMovimiento.Seconds.ToString("00") },
                { CultureManager.GetLabel("DETENCION"), CultureManager.GetLabel("DIAS") + ": " + Stadistics.HorasDetenido.Days + " - " +
                  CultureManager.GetLabel("HORAS") + ": " + Stadistics.HorasDetenido.Hours.ToString("00") + ":" + Stadistics.HorasDetenido.Minutes.ToString("00") + ":" + Stadistics.HorasDetenido.Seconds.ToString("00") },
                { CultureManager.GetLabel("SIN_REPORTAR"), CultureManager.GetLabel("DIAS") + ": " + Stadistics.HorasSinReportar.Days + " - " +
                  CultureManager.GetLabel("HORAS") + ": " + Stadistics.HorasSinReportar.Hours.ToString("00") + ":" + Stadistics.HorasSinReportar.Minutes.ToString("00") + ":" + Stadistics.HorasSinReportar.Seconds.ToString("00") },
                { CultureManager.GetLabel("CANTIDAD"), Stadistics.Infracciones.ToString("#0") },
                { CultureManager.GetLabel("TIEMPO"), hsInfraccion.Hours.ToString("00") + ":" + hsInfraccion.Minutes.ToString("00") + ":" + hsInfraccion.Seconds.ToString("00") }
            });
        }
        private static string GetPuntoEntregaPopupContent(PuntoEntrega punto)
        {
            const string html = @"<table><tr><td><img src=""{0}"" /></td><td>"
                                + @"<div style=""font-size: 9px; color: #CCCCCC"">{1}</div>"
                                + @"<div style=""font-size: 12px;""><b>{2}</b> ({3})</div>"
                                + @"</td></tr></table><hr />"
                                + "{4}: {5}<br/>{6}<br/>{7}<br/>{8}<br/>{9}";

            var icon = punto.ReferenciaGeografica.Icono != null
                            ? punto.ReferenciaGeografica.Icono.PathIcono
                            : punto.ReferenciaGeografica.TipoReferenciaGeografica.Icono != null
                                ? punto.ReferenciaGeografica.TipoReferenciaGeografica.Icono.PathIcono
                                : string.Empty;

            return(string.Format(html,
                                 IconDir + icon,
                                 CultureManager.GetEntity("PARENTI44"),
                                 punto.Descripcion,
                                 punto.Codigo,
                                 CultureManager.GetEntity("CLIENT"),
                                 punto.Cliente.Descripcion,
                                 punto.ReferenciaGeografica.Descripcion,
                                 punto.Comentario1,
                                 punto.Comentario2,
                                 punto.Comentario3));
        }
Beispiel #4
0
        private void GenerateColumns(BaseCsvBuilder builder)
        {
            builder.GenerateRow(String.Concat(Separator,
                                              Separator,
                                              Separator,
                                              Separator,
                                              CultureManager.GetLabel("TOTALES"),
                                              Separator,
                                              Separator,
                                              Separator,
                                              Separator,
                                              CultureManager.GetLabel("INFRACCIONES")));

            builder.GenerateRow(String.Concat(CultureManager.GetLabel("CHOFER"), Separator,
                                              CultureManager.GetLabel("LEGAJO"), Separator,
                                              CultureManager.GetEntity("PARENTI37"), Separator,
                                              CultureManager.GetEntity("PARENTI04"), Separator, Separator,
                                              CultureManager.GetLabel("KILOMETROS"), Separator,
                                              CultureManager.GetLabel("MOVIMIENTO"), Separator,
                                              CultureManager.GetLabel("PUNTAJE"), Separator, Separator,
                                              CultureManager.GetLabel("LEVES"), Separator,
                                              CultureManager.GetLabel("MEDIAS"), Separator,
                                              CultureManager.GetLabel("GRAVES"), Separator,
                                              CultureManager.GetLabel("TOTALES"), Separator));
        }
        private void LoadAlarmas(EntidadPadre entidad, SubEntidad subEntidad)
        {
            var alarmas = DAOFactory.LogEventoDAO.GetByEntitiesAndCodes(new List <int> {
                entidad.Id
            },
                                                                        new List <string> {
                _codigoPolicia, _codigoBomberos, _codigoAmbulancia, _codigoExcesoTemperatura, _codigoBajaTemperatura, _codigoDesconexionTemperatura
            },
                                                                        dtDesde.SelectedDate.HasValue ? SecurityExtensions.ToDataBaseDateTime(dtDesde.SelectedDate.Value) : DateTime.MinValue,
                                                                        dtHasta.SelectedDate.HasValue ? SecurityExtensions.ToDataBaseDateTime(dtHasta.SelectedDate.Value) : DateTime.MinValue);
            var validas = alarmas.Where(alarma => alarma.Sensor != null &&
                                        (subEntidad == null ||
                                         alarma.SubEntidad.Id == subEntidad.Id))
                          .ToList();

            gridAlarmas.Columns[0].HeaderText = CultureManager.GetLabel("DATE");
            gridAlarmas.Columns[1].HeaderText = CultureManager.GetEntity("PARENTI79");
            gridAlarmas.Columns[2].HeaderText = CultureManager.GetEntity("PARENTI81");
            gridAlarmas.Columns[3].HeaderText = CultureManager.GetLabel("TEXTO");
            gridAlarmas.DataSource            = validas;
            gridAlarmas.DataBind();

            lblTitAlarma.Text = subEntidad != null
                                    ? CultureManager.GetLabel("ALARMAS_SUBENTIDAD") + @" " + subEntidad.Descripcion + @":"
                                    : CultureManager.GetLabel("ALARMAS_ENTIDAD") + @" " + entidad.Descripcion + @":";

            lblTitAlarma.Visible  = true;
            gridAlarmas.Visible   = validas.Count > 0;
            lblSinAlarmas.Visible = validas.Count == 0;
        }
Beispiel #6
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), cbEmpresa.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), cbLinea.SelectedItem.Text }
     });
 }
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI03"), ddlMovil.SelectedItem.Text },
         { CultureManager.GetLabel("FECHA_HORA"), dtpFecha.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dtpFecha.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
Beispiel #8
0
        private void SendMessage(string cmd, string par)
        {
            if (cbSubEntidadMensaje.SelectedIndex < 0)
            {
                JsAlert(string.Format(CultureManager.GetError("NO_SELECTED"), CultureManager.GetEntity("PARENTI81")));
                return;
            }

            var ok    = 0;
            var error = 0;

            var sent   = string.Empty;
            var failed = string.Empty;

            foreach (ListItem li in cbSubEntidadMensaje.Items)
            {
                if (!li.Selected)
                {
                    continue;
                }

                var c = DAOFactory.SubEntidadDAO.FindById(Convert.ToInt32(li.Value));

                if (c.Sensor == null || c.Sensor.Dispositivo == null)
                {
                    JsAlert(string.Format(CultureManager.GetSystemMessage("UNASIGNED_VEHICLE"), c.Descripcion));
                    continue;
                }

                var dispositivo = c.Sensor.Dispositivo;
                var message     = M2mMessageSender.Create(dispositivo, new M2mMessageSaver(DAOFactory)).AddCommand(cmd);

                var cfgValue = par.Equals("On") ? "true" : "false";
                message.AddConfigParameter("DigitalOutput1", cfgValue, 0);

                var sendState = message.Send();

                if (sendState)
                {
                    ok++;
                    sent += "\\n" + li.Text;
                }
                else
                {
                    error++;
                    failed += "\\n" + li.Text;
                }
            }

            if (ok > 0)
            {
                JsAlert(string.Format(CultureManager.GetSystemMessage("MESSAGE_SENT"), sent));
            }
            if (error > 0)
            {
                JsAlert(string.Format(CultureManager.GetError("MESSAGE_NOT_SENT"), failed));
            }
        }
Beispiel #9
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlBase.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI10"), ddlTipoDomicilio.SelectedItem.Text },
     });
 }
Beispiel #10
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlLocacion.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlPlanta.SelectedItem.Text },
         { CultureManager.GetLabel("FECHA"), dpFecha.SelectedDate.Value.ToString("dd/MM/yyyy HH:mm") }
     });
 }
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string> {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlBase.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI17"), ddlTipoVehiculo.SelectedItem.Text },
         { CultureManager.GetLabel("FECHA"), dpDia.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpDia.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
Beispiel #12
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), cbLinea.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI32"), ddlTipoDispositivo.SelectedItem.Text }
     });
 }
Beispiel #13
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlLocation.Selected > 0 ? DAOFactory.EmpresaDAO.FindById(ddlLocation.Selected).RazonSocial : "Todos" },
         { CultureManager.GetEntity("PARENTI02"), ddlPlanta.Selected > 0 ? DAOFactory.LineaDAO.FindById(ddlPlanta.Selected).Descripcion : "Todos" },
         { CultureManager.GetEntity("PARENTI03"), GetSelectedMovilesDescription(true) }
     });
 }
Beispiel #14
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlLocacion.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlPlanta.SelectedItem.Text },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.ToString() }, { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.ToString() }
     });
 }
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), cbEmpresa.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), cbLinea.SelectedItem.Text },
         { CultureManager.GetLabel("HORAS_FICHADA"), npHorasFichada.Value.ToString("#0") }
     });
 }
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI03"), ddlMovil.SelectedItem.Text },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString() },
         { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
Beispiel #17
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI02"), ddlPlanta.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI17"), ddlTipoDeVehiculo.SelectedItem.Text },
         { CultureManager.GetLabel("DESDE"), dpInitDate.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpInitDate.SelectedDate.GetValueOrDefault().ToShortTimeString() },
         { CultureManager.GetLabel("HASTA"), dpEndDate.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpEndDate.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
Beispiel #18
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI09"), Nombre },
         { CultureManager.GetLabel("LEGAJO"), Legajo },
         { CultureManager.GetLabel("DESDE"), Desde.ToDisplayDateTime().ToShortDateString() },
         { CultureManager.GetLabel("HASTA"), Hasta.ToDisplayDateTime().ToShortDateString() }
     });
 }
Beispiel #19
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlLocacion.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlPlanta.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI07"), ddlTransportista.SelectedItem.Text },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.GetValueOrDefault().ToString("dd/MM/yyyy HH:mm") },
         { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.GetValueOrDefault().ToString("dd/MM/yyyy HH:mm") }
     });
 }
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetLabel("CENTRO_DE_CARGA"), CentroDeCarga },
         { CultureManager.GetEntity("PARENTI19"), ddlEquipo.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI36"), (ddlTanque.SelectedItem != null) ? ddlTanque.SelectedItem.Text : "" },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString() },
         { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
Beispiel #21
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlBase.SelectedItem.Text },
         { CultureManager.GetLabel("KM_SUPERADOS"), npKm.Value.ToString() },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString() },
         { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
        private void GenerateCsvHeader(BaseCsvBuilder builder)
        {
            var param = new Dictionary <string, string>
            {
                { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
                { CultureManager.GetEntity("PARENTI02"), GetSelectedBases() }
            };

            builder.GenerateHeader(CultureManager.GetMenu("ACC_RANKING_TRANSPORTISTAS"), param,
                                   dpDesde.SelectedDate.GetValueOrDefault(), dpHasta.SelectedDate.GetValueOrDefault());
        }
Beispiel #23
0
 protected override Dictionary <String, String> GetFilterValues()
 {
     return(new Dictionary <String, String>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlBase.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI09"), GetSelectedEmpleados() },
         { CultureManager.GetLabel("DESDE"), String.Concat(dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString(), String.Empty, dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString()) },
         { CultureManager.GetLabel("HASTA"), String.Concat(dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString(), String.Empty, dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString()) }
     });
 }
Beispiel #24
0
        protected override Dictionary <string, string> GetFilterValues()
        {
            var desde = dtpFecha.SelectedDate.GetValueOrDefault().AddMinutes(-npRango.Value);
            var hasta = dtpFecha.SelectedDate.GetValueOrDefault().AddMinutes(npRango.Value);

            return(new Dictionary <string, string>
            {
                { CultureManager.GetEntity("PARENTI03"), ddlMovil.Selected > 0 ? DAOFactory.CocheDAO.FindById(ddlMovil.Selected).Interno : string.Empty },
                { CultureManager.GetLabel("DESDE"), desde.ToShortDateString() + " " + desde.ToShortTimeString() },
                { CultureManager.GetLabel("HASTA"), hasta.ToShortDateString() + " " + hasta.ToShortTimeString() }
            });
        }
 private void GenerateColumns(BaseCsvBuilder builder)
 {
     builder.GenerateRow(String.Concat(CultureManager.GetEntity("PARENTI07"), Separator,
                                       CultureManager.GetMenu("PAR_VEHICULOS"), Separator,
                                       CultureManager.GetLabel("KILOMETROS"), Separator,
                                       CultureManager.GetLabel("MOVIMIENTO"), Separator,
                                       CultureManager.GetLabel("PUNTAJE"), Separator,
                                       CultureManager.GetLabel("LEVES"), Separator,
                                       CultureManager.GetLabel("MEDIAS"), Separator,
                                       CultureManager.GetLabel("GRAVES"), Separator,
                                       CultureManager.GetLabel("TOTALES"), Separator));
 }
Beispiel #26
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlBase.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI79"), ddlEntidad.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI81"), ddlSubentidad.SelectedItem.Text },
         { CultureManager.GetLabel("FECHA_HORA"), dtpFecha.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dtpFecha.SelectedDate.GetValueOrDefault().ToShortTimeString() },
         { CultureManager.GetLabel("MINUTOS"), npMinutes.Value.ToString("{0:0.00}") }
     });
 }
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlLocation.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlPlanta.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI19"), ddlEquipo.SelectedItem.Text },
         { CultureManager.GetLabel("INTERVALO"), npIntervalo.Value.ToString() },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString() },
         { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString() + " " + dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString() }
     });
 }
Beispiel #28
0
 protected override Dictionary <String, String> GetFilterValues()
 {
     return(new Dictionary <String, String>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI02"), ddlPlanta.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI17"), ddlTipoVehiculo.SelectedItem.Text },
         { CultureManager.GetEntity("PARENTI03"), ddlMovil.SelectedItem.Text },
         { CultureManager.GetLabel("DESDE"), string.Concat(dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString(), " ", dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString()) },
         { CultureManager.GetLabel("HASTA"), string.Concat(dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString(), " ", dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString()) }
     });
 }
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), ddlDistrito.Selected > 0 ? DAOFactory.EmpresaDAO.FindById(ddlDistrito.Selected).RazonSocial : null },
         { CultureManager.GetEntity("PARENTI02"), ddlBase.Selected > 0? DAOFactory.LineaDAO.FindById(ddlBase.Selected).DescripcionCorta: null },
         { CultureManager.GetMenu("PAR_POI"), ddlGeoRef.Selected > 0 ? DAOFactory.ReferenciaGeograficaDAO.FindById(ddlGeoRef.Selected).Descripcion : null },
         { CultureManager.GetLabel("DISTANCIA"), npDistancia.Number.ToString("#0") },
         { CultureManager.GetLabel("DESDE"), dpDesde.SelectedDate.Value.ToShortDateString() + " " + dpDesde.SelectedDate.Value.ToShortTimeString() },
         { CultureManager.GetLabel("HASTA"), dpHasta.SelectedDate.Value.ToShortDateString() + " " + dpHasta.SelectedDate.Value.ToShortTimeString() }
     });
 }
Beispiel #30
0
 protected override Dictionary <string, string> GetFilterValues()
 {
     return(new Dictionary <string, string>
     {
         { CultureManager.GetEntity("PARENTI01"), cbEmpresa.Selected > 0 ? DAOFactory.EmpresaDAO.FindById(cbEmpresa.Selected).RazonSocial : null },
         { CultureManager.GetEntity("PARENTI02"), cbLinea.Selected > 0 ? DAOFactory.LineaDAO.FindById(cbLinea.Selected).DescripcionCorta : null },
         { CultureManager.GetEntity("PARENTI17"), cbTipoVehiculo.Selected > 0 ? DAOFactory.TipoCocheDAO.FindById(cbTipoVehiculo.Selected).Descripcion : null },
         { CultureManager.GetEntity("PARENTI03"), cbVehiculo.Selected > 0 ? DAOFactory.CocheDAO.FindById(cbVehiculo.Selected).Interno : null },
         { CultureManager.GetLabel("DESDE"), String.Concat(dpDesde.SelectedDate.GetValueOrDefault().ToShortDateString(), String.Empty, dpDesde.SelectedDate.GetValueOrDefault().ToShortTimeString()) },
         { CultureManager.GetLabel("HASTA"), String.Concat(dpHasta.SelectedDate.GetValueOrDefault().ToShortDateString(), String.Empty, dpHasta.SelectedDate.GetValueOrDefault().ToShortTimeString()) }
     });
 }