git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C365
This commit is contained in:
parent
98fea45d89
commit
4cc14c98ff
3 changed files with 18 additions and 7 deletions
|
|
@ -40,12 +40,19 @@ this.CrearEncuesta = function (data) {
|
|||
var q = page.addNewQuestion(item.type, item.title)
|
||||
|
||||
if (item.type == "dropdown" || item.type == "radiogroup" || item.type == "checkbox") {
|
||||
q.choices = item.choices
|
||||
q.choices = item.choices;
|
||||
|
||||
if (q.choices.length % 3 == 0 && q.choices.length > 4)
|
||||
q.colCount = 3
|
||||
q.colCount = 3;
|
||||
}
|
||||
q.isRequired = true
|
||||
//item.Requerido
|
||||
|
||||
if (item.type == "rating")
|
||||
{
|
||||
q.mininumRateDescription = item.RangoMinimo;
|
||||
q.maximumRateDescription = item.RangoMaximo;
|
||||
}
|
||||
|
||||
q.isRequired = item.Requerido == true;
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -211,7 +211,11 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
name = listaencuesta.NombrePregunta,
|
||||
title = listaencuesta.TituloPregunta,
|
||||
isRequired = listaencuesta.Requerido.Value,
|
||||
choices = listaencuesta.RespuestaPregunta != null ? listaencuesta.RespuestaPregunta.Split('|').ToList() : null
|
||||
choices = listaencuesta.RespuestaPregunta != null ? listaencuesta.RespuestaPregunta.Split('|').ToList() : null,
|
||||
maximumRateDescription = listaencuesta.RangoMaximo,
|
||||
mininumRateDescription = listaencuesta.RangoMinimo,
|
||||
columns = listaencuesta.Columnas != null ? listaencuesta.Columnas.Split('|').ToList() : null,
|
||||
rows = listaencuesta.Filas != null ? listaencuesta.Filas.Split('|').ToList() : null
|
||||
};
|
||||
|
||||
model.questions.Add(json);
|
||||
|
|
|
|||
|
|
@ -78,8 +78,8 @@ namespace AYA.SlnSinortModel.Entidades
|
|||
public List<string> choices { get; set; }
|
||||
public string mininumRateDescription { get; set; }
|
||||
public string maximumRateDescription { get; set; }
|
||||
public List<Columnas> columns { get; set; }
|
||||
public List<Filas> rows { get; set; }
|
||||
public List<string> columns { get; set; }
|
||||
public List<string> rows { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue