Beispiel #1
0
    public static string getSubAreasByFicepi(int ta200_idareapreventa, string origenMenu)
    {
        IB.SUPER.SIC.BLL.SubareaPreventa cTP = new IB.SUPER.SIC.BLL.SubareaPreventa();

        bool actuocomoadministrador = false;

        if (origenMenu == "ADM")
        {
            actuocomoadministrador = true;
        }

        try
        {
            return(JsonConvert.SerializeObject(cTP.getSubAreasByFicepi(ta200_idareapreventa, int.Parse(HttpContext.Current.Session["IDFICEPI_PC_ACTUAL"].ToString()), actuocomoadministrador)));
        }
        catch (Exception ex)
        {
            LogError.LogearError("Error al obtener los áreas", ex);
            throw new Exception("Error al obtener los áreas");
        }
        finally
        {
            if (cTP != null)
            {
                cTP.Dispose();
            }
        }
    }
Beispiel #2
0
    public static string getFiguras_SubArea(int ta201_idsubareapreventa)
    {
        IB.SUPER.SIC.BLL.SubareaPreventa cTP = new IB.SUPER.SIC.BLL.SubareaPreventa();

        try
        {
            return(JsonConvert.SerializeObject(cTP.getFiguras_SubArea(ta201_idsubareapreventa)));
        }
        catch (Exception ex)
        {
            LogError.LogearError("Error al obtener las figuras del Subarea", ex);
            throw new Exception("Error al obtener las figuras del Subarea");
        }
        finally
        {
            if (cTP != null)
            {
                cTP.Dispose();
            }
        }
    }