git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C189
This commit is contained in:
parent
b832030be0
commit
023c21ddf8
24 changed files with 594 additions and 98 deletions
|
|
@ -54,9 +54,10 @@ this.getDataModel = function () {
|
|||
|
||||
|
||||
$('#TableItems').TableInit(0, false, true, true, false, null, null);
|
||||
ObtenerAplicaciones();
|
||||
|
||||
|
||||
ObtenerAplicaciones();
|
||||
|
||||
}
|
||||
this.CargarGridAplicaciones = function (data) {
|
||||
|
||||
|
|
@ -124,15 +125,21 @@ this.VerDescripcionLarga = function (DescripcionLarga) {
|
|||
|
||||
this.ObtenerAplicaciones = function (data) {
|
||||
|
||||
|
||||
if (ValidarPermisos('Ver catálogos').length > 0) {
|
||||
var uri = CatalogosWCF + '/api/ObtenerAplicacion';
|
||||
AjaxPostData(uri, null, false, false, CargarGridAplicaciones, null, null);
|
||||
}
|
||||
else {
|
||||
alert('No tiene permisos para ejecutar esta opción.');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -152,11 +159,14 @@ this.EditarItem = function (id) {
|
|||
$('#btnInsertar').hide();
|
||||
$('#btnGuardar').show();
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar la aplicación?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -180,7 +190,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarAplicacion';
|
||||
AjaxPostData(uri, Aplicacion, true, true, CompletarAccion, null, null);
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
|
@ -208,6 +221,8 @@ this.ActualizarItem = function () {
|
|||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
ObtenerAplicaciones();
|
||||
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
|
|
@ -229,6 +244,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarAplicacion';
|
||||
AjaxPostData(uri, Aplicacion, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
|
||||
}
|
||||
this.CompletarAccion = function () {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ this.getDataModel = function () {
|
|||
$('#btnInsertar').show();
|
||||
|
||||
|
||||
$('#btnLimpiarControles').click(function () {
|
||||
$('#btnLimpiar').click(function () {
|
||||
LimpiarControles();
|
||||
|
||||
$('#btnGuardar').hide();
|
||||
|
|
@ -80,13 +80,20 @@ this.CargarGridEmisores = function (data) {
|
|||
|
||||
this.ObtenerEmisores = function () {
|
||||
|
||||
if (ValidarPermisos('Ver catálogos').length > 0) {
|
||||
var uri = CatalogosWCF + '/api/ObtenerEmisor';
|
||||
AjaxPostData(uri, null, false, false, CargarGridEmisores, null, null);
|
||||
}
|
||||
else {
|
||||
alert('No tiene permisos para ejecutar esta opción.');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -105,9 +112,13 @@ this.EditarItem = function (id) {
|
|||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar el Emisor?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -132,6 +143,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
var uri = CatalogosWCF + '/api/InsertarActualizarEmisor';
|
||||
AjaxPostData(uri, EmisorPN, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
||||
|
|
@ -157,7 +172,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
|
|
@ -175,7 +190,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarEmisor';
|
||||
AjaxPostData(uri, EmisorPN, true, true, CompletarAccion, null, null);
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.CompletarAccion = function () {
|
||||
|
|
|
|||
|
|
@ -1671,7 +1671,7 @@ this.ObtenerCantidadTareasPendientes = function () {
|
|||
var model = {
|
||||
codigo: UsuarioSistema
|
||||
}
|
||||
AjaxPostData(uri, model, true, false, DibujarTareasPendientes, null, null);
|
||||
AjaxPostData(uri, model, true, null, DibujarTareasPendientes, null, true);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,21 +1,21 @@
|
|||
|
||||
var Item = {};
|
||||
jQuery(document).ready(function () {
|
||||
|
||||
if (ValidarPermisos('Ingreso y actualización de mantenimientos').length > 0) {
|
||||
CargarMantenimiento();
|
||||
|
||||
}
|
||||
else {
|
||||
alert('No tiene permisos para ejecutar esta opción.');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
this.CargarMantenimiento = function () {
|
||||
|
||||
if (ValidarPermisos('Ver catálogos1').length > 0) {
|
||||
|
||||
var uri = CatalogosWCF + '/api/ObtenerMantenimientoCatalogos';
|
||||
AjaxPostData(uri, Item, true, false, CargarTablaMantenimiento, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.success('The process has been saved.', 'Success');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.CargarTablaMantenimiento = function (data) {
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ this.ObtenerRoles = function (data) {
|
|||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -146,11 +146,15 @@ this.EditarItem = function (id) {
|
|||
$('#btnInsertar').hide();
|
||||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar el rol?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -174,6 +178,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarRol';
|
||||
AjaxPostData(uri, Rol, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -202,7 +210,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
|
|
@ -221,7 +229,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarRol';
|
||||
AjaxPostData(uri, Rol, true, true, CompletarAccion, null, null);
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
this.CompletarAccion = function () {
|
||||
$('#btnGuardar').hide();
|
||||
|
|
@ -242,9 +253,14 @@ this.LimpiarControles = function () {
|
|||
}
|
||||
//Asignar opciones por rol
|
||||
this.AbrirRolesPantallas = function (id) {
|
||||
if (ValidarPermisos('Asignar permisos por rol').length > 0) {
|
||||
$("#modalRolesOpciones").modal('show');
|
||||
CargarPantallas(id);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.CargarPantallas = function (id) {
|
||||
|
||||
|
|
@ -465,53 +481,16 @@ $('#GridRolesOpciones').on('click', 'button', function () {
|
|||
|
||||
});
|
||||
|
||||
//this.GuardarRolesPantallas = function () {
|
||||
|
||||
// if (!confirm("Va registrar las pantallas asociadas.\n ¿Desea continuar?"))
|
||||
// { return; }
|
||||
|
||||
// TablePantallas = $('#GridRolesPantallas').DataTable();
|
||||
// var IdRoles = $('#hiddenIdRol').val();
|
||||
// var ArrayRolesPantallas = [];
|
||||
// var data = TablePantallas
|
||||
// .rows()
|
||||
// .data();
|
||||
|
||||
// $.each(data, function (key, item) {
|
||||
|
||||
|
||||
// var cheched = $("#chkSeleccionar_" + item[1]).prop("checked") ? true : false
|
||||
|
||||
|
||||
// RolesPantallas = {
|
||||
|
||||
// IdRolesPantallas :item[0],
|
||||
// IdRol: IdRoles,
|
||||
// IdPantalla: item[1],
|
||||
// Estado: cheched
|
||||
|
||||
// }
|
||||
// ArrayRolesPantallas.push(RolesPantallas);
|
||||
// });
|
||||
|
||||
// var uri = CatalogosWCF + '/api/InsertarActualizarRolesPantallas';
|
||||
// var model = {
|
||||
// ListaRolesPantallas: ArrayRolesPantallas
|
||||
// };
|
||||
|
||||
// AjaxPostData(uri, model, true, true, null, null, null);
|
||||
|
||||
|
||||
|
||||
// ENDREQUEST();
|
||||
|
||||
//}
|
||||
//Asignar usuarios por rol
|
||||
this.AbrirRolesUsuario = function (id) {
|
||||
|
||||
if (ValidarPermisos('Asignar usuarios por rol').length > 0) {
|
||||
$("#modalRolesUsuario").modal('show');
|
||||
CargarUsuarios(id);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.CargarUsuarios = function (id) {
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,16 @@
|
|||
var Item = {};
|
||||
jQuery(document).ready(function () {
|
||||
CargarUsuario();
|
||||
$('#tableUsuario').TableInit(0, false, true, true, false, null, null);
|
||||
});
|
||||
this.ActualizarUsuarios= function () {
|
||||
|
||||
if (ValidarPermisos('Sincronizar usuarios').length > 0) {
|
||||
var uri = CatalogosWCF + '/api/ActualizarUsuarios';
|
||||
AjaxPostData(uri, Item, false, true, CargarUsuario, null, null);
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -20,18 +24,25 @@ this.CargarUsuario = function () {
|
|||
}
|
||||
|
||||
this.CargarTablaUsuario = function (data) {
|
||||
$('#tableUsuario').TableInit(0, false, true, true, false, null, null);
|
||||
var TableItems = $('#tableUsuario').DataTable();
|
||||
TableItems.clear().draw();
|
||||
var lista = data;
|
||||
|
||||
$.each(lista, function (key, item) {
|
||||
|
||||
TableItems.row.add([item.UsuarioSistema,
|
||||
item.NombreUsuario,
|
||||
item.EmailUsuario]).draw();
|
||||
|
||||
});
|
||||
if (data != null) {
|
||||
|
||||
var columnDefinition = [
|
||||
{ "data": "UsuarioSistema", className: "center" },
|
||||
{ "data": "NombreUsuario", className: "center" },
|
||||
{ "data": "EmailUsuario", className: "center" }
|
||||
];
|
||||
|
||||
$('#tableUsuario').TableInit(0, false, true, true, false, columnDefinition, data, false);
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||
}
|
||||
|
||||
|
||||
ENDREQUEST();
|
||||
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@
|
|||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<span><i class="fa fa-circle text-success"> Acciones</i> </span>
|
||||
|
||||
<li><a href="@Url.Action("Mantenimiento", "Catalogos")"> Configuración de la </br> aplicación</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[Table("Catalogos.Aplicacion")]
|
||||
public partial class Aplicacion
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Aplicacion()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdAplicacion { get; set; }
|
||||
|
|
@ -33,6 +39,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
|
||||
public virtual TipoAplicacion TipoAplicacion { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,40 @@
|
|||
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.AreaAplicacionDocumentoTecnico")]
|
||||
public partial class AreaAplicacionDocumentoTecnico
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public AreaAplicacionDocumentoTecnico()
|
||||
{
|
||||
Solicitud = new HashSet<Solicitud>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdAreaAplicacionDocumentoTecnico { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string Descripcion { get; set; }
|
||||
|
||||
public bool? Estado { 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; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Solicitud> Solicitud { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Contenido()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
SubCategoriaContenido = new HashSet<SubCategoriaContenido>();
|
||||
}
|
||||
|
||||
|
|
@ -37,6 +38,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<SubCategoriaContenido> SubCategoriaContenido { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[Table("Catalogos.DocumentoTecnico")]
|
||||
public partial class DocumentoTecnico
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public DocumentoTecnico()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdDocumentoTecnico { get; set; }
|
||||
|
|
@ -30,5 +36,8 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
BitacoraDocumentos = new HashSet<BitacoraDocumentos>();
|
||||
Calendario = new HashSet<Calendario>();
|
||||
ComentariosProyecto = new HashSet<ComentariosProyecto>();
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
|
|
@ -70,5 +71,8 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<ComentariosProyecto> ComentariosProyecto { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[Table("Catalogos.Emisor")]
|
||||
public partial class Emisor
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Emisor()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdEmisor { get; set; }
|
||||
|
|
@ -30,6 +36,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
|
||||
public virtual TipoEmisor TipoEmisor { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,13 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[Table("Catalogos.Estado")]
|
||||
public partial class Estado
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Estado()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
Solicitud = new HashSet<Solicitud>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdEstado { get; set; }
|
||||
|
|
@ -31,6 +38,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
|
||||
public virtual TipoEstado TipoEstado { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Solicitud> Solicitud { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
75
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/FichaTecnica.cs
Normal file
75
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/FichaTecnica.cs
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
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.FichaTecnica")]
|
||||
public partial class FichaTecnica
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public FichaTecnica()
|
||||
{
|
||||
FichaTecnicaPalabraClave = new HashSet<FichaTecnicaPalabraClave>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdFichaTecnica { get; set; }
|
||||
|
||||
public int? IdDocumento { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string Identificacion { get; set; }
|
||||
|
||||
public int? IdEstado { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DocumentoIngreso { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DocumentoEgreso { get; set; }
|
||||
|
||||
public int? IdDocumentoTecnico { get; set; }
|
||||
|
||||
public int? IdAplicacion { get; set; }
|
||||
|
||||
public int? IdContenido { get; set; }
|
||||
|
||||
public int? IdSubCategoriaContenido { get; set; }
|
||||
|
||||
public int? IdGrupoTematico { get; set; }
|
||||
|
||||
public int? IdSubCategoriaGrupoTematico { get; set; }
|
||||
|
||||
public int? IdEmisor { get; set; }
|
||||
|
||||
public DateTime? FechaPublicacionDocumentoTecnico { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string NumeroPublicacionVersion { get; set; }
|
||||
|
||||
public virtual Aplicacion Aplicacion { get; set; }
|
||||
|
||||
public virtual Contenido Contenido { get; set; }
|
||||
|
||||
public virtual DocumentoTecnico DocumentoTecnico { get; set; }
|
||||
|
||||
public virtual Emisor Emisor { get; set; }
|
||||
|
||||
public virtual Estado Estado { get; set; }
|
||||
|
||||
public virtual GrupoTematico GrupoTematico { get; set; }
|
||||
|
||||
public virtual SubCategoriaContenido SubCategoriaContenido { get; set; }
|
||||
|
||||
public virtual SubCategoriaGrupoTematico SubCategoriaGrupoTematico { get; set; }
|
||||
|
||||
public virtual DocumentosAdjuntos DocumentosAdjuntos { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnicaPalabraClave> FichaTecnicaPalabraClave { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
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.FichaTecnicaPalabraClave")]
|
||||
public partial class FichaTecnicaPalabraClave
|
||||
{
|
||||
[Key]
|
||||
[Column(Order = 0)]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdFichaTecnica { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column(Order = 1)]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdPalabraClave { get; set; }
|
||||
|
||||
public bool? Estado { 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 PalabraClave PalabraClave { get; set; }
|
||||
|
||||
public virtual FichaTecnica FichaTecnica { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public GrupoTematico()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
SubCategoriaGrupoTematico = new HashSet<SubCategoriaGrupoTematico>();
|
||||
}
|
||||
|
||||
|
|
@ -37,6 +38,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<SubCategoriaGrupoTematico> SubCategoriaGrupoTematico { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[Table("Catalogos.PalabraClave")]
|
||||
public partial class PalabraClave
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public PalabraClave()
|
||||
{
|
||||
FichaTecnicaPalabraClave = new HashSet<FichaTecnicaPalabraClave>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdPalabraClave { get; set; }
|
||||
|
|
@ -27,5 +33,8 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnicaPalabraClave> FichaTecnicaPalabraClave { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public partial class SinortContex : Contex
|
||||
{
|
||||
|
||||
|
||||
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
||||
public virtual DbSet<Categoria> Categoria { get; set; }
|
||||
public virtual DbSet<Contenido> Contenido { get; set; }
|
||||
|
|
@ -32,14 +33,19 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public virtual DbSet<TipoEmisor> TipoEmisor { get; set; }
|
||||
public virtual DbSet<TipoEstado> TipoEstado { get; set; }
|
||||
public virtual DbSet<TipoProyecto> TipoProyecto { get; set; }
|
||||
public virtual DbSet<TipoSolicitud> TipoSolicitud { 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<AreaAplicacionDocumentoTecnico> AreaAplicacionDocumentoTecnico { get; set; }
|
||||
public virtual DbSet<Calendario> Calendario { get; set; }
|
||||
public virtual DbSet<ComentariosProyecto> ComentariosProyecto { get; set; }
|
||||
public virtual DbSet<Convocatoria> Convocatoria { get; set; }
|
||||
public virtual DbSet<FichaTecnica> FichaTecnica { get; set; }
|
||||
public virtual DbSet<FichaTecnicaPalabraClave> FichaTecnicaPalabraClave { get; set; }
|
||||
public virtual DbSet<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||
public virtual DbSet<Solicitud> Solicitud { get; set; }
|
||||
public virtual DbSet<TareasPendientes> TareasPendientes { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
|
|
@ -121,6 +127,11 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Estado>()
|
||||
.HasMany(e => e.Solicitud)
|
||||
.WithOptional(e => e.Estado1)
|
||||
.HasForeignKey(e => e.IdEstadoSolicitud);
|
||||
|
||||
modelBuilder.Entity<GrupoTematico>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -166,6 +177,11 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PalabraClave>()
|
||||
.HasMany(e => e.FichaTecnicaPalabraClave)
|
||||
.WithRequired(e => e.PalabraClave)
|
||||
.WillCascadeOnDelete(false);
|
||||
|
||||
modelBuilder.Entity<Pantallas>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -356,6 +372,18 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoSolicitud>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoSolicitud>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TipoSolicitud>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Usuario>()
|
||||
.Property(e => e.UsuarioSistema)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -381,11 +409,21 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.WithRequired(e => e.Usuario)
|
||||
.WillCascadeOnDelete(false);
|
||||
|
||||
modelBuilder.Entity<Usuario>()
|
||||
.HasMany(e => e.Solicitud)
|
||||
.WithOptional(e => e.Usuario)
|
||||
.HasForeignKey(e => e.NombreSuperior);
|
||||
|
||||
modelBuilder.Entity<Usuario>()
|
||||
.HasMany(e => e.TareasPendientes)
|
||||
.WithOptional(e => e.Usuario)
|
||||
.HasForeignKey(e => e.UsuarioAsignado);
|
||||
|
||||
modelBuilder.Entity<Usuario>()
|
||||
.HasMany(e => e.Solicitud1)
|
||||
.WithOptional(e => e.Usuario1)
|
||||
.HasForeignKey(e => e.UsuarioSistema);
|
||||
|
||||
modelBuilder.Entity<BitacoraDocumentos>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -445,6 +483,23 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.WithOptional(e => e.DocumentosAdjuntos)
|
||||
.HasForeignKey(e => e.IdDocumento);
|
||||
|
||||
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||
.HasMany(e => e.FichaTecnica)
|
||||
.WithOptional(e => e.DocumentosAdjuntos)
|
||||
.HasForeignKey(e => e.IdDocumento);
|
||||
|
||||
modelBuilder.Entity<AreaAplicacionDocumentoTecnico>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<AreaAplicacionDocumentoTecnico>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<AreaAplicacionDocumentoTecnico>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.Titulo)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -521,6 +576,35 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<FichaTecnica>()
|
||||
.Property(e => e.Identificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<FichaTecnica>()
|
||||
.Property(e => e.DocumentoIngreso)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<FichaTecnica>()
|
||||
.Property(e => e.DocumentoEgreso)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<FichaTecnica>()
|
||||
.Property(e => e.NumeroPublicacionVersion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<FichaTecnica>()
|
||||
.HasMany(e => e.FichaTecnicaPalabraClave)
|
||||
.WithRequired(e => e.FichaTecnica)
|
||||
.WillCascadeOnDelete(false);
|
||||
|
||||
modelBuilder.Entity<FichaTecnicaPalabraClave>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<FichaTecnicaPalabraClave>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ProyectoNormativo>()
|
||||
.Property(e => e.NombreProyectoNormativo)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -562,6 +646,42 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.WithRequired(e => e.ProyectoNormativo)
|
||||
.WillCascadeOnDelete(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.DescripcionTipoSolicitud)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.UsuarioSistema)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.CargoActual)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.NombreAreaFuncional)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.NombreSubgerencia)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.NombreSuperior)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.NombreDocumentoTecnico)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Solicitud>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<TareasPendientes>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
|
|
|||
68
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Solicitud.cs
Normal file
68
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Solicitud.cs
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
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.Solicitud")]
|
||||
public partial class Solicitud
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdSolicitud { get; set; }
|
||||
|
||||
public int? IdTipoSolicitud { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string DescripcionTipoSolicitud { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string UsuarioSistema { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string CargoActual { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string NombreAreaFuncional { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string NombreSubgerencia { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string NombreSuperior { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string NombreDocumentoTecnico { get; set; }
|
||||
|
||||
public int? IdAreaAplicacionDocumentoTecnico { get; set; }
|
||||
|
||||
[Column(TypeName = "ntext")]
|
||||
public string JustifiacionSolicitud { get; set; }
|
||||
|
||||
public int? IdEstadoSolicitud { get; set; }
|
||||
|
||||
public bool? Estado { 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 Estado Estado1 { get; set; }
|
||||
|
||||
public virtual TipoSolicitud TipoSolicitud { get; set; }
|
||||
|
||||
public virtual Usuario Usuario { get; set; }
|
||||
|
||||
public virtual Usuario Usuario1 { get; set; }
|
||||
|
||||
public virtual AreaAplicacionDocumentoTecnico AreaAplicacionDocumentoTecnico { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[Table("Catalogos.SubCategoriaContenido")]
|
||||
public partial class SubCategoriaContenido
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public SubCategoriaContenido()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdSubCategoriaContenido { get; set; }
|
||||
|
|
@ -31,5 +37,8 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
public virtual Contenido Contenido { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[Table("Catalogos.SubCategoriaGrupoTematico")]
|
||||
public partial class SubCategoriaGrupoTematico
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public SubCategoriaGrupoTematico()
|
||||
{
|
||||
FichaTecnica = new HashSet<FichaTecnica>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdSubCategoriaGrupoTematico { get; set; }
|
||||
|
|
@ -31,5 +37,8 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
public virtual GrupoTematico GrupoTematico { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<FichaTecnica> FichaTecnica { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoSolicitud.cs
Normal file
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoSolicitud.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
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("Catalogos.TipoSolicitud")]
|
||||
public partial class TipoSolicitud
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public TipoSolicitud()
|
||||
{
|
||||
Solicitud = new HashSet<Solicitud>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdTipoSolicitud { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string Descripcion { get; set; }
|
||||
|
||||
public bool? Estado { 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; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Solicitud> Solicitud { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -14,7 +14,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
{
|
||||
RolesUsuario = new HashSet<RolesUsuario>();
|
||||
Convocatoria = new HashSet<Convocatoria>();
|
||||
Solicitud = new HashSet<Solicitud>();
|
||||
TareasPendientes = new HashSet<TareasPendientes>();
|
||||
Solicitud1 = new HashSet<Solicitud>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
|
|
@ -45,7 +47,13 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Convocatoria> Convocatoria { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Solicitud> Solicitud { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<TareasPendientes> TareasPendientes { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Solicitud> Solicitud1 { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue