Ejemplo n.º 1
0
        public JsonResult NotificaReportesRes(int clvuser, string tipo)
        {
            List <ReporteBean> repBean = new List <ReporteBean>();
            ReporteDao         repDao  = new ReporteDao();

            repBean = repDao.sp_Notifica_Reportes_Resueltos(clvuser, tipo);
            return(Json(repBean));
        }
Ejemplo n.º 2
0
        public JsonResult ActualizaReportesProb(int clvreport, int estado, string msjreport)
        {
            ReporteBean repBean = new ReporteBean();
            ReporteDao  repDao  = new ReporteDao();

            repBean = repDao.sp_Actualizar_ReporteProblema_Notifica(clvreport, estado, msjreport);
            var data = new { resp = repBean.sMensaje };

            return(Json(data));
        }
Ejemplo n.º 3
0
        public JsonResult NotificaConfirm(int clvrep)
        {
            ReporteBean repBean = new ReporteBean();
            ReporteDao  repDao  = new ReporteDao();

            repBean = repDao.sp_Notifica_Confirma_Vista(clvrep);
            var data = new { resp = repBean.sMensaje };

            return(Json(data));
        }
Ejemplo n.º 4
0
        public JsonResult EnvReportProblema(int keyreport, string msjreport, string code)
        {
            ReporteBean repBean = new ReporteBean();
            ReporteDao  repDao  = new ReporteDao();
            string      result  = "";

            repBean = repDao.sp_Insert_Reporta_Problema(keyreport, msjreport, code);
            result  = repBean.sMensaje;
            var data = new { resp = result };

            return(Json(data));
        }
Ejemplo n.º 5
0
 public long CountReporte()
 {
     return(ReporteDao.Count());
 }
Ejemplo n.º 6
0
 public Reporte GetReporte(Expression <Func <Reporte, bool> > criteria)
 {
     return(ReporteDao.Get(criteria));
 }
Ejemplo n.º 7
0
 public Reporte GetReporte(int id)
 {
     return(ReporteDao.Get(id));
 }
Ejemplo n.º 8
0
 public List <Reporte> GetAllReporte(string conditions, string orders)
 {
     return(ReporteDao.GetAll(conditions, orders));
 }
Ejemplo n.º 9
0
 public List <Reporte> GetAllReporte(string orders)
 {
     return(ReporteDao.GetAll(orders));
 }
Ejemplo n.º 10
0
 public List <Reporte> GetAllReporte(Expression <Func <Reporte, bool> > criteria)
 {
     return(ReporteDao.GetAll(criteria));
 }
Ejemplo n.º 11
0
 public List <Reporte> GetAllReporte()
 {
     return(ReporteDao.GetAll());
 }
Ejemplo n.º 12
0
 public void DeleteReporte(int id)
 {
     ReporteDao.Delete(id);
 }
Ejemplo n.º 13
0
 public void UpdateReporte(Reporte entity)
 {
     ReporteDao.Update(entity);
 }
Ejemplo n.º 14
0
 public int SaveReporte(Reporte entity)
 {
     return(ReporteDao.Save(entity));
 }
Ejemplo n.º 15
0
 public long CountReporte(Expression <Func <Reporte, bool> > criteria)
 {
     return(ReporteDao.Count(criteria));
 }