git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C50
This commit is contained in:
parent
e6cac49bed
commit
714483b3b3
3 changed files with 12 additions and 8 deletions
|
|
@ -243,12 +243,13 @@ this.CargarTablaPantallas = function (data) {
|
||||||
|
|
||||||
$.each(lista, function (key, item) {
|
$.each(lista, function (key, item) {
|
||||||
|
|
||||||
var pantallas = $("#ucbtnCheck").html();
|
var checkbox = $("#ucbtnCheck").html();
|
||||||
var id = item.IdPantalla;
|
checkbox = replaceAll("[$id]", item.IdPantalla, checkbox);
|
||||||
|
checkbox = replaceAll("[$check]", item.Estado != true ? "" : "checked", checkbox);
|
||||||
|
|
||||||
TableItems.row.add([id,
|
TableItems.row.add([item.IdPantalla,
|
||||||
item.Descripcion,
|
item.Pantallas.Descripcion,
|
||||||
'<input type="checkbox" id="chkSeleccionar_' + id + '" >']).draw();
|
checkbox]).draw();
|
||||||
});
|
});
|
||||||
|
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
|
|
|
||||||
|
|
@ -128,10 +128,10 @@
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@*<div id="ucbtnCheck" style="display:none;" class="checkbox">
|
|
||||||
<input type="checkbox" id="chkSeleccionar" value="true">
|
|
||||||
|
|
||||||
</div>*@
|
<div id="ucbtnCheck" style="display:none;">
|
||||||
|
<input type="checkbox" id="chkSeleccionar_[$id]" [$check]>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-success btn-sm" onclick="javascript: GuardarRolesPantallas()">Guardar</button>
|
<button type="button" class="btn btn-success btn-sm" onclick="javascript: GuardarRolesPantallas()">Guardar</button>
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,9 @@ namespace Atesa.Utilitarios
|
||||||
{
|
{
|
||||||
byte[] body;
|
byte[] body;
|
||||||
var serializer = new JsonSerializer();
|
var serializer = new JsonSerializer();
|
||||||
|
serializer.Formatting = Newtonsoft.Json.Formatting.Indented;
|
||||||
|
serializer.PreserveReferencesHandling = PreserveReferencesHandling.Objects;
|
||||||
|
|
||||||
serializer.Converters.Add(new StringEnumConverter { AllowIntegerValues = false, CamelCaseText = false });
|
serializer.Converters.Add(new StringEnumConverter { AllowIntegerValues = false, CamelCaseText = false });
|
||||||
Message replyMessage = null;
|
Message replyMessage = null;
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue