git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C434
This commit is contained in:
parent
7117468976
commit
a94b6a2285
22 changed files with 1288 additions and 944 deletions
|
|
@ -84,6 +84,9 @@ namespace AYA.SlnSinort.WCF
|
|||
[OperationContract]
|
||||
AdjuntosJSON RemoverAdjunto(AdjuntosJSON model);
|
||||
|
||||
[OperationContract]
|
||||
AdjuntosJSON EliminarbaseAdjunto(AdjuntosJSON model);
|
||||
|
||||
[OperationContract]
|
||||
AdjuntosJSON GuardarAdjuntos(AdjuntosJSON model);
|
||||
|
||||
|
|
|
|||
|
|
@ -901,8 +901,7 @@ namespace AYA.SlnSinort.WCF
|
|||
public AdjuntosJSON RemoverAdjunto(AdjuntosJSON model)
|
||||
{
|
||||
|
||||
string Serverpath = HttpContext.Current.Server.MapPath("DocumentosSINORT");
|
||||
Serverpath += "\\" + model.Carpeta;
|
||||
string Serverpath = model.Carpeta;
|
||||
try
|
||||
{
|
||||
string file;
|
||||
|
|
@ -913,8 +912,10 @@ namespace AYA.SlnSinort.WCF
|
|||
if (File.Exists(fileDirectory))
|
||||
{
|
||||
File.Delete(fileDirectory);
|
||||
}
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -925,6 +926,24 @@ namespace AYA.SlnSinort.WCF
|
|||
return model;
|
||||
}
|
||||
|
||||
public AdjuntosJSON EliminarbaseAdjunto(AdjuntosJSON model)
|
||||
{
|
||||
var DocumentosAdjuntosDAL = new DocumentosAdjuntosDAL();
|
||||
try
|
||||
{
|
||||
|
||||
DocumentosAdjuntosDAL.EliminarbaseAdjunto(model);
|
||||
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||
throw;
|
||||
}
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
public List<DocumentosAdjuntos> ObtenerAdjuntos(AdjuntosJSON model)
|
||||
|
|
|
|||
|
|
@ -6302,7 +6302,7 @@
|
|||
<Content Include="dist\img\bannersinort.png" />
|
||||
<Content Include="dist\img\fotter.jpg" />
|
||||
<Content Include="dist\img\gota.png" />
|
||||
<Content Include="dist\img\GotaEstadisticas.png" />
|
||||
<Content Include="dist\img\GotaEstadisticas1.png" />
|
||||
<Content Include="dist\img\GotaNormativa.png" />
|
||||
<Content Include="dist\img\GotaProyectos.png" />
|
||||
<Content Include="dist\img\icons.png" />
|
||||
|
|
|
|||
|
|
@ -12584,7 +12584,7 @@ var Toolbar = /** @class */ (function () {
|
|||
var buttonEl;
|
||||
var buttonAriaAttr;
|
||||
if (buttonName === 'title') {
|
||||
groupChildren = groupChildren.add($('<h2> </h2>')); // we always want it to take up height
|
||||
groupChildren = groupChildren.add($('<h4> </h4>')); // we always want it to take up height
|
||||
isOnlyButtons = false;
|
||||
}
|
||||
else {
|
||||
|
|
@ -12697,7 +12697,7 @@ var Toolbar = /** @class */ (function () {
|
|||
};
|
||||
Toolbar.prototype.updateTitle = function (text) {
|
||||
if (this.el) {
|
||||
this.el.find('h2').text(text);
|
||||
this.el.find('h4').text(text);
|
||||
}
|
||||
};
|
||||
Toolbar.prototype.activateButton = function (buttonName) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -207,7 +207,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2] == $("#txtDescripcion").val()) {
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ this.InsertarItem = function () {
|
|||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2] == $("#txtDescripcion").val()) {
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,6 +183,24 @@ this.ActualizarItem = function () {
|
|||
{ return; }
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe un contenido con el mismo título', Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
Contenido = {
|
||||
IdContenido: $('#hiddenId').val(),
|
||||
|
|
@ -207,7 +225,26 @@ this.InsertarItem = function () {
|
|||
{ return; }
|
||||
|
||||
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe un contenido con el mismo título', Message_Warning);
|
||||
return;
|
||||
}
|
||||
Contenido = {
|
||||
Estado: 1,
|
||||
Descripcion: $("#txtDescripcion").val(),
|
||||
|
|
|
|||
|
|
@ -185,7 +185,27 @@ this.ActualizarItem = function () {
|
|||
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
||||
{ return; }
|
||||
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe un documento técnico con el mismo título', Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
DocumentoTecnico = {
|
||||
IdDocumentoTecnico: $('#hiddenId').val(),
|
||||
|
|
@ -210,7 +230,26 @@ this.InsertarItem = function () {
|
|||
{ return; }
|
||||
|
||||
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe un documento técnico con el mismo título', Message_Warning);
|
||||
return;
|
||||
}
|
||||
DocumentoTecnico = {
|
||||
Estado: Estados.Inicial.Codigo,
|
||||
Descripcion: $("#txtDescripcion").val(),
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2] == $("#txtDescripcion").val()) {
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
|
@ -201,7 +201,7 @@ this.InsertarItem = function () {
|
|||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2] == $("#txtDescripcion").val()) {
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,7 +181,26 @@ this.ActualizarItem = function () {
|
|||
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
||||
{ return; }
|
||||
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe un grupo temático con la misma descripción', Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
GrupoTematico = {
|
||||
IdGrupoTematico: $('#hiddenId').val(),
|
||||
|
|
@ -207,6 +226,24 @@ this.InsertarItem = function () {
|
|||
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe un grupo temático con la misma descripción', Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
GrupoTematico = {
|
||||
Estado: 1,
|
||||
|
|
|
|||
|
|
@ -14,6 +14,13 @@ $('#btnIniciar').keyup(function (e) {
|
|||
}
|
||||
});
|
||||
|
||||
$('#txtContrasena').keyup(function (e) {
|
||||
if (e.which == 13) {
|
||||
validarFormulario();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
function validarFormulario() {
|
||||
|
||||
var Contador = 0;
|
||||
|
|
|
|||
|
|
@ -181,7 +181,26 @@ this.ActualizarItem = function () {
|
|||
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
||||
{ return; }
|
||||
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe una palabra clave con la misma descripción', Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
PalabraClave = {
|
||||
IdPalabraClave: $('#hiddenId').val(),
|
||||
|
|
@ -206,6 +225,24 @@ this.InsertarItem = function () {
|
|||
|
||||
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
var repetido = false;
|
||||
var data = TableItems
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (repetido == true) {
|
||||
toastr.warning('Ya existe una palabra clave con la misma descripción', Message_Warning);
|
||||
return;
|
||||
}
|
||||
PalabraClave = {
|
||||
Estado: 1,
|
||||
Descripcion: $("#txtDescripcion").val()
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ var DescTipoproyecto;
|
|||
var SubTipoproyecto;
|
||||
var respuestaForo;
|
||||
var IdPropuestaNormativa;
|
||||
|
||||
var IdDocumentoAdjunto;
|
||||
var Promotor;
|
||||
var Estado;
|
||||
|
||||
|
|
@ -19,13 +19,12 @@ jQuery(document).ready(function () {
|
|||
$(document).tooltip();
|
||||
$('#tableParticipantes').TableInit(0, false, true, true, false, null, null);
|
||||
$('#tableParticipantes').DataTable().column(1).visible(false);
|
||||
$('#tableDocAuxiliares').TableInit(0, false, false, false, false, null, null);
|
||||
$('#tableForo').TableInit(0, false, false, false, false, null, null);
|
||||
$('#tableMatriz').TableInit(0, false, false, false, false, null, null);
|
||||
$('#tableDocAuxiliares').TableInit(0, false, false, false, false, null, null);
|
||||
$('#tableDocAuxiliares').DataTable().column(3).visible(false);
|
||||
$('#tableDocAuxiliares').DataTable().column(0).visible(false);
|
||||
$('#tableDocExpediente').TableInit(0, false, false, false, false, null, null);
|
||||
$('#tableDocExpediente').DataTable().column(3).visible(false);
|
||||
$('#tableDocExpediente').DataTable().column(0).visible(false);
|
||||
$('#tableDocForo').TableInit(0, false, false, false, false, null, null);
|
||||
$('#tableDocForo').DataTable().column(0).visible(false);
|
||||
$('#tableDocForo').DataTable().column(4).visible(false);
|
||||
|
|
@ -125,7 +124,9 @@ jQuery(document).ready(function () {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
$('#btnGuardarEvento').show();
|
||||
$('#btnReenviarEvento').hide();
|
||||
Calendario(model.EventosJSON);
|
||||
|
||||
});
|
||||
|
||||
|
|
@ -214,9 +215,20 @@ this.getDataModel = function () {
|
|||
$("#btnGuardarEvento").click(function () {
|
||||
GuardarEvento();
|
||||
});
|
||||
$("#btnGuardarReenviarEvento").unbind("click");
|
||||
$("#btnGuardarReenviarEvento").click(function () {
|
||||
GuardarReenviarEvento();
|
||||
});
|
||||
|
||||
$("#btnReenviarEvento").unbind("click");
|
||||
$("#btnReenviarEvento").click(function () {
|
||||
ReenviarEvento();
|
||||
});
|
||||
|
||||
$("#txtFechaFinalizacion").datepicker();
|
||||
|
||||
|
||||
|
||||
$("#txtNombreProyecto").readOnly();
|
||||
$("#txtPromotorProyecto").readOnly();
|
||||
$("#txtEmisor").readOnly();
|
||||
|
|
@ -857,7 +869,10 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
|
|||
$.each(lista, function (key, item) {
|
||||
|
||||
|
||||
var option = $("#ucAbrirDocumento").html();
|
||||
var option = $("#ucOpcionesDocumentos").html();
|
||||
option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
|
||||
option = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option);
|
||||
option = replaceAll("[$id]", item.IdDocumentoAdjunto, option);
|
||||
var ext = item.TipoArchivo.toLowerCase();
|
||||
switch (ext) {
|
||||
case 'pdf':
|
||||
|
|
@ -885,22 +900,15 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
|
|||
option = replaceAll("[$icon]", "fa-file-text", option);
|
||||
}
|
||||
|
||||
tableDocAuxiliares.row.add([option,
|
||||
tableDocAuxiliares.row.add([item.IdDocumentoAdjunto,
|
||||
item.Nombre,
|
||||
item.UsuarioCreacion,
|
||||
item.RutaDescarga]).draw();
|
||||
option]).draw();
|
||||
|
||||
});
|
||||
ENDREQUEST();
|
||||
}
|
||||
|
||||
$('#tableDocAuxiliares').on('click', 'button', function () {
|
||||
|
||||
var data = $('#tableDocAuxiliares').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
window.open(data[3]);
|
||||
|
||||
});
|
||||
|
||||
// Documentos Expediente
|
||||
|
||||
|
|
@ -930,7 +938,10 @@ this.CargarTablaDocumentosExpediente = function (data) {
|
|||
$.each(lista, function (key, item) {
|
||||
|
||||
|
||||
var option = $("#ucAbrirDocumento").html();
|
||||
var option = $("#ucOpcionesDocumentos").html();
|
||||
option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
|
||||
option = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option);
|
||||
option = replaceAll("[$id]", item.IdDocumentoAdjunto, option);
|
||||
var ext = item.TipoArchivo.toLowerCase();
|
||||
switch (ext) {
|
||||
case 'pdf':
|
||||
|
|
@ -958,22 +969,53 @@ this.CargarTablaDocumentosExpediente = function (data) {
|
|||
option = replaceAll("[$icon]", "fa-file-text", option);
|
||||
}
|
||||
|
||||
tableDocExpediente.row.add([option,
|
||||
tableDocExpediente.row.add([item.IdDocumentoAdjunto,
|
||||
item.Nombre,
|
||||
item.UsuarioCreacion,
|
||||
item.RutaDescarga]).draw();
|
||||
option]).draw();
|
||||
|
||||
});
|
||||
|
||||
ENDREQUEST();
|
||||
}
|
||||
this.AbrirDocAdjuntos = function (ruta){
|
||||
window.open(ruta);
|
||||
}
|
||||
|
||||
$('#tableDocExpediente').on('click', 'button', function () {
|
||||
this.RemoverAdjunto = function (nombre,id) {
|
||||
|
||||
var data = $('#tableDocExpediente').DataTable().row($(this).parents('tr')).data();
|
||||
var separador = "/";
|
||||
var arregloDeSubCadenas = nombre.split(separador);
|
||||
var nombredoc = arregloDeSubCadenas[arregloDeSubCadenas.length-1]
|
||||
|
||||
window.open(data[3]);
|
||||
|
||||
});
|
||||
var uri = SinortWCF + '/api/RemoverAdjunto';
|
||||
IdDocumentoAdjunto = id;
|
||||
var model = {
|
||||
Nombre: nombredoc,
|
||||
Carpeta: RepositorioLocal
|
||||
|
||||
};
|
||||
|
||||
AjaxPostData(uri, model, false, false, EliminarbaseAdjunto,null , null);
|
||||
|
||||
}
|
||||
this.EliminarbaseAdjunto = function (data) {
|
||||
|
||||
if (data.CodigoRespuesta == "EXITOSO") {
|
||||
var uri = SinortWCF + '/api/EliminarbaseAdjunto';
|
||||
|
||||
var model = {
|
||||
Id: IdDocumentoAdjunto
|
||||
};
|
||||
|
||||
AjaxPostData(uri, model, false, true, null, null, null);
|
||||
CargarDocumentosExpediente();
|
||||
CargarDocumentosAuxiliares();
|
||||
|
||||
} else {
|
||||
ENDREQUEST();
|
||||
}
|
||||
}
|
||||
|
||||
//Documentos Foro
|
||||
|
||||
|
|
@ -1505,6 +1547,52 @@ function ActualizarUpload() {
|
|||
}
|
||||
|
||||
//Calendario
|
||||
this.ReenviarEvento = function () {
|
||||
|
||||
$('#modalReenviarEvento').modal('show');
|
||||
$('#modalReenviarEvento').on('shown.bs.modal', function (e) {
|
||||
$("#txtFechaReenviar").datepicker();
|
||||
$("#txtFechaReenviar").css("z-index", "9999");
|
||||
})
|
||||
}
|
||||
|
||||
this.GuardarReenviarEvento = function () {
|
||||
|
||||
if (!$("#formReenviarEvento").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#txtFechaReenviar").val() == '') {
|
||||
toastr.warning("Debe seleccionar una fecha", Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
tableDocEvento = $('#tableDocEvento').DataTable();
|
||||
var Iddoc;
|
||||
var data = tableDocEvento
|
||||
.rows()
|
||||
.data();
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
Iddoc = item[0]
|
||||
});
|
||||
|
||||
var uri = SinortWCF + '/api/GuardarEventoProyectoNormativo';
|
||||
|
||||
model.Evento = {
|
||||
IdProyectoNormativo: model.ProyectoNormativo.IdProyectoNormativo,
|
||||
IdDocumento: Iddoc,
|
||||
Titulo: $("#txtTituloEvento").val(),
|
||||
Descripcion: $("#txtDescripcionEvento").val(),
|
||||
FechaInicio: $("#txtFechaReenviar").DateFormatWCF(),
|
||||
FechaFin: $("#txtFechaReenviar").DateFormatWCF()
|
||||
}
|
||||
|
||||
AjaxPostData(uri, model, false, true, EventoGuardado, null, null);
|
||||
|
||||
}
|
||||
|
||||
this.GuardarEvento = function () {
|
||||
|
||||
|
|
@ -1574,7 +1662,8 @@ this.ModalEvento = function (inicio,fin) {
|
|||
$("#txtFinEvento").readOnly();
|
||||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
||||
$("#btnVerAdjuntosEvento").enable();
|
||||
$("#btnGuardarEvento").enable();
|
||||
$("#btnGuardarEvento").show();
|
||||
$("#btnReenviarEvento").hide();
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1597,7 +1686,8 @@ this.ModalEventoPopUp = function (evento) {
|
|||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
||||
|
||||
$("#btnVerAdjuntosEvento").disable();
|
||||
$("#btnGuardarEvento").disable();
|
||||
$("#btnGuardarEvento").hide();
|
||||
$("#btnReenviarEvento").show();
|
||||
|
||||
CargarDocumentosEventos(miEvento[0].IdDocumento);
|
||||
|
||||
|
|
@ -1614,31 +1704,7 @@ this.LimpiarModalevento = function () {
|
|||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
||||
}
|
||||
|
||||
this.CargarCalendario = function (data) {
|
||||
|
||||
$('#calendar').fullCalendar({
|
||||
|
||||
eventClick: function (event) {
|
||||
ModalEventoPopUp(event);
|
||||
|
||||
},
|
||||
|
||||
|
||||
selectable: true,
|
||||
eventLimit: true,
|
||||
events: data,
|
||||
select: function (startDate, endDate) {
|
||||
ModalEvento(startDate.format(), endDate.format());
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#calendar').fullCalendar('render');
|
||||
|
||||
|
||||
}
|
||||
this.Calendario = function (data) {
|
||||
|
||||
//$('#modalCalendario').modal('show');
|
||||
|
|
@ -1660,9 +1726,9 @@ this.Calendario = function (data) {
|
|||
});
|
||||
$('#calendar').fullCalendar('render');
|
||||
|
||||
var container = document.getElementById('divCalendarioRef');
|
||||
var refreshContent = container.innerHTML;
|
||||
container.innerHTML = refreshContent;
|
||||
//var container = document.getElementById('divCalendarioRef');
|
||||
//var refreshContent = container.innerHTML;
|
||||
//container.innerHTML = refreshContent;
|
||||
//$('#modalCalendario').on('loaded.bs.modal', function (e) {
|
||||
// $('#calendar').fullCalendar('render');
|
||||
//})
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
if (item[2] == $("#txtDescripcion").val()) {
|
||||
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||
repetido = true
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<tr>
|
||||
<th></th>
|
||||
<th class="col-sm-1">ID</th>
|
||||
<th class="col-sm-4">Descripción</th>
|
||||
<th class="col-sm-4">Título</th>
|
||||
<th class="col-sm-4">Detalle</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
@*Descripción*@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label ControlsForms">Descripción</label>
|
||||
<label class="col-sm-4 control-label ControlsForms">Título</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
||||
</div>
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divAreaDescripcionLarga">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Detalle</label>
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Descripción</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none"></textarea>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<tr>
|
||||
<th></th>
|
||||
<th class="col-sm-1">ID</th>
|
||||
<th class="col-sm-4">Descripción</th>
|
||||
<th class="col-sm-4">Título</th>
|
||||
<th class="col-sm-4">Detalle</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
@*Descripción*@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label ControlsForms">Descripción</label>
|
||||
<label class="col-sm-4 control-label ControlsForms">Título</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
||||
</div>
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divAreaDescripcionLarga">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Detalle</label>
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Descripción</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none"></textarea>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<tr>
|
||||
<th></th>
|
||||
<th class="col-sm-1">ID</th>
|
||||
<th class="col-sm-4">Descripción</th>
|
||||
<th class="col-sm-4">Título</th>
|
||||
<th class="col-sm-4">Detalle</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
@*Descripción*@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label ControlsForms">Descripción</label>
|
||||
<label class="col-sm-4 control-label ControlsForms">Título</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
||||
</div>
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divAreaDescripcionLarga">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Detalle</label>
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Descripción</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none"></textarea>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
|
||||
<form id="formDetallePropuesta" class="form-horizontal" role="form">
|
||||
@*<div class="panel-body" id="divDescripcion"> <h3> <i class="fa fa-briefcase"></i> [$Propuesta] </h3> </div>*@
|
||||
<div style="background-color: #fff">
|
||||
|
|
@ -73,11 +72,13 @@
|
|||
|
||||
<div class=" input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar" id="iconFechaFinalizacion"></i></span>
|
||||
<input name="txtFechaFinalizacion" class="form-control imput-xs" id="txtFechaFinalizacion" type="text" dateformat="DD-MMMM-YYYY">
|
||||
<input name="txtFechaFinalizacion" class="form-control imput-xs" id="txtFechaFinalizacion" type="text" readonly="readonly" dateformat="DD-MMMM-YYYY" >
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@*---------------------Fecha de finalización de consulta---------------------------------------------*@
|
||||
<div class="form-group" id="divFechaMaxima">
|
||||
<label class="col-lg-5 col-md-5 col-xs-5 control-label ControlsForms" id="lblFechaMaxima">Fecha de Confirmación</label>
|
||||
|
|
@ -221,10 +222,11 @@
|
|||
<table id="tableDocAuxiliares" class="display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-1"></th>
|
||||
<th></th>
|
||||
<th class="col-sm-4">Nombre</th>
|
||||
<th class="col-sm-4">Creado por</th>
|
||||
<th></th>
|
||||
<th class="col-sm-1"></th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -271,7 +273,16 @@
|
|||
|
||||
@* Calendario *@
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-success">
|
||||
|
||||
<div id="divCalendarioRef" style="height:290px; overflow-y:auto;">
|
||||
|
||||
|
||||
<div id='calendar' ></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@*<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<i class="fa fa fa-calendar"></i> <label id="lbTituloAccion">Calendario</label>
|
||||
|
|
@ -287,15 +298,15 @@
|
|||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="divCalendarioRef" style="width:75%; height: 75%;">
|
||||
<div id="divCalendarioRef" style="height:220px; overflow-y:auto;">
|
||||
|
||||
|
||||
<div id='calendar' ></div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div id='calendar' style="height: 300px;"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -308,10 +319,11 @@
|
|||
<table id="tableDocExpediente" class="display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-1"></th>
|
||||
<th></th>
|
||||
<th class="col-sm-4">Nombre</th>
|
||||
<th class="col-sm-4">Creado por</th>
|
||||
<th></th>
|
||||
<th class="col-sm-1"></th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
|
@ -352,6 +364,21 @@
|
|||
</form>
|
||||
|
||||
@* PLANTILLAS *@
|
||||
|
||||
<div id="ucOpcionesDocumentos" style="display:none;">
|
||||
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-info dropdown-toggle btn-xs" data-toggle="dropdown">
|
||||
<i class="fa fa-wrench"></i> Opciones <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="javascript: AbrirDocAdjuntos([$ruta]);"><i class="fa [$icon]"></i> Abrir</a></li>
|
||||
<li><a href="javascript: RemoverAdjunto([$nombre],[$id]);"><i class="fa fa-trash"></i> Eliminar</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="ucAbrirDocumento" style="display:none;">
|
||||
<span>
|
||||
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs">
|
||||
|
|
@ -761,7 +788,7 @@
|
|||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div id='calendar' style="height: 80%;"></div>
|
||||
@*<div id='calendar' style="height: 80%;"></div>*@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -824,6 +851,7 @@
|
|||
<textarea name="txtDescripcionEvento" rows="8" cols="45" id="txtDescripcionEvento" style="resize: none"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*--------------------- Adjuntar ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divAbrirDocEvento">
|
||||
<label class="col-sm-4 control-label ControlsForms">Adjuntar</label>
|
||||
|
|
@ -850,8 +878,10 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal-footer" id="modalEvento-footer">
|
||||
<button type="button" id="btnGuardarEvento" class="btn btn-success btn-sm" data-dismiss="modal">Aceptar</button>
|
||||
<button type="button" id="btnReenviarEvento" class="btn btn-success btn-sm" >Reenviar</button>
|
||||
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Cerrar</button>
|
||||
</div>
|
||||
|
||||
|
|
@ -859,6 +889,40 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@*--------------------- Reenviar Evento ---------------------------------------------------------*@
|
||||
<div class="modal fade" id="modalReenviarEvento" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none; z-index:1600;" >
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title"> <i class="fa fa-comment-o"></i> Reenviar Evento </h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="formReenviarEvento">
|
||||
|
||||
<div class="form-group" id="divFechaReenviar">
|
||||
<label class="col-lg-5 col-md-5 col-xs-5 control-label ControlsForms" id="lblFechaReenviar">Fecha </label>
|
||||
|
||||
<div class=" input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar" id="iconFechaReenviar"></i></span>
|
||||
<input name="txtFechaReenviar" class="form-control imput-xs" id="txtFechaReenviar" type="text" readonly="readonly" dateformat="DD-MMMM-YYYY">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal-footer" id="modalReenviarEvento-footer">
|
||||
<button type="button" id="btnGuardarReenviarEvento" class="btn btn-success btn-sm" data-dismiss="modal">Aceptar</button>
|
||||
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Cerrar</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@Scripts.Render("~/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js")
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@
|
|||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<img class="img-responsive" style="width:40%" src="~/dist/img/GotaEstadisticas.png"> <span>Estadísticas y Reportes </span> <span class="pull-right-container">
|
||||
<img class="img-responsive" style="width:40%" src="~/dist/img/GotaEstadisticas1.png"> <span>Estadísticas y Reportes </span> <span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
@*<i class="fa fa-book"></i> <span>Estadísticas y Reportes </span> <span class="pull-right-container">
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 41 KiB |
BIN
AYA.SlnSynor/AYA.SlnSynor/dist/img/GotaEstadisticas1.png
vendored
Normal file
BIN
AYA.SlnSynor/AYA.SlnSynor/dist/img/GotaEstadisticas1.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
|
|
@ -48,6 +48,41 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
|
||||
return model;
|
||||
}
|
||||
|
||||
public AdjuntosJSON EliminarbaseAdjunto(AdjuntosJSON model)
|
||||
{
|
||||
DocumentosAdjuntos Actual = new DocumentosAdjuntos();
|
||||
|
||||
try
|
||||
{
|
||||
model.ClearProperties();
|
||||
|
||||
using (SinortContex Conn = new SinortContex())
|
||||
{
|
||||
Actual = Conn.DocumentosAdjuntos.FirstOrDefault(x => x.IdDocumentoAdjunto.ToString() == model.Id);
|
||||
if (Actual != null)
|
||||
{
|
||||
Conn.Entry(Actual).State = System.Data.Entity.EntityState.Deleted;
|
||||
Conn.SaveChanges();
|
||||
Conn.Commit();
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (DbEntityValidationException ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||
}
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
public List<DocumentosAdjuntos> ObtenerAdjuntos(AdjuntosJSON model)
|
||||
{
|
||||
List<DocumentosAdjuntos> registros = null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue