public JsonResult ListarQuantidadeLayerFeicao(int idNavegador, int idProjeto) { feicaoBus = new LayerFeicaoBusiness(); List <LayerFeicaoQuantidade> layersQtde = feicaoBus.ListarQuantidadeFeicoes(idNavegador, idProjeto);; if (layersQtde == null) { layersQtde = new List <LayerFeicaoQuantidade>(); } return(Json(layersQtde.ToArray(), JsonRequestBehavior.AllowGet)); }
public JsonResult ListarCategoria(int idNavegador, int idProjeto) { feicaoBus = new LayerFeicaoBusiness(); List <CategoriaLayerFeicao> categorias = feicaoBus.ListarCategoria(idNavegador, idProjeto); if (categorias == null) { categorias = new List <CategoriaLayerFeicao>(); } return(Json(categorias.ToArray(), JsonRequestBehavior.AllowGet)); }
public JsonResult ImportarFeicoes(int idNavegador, int idProjeto, bool isFinalizadas) { FeicaoBusiness busGeo = new FeicaoBusiness(); LayerFeicaoBusiness.LimparCacheLayers(idProjeto); ProjetoBusiness.InvalidarProcessamento(idProjeto); Retorno retorno = busGeo.ImportarFeicoes(idNavegador, idProjeto, isFinalizadas); if (retorno == null) { retorno = new Retorno(); } return(Json(retorno, JsonRequestBehavior.AllowGet)); }
public JsonResult Excluir(int idLayerFeicao, int objectId, int idProjeto) { FeicaoBusiness busGeo = new FeicaoBusiness(); Retorno retorno = null; LayerFeicaoBusiness.LimparCacheLayers(idProjeto); ProjetoBusiness.InvalidarProcessamento(idProjeto); retorno = busGeo.Excluir(idLayerFeicao, objectId, idProjeto); if (retorno == null) { retorno = new Retorno(); } return(Json(retorno, JsonRequestBehavior.AllowGet)); }
public JsonResult AtualizarGeometria(FeicaoObjeto feicao) { FeicaoBusiness busGeo = new FeicaoBusiness(); Retorno retorno = null; if (feicao != null) { LayerFeicaoBusiness.LimparCacheLayers(feicao.IdProjeto); ProjetoBusiness.InvalidarProcessamento(feicao.IdProjeto); retorno = busGeo.AtualizarGeometria(feicao); } if (retorno == null) { retorno = new Retorno(); } return(Json(retorno, JsonRequestBehavior.AllowGet)); }
public JsonResult AtualizarGeometrias(List <FeicaoObjeto> feicoes) { FeicaoBusiness busGeo = new FeicaoBusiness(); List <Retorno> resposta = new List <Retorno>(); Retorno retorno; if (feicoes != null && feicoes.Count > 0) { LayerFeicaoBusiness.LimparCacheLayers(feicoes[0].IdProjeto); ProjetoBusiness.InvalidarProcessamento(feicoes[0].IdProjeto); for (int n = 0; n < feicoes.Count; n++) { retorno = new Retorno(); retorno = busGeo.AtualizarGeometria(feicoes[n]); resposta.Add(retorno); } } return(Json(resposta, JsonRequestBehavior.AllowGet)); }
public JsonResult ExcluirFeicoes(List <FeicaoObjeto> feicoes) { FeicaoBusiness busGeo = new FeicaoBusiness(); Retorno retorno = null; List <Retorno> resposta = new List <Retorno>(); if (feicoes != null && feicoes.Count > 0) { LayerFeicaoBusiness.LimparCacheLayers(feicoes[0].IdProjeto); ProjetoBusiness.InvalidarProcessamento(feicoes[0].IdProjeto); for (int n = 0; n < feicoes.Count; n++) { retorno = new Retorno(); retorno = busGeo.Excluir(feicoes[n].IdLayerFeicao, feicoes[n].ObjectId, feicoes[n].IdProjeto); resposta.Add(retorno); } } if (resposta == null) { resposta = new List <Retorno>(); } return(Json(resposta, JsonRequestBehavior.AllowGet)); }