コード例 #1
0
        public override string ToString()
        {
            StringBuilder texto = new StringBuilder();

            texto.Append("Aplicación: " + Aplicacion);
            texto.Append(", Modulo: " + Modulo);
            texto.Append(", Acción: " + Accion);
            texto.Append(", FechaAccion: " + (FechaAccion != null ? FechaAccion.ToString("dd-MM-yyyy HH:mm:ss") : ""));
            texto.Append(", DetalleAcción: " + DetalleAccion);
            texto.Append(", NombreEquipo: " + NombreEquipo);
            texto.Append(", DireccionIp: " + DireccionIp);
            texto.Append(", Usuario: " + Usuario);
            texto.Append(", PerfilUsuario: " + PerfilUsuario);
            texto.Append(", ValorAnterior: " + ValorAnterior);
            texto.Append(", ValorActual: " + ValorActual);
            texto.Append(", TramaEnviada: " + TramaEnviada);
            texto.Append(", TramaRecibida: " + TramaRecibida);
            texto.Append(", Usuario: " + Usuario);
            texto.Append(", Cliente: " + Cliente);
            texto.Append(", CodigoAutorizacion: " + CodigoAutorizacion);
            texto.Append(", MontoTransaccion: " + MontoTransaccion);
            texto.Append(", MonedaTransaccion: " + MonedaTransaccion);
            texto.Append(", NumeroControl: " + NumeroControl);

            return(texto.ToString());
        }
コード例 #2
0
        private async void Guardar()
        {
            IsEnabled = false;
            #region Miranda: Guardar Tabla

            #region Ciclo para Guardar en Persistencia
            if (Application.Current.Properties.ContainsKey("ContadorAcciones"))//verifico cuantos elementos tiene mi lista para saber cual es la psocion del nuevo elemento a agregar
            {
                Elementos = (int.Parse((Application.Current.Properties["ContadorAcciones"]) as string));
            }
            else
            {
                Elementos = 0;
            }

            Application.Current.Properties["TipoAccion" + Elementos]  = TipoAccion.ToString();
            Application.Current.Properties["FechaAccion" + Elementos] = FechaAccion.ToString();
            Application.Current.Properties["Responsable" + Elementos] = ResponsableAccion.ToString();
            Application.Current.Properties["Comentario" + Elementos]  = Comentario.ToString();
            Application.Current.Properties["ContadorAcciones"]        = (Elementos + 1).ToString();
            await Application.Current.SavePropertiesAsync();

            #endregion


            int filas;
            filas         = Elementos + 1;
            HeighListView = 44 * filas;//actalizo mi heigh
            await Application.Current.MainPage.DisplayAlert("Notificación", "Usted Tiene hasta Ahora: " + filas + " Acciones", "Excelente");

            IsEnabled = true;
            Acciones.Add(new Accion()
            {
                Comentario  = Comentario.ToString(),
                FechaAccion = FechaAccion,
                TipoAccion  = TipoAccion.ToString(),
                Responsable = ResponsableAccion.ToString(),
            });
            AnMeliponarioCajaViewModel.GetInstance().AccionesCaja   = Acciones;           //asigno los datos de mi lista
            AnMeliponarioCajaViewModel.GetInstance().HeighListViewB = this.HeighListView; //actualizo el heigh de mi vista anterior

            await Application.Current.MainPage.Navigation.PopAsync();


            #endregion


            TipoAccion        = string.Empty;
            OrigenColonia     = string.Empty;
            ResponsableAccion = string.Empty;
            Comentario        = string.Empty;
            IsEnabled         = true;
        }
コード例 #3
0
        //Metodo genérico de insercion de tipificaciones , independientemente del área.
        public bool CEDICSEM_INSERTA_TIPIFICACIONES()
        {
            bool   estado = false;
            String nombreProcedimiento = "[XIUX_CEDICSEM_INSERTA_TIPIFICACION]";

            SqlParameter[] parameter =
            {
                new SqlParameter("@CEDICSEM_T_CONNID",             GEN_Connid.ToUpper()),
                new SqlParameter("@CEDICSEM_T_ANI",                GEN_Origen.ToUpper()),
                new SqlParameter("@CEDICSEM_T_DNIS",               GEN_Destino.ToUpper()),
                new SqlParameter("@CEDICSEM_T_HORA_IN_LLAMADA",    GEN_FechaInicioCall.ToUpper()),
                new SqlParameter("@CEDICSEM_T_HORA_OUT_LLAMADA",   GEN_FechaTerminoCall.ToUpper()),
                new SqlParameter("@CEDICSEM_T_DURACION_LLAMADA",   GEN_DuracionCall.ToUpper()),
                new SqlParameter("@CEDICSEM_T_AGENTE",             GEN_Agente.ToUpper()),
                new SqlParameter("@CEDICSEM_T_TIPO_INTERACCION",   GEN_TipoInteraccion.ToUpper()),
                new SqlParameter("@CEDICSEM_T_NOMBRE_CAMP",        GEN_NombreCamp.ToUpper()),
                new SqlParameter("@CEDICSEM_T_cmbEfectividad",     cmbnivel1.ToUpper()),
                new SqlParameter("@CEDICSEM_T_cmbAccion",          cmbnivel2.ToUpper()),
                new SqlParameter("@CEDICSEM_T_cmbMotivos",         cmbnivel3.ToUpper()),
                new SqlParameter("@CEDICSEM_T_OBSERVACIONES",      Observaciones.ToUpper()),
                new SqlParameter("@CEDICSEM_T_ESTADOINTERACCION",  GEN_EstadoInteraccion.ToUpper()),
                new SqlParameter("@CEDICSEM_T_ESTADOTIPIFICACION", GEN_EstadoTipificacion.ToUpper()),
                new SqlParameter("@CEDICSEM_T_FECHAACCION",        FechaAccion.ToUpper())
            };
            try
            {
                estado = SqlHelper.executeProcedure(nombreProcedimiento, parameter);
                return(estado);
            }
            catch (Exception error)
            {
                // Extract some information from this exception, and then
                // throw it to the parent method.
                if (error.Source != null)
                {
                    Console.WriteLine("IOException source: {0}", error.Source);
                }
                return(estado);

                throw;
            }
        }