git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C114
This commit is contained in:
parent
64b6b9c74b
commit
0df3c98321
2 changed files with 36 additions and 1 deletions
|
|
@ -175,6 +175,7 @@ this.GuardarConvocadosForo = function (data) {
|
||||||
};
|
};
|
||||||
|
|
||||||
AjaxPostData(uri, model, false, true, null, null, null);
|
AjaxPostData(uri, model, false, true, null, null, null);
|
||||||
|
EnviarCorreo();
|
||||||
LimpiarForo();
|
LimpiarForo();
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
}
|
}
|
||||||
|
|
@ -207,3 +208,37 @@ this.LimpiarForo = function () {
|
||||||
tableParticipantes = $('#tableParticipantes').DataTable();
|
tableParticipantes = $('#tableParticipantes').DataTable();
|
||||||
tableParticipantes.clear().draw();
|
tableParticipantes.clear().draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.EnviarCorreo = function () {
|
||||||
|
|
||||||
|
tableParticipantes = $('#tableParticipantes').DataTable();
|
||||||
|
var ArrayParticipantes = [];
|
||||||
|
var data = tableParticipantes
|
||||||
|
.rows()
|
||||||
|
.data();
|
||||||
|
|
||||||
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
|
Convocatoria = {
|
||||||
|
UsuarioSistema: item[0]
|
||||||
|
}
|
||||||
|
ArrayParticipantes.push(Convocatoria);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
var PropuestaNormativa
|
||||||
|
= {
|
||||||
|
NombreProyectoNormativo: $("#txtNombreProyecto").val(),
|
||||||
|
PromotorProyecto: $("#txtPromotorProyecto").val(),
|
||||||
|
FechaMaximaConfirmarParticipacion: $("#txtFechaMaximaConfirmarParticipacion").DateFormatWCF()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var uri = SinortWCF + '/api/EnviarCorreo';
|
||||||
|
model.ProyectoNormativo = PropuestaNormativa;
|
||||||
|
model.ListaConvocatoria = ArrayParticipantes;
|
||||||
|
|
||||||
|
AjaxPostData(uri, model, false, false, null, null, null);
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
}
|
||||||
|
|
@ -366,7 +366,7 @@ this.EnviarCorreo = function () {
|
||||||
= {
|
= {
|
||||||
NombreProyectoNormativo: $("#txtNombreProyecto").val(),
|
NombreProyectoNormativo: $("#txtNombreProyecto").val(),
|
||||||
PromotorProyecto: $("#txtPromotorProyecto").val(),
|
PromotorProyecto: $("#txtPromotorProyecto").val(),
|
||||||
FechaMaximaConfirmarParticipacion : DateFormatNoTime($("#txtFechaMaximaConfirmarParticipacion").DateFormatWCF())
|
FechaMaximaConfirmarParticipacion : $("#txtFechaMaximaConfirmarParticipacion").DateFormatWCF()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue