Exemplo n.º 1
0
    private string cargarConceptosEco()
    {
        byte          bGrupo = 2, bSubgrupo = 6;
        StringBuilder sb = new StringBuilder();

        try
        {
            SqlDataReader dr = CONCEPTOECO.Obtener(bGrupo, bSubgrupo); // OTRA PRODUCCION(2,6) ;
            while (dr.Read())
            {
                sb.Append("<tr style='height:16px;'><td><input hideFocus id='" + dr["T328_IDCONCEPTOECO"].ToString() + "' t='OP'");
                sb.Append(" class='check' checked type=checkbox  runat='server'/>(OP) " + dr["T328_DENOMINACION"].ToString() + "</td></tr>");
            }
            dr.Close();
            dr.Dispose();

            bSubgrupo = 14;
            SqlDataReader dr2 = CONCEPTOECO.Obtener(bGrupo, bSubgrupo); // AVANCE DEL SERVICIO(2,14) ;
            while (dr2.Read())
            {
                sb.Append("<tr style='height:16px;'><td><input hideFocus id='" + dr2["T328_IDCONCEPTOECO"].ToString() + "' t='AS'");
                sb.Append(" class='check' checked type=checkbox  runat='server'/>(AS) " + dr2["T328_DENOMINACION"].ToString() + "</td></tr>");
            }
            dr2.Close();
            dr2.Dispose();

            return("OK@#@" + sb.ToString());
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al cargar otra producción", ex));
        }
    }
Exemplo n.º 2
0
    private string cargarProduccionProf(byte bGrupo, byte bSubgrupo)
    {
        StringBuilder sb = new StringBuilder();
        SqlDataReader dr = CONCEPTOECO.Obtener(bGrupo, bSubgrupo); // PROFESIONALES(2,5)

        try
        {
            while (dr.Read())
            {
                sb.Append(dr["T328_IDCONCEPTOECO"].ToString() + ",");
            }
            dr.Close();
            dr.Dispose();

            return("OK@#@" + sb.ToString());
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al cargar producción profesionales", ex));
        }
    }
Exemplo n.º 3
0
    private string getCE(string sSE)
    {
        try
        {
            StringBuilder sb = new StringBuilder();
            SqlDataReader dr = CONCEPTOECO.SelectByT327_idsubgrupoeco(null, byte.Parse(sSE), null, true, false, true, true);

            while (dr.Read())
            {
                sb.Append(dr["t328_idconceptoeco"].ToString() + "##" + dr["t328_denominacion"].ToString() + "///");
            }
            dr.Close();
            dr.Dispose();

            return("OK@#@" + sb.ToString());
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al obtener los subgrupos económicos", ex));
        }
    }
Exemplo n.º 4
0
    private string cargarOtraProduccion(byte bGrupo, byte bSubgrupo)
    {
        StringBuilder sb = new StringBuilder();
        SqlDataReader dr = CONCEPTOECO.Obtener(bGrupo, bSubgrupo); // OTRA PRODUCCION(2,6) ;

        try
        {
            while (dr.Read())
            {
                sb.Append("<tr style='height:16px;'><td><INPUT hideFocus id='" + dr["T328_IDCONCEPTOECO"].ToString() + "'");
                sb.Append(" class='check' checked type=checkbox  runat='server'/>" + dr["T328_DENOMINACION"].ToString() + "</td></tr>");
            }
            dr.Close();
            dr.Dispose();

            return("OK@#@" + sb.ToString());
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al cargar otra producción", ex));
        }
    }