예제 #1
0
 public MetodologiasController()
 {
     db          = TpIntegradorDbContext.GetInstance();
     condService = new CondicionesService(db);
     metService  = new MetodologiasService(db);
     empService  = new EmpresasService(db);
 }
예제 #2
0
        public ActionResult GetAllEmpresas(int page, int start, int limit, string sort, string dir, long _dc, string callback, string condicion = null, string codigo = null)
        {
            var filter = new PagingInfo
            {
                page     = page,
                start    = start,
                limit    = limit,
                sort     = sort,
                dir      = dir,
                _dc      = _dc,
                callback = callback,
                search   = condicion
            };
            var service  = new EmpresasService();
            var jsondata = service.GetAllEmpresas(filter, codigo);
            JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
            string callback1 = callback + "(" + javaScriptSerializer.Serialize(jsondata) + ");";

            return(JavaScript(callback1));
        }
예제 #3
0
 public EmpresasController(EmpresasService service, ArquivosService arquivosService)
 {
     _service         = service;
     _arquivosService = arquivosService;
 }
예제 #4
0
 public BalancesController()
 {
     db             = TpIntegradorDbContext.GetInstance();
     balanceService = new BalancesService(db);
     empService     = new EmpresasService(db);
 }
 public EmpresasController()
 {
     _service = new EmpresasService();
 }
예제 #6
0
 public EmpresasController()
 {
     this.empresasService = new EmpresasService();
     this.sectoresService = new SectoresService();
 }
 public PlanosAcaoController(PlanosAcaoService service, ArquivosService arquivosService, EmpresasService empresasService)
 {
     _service         = service;
     _arquivosService = arquivosService;
     _empresasService = empresasService;
 }