string getTiposDeBloqueo(EsquemasModel model)
        {
            string html     = string.Empty;
            int    contador = 0;
            Dictionary <string, string> dict = model.Obtener_TipoBloqueo();

            foreach (KeyValuePair <string, string> pair in dict)
            {
                html += "<div class=\"col-md-2\"> <div class=\"form-group\"><label> " + pair.Value + "</label><br><input id='TipoBloqueo_" + (contador++) + "' data-idbloqueo='" + pair.Key + "' type='checkbox' value='" + pair.Key + "'></div></div>\n";
            }
            html += "<input type='hidden' id='TipoBloqueo_length' value='" + contador + "'>";
            return(html);
        }
Exemple #2
0
        string getTiposDeBloqueo(EsquemasModel model)
        {
            string html     = string.Empty;
            int    contador = 0;
            Dictionary <string, string> dict = model.Obtener_TipoBloqueo();

            foreach (KeyValuePair <string, string> pair in dict)
            {
                html += "<label class='radio-inline'>\n<input id='TipoBloqueo_" + (contador++) + "' data-idbloqueo='" + pair.Key + "' type='checkbox' value='" + pair.Key + "'> " + pair.Value + "\n</label>";
            }
            html += "<input type='hidden' id='TipoBloqueo_length' value='" + contador + "'>";
            return(html);
        }