git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C69
This commit is contained in:
parent
e7ed8d2d33
commit
d8ea0cceb0
38 changed files with 1981 additions and 122 deletions
|
|
@ -15,7 +15,7 @@ namespace AYA.SlnSinort.WCF
|
||||||
[ServiceContract]
|
[ServiceContract]
|
||||||
public interface ISinortCatalogos
|
public interface ISinortCatalogos
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
#region Mantenimiento
|
#region Mantenimiento
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
|
|
@ -26,6 +26,9 @@ namespace AYA.SlnSinort.WCF
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
List<Aplicacion> ObtenerAplicacion();
|
List<Aplicacion> ObtenerAplicacion();
|
||||||
|
|
||||||
|
[OperationContract]
|
||||||
|
List<CatalogosJSON> ObtenerAplicacionPopUp(CatalogosPost model);
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
BaseJson InsertarActualizarAplicacion(Aplicacion model);
|
BaseJson InsertarActualizarAplicacion(Aplicacion model);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
@ -34,6 +37,10 @@ namespace AYA.SlnSinort.WCF
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
List<Emisor> ObtenerEmisor();
|
List<Emisor> ObtenerEmisor();
|
||||||
|
|
||||||
|
[OperationContract]
|
||||||
|
List<CatalogosJSON> ObtenerEmisorPopUp(CatalogosPost model);
|
||||||
|
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
BaseJson InsertarActualizarEmisor(Emisor model);
|
BaseJson InsertarActualizarEmisor(Emisor model);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
@ -47,40 +54,53 @@ namespace AYA.SlnSinort.WCF
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Pantallas
|
#region Pantallas
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
List<Pantallas> ObtenerPantallas(CatalogosPostJSON model);
|
List<Pantallas> ObtenerPantallas(CatalogosPostJSON model);
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
List<RolesPantallas> ObtenerPantallasRol(CatalogosPostJSON model);
|
List<RolesPantallas> ObtenerPantallasRol(CatalogosPostJSON model);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region RolesPantallas
|
#region RolesPantallas
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
RolesPantallasJSON InsertarActualizarRolesPantallas(RolesPantallasJSON model);
|
RolesPantallasJSON InsertarActualizarRolesPantallas(RolesPantallasJSON model);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Usuario
|
#region Usuario
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
List<Usuario> ObtenerUsuario();
|
List<Usuario> ObtenerUsuario();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region RolesUsuario
|
#region RolesUsuario
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
Usuario BuscarUsuario(CatalogosPostJSON model);
|
Usuario BuscarUsuario(CatalogosPostJSON model);
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
List<RolesUsuario> ObtenerUsuariosRol(CatalogosPostJSON model);
|
List<RolesUsuario> ObtenerUsuariosRol(CatalogosPostJSON model);
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
RolesUsuarioJSON InsertarActualizarRolesUsuario(RolesUsuarioJSON model);
|
RolesUsuarioJSON InsertarActualizarRolesUsuario(RolesUsuarioJSON model);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
[OperationContract]
|
|
||||||
List<Usuario> ObtenerUsuariosAyA();
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[DataContract]
|
||||||
|
public class CatalogosPost
|
||||||
|
{
|
||||||
|
|
||||||
|
[DataMember]
|
||||||
|
public string codigo { get; set; }
|
||||||
|
[DataMember]
|
||||||
|
public string filtro { get; set; }
|
||||||
|
[DataMember]
|
||||||
|
public int? IdTipo { get; set; }
|
||||||
|
|
||||||
|
//[OperationContract]
|
||||||
|
//List<Usuario> ObtenerUsuariosAyA();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,25 @@ namespace AYA.SlnSinort.WCF
|
||||||
return respuesta;
|
return respuesta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<CatalogosJSON> ObtenerAplicacionPopUp(CatalogosPost model)
|
||||||
|
{
|
||||||
|
List<CatalogosJSON> respuesta = new List<CatalogosJSON>();
|
||||||
|
CatalogosPostJSON CatalogosPostJSON = new CatalogosPostJSON();
|
||||||
|
CatalogosPostJSON.filtro = model.filtro;
|
||||||
|
CatalogosPostJSON.IdTipo = model.IdTipo;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
respuesta = new AplicacionDAL().ObtenerAplicacion(CatalogosPostJSON);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
log.Error(ex);
|
||||||
|
}
|
||||||
|
return respuesta;
|
||||||
|
}
|
||||||
|
|
||||||
public BaseJson InsertarActualizarAplicacion(Aplicacion model)
|
public BaseJson InsertarActualizarAplicacion(Aplicacion model)
|
||||||
{
|
{
|
||||||
BaseJson respuesta = new BaseJson();
|
BaseJson respuesta = new BaseJson();
|
||||||
|
|
@ -82,6 +101,25 @@ namespace AYA.SlnSinort.WCF
|
||||||
return respuesta;
|
return respuesta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<CatalogosJSON> ObtenerEmisorPopUp(CatalogosPost model)
|
||||||
|
{
|
||||||
|
List<CatalogosJSON> respuesta = new List<CatalogosJSON>();
|
||||||
|
CatalogosPostJSON CatalogosPostJSON = new CatalogosPostJSON();
|
||||||
|
CatalogosPostJSON.filtro = model.filtro;
|
||||||
|
CatalogosPostJSON.IdTipo = model.IdTipo;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
respuesta = new EmisorDAL().ObtenerEmisor(CatalogosPostJSON);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
log.Error(ex);
|
||||||
|
}
|
||||||
|
return respuesta;
|
||||||
|
}
|
||||||
|
|
||||||
public BaseJson InsertarActualizarEmisor(Emisor model)
|
public BaseJson InsertarActualizarEmisor(Emisor model)
|
||||||
{
|
{
|
||||||
BaseJson respuesta = new BaseJson();
|
BaseJson respuesta = new BaseJson();
|
||||||
|
|
@ -255,15 +293,15 @@ namespace AYA.SlnSinort.WCF
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region WCFAYA
|
#region WCFAYA
|
||||||
public List<Usuario> ObtenerUsuariosAyA()
|
//public List<Usuario> ObtenerUsuariosAyA()
|
||||||
{
|
//{
|
||||||
List<Usuario> respuesta = null;
|
// List<Usuario> respuesta = null;
|
||||||
DataSet ds = new DataSet();
|
// DataSet ds = new DataSet();
|
||||||
ServiciosUsuariosWCF.ServicioUsuariosClient respuestaAyA = new ServiciosUsuariosWCF.ServicioUsuariosClient();
|
// ServiciosUsuariosWCF.ServicioUsuariosClient respuestaAyA = new ServiciosUsuariosWCF.ServicioUsuariosClient();
|
||||||
ds = respuestaAyA.obtenerUsuariosActiveDirectory();
|
// ds = respuestaAyA.obtenerUsuariosActiveDirectory();
|
||||||
|
|
||||||
return respuesta;
|
// return respuesta;
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
||||||
|
|
@ -99,4 +99,7 @@
|
||||||
<directoryBrowse enabled="true"/>
|
<directoryBrowse enabled="true"/>
|
||||||
</system.webServer>
|
</system.webServer>
|
||||||
|
|
||||||
|
<connectionStrings>
|
||||||
|
<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||||
|
</connectionStrings>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
||||||
|
|
@ -1,82 +1,150 @@
|
||||||
|
var SelectedCatalog = '';
|
||||||
|
|
||||||
|
jQuery(document).ready(function () {
|
||||||
|
|
||||||
|
|
||||||
|
getDataModel();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
this.getDataModel = function () {
|
||||||
|
CargarEmisor();
|
||||||
|
CargarAplicacion();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.CargarEmisor = function (filtro) {
|
this.CargarEmisor = function (filtro) {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/ObtenerEmisor?IdTipoEmisor=1' + (filtro == null ? '' : '&filtro=' + filtro);
|
var uri = CatalogosWCF + '/api/ObtenerEmisorPopUp';
|
||||||
|
var model= {
|
||||||
|
IdTipo: 1,
|
||||||
|
filtro: filtro == null ? '' : '&filtro=' + filtro
|
||||||
|
}
|
||||||
|
|
||||||
|
AjaxPostData(uri, model, false, false, CargarGridEmisores, null, null);
|
||||||
|
|
||||||
$.getJSON(server + uri).done(function (data) {
|
|
||||||
|
|
||||||
if (data != null) {
|
|
||||||
|
|
||||||
listaEmisor = data;
|
|
||||||
|
|
||||||
var Seleccionar = $("#ucBtnSeleccionarCatalogo").html();
|
|
||||||
|
|
||||||
var columnDefinition = [
|
|
||||||
{ "data": null, className: "center", defaultContent: Seleccionar },
|
|
||||||
{ "data": "codigo" },
|
|
||||||
{ "data": "descripcion" }
|
|
||||||
];
|
|
||||||
|
|
||||||
$('#tableCatalogo').TableInit(0, false, true, false, false, columnDefinition, listaEmisor, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
|
||||||
|
|
||||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
|
||||||
}
|
|
||||||
|
|
||||||
}).fail(function (jqxhr, textStatus, error) {
|
|
||||||
|
|
||||||
UI.ENDREQUEST();
|
|
||||||
|
|
||||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
|
||||||
|
|
||||||
}).then(function (value) {
|
|
||||||
UI.ENDREQUEST();
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#btnBuscarLugarTrabajo").click(function () {
|
this.CargarGridEmisores = function (data) {
|
||||||
|
|
||||||
var uri = 'api/SolicitudAPI/ObtenerLugarTrabajo?cod_solicitud=' + $("#hiddensol_co_solicitud").val();
|
if (data != null) {
|
||||||
|
|
||||||
SelectedCatalog = "ObtenerLugarTrabajo";
|
listaEmisor = data;
|
||||||
|
|
||||||
if ($.fn.DataTable.isDataTable('#tableEmpresas')) {
|
var Seleccionar = $("#ucBtnSeleccionarCatalogo").html();
|
||||||
|
|
||||||
LoadMessage();
|
|
||||||
|
|
||||||
$('#tableEmpresas').DataTable().search('').draw();
|
|
||||||
|
|
||||||
$('#modalEmpresas').modal('show');
|
|
||||||
|
|
||||||
UI.ENDREQUEST();
|
|
||||||
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
|
|
||||||
var Seleccionar = $("#ucBtnSeleccionar").html();
|
|
||||||
|
|
||||||
var columnDefinition = [
|
var columnDefinition = [
|
||||||
{ "data": null, className: "center", defaultContent: Seleccionar },
|
{ "data": null, className: "center", defaultContent: Seleccionar },
|
||||||
{ "data": "em_codigo" },
|
{ "data": "codigo" },
|
||||||
{ "data": "em_descripcion" }
|
{ "data": "descripcion" }
|
||||||
];
|
];
|
||||||
|
|
||||||
$('#tableEmpresas').TableInit(0, false, true, false, false, columnDefinition, listaLugarTrabajo);
|
$('#tableEmisor').TableInit(0, false, true, false, false, columnDefinition, listaEmisor, false);
|
||||||
|
|
||||||
//$('#tableEmpresas').DataTable().search($("#txtLugarTrabajo").val()).draw();
|
|
||||||
|
|
||||||
$('#modalEmpresas').modal('show');
|
|
||||||
|
|
||||||
UI.ENDREQUEST();
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
|
||||||
|
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#tableEmisor').on('click', 'button', function () {
|
||||||
|
|
||||||
|
var data = $('#tableEmisor').DataTable().row($(this).parents('tr')).data();
|
||||||
|
|
||||||
|
if (SelectedCatalog == "ObtenerEmisor") {
|
||||||
|
|
||||||
|
$('#hiddenEmisor').val(data.codigo);
|
||||||
|
$('#txtEmisor').val(data.descripcion);
|
||||||
|
}
|
||||||
|
$('#modalEmisor').modal('hide');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#btnBuscarEmisor").click(function () {
|
||||||
|
|
||||||
|
|
||||||
|
SelectedCatalog = 'ObtenerEmisor';
|
||||||
|
|
||||||
|
if ($.fn.DataTable.isDataTable('#tableEmisor')) {
|
||||||
|
|
||||||
|
LoadMessage();
|
||||||
|
|
||||||
|
$('#tableEmisor').DataTable().search('').draw();
|
||||||
|
|
||||||
|
$('#modalEmisor').modal('show');
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
this.CargarAplicacion = function (filtro) {
|
||||||
|
|
||||||
|
var uri = CatalogosWCF + '/api/ObtenerAplicacionPopUp';
|
||||||
|
var model = {
|
||||||
|
IdTipo: 1,
|
||||||
|
filtro: filtro == null ? '' : '&filtro=' + filtro
|
||||||
|
}
|
||||||
|
|
||||||
|
AjaxPostData(uri, model, false, false, CargarGridAplicacion, null, null);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.CargarGridAplicacion = function (data) {
|
||||||
|
|
||||||
|
if (data != null) {
|
||||||
|
|
||||||
|
listaAplicacion = data;
|
||||||
|
|
||||||
|
var Seleccionar = $("#ucBtnSeleccionarCatalogo").html();
|
||||||
|
|
||||||
|
var columnDefinition = [
|
||||||
|
{ "data": null, className: "center", defaultContent: Seleccionar },
|
||||||
|
{ "data": "codigo" },
|
||||||
|
{ "data": "descripcion" }
|
||||||
|
];
|
||||||
|
|
||||||
|
$('#tableAplicacion').TableInit(0, false, true, false, false, columnDefinition, listaAplicacion, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
|
||||||
|
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#tableAplicacion').on('click', 'button', function () {
|
||||||
|
|
||||||
|
var data = $('#tableAplicacion').DataTable().row($(this).parents('tr')).data();
|
||||||
|
|
||||||
|
if (SelectedCatalog == "ObtenerAplicacion") {
|
||||||
|
|
||||||
|
$('#hiddenAplicacion').val(data.codigo);
|
||||||
|
$('#txtAplicacion').val(data.descripcion);
|
||||||
|
}
|
||||||
|
$('#modalAplicacion').modal('hide');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#btnBuscarAplicacion").click(function () {
|
||||||
|
|
||||||
|
|
||||||
|
SelectedCatalog = 'ObtenerAplicacion';
|
||||||
|
|
||||||
|
if ($.fn.DataTable.isDataTable('#tableAplicacion')) {
|
||||||
|
|
||||||
|
LoadMessage();
|
||||||
|
|
||||||
|
$('#tableAplicacion').DataTable().search('').draw();
|
||||||
|
|
||||||
|
$('#modalAplicacion').modal('show');
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
<button class="btn btn-default btn-medium" id="btn_eliminarEmisor" type="button">
|
<button class="btn btn-default btn-medium" id="btn_eliminarEmisor" type="button">
|
||||||
<i class="fa fa-close"></i>
|
<i class="fa fa-close"></i>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnEmisor" type="button" usehttppost="0" webapplication="">
|
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarEmisor" type="button" usehttppost="0" webapplication="">
|
||||||
<i class="fa fa-search"></i> Buscar
|
<i class="fa fa-search"></i> Buscar
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
<button class="btn btn-default btn-medium" id="btn_eliminarAplicacion" type="button">
|
<button class="btn btn-default btn-medium" id="btn_eliminarAplicacion" type="button">
|
||||||
<i class="fa fa-close"></i>
|
<i class="fa fa-close"></i>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnAplicacion" type="button" usehttppost="0" webapplication="">
|
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarAplicacion" type="button" usehttppost="0" webapplication="">
|
||||||
<i class="fa fa-search"></i> Buscar
|
<i class="fa fa-search"></i> Buscar
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -199,11 +199,11 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="btn-group col-md-8">
|
<div class="btn-group col-md-8">
|
||||||
<input type="hidden" id="hiddenIdEmisor" />
|
<input type="hidden" id="hiddenIdEmisor" />
|
||||||
<input type="text" id="txtFiltroEmisor" name="txtFiltroEmisor" class="form-control imput-xs" data-role="btnBuscarEmisor" />
|
<input type="text" id="txtFiltroEmisor" name="txtFiltroEmisor" class="form-control imput-xs" data-role="btnBuscarFiltroEmisor" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button" id="btnBuscarEmisor" class="btn btn-info btn-xs">
|
<button type="button" id="btnBuscarFiltroEmisor" class="btn btn-info btn-xs">
|
||||||
<i class="fa fa-search"></i> Buscar
|
<i class="fa fa-search"></i> Buscar
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -241,7 +241,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@*---------------------CatalogoAplicacion---------------------------------------------------------*@
|
@*---------------------CatalogoAplicacion-----------------------------------------------------*@
|
||||||
<div class="modal fade" id="modalAplicacion" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
|
<div class="modal fade" id="modalAplicacion" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
@ -257,11 +257,11 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="btn-group col-md-8">
|
<div class="btn-group col-md-8">
|
||||||
<input type="hidden" id="hiddenIdAplicacion" />
|
<input type="hidden" id="hiddenIdAplicacion" />
|
||||||
<input type="text" id="txtFiltroAplicacion" name="txtFiltroAplicacion" class="form-control imput-xs" data-role="btnBuscarAplicacion" />
|
<input type="text" id="txtFiltroAplicacion" name="txtFiltroAplicacion" class="form-control imput-xs" data-role="btnBuscarFiltroAplicacion" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button" id="btnBuscarAplicacion" class="btn btn-info btn-xs">
|
<button type="button" id="btnBuscarFiltroAplicacion" class="btn btn-info btn-xs">
|
||||||
<i class="fa fa-search"></i> Buscar
|
<i class="fa fa-search"></i> Buscar
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -297,6 +297,64 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@*---------------------CatalogoConvocado------------------------------------------------------*@
|
||||||
|
<div class="modal fade" id="modalConvocado" 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 Aplicación</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4"></div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="btn-group col-md-8">
|
||||||
|
<input type="hidden" id="hiddenIdConvocado" />
|
||||||
|
<input type="text" id="txtFiltroConvocado" name="txtFiltroConvocado" class="form-control imput-xs" data-role="btnBuscarFiltroConvocado" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" id="btnBuscarFiltroConvocado" class="btn btn-info btn-xs">
|
||||||
|
<i class="fa fa-search"></i> Buscar
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
<table id="tableConvocado" class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th>Código</th>
|
||||||
|
<th>Descripción</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
@section scripts{
|
@section scripts{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,13 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
{
|
{
|
||||||
List<CatalogosJSON> registros = null;
|
List<CatalogosJSON> registros = null;
|
||||||
string filtro = model != null ? model.filtro : null;
|
string filtro = model != null ? model.filtro : null;
|
||||||
|
int? IdTipoAplicacion = model != null ? model.IdTipo : null;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (SinortContex db = new SinortContex())
|
using (SinortContex db = new SinortContex())
|
||||||
{
|
{
|
||||||
registros = db.Aplicacion.Where(t => t.Estado == true && (string.IsNullOrEmpty(filtro) || t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower())))
|
registros = db.Aplicacion.Where(t => t.Estado == true && t.IdTipoAplicacion == IdTipoAplicacion && (string.IsNullOrEmpty(filtro) || t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower())))
|
||||||
.Select(t => new CatalogosJSON()
|
.Select(t => new CatalogosJSON()
|
||||||
{
|
{
|
||||||
codigo = t.IdAplicacion.ToString(),
|
codigo = t.IdAplicacion.ToString(),
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@
|
||||||
<Compile Include="Sinort\RolesPantallas.cs" />
|
<Compile Include="Sinort\RolesPantallas.cs" />
|
||||||
<Compile Include="Sinort\RolesUsuario.cs" />
|
<Compile Include="Sinort\RolesUsuario.cs" />
|
||||||
<Compile Include="Sinort\SinortContex.cs" />
|
<Compile Include="Sinort\SinortContex.cs" />
|
||||||
|
<Compile Include="Sinort\sysdiagrams.cs" />
|
||||||
<Compile Include="Sinort\TipoAplicacion.cs" />
|
<Compile Include="Sinort\TipoAplicacion.cs" />
|
||||||
<Compile Include="Sinort\TipoDocumento.cs" />
|
<Compile Include="Sinort\TipoDocumento.cs" />
|
||||||
<Compile Include="Sinort\TipoEmisor.cs" />
|
<Compile Include="Sinort\TipoEmisor.cs" />
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
|
</configSections>
|
||||||
<entityFramework>
|
<entityFramework>
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter value="mssqllocaldb" />
|
<parameter value="mssqllocaldb" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</defaultConnectionFactory>
|
</defaultConnectionFactory>
|
||||||
<providers>
|
<providers>
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||||
</providers>
|
</providers>
|
||||||
</entityFramework>
|
</entityFramework>
|
||||||
<connectionStrings>
|
<!--<connectionStrings>
|
||||||
<add name="SinortContex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>-->
|
||||||
</configuration>
|
</configuration>
|
||||||
44
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs
Normal file
44
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
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.Aplicacion")]
|
||||||
|
public partial class Aplicacion
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public Aplicacion()
|
||||||
|
{
|
||||||
|
ProyectoNormativo = new HashSet<ProyectoNormativo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdAplicacion { get; set; }
|
||||||
|
|
||||||
|
public int? IdTipoAplicacion { 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<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||||
|
|
||||||
|
public virtual TipoAplicacion TipoAplicacion { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
45
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/BitacoraDocumentos.cs
Normal file
45
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/BitacoraDocumentos.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
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("Expediente.BitacoraDocumentos")]
|
||||||
|
public partial class BitacoraDocumentos
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 0)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdBitacoraDocumentos { get; set; }
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 1)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int NumeroPublicacion { get; set; }
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 2)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdDocumento { get; set; }
|
||||||
|
|
||||||
|
public int? IdDocumentoAdjunto { get; set; }
|
||||||
|
|
||||||
|
public int? NumeroAccesos { 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 DocumentosAdjuntos DocumentosAdjuntos { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
31
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Categoria.cs
Normal file
31
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Categoria.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
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.Categoria")]
|
||||||
|
public partial class Categoria
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdCategoria { 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
43
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs
Normal file
43
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
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.ComentariosForo")]
|
||||||
|
public partial class ComentariosForo
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdComentarioForo { get; set; }
|
||||||
|
|
||||||
|
public int? IdForo { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Asunto { get; set; }
|
||||||
|
|
||||||
|
public int? IdUsuario { get; set; }
|
||||||
|
|
||||||
|
public string Respuesta { get; set; }
|
||||||
|
|
||||||
|
public int? IdDocumento { 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 Usuario Usuario { get; set; }
|
||||||
|
|
||||||
|
public virtual Documentos Documentos { get; set; }
|
||||||
|
|
||||||
|
public virtual Foro Foro { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
53
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosMatriz.cs
Normal file
53
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosMatriz.cs
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
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 Usuario Usuario { get; set; }
|
||||||
|
|
||||||
|
public virtual Documentos Documentos { get; set; }
|
||||||
|
|
||||||
|
public virtual Matriz Matriz { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Convocatoria.cs
Normal file
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Convocatoria.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
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.Convocatoria")]
|
||||||
|
public partial class Convocatoria
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 0)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdUsuario { get; set; }
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 1)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdForo { 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 Usuario Usuario { get; set; }
|
||||||
|
|
||||||
|
public virtual Foro Foro { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
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("Normativo.ConvocatoriaProyectoNormativo")]
|
||||||
|
public partial class ConvocatoriaProyectoNormativo
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 0)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdUsuario { get; set; }
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 1)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdProyectoNormativo { 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 Usuario Usuario { get; set; }
|
||||||
|
|
||||||
|
public virtual ProyectoNormativo ProyectoNormativo { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
50
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Documentos.cs
Normal file
50
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Documentos.cs
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
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("Expediente.Documentos")]
|
||||||
|
public partial class Documentos
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public Documentos()
|
||||||
|
{
|
||||||
|
BitacoraDocumentos = new HashSet<BitacoraDocumentos>();
|
||||||
|
ComentariosForo = new HashSet<ComentariosForo>();
|
||||||
|
ComentariosMatriz = new HashSet<ComentariosMatriz>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdDocumento { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string NombreDocumento { get; set; }
|
||||||
|
|
||||||
|
public int? IdTipoDocumento { 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 TipoDocumento TipoDocumento { get; set; }
|
||||||
|
|
||||||
|
[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<ComentariosForo> ComentariosForo { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<ComentariosMatriz> ComentariosMatriz { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
49
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentosAdjuntos.cs
Normal file
49
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentosAdjuntos.cs
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
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("Expediente.DocumentosAdjuntos")]
|
||||||
|
public partial class DocumentosAdjuntos
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public DocumentosAdjuntos()
|
||||||
|
{
|
||||||
|
BitacoraDocumentos = new HashSet<BitacoraDocumentos>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdDocumentoAdjunto { get; set; }
|
||||||
|
|
||||||
|
public int? FechaAdjunto { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Nombre { get; set; }
|
||||||
|
|
||||||
|
[Column(TypeName = "ntext")]
|
||||||
|
public string RutaFisica { get; set; }
|
||||||
|
|
||||||
|
[Column(TypeName = "ntext")]
|
||||||
|
public string RutaDescarga { get; set; }
|
||||||
|
|
||||||
|
[StringLength(10)]
|
||||||
|
public string TipoArchivo { 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<BitacoraDocumentos> BitacoraDocumentos { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
44
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs
Normal file
44
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
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.Emisor")]
|
||||||
|
public partial class Emisor
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public Emisor()
|
||||||
|
{
|
||||||
|
ProyectoNormativo = new HashSet<ProyectoNormativo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdEmisor { get; set; }
|
||||||
|
|
||||||
|
public int? IdTipoEmisor { 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<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||||
|
|
||||||
|
public virtual TipoEmisor TipoEmisor { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Estado.cs
Normal file
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Estado.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
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.Estado")]
|
||||||
|
public partial class Estado
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdEstado { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Descripcion { get; set; }
|
||||||
|
|
||||||
|
public int? IdTipoEstado { get; set; }
|
||||||
|
|
||||||
|
[Column("Estado")]
|
||||||
|
public bool? Estado1 { 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 TipoEstado TipoEstado { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
58
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs
Normal file
58
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
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.Foro")]
|
||||||
|
public partial class Foro
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public Foro()
|
||||||
|
{
|
||||||
|
ComentariosForo = new HashSet<ComentariosForo>();
|
||||||
|
Convocatoria = new HashSet<Convocatoria>();
|
||||||
|
ProyectoNormativo = new HashSet<ProyectoNormativo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdForo { get; set; }
|
||||||
|
|
||||||
|
public int? IdTipoForo { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Tema { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaInicio { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaCierre { get; set; }
|
||||||
|
|
||||||
|
public int? PromotorForo { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaMaximaConfirmarParticipacion { 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 TipoForo TipoForo { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<ComentariosForo> ComentariosForo { get; set; }
|
||||||
|
|
||||||
|
[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<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
34
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Mantenimiento.cs
Normal file
34
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Mantenimiento.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
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.Mantenimiento")]
|
||||||
|
public partial class Mantenimiento
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdMantenimiento { get; set; }
|
||||||
|
|
||||||
|
[StringLength(50)]
|
||||||
|
public string Catalogo { get; set; }
|
||||||
|
|
||||||
|
[StringLength(150)]
|
||||||
|
public string Vista { 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
43
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs
Normal file
43
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
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>();
|
||||||
|
ProyectoNormativo = new HashSet<ProyectoNormativo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[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; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
45
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Pantallas.cs
Normal file
45
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Pantallas.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
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.Pantallas")]
|
||||||
|
public partial class Pantallas
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public Pantallas()
|
||||||
|
{
|
||||||
|
RolesPantallas = new HashSet<RolesPantallas>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdPantalla { get; set; }
|
||||||
|
|
||||||
|
public int? IdPadre { get; set; }
|
||||||
|
|
||||||
|
[StringLength(100)]
|
||||||
|
public string Descripcion { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Vista { 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<RolesPantallas> RolesPantallas { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
65
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Partial/Contex.cs
Normal file
65
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Partial/Contex.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data.Entity;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
namespace AYA.SlnSinortModel.Sinort.Partial
|
||||||
|
{
|
||||||
|
public partial class Contex : DbContext
|
||||||
|
{
|
||||||
|
private DbContextTransaction DatabaseTransaction { get; set; }
|
||||||
|
private bool WasCommitted = false;
|
||||||
|
private bool disposed = false;
|
||||||
|
|
||||||
|
|
||||||
|
public Contex()
|
||||||
|
: base(System.Configuration.ConfigurationManager.ConnectionStrings["Contex"].ConnectionString)
|
||||||
|
{
|
||||||
|
|
||||||
|
Database.SetInitializer<Contex>(null);
|
||||||
|
Configuration.ProxyCreationEnabled = false;
|
||||||
|
Configuration.LazyLoadingEnabled = true;
|
||||||
|
|
||||||
|
DatabaseTransaction = this.Database.BeginTransaction();
|
||||||
|
WasCommitted = false;
|
||||||
|
}
|
||||||
|
protected virtual void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposed)
|
||||||
|
return;
|
||||||
|
if (DatabaseTransaction != null)
|
||||||
|
{
|
||||||
|
if (!WasCommitted)
|
||||||
|
DatabaseTransaction.Rollback();
|
||||||
|
DatabaseTransaction.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(true);
|
||||||
|
disposed = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
Dispose(true);
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Commit()
|
||||||
|
{
|
||||||
|
DatabaseTransaction.Commit();
|
||||||
|
WasCommitted = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Rollback()
|
||||||
|
{
|
||||||
|
DatabaseTransaction.Rollback();
|
||||||
|
WasCommitted = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
~Contex()
|
||||||
|
{
|
||||||
|
Dispose(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs
Normal file
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
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.PlantillaEmail")]
|
||||||
|
public partial class PlantillaEmail
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdPlantilla { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string NombrePlatilla { get; set; }
|
||||||
|
|
||||||
|
public string Body { get; set; }
|
||||||
|
|
||||||
|
public bool? Estado { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Subject { 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
62
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ProyectoNormativo.cs
Normal file
62
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ProyectoNormativo.cs
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
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("Normativo.ProyectoNormativo")]
|
||||||
|
public partial class ProyectoNormativo
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public ProyectoNormativo()
|
||||||
|
{
|
||||||
|
ConvocatoriaProyectoNormativo = new HashSet<ConvocatoriaProyectoNormativo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdProyectoNormativo { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string NombreProyectoNormativo { get; set; }
|
||||||
|
|
||||||
|
public int? IdForo { get; set; }
|
||||||
|
|
||||||
|
public int? IdMatriz { get; set; }
|
||||||
|
|
||||||
|
public int? IdEmisor { get; set; }
|
||||||
|
|
||||||
|
public int? IdAplicacion { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaInicioConsulta { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaFinConsulta { get; set; }
|
||||||
|
|
||||||
|
public int? PromotorProyecto { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaMaximaConfirmarParticipacion { 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 Aplicacion Aplicacion { get; set; }
|
||||||
|
|
||||||
|
public virtual Emisor Emisor { get; set; }
|
||||||
|
|
||||||
|
public virtual Foro Foro { get; set; }
|
||||||
|
|
||||||
|
public virtual Matriz Matriz { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<ConvocatoriaProyectoNormativo> ConvocatoriaProyectoNormativo { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
44
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Roles.cs
Normal file
44
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Roles.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
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.Roles")]
|
||||||
|
public partial class Roles
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public Roles()
|
||||||
|
{
|
||||||
|
RolesPantallas = new HashSet<RolesPantallas>();
|
||||||
|
RolesUsuario = new HashSet<RolesUsuario>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdRol { 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<RolesPantallas> RolesPantallas { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<RolesUsuario> RolesUsuario { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/RolesPantallas.cs
Normal file
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/RolesPantallas.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
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.RolesPantallas")]
|
||||||
|
public partial class RolesPantallas
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdRolesPantallas { get; set; }
|
||||||
|
|
||||||
|
public int? IdRol { get; set; }
|
||||||
|
|
||||||
|
public int? IdPantalla { 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 Pantallas Pantallas { get; set; }
|
||||||
|
|
||||||
|
public virtual Roles Roles { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/RolesUsuario.cs
Normal file
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/RolesUsuario.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
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.RolesUsuario")]
|
||||||
|
public partial class RolesUsuario
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdRolesUsuario { get; set; }
|
||||||
|
|
||||||
|
public int? IdRol { get; set; }
|
||||||
|
|
||||||
|
public int? IdUsuario { 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 Roles Roles { get; set; }
|
||||||
|
|
||||||
|
public virtual Usuario Usuario { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
422
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs
Normal file
422
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs
Normal file
|
|
@ -0,0 +1,422 @@
|
||||||
|
namespace AYA.SlnSinortModel.Sinort
|
||||||
|
{
|
||||||
|
using System;
|
||||||
|
using System.Data.Entity;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.Linq;
|
||||||
|
using AYA.SlnSinortModel.Sinort.Partial;
|
||||||
|
|
||||||
|
public partial class SinortContex : Contex
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
||||||
|
public virtual DbSet<Categoria> Categoria { get; set; }
|
||||||
|
public virtual DbSet<Emisor> Emisor { get; set; }
|
||||||
|
public virtual DbSet<Estado> Estado { get; set; }
|
||||||
|
public virtual DbSet<Mantenimiento> Mantenimiento { get; set; }
|
||||||
|
public virtual DbSet<Pantallas> Pantallas { get; set; }
|
||||||
|
public virtual DbSet<PlantillaEmail> PlantillaEmail { get; set; }
|
||||||
|
public virtual DbSet<Roles> Roles { get; set; }
|
||||||
|
public virtual DbSet<RolesPantallas> RolesPantallas { get; set; }
|
||||||
|
public virtual DbSet<RolesUsuario> RolesUsuario { get; set; }
|
||||||
|
public virtual DbSet<TipoAplicacion> TipoAplicacion { 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<TipoForo> TipoForo { get; set; }
|
||||||
|
public virtual DbSet<TipoMatriz> TipoMatriz { get; set; }
|
||||||
|
public virtual DbSet<Usuario> Usuario { get; set; }
|
||||||
|
public virtual DbSet<sysdiagrams> sysdiagrams { 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<ComentariosForo> ComentariosForo { get; set; }
|
||||||
|
public virtual DbSet<ComentariosMatriz> ComentariosMatriz { get; set; }
|
||||||
|
public virtual DbSet<Convocatoria> Convocatoria { get; set; }
|
||||||
|
public virtual DbSet<Foro> Foro { get; set; }
|
||||||
|
public virtual DbSet<Matriz> Matriz { get; set; }
|
||||||
|
public virtual DbSet<ConvocatoriaProyectoNormativo> ConvocatoriaProyectoNormativo { get; set; }
|
||||||
|
public virtual DbSet<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||||
|
|
||||||
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<Aplicacion>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Aplicacion>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Aplicacion>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Categoria>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Categoria>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Categoria>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Emisor>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Emisor>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Emisor>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Estado>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Estado>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Estado>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Mantenimiento>()
|
||||||
|
.Property(e => e.Catalogo)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Mantenimiento>()
|
||||||
|
.Property(e => e.Vista)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Mantenimiento>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Mantenimiento>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Pantallas>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Pantallas>()
|
||||||
|
.Property(e => e.Vista)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Pantallas>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Pantallas>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<PlantillaEmail>()
|
||||||
|
.Property(e => e.NombrePlatilla)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<PlantillaEmail>()
|
||||||
|
.Property(e => e.Body)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<PlantillaEmail>()
|
||||||
|
.Property(e => e.Subject)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<PlantillaEmail>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<PlantillaEmail>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Roles>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Roles>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Roles>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<RolesPantallas>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<RolesPantallas>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<RolesUsuario>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<RolesUsuario>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoAplicacion>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoAplicacion>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoAplicacion>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoDocumento>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoDocumento>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoDocumento>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoEmisor>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoEmisor>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoEmisor>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoEstado>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoEstado>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoEstado>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoForo>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoForo>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<TipoForo>()
|
||||||
|
.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<Usuario>()
|
||||||
|
.Property(e => e.UsuarioSistema)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Usuario>()
|
||||||
|
.Property(e => e.NombreUsuario)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Usuario>()
|
||||||
|
.Property(e => e.EmailUsuario)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Usuario>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Usuario>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Usuario>()
|
||||||
|
.HasMany(e => e.Convocatoria)
|
||||||
|
.WithRequired(e => e.Usuario)
|
||||||
|
.WillCascadeOnDelete(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Usuario>()
|
||||||
|
.HasMany(e => e.ConvocatoriaProyectoNormativo)
|
||||||
|
.WithRequired(e => e.Usuario)
|
||||||
|
.WillCascadeOnDelete(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<BitacoraDocumentos>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<BitacoraDocumentos>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Documentos>()
|
||||||
|
.Property(e => e.NombreDocumento)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Documentos>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Documentos>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Documentos>()
|
||||||
|
.HasMany(e => e.BitacoraDocumentos)
|
||||||
|
.WithRequired(e => e.Documentos)
|
||||||
|
.WillCascadeOnDelete(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||||
|
.Property(e => e.Nombre)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||||
|
.Property(e => e.TipoArchivo)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ComentariosForo>()
|
||||||
|
.Property(e => e.Asunto)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ComentariosForo>()
|
||||||
|
.Property(e => e.Respuesta)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ComentariosForo>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ComentariosForo>()
|
||||||
|
.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<Convocatoria>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Convocatoria>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Foro>()
|
||||||
|
.Property(e => e.Tema)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Foro>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Foro>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Foro>()
|
||||||
|
.HasMany(e => e.Convocatoria)
|
||||||
|
.WithRequired(e => e.Foro)
|
||||||
|
.WillCascadeOnDelete(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Matriz>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Matriz>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ConvocatoriaProyectoNormativo>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ConvocatoriaProyectoNormativo>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ProyectoNormativo>()
|
||||||
|
.Property(e => e.NombreProyectoNormativo)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ProyectoNormativo>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ProyectoNormativo>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ProyectoNormativo>()
|
||||||
|
.HasMany(e => e.ConvocatoriaProyectoNormativo)
|
||||||
|
.WithRequired(e => e.ProyectoNormativo)
|
||||||
|
.WillCascadeOnDelete(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoAplicacion.cs
Normal file
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoAplicacion.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.TipoAplicacion")]
|
||||||
|
public partial class TipoAplicacion
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public TipoAplicacion()
|
||||||
|
{
|
||||||
|
Aplicacion = new HashSet<Aplicacion>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdTipoAplicacion { 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<Aplicacion> Aplicacion { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoDocumento.cs
Normal file
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoDocumento.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.TipoDocumento")]
|
||||||
|
public partial class TipoDocumento
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public TipoDocumento()
|
||||||
|
{
|
||||||
|
Documentos = new HashSet<Documentos>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdTipoDocumento { 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<Documentos> Documentos { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoEmisor.cs
Normal file
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoEmisor.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.TipoEmisor")]
|
||||||
|
public partial class TipoEmisor
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public TipoEmisor()
|
||||||
|
{
|
||||||
|
Emisor = new HashSet<Emisor>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdTipoEmisor { 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<Emisor> Emisor { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoEstado.cs
Normal file
40
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoEstado.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.TipoEstado")]
|
||||||
|
public partial class TipoEstado
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public TipoEstado()
|
||||||
|
{
|
||||||
|
Estado1 = new HashSet<Estado>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdTipoEstado { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
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<Estado> Estado1 { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
38
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoForo.cs
Normal file
38
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoForo.cs
Normal file
|
|
@ -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("Catalogos.TipoForo")]
|
||||||
|
public partial class TipoForo
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public TipoForo()
|
||||||
|
{
|
||||||
|
Foro = new HashSet<Foro>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdTipoForo { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Descripcion { 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<Foro> Foro { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
38
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoMatriz.cs
Normal file
38
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoMatriz.cs
Normal file
|
|
@ -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("Catalogos.TipoMatriz")]
|
||||||
|
public partial class TipoMatriz
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public TipoMatriz()
|
||||||
|
{
|
||||||
|
Matriz = new HashSet<Matriz>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdTipoMatriz { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Descripcion { 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<Matriz> Matriz { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
62
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Usuario.cs
Normal file
62
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Usuario.cs
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
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.Usuario")]
|
||||||
|
public partial class Usuario
|
||||||
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||||
|
public Usuario()
|
||||||
|
{
|
||||||
|
RolesUsuario = new HashSet<RolesUsuario>();
|
||||||
|
ComentariosForo = new HashSet<ComentariosForo>();
|
||||||
|
ComentariosMatriz = new HashSet<ComentariosMatriz>();
|
||||||
|
Convocatoria = new HashSet<Convocatoria>();
|
||||||
|
ConvocatoriaProyectoNormativo = new HashSet<ConvocatoriaProyectoNormativo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdUsuario { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string UsuarioSistema { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string NombreUsuario { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string EmailUsuario { 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<RolesUsuario> RolesUsuario { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<ComentariosForo> ComentariosForo { 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<Convocatoria> Convocatoria { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<ConvocatoriaProyectoNormativo> ConvocatoriaProyectoNormativo { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
24
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/sysdiagrams.cs
Normal file
24
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/sysdiagrams.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
namespace AYA.SlnSinortModel.Sinort
|
||||||
|
{
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.Data.Entity.Spatial;
|
||||||
|
|
||||||
|
public partial class sysdiagrams
|
||||||
|
{
|
||||||
|
[Required]
|
||||||
|
[StringLength(128)]
|
||||||
|
public string name { get; set; }
|
||||||
|
|
||||||
|
public int principal_id { get; set; }
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
public int diagram_id { get; set; }
|
||||||
|
|
||||||
|
public int? version { get; set; }
|
||||||
|
|
||||||
|
public byte[] definition { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue