This commit is contained in:
jnunez 2018-08-27 21:43:12 +00:00
parent 214018fdda
commit 8861c216b7
24 changed files with 97 additions and 67 deletions

View file

@ -492,7 +492,8 @@ namespace AYA.SlnSinort.WCF
{
catalogo.codigo = participantes.UsuarioSistema;
usuario = UsuarioDAL.BuscarUsuario(catalogo);
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$FechaMaxima", Convert.ToString(model.ProyectoNormativo.FechaMaximaConfirmarParticipacion)).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
string fechamaxima = Convert.ToDateTime(model.ProyectoNormativo.FechaMaximaConfirmarParticipacion).ToString("dd/MM/yyyy");
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$FechaMaxima", fechamaxima).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
correo.CUERPO = body;
email = usuario.EmailUsuario;
correo.DESTINATARIOS = email ;

View file

@ -107,7 +107,7 @@
<connectionStrings>
<!--<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
<!--<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
<add name="Contex" connectionString="data source=AYA-VSRV-BDTT;initial catalog=SINORT;persist security info=True;user id=usersinort;password=us3rsinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
<!-- <add name="Contex" connectionString="data source=AYA-VSRV-BDTT;initial catalog=SINORT;persist security info=True;user id=usersinort;password=us3rsinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
</connectionStrings>
</configuration>

View file

@ -285,9 +285,10 @@ this.GuardarPropuesta = function () {
if (!confirm("Va a ingresar una nueva propuesta normativa .\n ¿Desea continuar?"))
{ return; }
LoadMessage();
var uri = SinortWCF + '/api/GuardarProyectoNormativo';
LeerFormulario();
AjaxPostData(uri, model, false, true, GuardarConvocadosPropuestaNormativa, null, null);
AjaxPostData(uri, model, false, false, GuardarConvocadosPropuestaNormativa, null, null);
}
@ -319,7 +320,7 @@ this.GuardarConvocadosPropuestaNormativa = function (data) {
ListaConvocatoria: ArrayParticipantes
};
AjaxPostData(uri, model, false, true, GuardarTareasPendientes, null, null);
AjaxPostData(uri, model, false, false, GuardarTareasPendientes, null, null);
}
@ -357,11 +358,11 @@ this.GuardarTareasPendientes = function () {
ListaTareasPendientes: ArrayConvocados
};
AjaxPostData(uri, model, false, false, null, null, null);
AjaxPostData(uri, model, false, true, null, null, null);
EnviarCorreo();
LimpiarPropuesta();
location.reload();
//location.reload();
}
@ -394,12 +395,13 @@ this.LimpiarPropuesta = function () {
$("#txtNombreProyecto").val('');
$('#hiddenEmisor').val('');
$('#hiddenAplicacion').val('');
$("#txtPromotorProyecto").val('');
$("#txtFechaInicio").val('');
$("#txtFechaFinalizacion").val('');
$("#txtFechaMaximaConfirmarParticipacion").val('');
$("#txtEmisor").val('');
$("#txtAplicacion").val('');
$("#hiddenusuario").val('');
$("#txtUsuario").val('');
tableParticipantes = $('#tableParticipantes').DataTable();
tableParticipantes.clear().draw();
}
@ -436,7 +438,7 @@ this.EnviarCorreo = function () {
model.ProyectoNormativo = PropuestaNormativa;
model.ListaConvocatoria = ArrayParticipantes;
model.PlantillaEmail = Plantilla;
AjaxPostData(uri, model, false, false, null, null, null);
AjaxPostData(uri, model, false, true, null, null, null);
ENDREQUEST();
}

View file

