Filtros de busqueda avanzada
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C307
This commit is contained in:
parent
c2a361eaa1
commit
f756460234
3 changed files with 58 additions and 12 deletions
|
|
@ -1839,4 +1839,33 @@ this.EntrarPantallaSolicitud = function (codigo) {
|
||||||
url = url.replace("Controller", "NormativaReglamentacionTecnica");
|
url = url.replace("Controller", "NormativaReglamentacionTecnica");
|
||||||
url = url.replace("[$ID]", ROT47(codigo));
|
url = url.replace("[$ID]", ROT47(codigo));
|
||||||
document.location.href = url;
|
document.location.href = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.AddSelectOption = function (selectId, optionId, _text) {
|
||||||
|
|
||||||
|
$(_selectId)
|
||||||
|
.append($("<option></option>")
|
||||||
|
.attr("value", _optionId)
|
||||||
|
.text(_text));
|
||||||
|
};
|
||||||
|
|
||||||
|
this.CleanSelectControl = function (_selectId) {
|
||||||
|
|
||||||
|
$(_selectId).empty();
|
||||||
|
|
||||||
|
listItems = "<option value='' ></option>";
|
||||||
|
|
||||||
|
$(_selectId).append(listItems);
|
||||||
|
|
||||||
|
|
||||||
|
$(_selectId).val("");
|
||||||
|
};
|
||||||
|
|
||||||
|
this.StartSelectControlRequest = function (_selectId) {
|
||||||
|
|
||||||
|
$(_selectId).empty();
|
||||||
|
|
||||||
|
listItems = "<option value='-1' ><i class=\"fa fa-spinner fa-spin\"></i>Cargando catalogos, Por favor Espere...</option>";
|
||||||
|
|
||||||
|
$(_selectId).append(listItems);
|
||||||
|
};
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
var Item = {};
|
var Item = {};
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
|
|
||||||
$('#tableFichas').TableInit(0, false, true, true, false, null, null);
|
//$('#tableFichas').TableInit(0, false, false, false, false, null, null);
|
||||||
//$('#tableFichas').DataTable().column(0).visible(false);
|
//$('#tableFichas').DataTable().column(0).visible(false);
|
||||||
CargarFichas();
|
CargarFichas();
|
||||||
});
|
});
|
||||||
|
|
@ -20,10 +20,6 @@ this.CargarTablaFichas = function (data) {
|
||||||
FichaTecnica = data.FichasTecnicas;
|
FichaTecnica = data.FichasTecnicas;
|
||||||
var Seleccionar = $("#ucbtnVista").html();
|
var Seleccionar = $("#ucbtnVista").html();
|
||||||
|
|
||||||
//var fecha = DateFormatNoTime(data.FichaTecnica.FechaPublicacionDocumentoTecnico);
|
|
||||||
|
|
||||||
//if (fecha != "Invalid date")
|
|
||||||
// $("FechaPublicacionDocumentoTecnico").val(fecha);
|
|
||||||
|
|
||||||
var columnDefinition = [
|
var columnDefinition = [
|
||||||
{ "data": 'IdFichaTecnica'},
|
{ "data": 'IdFichaTecnica'},
|
||||||
|
|
@ -36,8 +32,9 @@ this.CargarTablaFichas = function (data) {
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
$('#tableFichas').TableInit(1, true, true, true, true, columnDefinition, FichaTecnica);
|
$('#tableFichas').TableInit(1, false, true, false, true, columnDefinition, FichaTecnica);
|
||||||
|
|
||||||
|
CargarFiltros();
|
||||||
if ($.fn.DataTable.isDataTable('#tableFichas')) {
|
if ($.fn.DataTable.isDataTable('#tableFichas')) {
|
||||||
|
|
||||||
$('#tableFichas').DataTable().search('').draw();
|
$('#tableFichas').DataTable().search('').draw();
|
||||||
|
|
@ -46,6 +43,21 @@ this.CargarTablaFichas = function (data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.CargarFiltros = function () {
|
||||||
|
|
||||||
|
var listaEmisor = $.grep(FichaTecnica, function (data) {
|
||||||
|
return data.IdTipoComentario == Comentarios.Foro.Codigo && data.Respuesta == null;
|
||||||
|
});
|
||||||
|
StartSelectControlRequest('#drpEmisor');
|
||||||
|
CleanSelectControl('#drpEmisor');
|
||||||
|
AddSelectOption('#drpEmisor', );
|
||||||
|
var emisor;
|
||||||
|
emisor = $("#ucSeleccionarEmisor").html();
|
||||||
|
emisor = replaceAll('[$Emisor]', DescTipoSolicitud, emisor);
|
||||||
|
$('#drpEmisor').empty();
|
||||||
|
$('#drpEmisor').append(emisor);
|
||||||
|
}
|
||||||
|
|
||||||
$('#tableFichas').on('click', 'button', function () {
|
$('#tableFichas').on('click', 'button', function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,12 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-sm-1">ID</th>
|
<th class="col-sm-1">ID</th>
|
||||||
<th class="col-sm-4">Nombre</th>
|
<th class="col-sm-3">Nombre</th>
|
||||||
<th class="col-sm-4">Emisor</th>
|
<th class="col-sm-2">Emisor</th>
|
||||||
<th class="col-sm-4">Documento Técnico</th>
|
<th class="col-sm-3">Documento Técnico</th>
|
||||||
<th class="col-sm-4">Aplicación</th>
|
<th class="col-sm-5">Aplicación</th>
|
||||||
<th class="col-sm-4">Fecha publicación</th>
|
<th class="col-sm-4">Fecha publicación</th>
|
||||||
<th class="col-sm-4">Acción</th>
|
<th class="col-sm-2">Acción</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -45,6 +45,11 @@
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<div id="ucSeleccionarEmisor" style="display:none;">
|
||||||
|
<select name="drpEmisor" id="drpEmisor">
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
@section scripts{
|
@section scripts{
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue