git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C125
This commit is contained in:
parent
dc5a4731c5
commit
372ea9884c
12 changed files with 295 additions and 177 deletions
|
|
@ -36,6 +36,10 @@ var Proyectos = {
|
|||
PropuestaNormativa: { Codigo: 1, Descripcion: "Propuesta Normativa" },
|
||||
Foro: { Codigo: 2, Descripcion: "Foro" }
|
||||
};
|
||||
var Comentarios = {
|
||||
Foro: { Codigo: 1, Descripcion: "Comentario Foro" },
|
||||
Matriz: { codigo: 2, Descripcion: "Comentario Matriz" }
|
||||
};
|
||||
//
|
||||
|
||||
//#region MOMENT CONFIGURATION (DATE AND TIME CONFIGURATION)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,20 @@
|
|||
var IDPropuesta;
|
||||
var IDTipoProyecto;
|
||||
var model = {};
|
||||
var EsRespuesta = false;
|
||||
var IDComentario = 0;
|
||||
var EsForo = false;
|
||||
|
||||
jQuery(document).ready(function () {
|
||||
|
||||
$('#tableParticipantes').TableInit(0, false, true, true, false, null, null);
|
||||
$('#tableParticipantes').DataTable().column(1).visible(false);
|
||||
$('#tableDocAuxiliares').TableInit(0, false, false, false, false, null, null);
|
||||
|
||||
$("#tabs").tabs();
|
||||
|
||||
IDPropuesta = ObtenerParametros().propuesta;
|
||||
IDTipoProyecto = ObtenerParametros().tipo;
|
||||
|
||||
if (IsNullOrEmpty(IDPropuesta)) {
|
||||
alert("No ha seleccionado una propuesta");
|
||||
|
|
@ -13,7 +22,17 @@ jQuery(document).ready(function () {
|
|||
return;
|
||||
}
|
||||
|
||||
if (IsNullOrEmpty(IDTipoProyecto)) {
|
||||
alert("No se ha encontrado el tipo de propuesta");
|
||||
$("#formDetallePropuesta").FormReadOnly();
|
||||
return;
|
||||
}
|
||||
|
||||
$("#formDetallePropuesta").EnableValidationToolTip();
|
||||
IDTipoProyecto = ROT47(IDTipoProyecto.toString());
|
||||
|
||||
EsForo = (IDTipoProyecto == Proyectos.Foro.Codigo);
|
||||
|
||||
model.ProyectoNormativo = {
|
||||
IdProyectoNormativo: ROT47(IDPropuesta.toString())
|
||||
};
|
||||
|
|
@ -24,12 +43,6 @@ jQuery(document).ready(function () {
|
|||
|
||||
this.getDataModel = function () {
|
||||
|
||||
$('#tableParticipantes').TableInit(0, false, true, true, false, null, null);
|
||||
$('#tableParticipantes').DataTable().column(1).visible(false);
|
||||
$('#tableDocAuxiliares').TableInit(0, false, false, false, false, null, null);
|
||||
|
||||
$("#tabs").tabs();
|
||||
|
||||
$("#btnBuscarUsuario").unbind("click");
|
||||
$("#btnBuscarUsuario").click(function () {
|
||||
BuscarUsuario();
|
||||
|
|
@ -53,6 +66,19 @@ this.getDataModel = function () {
|
|||
GuardarComentario();
|
||||
});
|
||||
|
||||
$("#btnAgregarElemento").unbind("click");
|
||||
$("#btnAgregarElemento").click(function () {
|
||||
$("#divRespuestaMatriz").empty();
|
||||
$("#lblComentarioMatriz").text("Comentario");
|
||||
EsRespuesta = false;
|
||||
$('#modalElemento').modal('show');
|
||||
});
|
||||
|
||||
$("#btnGuardarComentarioMatriz").unbind("click");
|
||||
$("#btnGuardarComentarioMatriz").click(function () {
|
||||
GuardarComentarioMatriz();
|
||||
});
|
||||
|
||||
Datepicker("#txtFechaInicio");
|
||||
$("#txtNombreProyecto").readOnly();
|
||||
$("#txtPromotorProyecto").readOnly();
|
||||
|
|
@ -124,6 +150,16 @@ this.CargarFormulario = function (data) {
|
|||
CargarConvocados();
|
||||
CargarForo();
|
||||
|
||||
if (EsForo) {
|
||||
$("#txtEmisor").css("display", "none");
|
||||
$("#txtAplicacion").css("display", "none");
|
||||
$("#divMatriz").css("display", "none");
|
||||
$("#divMatrizCambios").css("display", "none");
|
||||
$("#divComentarios").css("height", "450px");
|
||||
} else
|
||||
CargarMatriz();
|
||||
|
||||
|
||||
ENDREQUEST();
|
||||
}
|
||||
|
||||
|
|
@ -177,11 +213,15 @@ this.CargarConvocados = function () {
|
|||
this.CargarForo = function () {
|
||||
|
||||
$("#divComentarios").empty();
|
||||
$.each(model.ProyectoNormativo.ComentariosProyecto, function (key, item) {
|
||||
var listaComentarios = $.grep(model.ProyectoNormativo.ComentariosProyecto, function (data) {
|
||||
return data.IdTipoComentario == Comentarios.Foro.Codigo;
|
||||
});
|
||||
|
||||
$.each(listaComentarios, function (key, item) {
|
||||
|
||||
var comentario = $("#ucForo").html();
|
||||
|
||||
var respuestas = $.grep(model.ProyectoNormativo.ComentariosProyecto, function (data) {
|
||||
var respuestas = $.grep(listaComentarios, function (data) {
|
||||
return data.Respuesta == item.IdComentarioProyecto;
|
||||
});
|
||||
|
||||
|
|
@ -250,7 +290,9 @@ this.GuardarComentario = function () {
|
|||
IdProyectoNormativo: model.ProyectoNormativo.IdProyectoNormativo,
|
||||
Asunto: $("#txtAsunto").val(),
|
||||
Comentario: $("#txtComentario").val(),
|
||||
Respuesta: EsRespuesta ? IDComentario : null
|
||||
Respuesta: EsRespuesta ? IDComentario : null,
|
||||
IdTipoComentario: Comentarios.Foro.Codigo,
|
||||
DescTipoComentario: Comentarios.Foro.Descripcion
|
||||
}
|
||||
|
||||
AjaxPostData(uri, model, false, true, ComentarioGuardado, null, null);
|
||||
|
|
@ -327,6 +369,110 @@ this.VisualizarRespuestas = function (IdComentario) {
|
|||
$('#modalRespuestasComentario').modal('show');
|
||||
}
|
||||
|
||||
//MATRIZ
|
||||
this.CargarMatriz = function () {
|
||||
|
||||
$("#divMatrizCambios").empty();
|
||||
var listaComentarios = $.grep(model.ProyectoNormativo.ComentariosProyecto, function (data) {
|
||||
return data.IdTipoComentario == Comentarios.Matriz.Codigo;
|
||||
});
|
||||
|
||||
$.each(listaComentarios, function (key, item) {
|
||||
|
||||
var comentario = $("#ucMatriz").html();
|
||||
|
||||
var respuestas = $.grep(listaComentarios, function (data) {
|
||||
return data.Respuesta == item.IdComentarioProyecto;
|
||||
});
|
||||
|
||||
comentario = replaceAll("[$IdComentario]", item.IdComentarioProyecto, comentario);
|
||||
comentario = replaceAll("[$Usuario]", item.UsuarioSistema, comentario);
|
||||
comentario = replaceAll("[$Asunto]", item.Asunto, comentario);
|
||||
comentario = replaceAll("[$Comentario]", item.Comentario, comentario);
|
||||
comentario = replaceAll("[$Fecha]", DateFormat(item.FechaCreacion), comentario);
|
||||
comentario = replaceAll("[$Respuestas]", respuestas.length, comentario);
|
||||
|
||||
$("#divMatrizCambios").append(comentario);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
this.GuardarComentarioMatriz = function () {
|
||||
|
||||
if (!$("#formElemento").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!confirm("Va a ingresar un nuevo elemento. ¿Desea continuar?")) return;
|
||||
|
||||
var uri = SinortWCF + '/api/GuardarComentarioProyectoNormativo';
|
||||
|
||||
model.Comentario = {
|
||||
IdProyectoNormativo: model.ProyectoNormativo.IdProyectoNormativo,
|
||||
Asunto: $("#txtAsuntoMatriz").val(),
|
||||
Capitulo: $("#txtCapituloMatriz").val(),
|
||||
Apartadado: $("#txtApartadoMatriz").val(),
|
||||
TextoOriginal: $("#txtTextoOriginal").val(),
|
||||
TextoPropuesto: $("#txtTextoPropuesto").val(),
|
||||
Comentario: $("#txtComentarioMatriz").val(),
|
||||
Respuesta: EsRespuesta ? IDComentario : null,
|
||||
IdTipoComentario: Comentarios.Matriz.Codigo,
|
||||
DescTipoComentario: Comentarios.Matriz.Descripcion
|
||||
}
|
||||
|
||||
AjaxPostData(uri, model, false, true, ComentarioMatrizGuardado, null, null);
|
||||
|
||||
}
|
||||
|
||||
this.ComentarioMatrizGuardado = function (data) {
|
||||
|
||||
if (data.CodigoRespuesta == "EXITOSO") {
|
||||
model = data;
|
||||
}
|
||||
|
||||
$("#txtAsuntoMatriz").val('');
|
||||
$("#txtComentarioMatriz").val('');
|
||||
$("#txtCapituloMatriz").val('');
|
||||
$("#txtApartadoMatriz").val('');
|
||||
$("#txtTextoOriginal").val('');
|
||||
$("#txtTextoPropuesto").val('');
|
||||
$("#txtComentarioMatriz").val('');
|
||||
|
||||
$('#modalElemento').modal('hide');
|
||||
|
||||
CargarMatriz();
|
||||
ENDREQUEST();
|
||||
}
|
||||
|
||||
this.ResponderComentarioMatriz = function (IdComentario) {
|
||||
|
||||
EsRespuesta = true;
|
||||
IDComentario = IdComentario;
|
||||
|
||||
var comentario = $("#Comentario_" + IdComentario).html().trim();
|
||||
var respuesta = $("#ucRespuesta").html();
|
||||
|
||||
$("#divRespuestaMatriz").empty();
|
||||
|
||||
if (comentario.lastIndexOf("\n") > 0) {
|
||||
comentario = comentario.substring(0, comentario.lastIndexOf("\n"));
|
||||
}
|
||||
|
||||
//Obtener comentario anterior
|
||||
respuesta = replaceAll("[$Contenido]", comentario, respuesta);
|
||||
|
||||
$("#divRespuestaMatriz").append(respuesta);
|
||||
|
||||
$("#btnMostrarCita").unbind("click");
|
||||
$("#btnMostrarCita").click(function () {
|
||||
$("#divContenidoCita").toggle("slow");
|
||||
});
|
||||
|
||||
$("#lblComentarioMatriz").text("Respuesta");
|
||||
$('#modalElemento').modal('show');
|
||||
}
|
||||
|
||||
$('#tableUsuarios').on('click', 'button', function () {
|
||||
|
||||
var data = $('#tableUsuarios').DataTable().row($(this).parents('tr')).data();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ this.CargarTablaSitios = function (data) {
|
|||
var columnDefinition = [
|
||||
{ "data": "IdProyectoNormativo","visible":false },
|
||||
{ "data": "NombreProyectoNormativo" },
|
||||
{ "data": "TipoProyecto.Descripcion" },
|
||||
{ "data": "IdTipoProyecto", "visible": false },
|
||||
{ "data": "DescTipoProyecto" },
|
||||
{ "data": null, className: "center", defaultContent: Seleccionar }
|
||||
];
|
||||
|
||||
|
|
@ -43,6 +44,7 @@ $('#tableSitios').on('click', 'button', function () {
|
|||
url = url.replace("View", "DetallePropuesta");
|
||||
url = url.replace("Controller", "PropuestaNormativa");
|
||||
url = url.replace("[$ID]", ROT47(data.IdProyectoNormativo.toString()));
|
||||
url = url.replace("[$TIPO]", ROT47(data.IdTipoProyecto.toString()));
|
||||
|
||||
document.location.href = url;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)?propuesta=[$ID]">
|
||||
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)?propuesta=[$ID]&tipo=[$TIPO]">
|
||||
|
||||
<form id="formSitios" class="form-horizontal" role="form">
|
||||
|
||||
|
|
@ -18,6 +18,7 @@
|
|||
<tr>
|
||||
<th class="col-sm-1">ID</th>
|
||||
<th class="col-sm-4">Nombre</th>
|
||||
<th></th>
|
||||
<th class="col-sm-4">Tipo</th>
|
||||
<th>Acción</th>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@
|
|||
<div class="row">
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12" id="divForo">
|
||||
<button class="btn btn-info btn-xs btn-margin-catalogo" id="btnAgregarComentario" type="button">
|
||||
<i class="fa fa-comments"></i>
|
||||
Foro - Nueva Discusión
|
||||
|
|
@ -183,11 +183,11 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12" id="divMatriz">
|
||||
<br />
|
||||
<button class="btn btn-info btn-xs btn-margin-catalogo" id="btnAgregarComentario" type="button">
|
||||
<button class="btn btn-info btn-xs btn-margin-catalogo" id="btnAgregarElemento" type="button">
|
||||
<i class="fa fa-comments"></i>
|
||||
Matriz Cambios - Nueva Discusión
|
||||
Matriz Cambios - Nuevo Elemento
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-12" style="overflow-y: scroll; height:250px;" id="divMatrizCambios">
|
||||
|
|
@ -230,6 +230,7 @@
|
|||
</div>
|
||||
</form>
|
||||
|
||||
@* PLANTILLAS *@
|
||||
<div id="ucBtnSeleccionarCatalogo" style="display:none;">
|
||||
<button type="button" id="btnSeleccionarCatalogo" class="btn btn-default btn-xs">
|
||||
<i id="ibtnSeleccionarCatalogo" class="fa fa-check"></i>
|
||||
|
|
@ -276,6 +277,13 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ucMatriz" style="display:none;">
|
||||
<div id="Comentario_[$IdComentario]" style="border-bottom: 2px solid">
|
||||
<h4> [$Asunto] </h4>
|
||||
<h5> [$Comentario]</h5>
|
||||
<h6> <i class="fa fa-user"> </i> [$Usuario] - [$Fecha] <i onclick="VisualizarRespuestas([$IdComentario])" class="fa fa-commenting"> </i> [$Respuestas] <i onclick="ResponderComentarioMatriz([$IdComentario])" style="float:right" class="fa fa-share"></i> </h6>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section Modals{
|
||||
|
||||
|
|
@ -380,6 +388,81 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*---------------------Comentario Matriz ---------------------------------------------------------*@
|
||||
<div class="modal fade" id="modalElemento" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
|
||||
<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> Agregar Elemento </h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="formElemento">
|
||||
@*---------------------Asunto ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divAsuntoMatriz">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAsunto">Asunto</label>
|
||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||
<input name="txtAsuntoMatriz" class="form-control imput-xs" id="txtAsuntoMatriz" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*---------------------Capitulo ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divCapituloMatriz">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAsunto">Capítulo</label>
|
||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||
<input name="txtCapituloMatriz" class="form-control imput-xs" id="txtCapituloMatriz" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*---------------------Apartado ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divApartadoMatriz">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblAsunto">Apartado</label>
|
||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||
<input name="txtApartadoMatriz" class="form-control imput-xs" id="txtApartadoMatriz" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group " id="divRespuestaMatriz">
|
||||
|
||||
</div>
|
||||
|
||||
@*--------------------- Original ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divTextoOriginal">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblcomentario">Texto Original</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<textarea name="txtTextoOriginal" rows="8" cols="45" id="txtTextoOriginal" style="resize: none"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*--------------------- Propuesto ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divTextoPropuesto">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblcomentario">Texto Propuesto</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<textarea name="txtTextoPropuesto" rows="8" cols="45" id="txtTextoPropuesto" style="resize: none"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*--------------------- Comentario ---------------------------------------------------------*@
|
||||
<div class="form-group " id="divComentarioMatriz">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblComentarioMatriz">Comentario</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<textarea name="txtComentarioMatriz" rows="8" cols="45" id="txtComentarioMatriz" style="resize: none"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="btnGuardarComentarioMatriz" 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")
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@
|
|||
<Compile Include="Sinort\Aplicacion.cs" />
|
||||
<Compile Include="Sinort\BitacoraDocumentos.cs" />
|
||||
<Compile Include="Sinort\Categoria.cs" />
|
||||
<Compile Include="Sinort\ComentariosMatriz.cs" />
|
||||
<Compile Include="Sinort\ComentariosProyecto.cs" />
|
||||
<Compile Include="Sinort\Contenido.cs" />
|
||||
<Compile Include="Sinort\Convocatoria.cs" />
|
||||
|
|
@ -80,7 +79,6 @@
|
|||
<Compile Include="Sinort\Estado.cs" />
|
||||
<Compile Include="Sinort\GrupoTematico.cs" />
|
||||
<Compile Include="Sinort\Mantenimiento.cs" />
|
||||
<Compile Include="Sinort\Matriz.cs" />
|
||||
<Compile Include="Sinort\PalabraClave.cs" />
|
||||
<Compile Include="Sinort\Pantallas.cs" />
|
||||
<Compile Include="Sinort\Partial\Contex.cs" />
|
||||
|
|
@ -93,10 +91,10 @@
|
|||
<Compile Include="Sinort\SubCategoriaContenido.cs" />
|
||||
<Compile Include="Sinort\SubCategoriaGrupoTematico.cs" />
|
||||
<Compile Include="Sinort\TipoAplicacion.cs" />
|
||||
<Compile Include="Sinort\TipoComentario.cs" />
|
||||
<Compile Include="Sinort\TipoDocumento.cs" />
|
||||
<Compile Include="Sinort\TipoEmisor.cs" />
|
||||
<Compile Include="Sinort\TipoEstado.cs" />
|
||||
<Compile Include="Sinort\TipoMatriz.cs" />
|
||||
<Compile Include="Sinort\TipoProyecto.cs" />
|
||||
<Compile Include="Sinort\Usuario.cs" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -1,51 +0,0 @@
|
|||
namespace AYA.SlnSinortModel.Sinort
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("Global.ComentariosMatriz")]
|
||||
public partial class ComentariosMatriz
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdComtarioMatriz { get; set; }
|
||||
|
||||
public int? IdMatriz { get; set; }
|
||||
|
||||
public int? IdDocumento { get; set; }
|
||||
|
||||
public int? IdUsuario { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string Asunto { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Capitulo { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string ApartadoSeccionParrafo { get; set; }
|
||||
|
||||
public string TextoOriginal { get; set; }
|
||||
|
||||
public string TextoPropuesto { get; set; }
|
||||
|
||||
public string ComentarioObservacionJustificacion { get; set; }
|
||||
|
||||
public DateTime? FechaCreacion { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string UsuarioCreacion { get; set; }
|
||||
|
||||
public DateTime? FechaModificacion { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
public virtual Documentos Documentos { get; set; }
|
||||
|
||||
public virtual Matriz Matriz { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -15,6 +15,11 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
public int? IdProyectoNormativo { get; set; }
|
||||
|
||||
public int? IdTipoComentario { get; set; }
|
||||
|
||||
[StringLength(50)]
|
||||
public string DescTipoComentario { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string Asunto { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public Documentos()
|
||||
{
|
||||
BitacoraDocumentos = new HashSet<BitacoraDocumentos>();
|
||||
ComentariosMatriz = new HashSet<ComentariosMatriz>();
|
||||
ComentariosProyecto = new HashSet<ComentariosProyecto>();
|
||||
}
|
||||
|
||||
|
|
@ -41,9 +40,6 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<BitacoraDocumentos> BitacoraDocumentos { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<ComentariosMatriz> ComentariosMatriz { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<ComentariosProyecto> ComentariosProyecto { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,39 +0,0 @@
|
|||
namespace AYA.SlnSinortModel.Sinort
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("Global.Matriz")]
|
||||
public partial class Matriz
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Matriz()
|
||||
{
|
||||
ComentariosMatriz = new HashSet<ComentariosMatriz>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdMatriz { get; set; }
|
||||
|
||||
public int? IdTipoMatriz { get; set; }
|
||||
|
||||
public DateTime? FechaCreacion { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string UsuarioCreacion { get; set; }
|
||||
|
||||
public DateTime? FechaModificacion { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
public virtual TipoMatriz TipoMatriz { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<ComentariosMatriz> ComentariosMatriz { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -26,19 +26,17 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public virtual DbSet<SubCategoriaContenido> SubCategoriaContenido { get; set; }
|
||||
public virtual DbSet<SubCategoriaGrupoTematico> SubCategoriaGrupoTematico { get; set; }
|
||||
public virtual DbSet<TipoAplicacion> TipoAplicacion { get; set; }
|
||||
public virtual DbSet<TipoComentario> TipoComentario { get; set; }
|
||||
public virtual DbSet<TipoDocumento> TipoDocumento { get; set; }
|
||||
public virtual DbSet<TipoEmisor> TipoEmisor { get; set; }
|
||||
public virtual DbSet<TipoEstado> TipoEstado { get; set; }
|
||||
public virtual DbSet<TipoMatriz> TipoMatriz { get; set; }
|
||||
public virtual DbSet<TipoProyecto> TipoProyecto { get; set; }
|
||||
public virtual DbSet<Usuario> Usuario { get; set; }
|
||||
public virtual DbSet<BitacoraDocumentos> BitacoraDocumentos { get; set; }
|
||||
public virtual DbSet<Documentos> Documentos { get; set; }
|
||||
public virtual DbSet<DocumentosAdjuntos> DocumentosAdjuntos { get; set; }
|
||||
public virtual DbSet<ComentariosMatriz> ComentariosMatriz { get; set; }
|
||||
public virtual DbSet<ComentariosProyecto> ComentariosProyecto { get; set; }
|
||||
public virtual DbSet<Convocatoria> Convocatoria { get; set; }
|
||||
public virtual DbSet<Matriz> Matriz { get; set; }
|
||||
public virtual DbSet<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
|
|
@ -273,6 +271,18 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoComentario>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoComentario>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoComentario>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoDocumento>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -309,18 +319,6 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoMatriz>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoMatriz>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoMatriz>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoProyecto>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -399,37 +397,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.Asunto)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.Capitulo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.ApartadoSeccionParrafo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.TextoOriginal)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.TextoPropuesto)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.ComentarioObservacionJustificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosMatriz>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
modelBuilder.Entity<ComentariosProyecto>()
|
||||
.Property(e => e.DescTipoComentario)
|
||||
.IsFixedLength();
|
||||
|
||||
modelBuilder.Entity<ComentariosProyecto>()
|
||||
.Property(e => e.Asunto)
|
||||
|
|
@ -439,6 +409,10 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.Comentario)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosProyecto>()
|
||||
.Property(e => e.Comentario)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosProyecto>()
|
||||
.Property(e => e.UsuarioSistema)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -471,16 +445,24 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Matriz>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Matriz>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
modelBuilder.Entity<ProyectoNormativo>()
|
||||
.Property(e => e.NombreProyectoNormativo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ProyectoNormativo>()
|
||||
.Property(e => e.NombreProyectoNormativo)
|
||||
.Property(e => e.DescTipoProyecto)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ProyectoNormativo>()
|
||||
.Property(e => e.Matriz)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ProyectoNormativo>()
|
||||
.Property(e => e.Emisor)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ProyectoNormativo>()
|
||||
.Property(e => e.Aplicacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ProyectoNormativo>()
|
||||
|
|
|
|||
|
|
@ -6,18 +6,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("Catalogos.TipoMatriz")]
|
||||
public partial class TipoMatriz
|
||||
[Table("Catalogos.TipoComentario")]
|
||||
public partial class TipoComentario
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public TipoMatriz()
|
||||
{
|
||||
Matriz = new HashSet<Matriz>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdTipoMatriz { get; set; }
|
||||
public int IdTipoComentario { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string Descripcion { get; set; }
|
||||
|
|
@ -31,8 +25,5 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Matriz> Matriz { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue