Exemplo n.º 1
0
        public JsonResult actualizar_estado_deshabilitar_fase_tiempo(Fase_Tiempo fase)
        {
            var    t          = fase;
            string validacion = "fail";
            Fecha  fecha      = new Fecha();

            Fase_Tiempo fase_tiempo = new Fase_Tiempo();

            fase_tiempo.ID_FASE              = t.ID_FASE;
            fase_tiempo.FECHA_MODIFICACION   = fecha.fecha();
            fase_tiempo.USUARIO_MODIFICACION = (string)(Session["User"]);

            int result = dao_fase.ActualizarEstadoDeshabilitarFase(fase_tiempo);

            if (result == 1)
            {
                validacion = "sucess";
            }
            return(Json(validacion, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public string actualizar_estado_deshabilitar_fase_tiempo(Fase_Tiempo fase, string user)
        {
            var    t          = fase;
            string validacion = "fail";
            Fecha  fecha      = new Fecha();

            Fase_Tiempo fase_tiempo = new Fase_Tiempo();

            fase_tiempo.ID_FASE              = t.ID_FASE;
            fase_tiempo.FECHA_MODIFICACION   = fecha.fecha();
            fase_tiempo.USUARIO_MODIFICACION = user;

            int result = dao_fase.ActualizarEstadoDeshabilitarFase(fase_tiempo);

            if (result == 1)
            {
                validacion = "sucess";
            }
            return(validacion);
        }