git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C294
This commit is contained in:
parent
45be6db8e9
commit
9ac6ae0941
5 changed files with 41 additions and 7 deletions
|
|
@ -20,7 +20,7 @@ this.CargarTablaSitios = function (data) {
|
|||
|
||||
var columnDefinition = [
|
||||
{ "data":'IdFichaTecnica', "visible": false },
|
||||
{ "data": "DocumentosAdjuntos.Nombre" },
|
||||
{ "data": "DescripcionDocumento" },
|
||||
{ "data": "Identificacion" },
|
||||
{ "data": "NumeroPublicacionVersion" },
|
||||
{ "data": null, className: "center", defaultContent: Seleccionar }
|
||||
|
|
@ -34,4 +34,29 @@ this.CargarTablaSitios = function (data) {
|
|||
ENDREQUEST();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$('#tableSitios').on('click', 'button', function () {
|
||||
|
||||
|
||||
var data = $('#tableSitios').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
//if (data.PromotorProyecto != UsuarioSistema) {
|
||||
|
||||
// if (ValidarPermisos('Accesar expediente de propuesta normativa').length <= 0 || data.IdEstado == Estados.Contruccion.Codigo) {
|
||||
// toastr.warning(Message_NoGrants, Message_Warning);
|
||||
// return;
|
||||
// }
|
||||
|
||||
|
||||
//}
|
||||
|
||||
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;
|
||||
|
||||
});
|
||||
|
|
@ -20,7 +20,7 @@ jQuery(document).ready(function () {
|
|||
|
||||
this.getDataModel = function () {
|
||||
|
||||
FichaTecnicaId = ObtenerParametros().fichatecnicaid;
|
||||
FichaTecnicaId = ROT47(ObtenerParametros().fichatecnicaid);
|
||||
|
||||
|
||||
CargarEmisor();
|
||||
|
|
@ -222,7 +222,8 @@ this.GuardarFichaTecnica = function () {
|
|||
|
||||
FichaTecnica = {
|
||||
|
||||
IdDocumento: IsNullOrEmpty(modelDocumentoAdjunto) ? 0 : modelDocumentoAdjunto.Adjuntos.IdDocumentoAdjunto ,
|
||||
IdDocumento: IsNullOrEmpty(modelDocumentoAdjunto) ? 0 : modelDocumentoAdjunto.Adjuntos.IdDocumentoAdjunto,
|
||||
DescripcionDocumento: IsNullOrEmpty(modelDocumentoAdjunto) ? 0 : modelDocumentoAdjunto.Adjuntos.Nombre,
|
||||
Identificacion: $("#txtAreaIdentificacion").val(),
|
||||
IdEstado: $("#hiddenEstado").val(),
|
||||
DescripcionEstado: $("#txtEstado").val(),
|
||||
|
|
@ -647,7 +648,13 @@ this.LlenarFichaTecnica = function (data) {
|
|||
$("#txtSubCategoriaGrupoTematico").val(data.FichaTecnica.DescripcionSubCategoriaGrupoTematico);
|
||||
$("#hiddenEmisor").val(data.FichaTecnica.IdEmisor);
|
||||
$("#txtEmisor").val(data.FichaTecnica.DescripcionEmisor);
|
||||
$("#txtFechaPublicacionDocumentoTecnico").val(data.FichaTecnica.FechaPublicacionDocumentoTecnico);
|
||||
|
||||
var fecha = DateFormatNoTime(data.FichaTecnica.FechaPublicacionDocumentoTecnico);
|
||||
|
||||
if (fecha != "Invalid date")
|
||||
$("#txtFechaPublicacionDocumentoTecnico").val(fecha);
|
||||
|
||||
|
||||
$("#txtNumeroPublicacionVersion").val(data.FichaTecnica.NumeroPublicacionVersion);
|
||||
|
||||
CargarGridPalabraClaveFichaTecnica(data.FichaTecnica.FichaTecnicaPalabraClave);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)?propuesta=[$ID]&tipo=[$TIPO]&promotor=[$Promotor]&estado=[$Estado]">
|
||||
<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">
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
{
|
||||
|
||||
registros.FichasTecnicas = db.FichaTecnica
|
||||
.Include(p => p.DocumentosAdjuntos)
|
||||
.Where(x => x.Estado == true)
|
||||
.ToList();
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
public int? IdDocumento { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string DescripcionDocumento { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string Identificacion { get; set; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue