コード例 #1
0
 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)));
     }
 }
コード例 #2
0
 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)));
     }
 }
コード例 #3
0
 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)));
     }
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
 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);
     }
 }