@ -15,7 +15,7 @@ this.CargarSitios = function () {
var uri = CatalogosWCF + '/api/ObtenerSitios';
model =
AjaxPostData(uri, Item, true, true, CargarTablaSitios, null, null);
AjaxPostData(uri, Item, true, false, CargarTablaSitios, null, null);
}
this.CargarTablaSitios = function (data) {

View file

@ -95,7 +95,7 @@ this.CargarTablaTareasPendientes = function (data) {
var option = $("#ucbtnSeleccionar").html();
var option2 = $("#ucbtnVer").html();
var option2 = item.TipoTareaPendiente == "Solicitud" ? $("#ucbtnVer").html() : "";
tableTareasPendientes.row.add([item.IdTareasPendientes,
item.Descripcion,
@ -125,7 +125,7 @@ $('#tableTareasPendientes').on('click', 'button', function () {
InfoIContenidoRelacionado = data[2];
InfoIFechaVencimiento = data[10];
InfoITipoTareaPendiente = data[6];
InfoIUsuarioAsignado = "josnunez";
InfoIUsuarioAsignado = UsuarioSistema;
InfoIdProyectoNormativo = data[7];
InfoNombreProyectoNormativo = data[8];
InfoPromotor = data[9];
@ -140,7 +140,7 @@ $('#tableTareasPendientes').on('click', 'button', function () {
$('#modalConvocatoria').modal('show');
var instrucciones = "Convocatoria de participantes a propuesta normativa iniciado por cuenta del sistema en " + DateFormatNoTime(data[3]) + ". \nComentario :Confirme su participación en el proceso de consulta."
var instrucciones = "Convocatoria de participantes a propuesta normativa iniciado por cuenta del sistema en " + DateFormatNoTime(data[10]) + ". \nComentario :Confirme su participación en el proceso de consulta."
$('#txtInstrucciones').html(instrucciones);
}
@ -547,7 +547,7 @@ this.GuardarRespuestaConvocatoria = function () {
var uri = SinortWCF + '/api/InsertarActualizarTareasPendientes';
LeerFormulario();
AjaxPostData(uri, model, false, false, ActualizarConvocado, null, null);
AjaxPostData(uri, model, false, true, ActualizarConvocado, null, null);
}

View file

@ -13,7 +13,7 @@
<div class="panel-body">
<div class="row">
<div class="col-md-8">
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -14,7 +14,7 @@
<br />
<div class="row">
<div class="col-md-8">
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -14,7 +14,7 @@
<br />
<div class="row">
<div class="col-md-8">
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -14,7 +14,7 @@
<br />
<div class="row">
<div class="col-md-8">
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -14,7 +14,7 @@
<br />
<div class="row">
<div class="col-md-8">
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -17,7 +17,7 @@
<br />
<div>
<table id="tableMantenimiento" class="table table-condensed dataTable no-footer">
<table id="tableMantenimiento" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th class="col-sm-4">Catálogo</th>

View file

@ -14,7 +14,7 @@
<br />
<div class="row">
<div class="col-md-8">
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -12,7 +12,7 @@
<div class="panel-body">
<div class="row">
<div class="col-md-8">
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>
@ -143,8 +143,9 @@
</div>
</div>
<br />
<div class="modal-body">
<table id="GridRolesOpciones" class="table table-condensed dataTable no-footer">
<table id="GridRolesOpciones" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th></th>
@ -223,7 +224,7 @@
@*---------------------Roles Usuarios---------------------------------------------------------*@
<div class="modal fade" id="modalRolesUsuario" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
<div class="modal-dialog modal-lg" style="width:50%;">
<div class="modal-dialog modal-lg" style="max-height:90%;overflow-y: auto;">
<div class="modal-content">
<div class="modal-header">
<h4><i class="fa fa-bars"></i>&nbsp;&nbsp;Usuarios</h4>
@ -250,8 +251,9 @@
</div>
</div>
<br />
<div class="modal-body">
<table id="GridRolesUsuarios" class="table table-condensed dataTable no-footer">
<table id="GridRolesUsuarios" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th></th>

View file

@ -21,7 +21,7 @@
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -21,7 +21,7 @@
<table id="TableItems" class="display">
<table id="TableItems" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -26,7 +26,7 @@
<div class="col-md-12">
<table id="tableUsuario" class="table table-condensed dataTable no-footer">
<table id="tableUsuario" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th class="col-sm-4">Usuario</th>

View file

@ -15,7 +15,8 @@
<div class="panel-body">
<br />
<div>
<table id="tableSitios" class="table table-condensed dataTable no-footer">
<table id="tableSitios" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th class="col-sm-1">ID</th>

View file

@ -17,7 +17,8 @@
<div class="panel-body">
<br />
<div>
<table id="tableTareasPendientes" class="table table-condensed dataTable no-footer">
<table id="tableTareasPendientes" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th></th>

View file

@ -117,7 +117,7 @@
<div class="panel-body">
<div class="row">
<div class="col-md-8">
<table id="tableParticipantes" class="display">
<table id="tableParticipantes" class="table table-striped">
<thead>
<tr>
<th>Participante</th>
@ -184,7 +184,7 @@
</div>
<div class="col-md-12" style="overflow-y: scroll; height:250px;" id="divMatrizCambios">
<table id="tableMatriz" class="display">
<table id="tableMatriz" class="table table-striped">
<thead>
<tr>
<th class="col-sm-6">Asunto</th>
@ -204,28 +204,31 @@
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa fa-folder-open-o"></i>&nbsp;<label id="lbTituloAccion">Documentos Auxliares</label>
<button type="button" id="btnVerAdjuntos" class="btn btn-success btn-medium btn-margin-catalogo" onclick="javascript: AbrirAdjuntos(3)">
<i class=" fa fa-paperclip"></i>
</button>
</h4>
</div>
<div class="panel-body">
<div class="form-group " id="divAbrirDocAux">
@*<div class="form-group " id="divAbrirDocAux">
<label class="col-sm-4 control-label ControlsForms">Adjuntar</label>
<div class="col-sm-8">
<button type="button" id="btnVerAdjuntos" class="btn btn-success btn-medium btn-margin-catalogo" onclick="javascript: AbrirAdjuntos(3)">
<i class=" fa fa-paperclip"></i>
</button>
</div>
</div>
</div>*@
<div class="col-sm-12" style="height:200px; overflow-y:auto;">
<table id="tableDocAuxiliares" class="display">
<table id="tableDocAuxiliares" class="table table-striped">
<thead>
<tr>
<th></th>
<th class="col-sm-4">Nombre</th>
<th class="col-sm-4">Creado por</th>
<th class="col-sm-1"></th>
<th class="col-sm-6">Creado por</th>
<th></th>
</tr>
@ -256,7 +259,7 @@
</div>
<div class="col-md-12" style="overflow-y: scroll; height:250px;" id="divComentarios">
<table id="tableForo" class="display">
<table id="tableForo" class="table table-striped">
<thead>
<tr>
<th class="col-sm-6">Asunto</th>
@ -316,10 +319,11 @@
<div class="panel-body">
<div class="row">
<div class="col-md-8">
<table id="tableDocExpediente" class="display">
<table id="tableDocExpediente" class="table table-striped">
<thead>
<tr>
<th></th>
<th class="col-sm-1"></th>
<th class="col-sm-4">Nombre</th>
<th class="col-sm-4">Creado por</th>
<th class="col-sm-1"></th>
@ -369,11 +373,11 @@
<div class="btn-group" >
<button type="button" class="btn btn-info dropdown-toggle btn-xs" data-toggle="dropdown">
<i class="fa fa-wrench"></i> &nbsp;Opciones <span class="caret"></span>
<i class="fa fa-wrench"></i> &nbsp; <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" >
<li><a href="javascript: AbrirDocAdjuntos([$ruta]);"><i class="fa [$icon]"></i>&nbsp;Abrir</a></li>
<li><a href="javascript: RemoverAdjunto([$nombre],[$id]);"><i class="fa fa-trash"></i>&nbsp;Eliminar</a></li>
<li ><a href="javascript: AbrirDocAdjuntos([$ruta]);"><i class="fa [$icon]"></i></a></li>
<li ><a href="javascript: RemoverAdjunto([$nombre],[$id]);"><i class="fa fa-trash"></i></a></li>
</ul>
</div>
@ -381,11 +385,28 @@
<div id="ucAbrirDocumento" style="display:none;">
<span>
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs">
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs" onclick="AbrirDocAdjuntos([$ruta])">
<i class="fa [$icon]"></i>&nbsp;&nbsp;
</button>
</span>
</div>
<div id="ucEliminarDocumento" style="display:none;">
<span>
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs" onclick="RemoverAdjunto([$nombre], [$id])">
<i class="fa fa-trash"></i>&nbsp;&nbsp;
</button>
</span>
</div>
@*<div id="ucAbrirDocumento" style="display:none;">
<span>
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs">
<i class="fa [$icon]"></i>&nbsp;&nbsp;
</button>
</span>
</div>*@
<div id="ucBtnSeleccionarCatalogo" style="display:none;">
<button type="button" id="btnSeleccionarCatalogo" class="btn btn-default btn-xs">
@ -496,7 +517,7 @@
</div>
</div>
@*---------------------Comentario ---------------------------------------------------------*@
<div class="form-group " id="divComentarioDocAux">
<div class="form-group " id="divComentarioDocAux" style="display:none">
<label class="col-sm-4 control-label ControlsForms" id="lblComentarioDocAux">Comentario</label>
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
<textarea name="txtComentarioDocAux" rows="5" cols="39" id="txtComentarioDocAux" style="resize: none"></textarea>
@ -612,7 +633,7 @@
</div>
<table id="tableDocForo" class="display">
<table id="tableDocForo" class="table table-striped">
<thead>
<tr>
<th></th>
@ -749,7 +770,7 @@
</div>
<table id="tableDocMatriz" class="display">
<table id="tableDocMatriz" class="table table-striped">
<thead>
<tr>
<th></th>
@ -863,7 +884,7 @@
</div>
<table id="tableDocEvento" class="display">
<table id="tableDocEvento" class="table table-striped">
<thead>
<tr>
<th></th>

View file

@ -146,7 +146,7 @@
<br />
<div class="modal-body">
<table id="tableParticipantes" class="table table-condensed dataTable no-footer">
<table id="tableParticipantes" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th class="col-sm-4">Usuario</th>

View file

@ -12,7 +12,8 @@
<div class="panel-body">
<br />
<div>
<table id="tableSitios" class="table table-condensed dataTable no-footer">
<table id="tableSitios" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th class="col-sm-1">ID</th>

View file

@ -259,7 +259,7 @@
<br />
<div class="modal-body">
<table id="tableParticipantes" class="table table-condensed dataTable no-footer">
<table id="tableParticipantes" class="table table-striped dataTable no-footer">
<thead>
<tr>
<th class="col-sm-4">Usuario</th>

View file

@ -34,6 +34,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
{
model.Convocado.UsuarioModificacion = model.UserName;
model.Convocado.FechaModificacion = DateTime.Now;
model.Convocado.FechaCreacion = Actual.FechaCreacion;
Conn.Entry(Actual).State = System.Data.Entity.EntityState.Detached;
Conn.Convocatoria.Attach(model.Convocado);
Conn.Entry(model.Convocado).State = System.Data.Entity.EntityState.Modified;