git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C304
This commit is contained in:
parent
79fa4e91ac
commit
323f1e3778
4 changed files with 34 additions and 33 deletions
|
|
@ -18,7 +18,12 @@ this.CargarTablaFichas = function (data) {
|
|||
|
||||
if (data != null && data.FichasTecnicas != null) {
|
||||
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 = [
|
||||
{ "data": 'IdFichaTecnica'},
|
||||
|
|
@ -26,15 +31,10 @@ this.CargarTablaFichas = function (data) {
|
|||
{ "data": "DescripcionEmisor" },
|
||||
{ "data": "DescripcionDocumentoTecnico" },
|
||||
{ "data": "DescripcionAplicacion" },
|
||||
{ "data": "DescripcionContenido" },
|
||||
{ "data": "DescripcionSubCategoriaContenido" },
|
||||
{ "data": "DescripcionGrupoTematico" },
|
||||
{ "data": "DescripcionSubCategoriaGrupoTematico" },
|
||||
{ "data": "FichaTecnicaPalabraClave.PalabraClave.Descripcion" },
|
||||
{ "data": "FechaPublicacionDocumentoTecnico" }
|
||||
{ "data": "FechaPublicacionDocumentoTecnico", "render": function (value) { return DateFormatNoTime(value); } },
|
||||
{ "data": null, className: "center", defaultContent: Seleccionar }
|
||||
];
|
||||
|
||||
//CargarPalabraClave(data.FichaTecnica.FichaTecnicaPalabraClave);
|
||||
|
||||
$('#tableFichas').TableInit(1, true, true, true, true, columnDefinition, FichaTecnica);
|
||||
|
||||
|
|
@ -46,26 +46,27 @@ this.CargarTablaFichas = function (data) {
|
|||
}
|
||||
}
|
||||
|
||||
$('#tableFichas').on('click', 'button', function () {
|
||||
|
||||
//this.CargarPalabraClave = function (data) {
|
||||
|
||||
// if (data != null) {
|
||||
var data = $('#tableFichas').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
// var Seleccionar = $("#ucBtnSeleccionarCatalogo").html();
|
||||
// var columnDefinition = [
|
||||
// { "data": null, className: "center", defaultContent: Seleccionar },
|
||||
// { "data": "IdPalabraClave" },
|
||||
// { "data": "Descripcion" }
|
||||
//if (data.PromotorProyecto != UsuarioSistema) {
|
||||
|
||||
// ];
|
||||
|
||||
// $('#tablePalabrasClaves').TableInit(0, false, true, true, false, columnDefinition, data, false);
|
||||
// if (ValidarPermisos('Accesar expediente de propuesta normativa').length <= 0 || data.IdEstado == Estados.Contruccion.Codigo) {
|
||||
// toastr.warning(Message_NoGrants, Message_Warning);
|
||||
// return;
|
||||
// }
|
||||
|
||||
// else {
|
||||
|
||||
// toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||
//}
|
||||
|
||||
// ENDREQUEST();
|
||||
//}
|
||||
url = $("#hiddenHref").val();
|
||||
url = url.replace("View", "FichaTecnica");
|
||||
url = url.replace("Controller", "NormativaReglamentacionTecnica");
|
||||
url = url.replace("[$ID]", ROT47(data.IdFichaTecnica.toString()));
|
||||
|
||||
|
||||
document.location.href = url;
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)?fichatecnicaid=[$ID]">
|
||||
|
||||
<form id="formSitios" class="form-horizontal" role="form">
|
||||
|
||||
<div class="panel-body"> <h3> <i class="fa fa-file-text"></i> Consulta de Fichas Técnicas Vigentes </h3> </div>
|
||||
|
|
@ -15,27 +17,23 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-1">ID</th>
|
||||
<th class="col-sm-4">Título</th>
|
||||
<th class="col-sm-4">Nombre</th>
|
||||
<th class="col-sm-4">Emisor</th>
|
||||
<th class="col-sm-4">Documento Técnico</th>
|
||||
<th class="col-sm-4">Aplicación</th>
|
||||
<th class="col-sm-4">Contenido</th>
|
||||
<th class="col-sm-4">Subcategoría (Contenido)</th>
|
||||
<th class="col-sm-4">Grupo Temático</th>
|
||||
<th class="col-sm-4">Subcategoría (Grupo Temático)</th>
|
||||
<th class="col-sm-4">Palabra Clave</th>
|
||||
<th class="col-sm-4">Fecha publicación documento</th>
|
||||
<th class="col-sm-4">Fecha publicación</th>
|
||||
<th class="col-sm-4">Acción</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
@*<div id="ucbtnVista" style=" display:none;">
|
||||
<div id="ucbtnVista" style=" display:none;">
|
||||
<button type="button" id="btnseleccionar" class="btn btn-default btn-xs">
|
||||
<i class="fa fa-search"></i> Ingresar
|
||||
</button>
|
||||
</div>*@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*<div class="modal-footer">
|
||||
|
|
|
|||
|
|
@ -119,6 +119,8 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
.Include("DocumentosAdjuntos")
|
||||
.FirstOrDefault(q => q.IdFichaTecnica == model.FichaTecnica.IdFichaTecnica);
|
||||
|
||||
|
||||
|
||||
registros.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Atesa.Utilitarios
|
|||
this.LoggerName = vLoggerName;
|
||||
string name = Assembly.GetCallingAssembly().GetName().Name;
|
||||
//string valueKeyRegedit = new ObtieneParametros().GetValueKeyRegedit("RutaLogGenerados", false);
|
||||
string valueKeyRegedit = "Z:\\";
|
||||
string valueKeyRegedit = "C:\\ATESA\\";
|
||||
//string str3 = new ObtieneParametros().GetValueKeyRegedit("LogLevel", false);
|
||||
string str3 = "warn";
|
||||
LoggingConfiguration configuration = LogManager.Configuration;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue