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]
|
[OperationContract]
|
||||||
AdjuntosJSON RemoverAdjunto(AdjuntosJSON model);
|
AdjuntosJSON RemoverAdjunto(AdjuntosJSON model);
|
||||||
|
|
||||||
|
[OperationContract]
|
||||||
|
AdjuntosJSON EliminarbaseAdjunto(AdjuntosJSON model);
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
AdjuntosJSON GuardarAdjuntos(AdjuntosJSON model);
|
AdjuntosJSON GuardarAdjuntos(AdjuntosJSON model);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -901,8 +901,7 @@ namespace AYA.SlnSinort.WCF
|
||||||
public AdjuntosJSON RemoverAdjunto(AdjuntosJSON model)
|
public AdjuntosJSON RemoverAdjunto(AdjuntosJSON model)
|
||||||
{
|
{
|
||||||
|
|
||||||
string Serverpath = HttpContext.Current.Server.MapPath("DocumentosSINORT");
|
string Serverpath = model.Carpeta;
|
||||||
Serverpath += "\\" + model.Carpeta;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string file;
|
string file;
|
||||||
|
|
@ -913,8 +912,10 @@ namespace AYA.SlnSinort.WCF
|
||||||
if (File.Exists(fileDirectory))
|
if (File.Exists(fileDirectory))
|
||||||
{
|
{
|
||||||
File.Delete(fileDirectory);
|
File.Delete(fileDirectory);
|
||||||
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
||||||
}
|
}
|
||||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
@ -925,6 +926,24 @@ namespace AYA.SlnSinort.WCF
|
||||||
return model;
|
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)
|
public List<DocumentosAdjuntos> ObtenerAdjuntos(AdjuntosJSON model)
|
||||||
|
|
|
||||||
|
|
@ -6302,7 +6302,7 @@
|
||||||
<Content Include="dist\img\bannersinort.png" />
|
<Content Include="dist\img\bannersinort.png" />
|
||||||
<Content Include="dist\img\fotter.jpg" />
|
<Content Include="dist\img\fotter.jpg" />
|
||||||
<Content Include="dist\img\gota.png" />
|
<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\GotaNormativa.png" />
|
||||||
<Content Include="dist\img\GotaProyectos.png" />
|
<Content Include="dist\img\GotaProyectos.png" />
|
||||||
<Content Include="dist\img\icons.png" />
|
<Content Include="dist\img\icons.png" />
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -207,7 +207,7 @@ this.ActualizarItem = function () {
|
||||||
|
|
||||||
$.each(data, function (key, item) {
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
if (item[2] == $("#txtDescripcion").val()) {
|
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||||
repetido = true
|
repetido = true
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -255,7 +255,7 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
$.each(data, function (key, item) {
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
if (item[2] == $("#txtDescripcion").val()) {
|
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||||
repetido = true
|
repetido = true
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,24 @@ this.ActualizarItem = function () {
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
Contenido = {
|
||||||
IdContenido: $('#hiddenId').val(),
|
IdContenido: $('#hiddenId').val(),
|
||||||
|
|
@ -207,7 +225,26 @@ this.InsertarItem = function () {
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
Contenido = {
|
||||||
Estado: 1,
|
Estado: 1,
|
||||||
Descripcion: $("#txtDescripcion").val(),
|
Descripcion: $("#txtDescripcion").val(),
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,27 @@ this.ActualizarItem = function () {
|
||||||
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
DocumentoTecnico = {
|
||||||
IdDocumentoTecnico: $('#hiddenId').val(),
|
IdDocumentoTecnico: $('#hiddenId').val(),
|
||||||
|
|
@ -210,7 +230,26 @@ this.InsertarItem = function () {
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
DocumentoTecnico = {
|
||||||
Estado: Estados.Inicial.Codigo,
|
Estado: Estados.Inicial.Codigo,
|
||||||
Descripcion: $("#txtDescripcion").val(),
|
Descripcion: $("#txtDescripcion").val(),
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ this.ActualizarItem = function () {
|
||||||
|
|
||||||
$.each(data, function (key, item) {
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
if (item[2] == $("#txtDescripcion").val()) {
|
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||||
repetido = true
|
repetido = true
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -201,7 +201,7 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
$.each(data, function (key, item) {
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
if (item[2] == $("#txtDescripcion").val()) {
|
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||||
repetido = true
|
repetido = true
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,26 @@ this.ActualizarItem = function () {
|
||||||
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
GrupoTematico = {
|
||||||
IdGrupoTematico: $('#hiddenId').val(),
|
IdGrupoTematico: $('#hiddenId').val(),
|
||||||
|
|
@ -207,6 +226,24 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
GrupoTematico = {
|
||||||
Estado: 1,
|
Estado: 1,
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,13 @@ $('#btnIniciar').keyup(function (e) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#txtContrasena').keyup(function (e) {
|
||||||
|
if (e.which == 13) {
|
||||||
|
validarFormulario();
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
function validarFormulario() {
|
function validarFormulario() {
|
||||||
|
|
||||||
var Contador = 0;
|
var Contador = 0;
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,26 @@ this.ActualizarItem = function () {
|
||||||
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
PalabraClave = {
|
||||||
IdPalabraClave: $('#hiddenId').val(),
|
IdPalabraClave: $('#hiddenId').val(),
|
||||||
|
|
@ -206,6 +225,24 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
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 = {
|
PalabraClave = {
|
||||||
Estado: 1,
|
Estado: 1,
|
||||||
Descripcion: $("#txtDescripcion").val()
|
Descripcion: $("#txtDescripcion").val()
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ var DescTipoproyecto;
|
||||||
var SubTipoproyecto;
|
var SubTipoproyecto;
|
||||||
var respuestaForo;
|
var respuestaForo;
|
||||||
var IdPropuestaNormativa;
|
var IdPropuestaNormativa;
|
||||||
|
var IdDocumentoAdjunto;
|
||||||
var Promotor;
|
var Promotor;
|
||||||
var Estado;
|
var Estado;
|
||||||
|
|
||||||
|
|
@ -19,13 +19,12 @@ jQuery(document).ready(function () {
|
||||||
$(document).tooltip();
|
$(document).tooltip();
|
||||||
$('#tableParticipantes').TableInit(0, false, true, true, false, null, null);
|
$('#tableParticipantes').TableInit(0, false, true, true, false, null, null);
|
||||||
$('#tableParticipantes').DataTable().column(1).visible(false);
|
$('#tableParticipantes').DataTable().column(1).visible(false);
|
||||||
$('#tableDocAuxiliares').TableInit(0, false, false, false, false, null, null);
|
|
||||||
$('#tableForo').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);
|
$('#tableMatriz').TableInit(0, false, false, false, false, null, null);
|
||||||
$('#tableDocAuxiliares').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').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').TableInit(0, false, false, false, false, null, null);
|
||||||
$('#tableDocForo').DataTable().column(0).visible(false);
|
$('#tableDocForo').DataTable().column(0).visible(false);
|
||||||
$('#tableDocForo').DataTable().column(4).visible(false);
|
$('#tableDocForo').DataTable().column(4).visible(false);
|
||||||
|
|
@ -124,8 +123,10 @@ jQuery(document).ready(function () {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#btnGuardarEvento').show();
|
||||||
|
$('#btnReenviarEvento').hide();
|
||||||
|
Calendario(model.EventosJSON);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -214,8 +215,19 @@ this.getDataModel = function () {
|
||||||
$("#btnGuardarEvento").click(function () {
|
$("#btnGuardarEvento").click(function () {
|
||||||
GuardarEvento();
|
GuardarEvento();
|
||||||
});
|
});
|
||||||
|
$("#btnGuardarReenviarEvento").unbind("click");
|
||||||
|
$("#btnGuardarReenviarEvento").click(function () {
|
||||||
|
GuardarReenviarEvento();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#btnReenviarEvento").unbind("click");
|
||||||
|
$("#btnReenviarEvento").click(function () {
|
||||||
|
ReenviarEvento();
|
||||||
|
});
|
||||||
|
|
||||||
$("#txtFechaFinalizacion").datepicker();
|
$("#txtFechaFinalizacion").datepicker();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#txtNombreProyecto").readOnly();
|
$("#txtNombreProyecto").readOnly();
|
||||||
$("#txtPromotorProyecto").readOnly();
|
$("#txtPromotorProyecto").readOnly();
|
||||||
|
|
@ -226,7 +238,7 @@ this.getDataModel = function () {
|
||||||
$("#txtFechaMaxima").readOnly();
|
$("#txtFechaMaxima").readOnly();
|
||||||
$("#txtEstado").readOnly();
|
$("#txtEstado").readOnly();
|
||||||
$('#btnModificar').disable();
|
$('#btnModificar').disable();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CargarUsuarios();
|
CargarUsuarios();
|
||||||
|
|
@ -857,7 +869,10 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
|
||||||
$.each(lista, function (key, item) {
|
$.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();
|
var ext = item.TipoArchivo.toLowerCase();
|
||||||
switch (ext) {
|
switch (ext) {
|
||||||
case 'pdf':
|
case 'pdf':
|
||||||
|
|
@ -885,22 +900,15 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
|
||||||
option = replaceAll("[$icon]", "fa-file-text", option);
|
option = replaceAll("[$icon]", "fa-file-text", option);
|
||||||
}
|
}
|
||||||
|
|
||||||
tableDocAuxiliares.row.add([option,
|
tableDocAuxiliares.row.add([item.IdDocumentoAdjunto,
|
||||||
item.Nombre,
|
item.Nombre,
|
||||||
item.UsuarioCreacion,
|
item.UsuarioCreacion,
|
||||||
item.RutaDescarga]).draw();
|
option]).draw();
|
||||||
|
|
||||||
});
|
});
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#tableDocAuxiliares').on('click', 'button', function () {
|
|
||||||
|
|
||||||
var data = $('#tableDocAuxiliares').DataTable().row($(this).parents('tr')).data();
|
|
||||||
|
|
||||||
window.open(data[3]);
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
// Documentos Expediente
|
// Documentos Expediente
|
||||||
|
|
||||||
|
|
@ -930,7 +938,10 @@ this.CargarTablaDocumentosExpediente = function (data) {
|
||||||
$.each(lista, function (key, item) {
|
$.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();
|
var ext = item.TipoArchivo.toLowerCase();
|
||||||
switch (ext) {
|
switch (ext) {
|
||||||
case 'pdf':
|
case 'pdf':
|
||||||
|
|
@ -958,22 +969,53 @@ this.CargarTablaDocumentosExpediente = function (data) {
|
||||||
option = replaceAll("[$icon]", "fa-file-text", option);
|
option = replaceAll("[$icon]", "fa-file-text", option);
|
||||||
}
|
}
|
||||||
|
|
||||||
tableDocExpediente.row.add([option,
|
tableDocExpediente.row.add([item.IdDocumentoAdjunto,
|
||||||
item.Nombre,
|
item.Nombre,
|
||||||
item.UsuarioCreacion,
|
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
|
//Documentos Foro
|
||||||
|
|
||||||
|
|
@ -1505,6 +1547,52 @@ function ActualizarUpload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Calendario
|
//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 () {
|
this.GuardarEvento = function () {
|
||||||
|
|
||||||
|
|
@ -1574,7 +1662,8 @@ this.ModalEvento = function (inicio,fin) {
|
||||||
$("#txtFinEvento").readOnly();
|
$("#txtFinEvento").readOnly();
|
||||||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
||||||
$("#btnVerAdjuntosEvento").enable();
|
$("#btnVerAdjuntosEvento").enable();
|
||||||
$("#btnGuardarEvento").enable();
|
$("#btnGuardarEvento").show();
|
||||||
|
$("#btnReenviarEvento").hide();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -1597,7 +1686,8 @@ this.ModalEventoPopUp = function (evento) {
|
||||||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
||||||
|
|
||||||
$("#btnVerAdjuntosEvento").disable();
|
$("#btnVerAdjuntosEvento").disable();
|
||||||
$("#btnGuardarEvento").disable();
|
$("#btnGuardarEvento").hide();
|
||||||
|
$("#btnReenviarEvento").show();
|
||||||
|
|
||||||
CargarDocumentosEventos(miEvento[0].IdDocumento);
|
CargarDocumentosEventos(miEvento[0].IdDocumento);
|
||||||
|
|
||||||
|
|
@ -1614,31 +1704,7 @@ this.LimpiarModalevento = function () {
|
||||||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
$("#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) {
|
this.Calendario = function (data) {
|
||||||
|
|
||||||
//$('#modalCalendario').modal('show');
|
//$('#modalCalendario').modal('show');
|
||||||
|
|
@ -1660,9 +1726,9 @@ this.Calendario = function (data) {
|
||||||
});
|
});
|
||||||
$('#calendar').fullCalendar('render');
|
$('#calendar').fullCalendar('render');
|
||||||
|
|
||||||
var container = document.getElementById('divCalendarioRef');
|
//var container = document.getElementById('divCalendarioRef');
|
||||||
var refreshContent = container.innerHTML;
|
//var refreshContent = container.innerHTML;
|
||||||
container.innerHTML = refreshContent;
|
//container.innerHTML = refreshContent;
|
||||||
//$('#modalCalendario').on('loaded.bs.modal', function (e) {
|
//$('#modalCalendario').on('loaded.bs.modal', function (e) {
|
||||||
// $('#calendar').fullCalendar('render');
|
// $('#calendar').fullCalendar('render');
|
||||||
//})
|
//})
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ this.ActualizarItem = function () {
|
||||||
|
|
||||||
$.each(data, function (key, item) {
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
if (item[2] == $("#txtDescripcion").val()) {
|
if (item[2].toLowerCase() == $("#txtDescripcion").val().toLowerCase()) {
|
||||||
repetido = true
|
repetido = true
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th class="col-sm-1">ID</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 class="col-sm-4">Detalle</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
@*Descripción*@
|
@*Descripción*@
|
||||||
|
|
||||||
<div class="form-group">
|
<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">
|
<div class="col-sm-8">
|
||||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divAreaDescripcionLarga">
|
<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">
|
<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>
|
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th class="col-sm-1">ID</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 class="col-sm-4">Detalle</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
@*Descripción*@
|
@*Descripción*@
|
||||||
|
|
||||||
<div class="form-group">
|
<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">
|
<div class="col-sm-8">
|
||||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
|
|
||||||
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divAreaDescripcionLarga">
|
<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">
|
<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>
|
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th class="col-sm-1">ID</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 class="col-sm-4">Detalle</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
@*Descripción*@
|
@*Descripción*@
|
||||||
|
|
||||||
<div class="form-group">
|
<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">
|
<div class="col-sm-8">
|
||||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required="required" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divAreaDescripcionLarga">
|
<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">
|
<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>
|
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
<form id="formDetallePropuesta" class="form-horizontal" role="form">
|
<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 class="panel-body" id="divDescripcion"> <h3> <i class="fa fa-briefcase"></i> [$Propuesta] </h3> </div>*@
|
||||||
<div style="background-color: #fff">
|
<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">
|
<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>
|
<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>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@*---------------------Fecha de finalización de consulta---------------------------------------------*@
|
@*---------------------Fecha de finalización de consulta---------------------------------------------*@
|
||||||
<div class="form-group" id="divFechaMaxima">
|
<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>
|
<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">
|
<table id="tableDocAuxiliares" class="display">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-sm-1"></th>
|
<th></th>
|
||||||
<th class="col-sm-4">Nombre</th>
|
<th class="col-sm-4">Nombre</th>
|
||||||
<th class="col-sm-4">Creado por</th>
|
<th class="col-sm-4">Creado por</th>
|
||||||
<th></th>
|
<th class="col-sm-1"></th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
@ -271,7 +273,16 @@
|
||||||
|
|
||||||
@* Calendario *@
|
@* Calendario *@
|
||||||
<div class="col-md-4">
|
<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">
|
<div class="panel-heading">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
<i class="fa fa fa-calendar"></i> <label id="lbTituloAccion">Calendario</label>
|
<i class="fa fa fa-calendar"></i> <label id="lbTituloAccion">Calendario</label>
|
||||||
|
|
@ -287,15 +298,15 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="divCalendarioRef" style="width:75%; height: 75%;">
|
<div id="divCalendarioRef" style="height:220px; overflow-y:auto;">
|
||||||
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div id='calendar' style="height: 300px;"></div>
|
<div id='calendar' ></div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>*@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -308,10 +319,11 @@
|
||||||
<table id="tableDocExpediente" class="display">
|
<table id="tableDocExpediente" class="display">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-sm-1"></th>
|
<th></th>
|
||||||
<th class="col-sm-4">Nombre</th>
|
<th class="col-sm-4">Nombre</th>
|
||||||
<th class="col-sm-4">Creado por</th>
|
<th class="col-sm-4">Creado por</th>
|
||||||
<th></th>
|
<th class="col-sm-1"></th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -352,6 +364,21 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@* PLANTILLAS *@
|
@* 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;">
|
<div id="ucAbrirDocumento" style="display:none;">
|
||||||
<span>
|
<span>
|
||||||
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs">
|
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs">
|
||||||
|
|
@ -761,7 +788,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div id='calendar' style="height: 80%;"></div>
|
@*<div id='calendar' style="height: 80%;"></div>*@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -824,6 +851,7 @@
|
||||||
<textarea name="txtDescripcionEvento" rows="8" cols="45" id="txtDescripcionEvento" style="resize: none"></textarea>
|
<textarea name="txtDescripcionEvento" rows="8" cols="45" id="txtDescripcionEvento" style="resize: none"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@*--------------------- Adjuntar ---------------------------------------------------------*@
|
@*--------------------- Adjuntar ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divAbrirDocEvento">
|
<div class="form-group " id="divAbrirDocEvento">
|
||||||
<label class="col-sm-4 control-label ControlsForms">Adjuntar</label>
|
<label class="col-sm-4 control-label ControlsForms">Adjuntar</label>
|
||||||
|
|
@ -850,8 +878,10 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="modal-footer" id="modalEvento-footer">
|
<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="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>
|
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Cerrar</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -859,6 +889,40 @@
|
||||||
</div>
|
</div>
|
||||||
</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")
|
@Scripts.Render("~/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js")
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="#">
|
<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>
|
<i class="fa fa-angle-left pull-right"></i>
|
||||||
</span>
|
</span>
|
||||||
@*<i class="fa fa-book"></i> <span>Estadísticas y Reportes </span> <span class="pull-right-container">
|
@*<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;
|
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)
|
public List<DocumentosAdjuntos> ObtenerAdjuntos(AdjuntosJSON model)
|
||||||
{
|
{
|
||||||
List<DocumentosAdjuntos> registros = null;
|
List<DocumentosAdjuntos> registros = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue