public static void GrabarVinEstCC(string nodeKey, string idCC) { try { CentrosCoste.GrabarEstrucCenCos(nodeKey, idCC); } catch (Exception ex) { throw new Exception(Utilidades.escape(Errores.mostrarError("Error al grabar VinEstCC", ex))); } }
public static string CargaInicialCentrosCoste() { try { return(CentrosCoste.CatalogoCenCosEstructura()); } catch (Exception ex) { throw new Exception(Utilidades.escape(Errores.mostrarError("Error en la carga inicial del Centro de coste", ex))); } }
public static void GrabarCCCheck(string id, short ischecked) { try { CentrosCoste.GrabarEstadoGasvi(Regex.Split(id, "@#sep#@")[1], ischecked); } catch (Exception ex) { throw new Exception(Utilidades.escape(Errores.mostrarError("Error en al grabar el CCCheck", ex))); } }
protected void Page_Load(object sender, EventArgs e) { try { if (Session["GVT_IDRED"] == null) { try { Response.Redirect("~/SesionCaducadaModal.aspx", true); } catch (System.Threading.ThreadAbortException) { return; } } this.strTablaHTML = CentrosCoste.ObtenerNodosCCIberper(Utilidades.decodpar(Request.QueryString["sb"].ToString())); } catch (Exception ex) { sErrores += Errores.mostrarError("Error al obtener los centros de responsabilidad.", ex); } }
protected void Page_Load(object sender, EventArgs e) { try { if (Session["GVT_IDRED"] == null) { try { Response.Redirect("~/SesionCaducadaModal.aspx", true); } catch (System.Threading.ThreadAbortException) { return; } } strTablaHtml = CentrosCoste.CatalogoCenCosAll(); } catch (Exception ex) { sErrores += Errores.mostrarError("Error al obtener los datos de los centros de costes", ex); } }