public override string ToString()
 {
     return(string.Format("Fecha Inicio:{6}{5}" +
                          "Fecha Fin:{7}{5}" +
                          "Duracion:{0}{5}" +
                          "Usuario:{1}{5}" +
                          "Accion:{2}{5}" +
                          "Request:{5}{3}{5}" +
                          "Response:{5}{4}{5}",
                          (int)new TimeSpan(FechaFin.Ticks - FechaInicio.Ticks).TotalSeconds, Usuario, Accion, Request,
                          Response, Environment.NewLine, FechaInicio.ToString("yy-MM-dd hh:mm:ss"),
                          FechaFin.ToString("yy-MM-dd hh:mm:ss")));
 }
Example #2
0
        public CarteleraModelAndView()
        {
            idCarteleraModel         = IdCartelera.ToString();
            idSedeCarteleraModel     = IdSede.ToString();
            idPeliculaCarteleraModel = IdPelicula.ToString();
            horaInicioModel          = HoraInicio.ToString();
            fechaInicioModel         = FechaInicio.ToString();
            fechaFinModel            = FechaFin.ToString();
            numeroSalaModel          = NumeroSala.ToString();
            idVersionModel           = IdVersion.ToString();
            lunesModel          = Lunes.ToString();
            martesModel         = Martes.ToString();
            miercolesModel      = Miercoles.ToString();
            juevesModel         = Jueves.ToString();
            viernesModel        = Viernes.ToString();
            sabadoModel         = Sabado.ToString();
            domingoModel        = Domingo.ToString();
            fechaCargaModel     = FechaCarga.ToString();
            listadoDeCarteleras = new List <Carteleras>();

            llenarListados(); //Llena las listas Sedes, Peliculas y Versiones.
        }
Example #3
0
        public bool Modificar()
        {
            ConexionDb conexion = new ConexionDb();

            return(conexion.EjecutarDB("Update Semestres set Codigo = " + Codigo + "', FechaInicio ='" + FechaInicio.ToString("dd/MM//yyyy") + "', FechaInicio ='" + FechaFin.ToString("dd/MM//yyyy") + "', FechaParcial1 ='" + FechaParcial1.ToString("dd/MM//yyyy") + "', FechaParcial2 ='" + FechaParcial2.ToString("dd/MM//yyyy") + "', FechaFinal ='" + FechaFinal.ToString("dd/MM//yyyy") + "' where IdEstudiante= " + IdSemestre));
        }
Example #4
0
        public bool Insertar()
        {
            ConexionDb conexion = new ConexionDb();
            bool       paso     = false;

            paso = conexion.EjecutarDB("Insert into Semestres (Codigo, FechaInicio, FechaFin, FechaParcial1, FechaParcial2, FechaFinal, esActivo) Values ('" + Codigo + "', '" + FechaInicio.ToString("MM/dd/yyyy") + "', '" + FechaFin.ToString("MM/dd/yyyy") + "', '" + FechaParcial1.ToString("MM/dd/yyyy") +
                                       "','" + FechaParcial2.ToString("MM/dd/yyyy") + "', '" + FechaFinal.ToString("MM/dd/yyyy") + "' , '" + esActivo + "' )");

            if (paso)
            {
                IdSemestre = (int)conexion.ObtenerValorDb("Select Max(IdSemestre) from Semestres");
            }
            return(paso);
        }
Example #5
0
 public override string ToString()
 {
     return(ID + "|" + Nombre + "|" + FechaInicio.ToString("dd/MM/yyyy") + "|" + FechaFin.ToString("dd/MM/yyyy"));
 }