git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C112
This commit is contained in:
parent
3191a009ff
commit
99199e4009
6 changed files with 33 additions and 34 deletions
|
|
@ -24,7 +24,7 @@ Global
|
|||
GlobalSection(TeamFoundationVersionControl) = preSolution
|
||||
SccNumberOfProjects = 7
|
||||
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
|
||||
SccTeamFoundationServer = http://190.113.104.190:8080/tfs/aya
|
||||
SccTeamFoundationServer = http://192.168.1.10:8080/tfs/aya
|
||||
SccLocalPath0 = .
|
||||
SccProjectUniqueName1 = AYA.SlnSynorModel\\AYA.SlnSinortModel.csproj
|
||||
SccProjectName1 = AYA.SlnSynorModel
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ namespace AYA.SlnSinort.WCF
|
|||
{
|
||||
catalogo.codigo = participantes.UsuarioSistema;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
var body2 = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
|
||||
var body2 = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$FechaMaxima", Convert.ToString(model.ProyectoNormativo.FechaMaximaConfirmarParticipacion)).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
|
||||
correo.CUERPO = body2;
|
||||
var usu1 = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "jnunez@atesacr.com";
|
||||
|
|
|
|||
|
|
@ -68,10 +68,7 @@ this.getDataModel = function () {
|
|||
GuardarPropuesta();
|
||||
});
|
||||
|
||||
$("#btnEnviar").unbind("click");
|
||||
$('#btnEnviar').click(function () {
|
||||
EnviarCorreo();
|
||||
});
|
||||
|
||||
|
||||
$('#tableParticipantes').TableInit(0, false, true, true, false, null, null);
|
||||
$("#txtFechaInicio").datepicker();
|
||||
|
|
@ -307,7 +304,7 @@ this.GuardarConvocadosPropuestaNormativa = function (data) {
|
|||
AjaxPostData(uri, model, false, true, null, null, null);
|
||||
EnviarCorreo();
|
||||
LimpiarPropuesta();
|
||||
ENDREQUEST();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -368,7 +365,8 @@ this.EnviarCorreo = function () {
|
|||
var PropuestaNormativa
|
||||
= {
|
||||
NombreProyectoNormativo: $("#txtNombreProyecto").val(),
|
||||
PromotorProyecto: $("#txtPromotorProyecto").val()
|
||||
PromotorProyecto: $("#txtPromotorProyecto").val(),
|
||||
FechaMaximaConfirmarParticipacion : DateFormatNoTime($("#txtFechaMaximaConfirmarParticipacion").DateFormatWCF())
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -378,5 +376,5 @@ this.EnviarCorreo = function () {
|
|||
|
||||
AjaxPostData(uri, model, false, false, null, null, null);
|
||||
|
||||
|
||||
ENDREQUEST();
|
||||
}
|
||||
|
|
@ -329,35 +329,37 @@
|
|||
</div>
|
||||
|
||||
@*---------------------Usuario ---------------------------------------------------------*@
|
||||
<div class="modal fade" id="modalUsuario" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
|
||||
<div class="modal-dialog modal">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Catálogo Usuarios</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="modal fade" id="modalUsuario" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Catálogo Usuarios</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
|
||||
<table id="tableUsuarios" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-2">Usuario</th>
|
||||
<th class="col-sm-4">Nombre</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<div class="col-md-12">
|
||||
|
||||
</div>
|
||||
<table id="tableUsuarios" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-2">Usuario</th>
|
||||
<th class="col-sm-4">Nombre</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
@Scripts.Render("~/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js")
|
||||
|
|
|
|||
|
|
@ -127,9 +127,7 @@
|
|||
<button type="button" id="btnGuardar" class="btn btn-success btn-medium" data-dismiss="modal">
|
||||
<i class="fa fa-floppy-o"></i> Guardar
|
||||
</button>
|
||||
<button type="button" id="btnEnviar" class="btn btn-success btn-medium" data-dismiss="modal">
|
||||
<i class="fa fa-floppy-o"></i> Enviar
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,12 +17,13 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
|
||||
public ProyectoNormativoJSON GuardarConvocatoriaProyectoNormativo(ProyectoNormativoJSON model)
|
||||
{
|
||||
|
||||
Convocatoria Actual = new Convocatoria();
|
||||
try
|
||||
{
|
||||
using (SinortContex Conn = new SinortContex())
|
||||
{
|
||||
if (!Conn.Convocatoria.Any(x => x.IdProyectoNormativo == model.ProyectoNormativo.IdProyectoNormativo && x.UsuarioSistema == model.Convocado.UsuarioSistema))
|
||||
Actual = Conn.Convocatoria.FirstOrDefault(x => x.IdProyectoNormativo == model.Convocado.IdProyectoNormativo && x.UsuarioSistema == model.Convocado.UsuarioSistema);
|
||||
if (Actual == null)
|
||||
{
|
||||
model.Convocado.Participante = false;
|
||||
model.Convocado.UsuarioCreacion = model.AtesaUser;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue