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);
|
||||
EnviarCorreo();
|
||||
LimpiarForo();
|
||||
ENDREQUEST();
|
||||
}
|
||||
|
|
@ -206,4 +207,38 @@ this.LimpiarForo = function () {
|
|||
$("#txtFechaMaximaConfirmarParticipacion").val('');
|
||||
tableParticipantes = $('#tableParticipantes').DataTable();
|
||||
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(),
|
||||
PromotorProyecto: $("#txtPromotorProyecto").val(),
|
||||
FechaMaximaConfirmarParticipacion : DateFormatNoTime($("#txtFechaMaximaConfirmarParticipacion").DateFormatWCF())
|
||||
FechaMaximaConfirmarParticipacion : $("#txtFechaMaximaConfirmarParticipacion").DateFormatWCF()
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue