git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C30
This commit is contained in:
parent
da192b45b7
commit
ade6df5ed4
20 changed files with 1026 additions and 125 deletions
|
|
@ -57,25 +57,12 @@ namespace AYA.SlnSinort.WCF
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
||||||
// throw;
|
|
||||||
//}
|
|
||||||
return respuesta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BaseJson ModificarEstadoEmisorPN(Emisor model)
|
|
||||||
{
|
|
||||||
BaseJson respuesta = new BaseJson();
|
|
||||||
try
|
|
||||||
{
|
|
||||||
respuesta = new EmisorDAL().ModificarEstadoEmisorPN(model);
|
|
||||||
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
return respuesta;
|
return respuesta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,7 @@
|
||||||
<Compile Include="App_Start\RouteConfig.cs" />
|
<Compile Include="App_Start\RouteConfig.cs" />
|
||||||
<Compile Include="App_Start\Startup.Auth.cs" />
|
<Compile Include="App_Start\Startup.Auth.cs" />
|
||||||
<Compile Include="App_Start\WebApiConfig.cs" />
|
<Compile Include="App_Start\WebApiConfig.cs" />
|
||||||
|
<Compile Include="ControllersWebApi\Matenimimento\AplicacionAPIController.cs" />
|
||||||
<Compile Include="ControllersWebApi\Matenimimento\EmisorAPIController.cs" />
|
<Compile Include="ControllersWebApi\Matenimimento\EmisorAPIController.cs" />
|
||||||
<Compile Include="ControllersWebApi\Matenimimento\MantenimientoAPIController.cs" />
|
<Compile Include="ControllersWebApi\Matenimimento\MantenimientoAPIController.cs" />
|
||||||
<Compile Include="Controllers\AccountController.cs" />
|
<Compile Include="Controllers\AccountController.cs" />
|
||||||
|
|
@ -8103,6 +8104,7 @@
|
||||||
<Content Include="Scripts\umd\popper.min.js" />
|
<Content Include="Scripts\umd\popper.min.js" />
|
||||||
<Content Include="Scripts\_references.js" />
|
<Content Include="Scripts\_references.js" />
|
||||||
<Content Include="Sinort-Scripts\AdministrarCatalogos.js" />
|
<Content Include="Sinort-Scripts\AdministrarCatalogos.js" />
|
||||||
|
<Content Include="Sinort-Scripts\Aplicacion.js" />
|
||||||
<Content Include="Sinort-Scripts\EmisorPN.js" />
|
<Content Include="Sinort-Scripts\EmisorPN.js" />
|
||||||
<Content Include="Sinort-Scripts\Global.js" />
|
<Content Include="Sinort-Scripts\Global.js" />
|
||||||
<Content Include="Sinort-Scripts\Mantenimientos.js" />
|
<Content Include="Sinort-Scripts\Mantenimientos.js" />
|
||||||
|
|
@ -8152,10 +8154,12 @@
|
||||||
<Content Include="Views\Home\Normativa_Reglamentacion_Tecnica.cshtml" />
|
<Content Include="Views\Home\Normativa_Reglamentacion_Tecnica.cshtml" />
|
||||||
<Content Include="Views\Catalogos\EmisorPN.cshtml" />
|
<Content Include="Views\Catalogos\EmisorPN.cshtml" />
|
||||||
<Content Include="Views\Catalogos\Mantenimiento.cshtml" />
|
<Content Include="Views\Catalogos\Mantenimiento.cshtml" />
|
||||||
|
<Content Include="Views\Catalogos\Aplicacion.cshtml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="App_Data\" />
|
<Folder Include="App_Data\" />
|
||||||
<Folder Include="Content\themes\base\minified\images\" />
|
<Folder Include="Content\themes\base\minified\images\" />
|
||||||
|
<Folder Include="Views\AplicacionAPI\" />
|
||||||
<Folder Include="Views\Base\" />
|
<Folder Include="Views\Base\" />
|
||||||
<Folder Include="Views\CatalogosController\" />
|
<Folder Include="Views\CatalogosController\" />
|
||||||
<Folder Include="Views\MantenimientoAPI\" />
|
<Folder Include="Views\MantenimientoAPI\" />
|
||||||
|
|
|
||||||
|
|
@ -51,9 +51,8 @@ namespace AYA.SlnSinort
|
||||||
.Include("~/Scripts/toastr.min.js")
|
.Include("~/Scripts/toastr.min.js")
|
||||||
.Include("~/Scripts/jquery.validate.min.js"));
|
.Include("~/Scripts/jquery.validate.min.js"));
|
||||||
|
|
||||||
bundles.Add(new ScriptBundle("~/Script-Catalogos")
|
|
||||||
.Include("~/Sinort-Scripts/EmisorPN.js")
|
|
||||||
.Include("~/Sinort-Scripts/Mantenimientos.js"));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,10 @@ namespace AYA.SlnSinort.Controllers.Catalogos
|
||||||
InitControllers();
|
InitControllers();
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
public ActionResult Aplicacion()
|
||||||
|
{
|
||||||
|
InitControllers();
|
||||||
|
return View();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
using AYA.SlnSinortModel.DAL.Sinort;
|
||||||
|
using AYA.SlnSinortModel.Entidades;
|
||||||
|
using AYA.SlnSinortModel.Sinort;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Http;
|
||||||
|
|
||||||
|
|
||||||
|
namespace AYA.SlnSinort.ControllersWebApi.Matenimimento
|
||||||
|
{
|
||||||
|
public class AplicacionAPIController : ApiController
|
||||||
|
{
|
||||||
|
#region Aplicacion
|
||||||
|
[HttpGet]
|
||||||
|
public List<Aplicacion> ObtenerAplicacion()
|
||||||
|
{
|
||||||
|
List<Aplicacion> respuesta = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
respuesta = new AplicacionDAL().ObtenerAplicacion();
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
return respuesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
public BaseJson InsertarActualizarAplicacion(Aplicacion model)
|
||||||
|
{
|
||||||
|
BaseJson respuesta = new BaseJson();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
respuesta = new AplicacionDAL().InsertarActualizarAplicacion(model);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
return respuesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
342
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Aplicacion.js
Normal file
342
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Aplicacion.js
Normal file
|
|
@ -0,0 +1,342 @@
|
||||||
|
//$("#formCatalogo").EnableValidationToolTip();
|
||||||
|
var DataCatalogo;
|
||||||
|
var id_column = 1;
|
||||||
|
var Item = {};
|
||||||
|
|
||||||
|
|
||||||
|
//#region READY
|
||||||
|
|
||||||
|
jQuery(document).ready(function () {
|
||||||
|
|
||||||
|
|
||||||
|
getDataModel();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
//#endregion
|
||||||
|
|
||||||
|
this.getDataModel = function () {
|
||||||
|
|
||||||
|
$('#txtDescripcion').attr('size', 50);
|
||||||
|
|
||||||
|
$('#btnGuardar').hide();
|
||||||
|
$('#btnInsertar').show();
|
||||||
|
|
||||||
|
|
||||||
|
$('#btnLimpiar').click(function () {
|
||||||
|
limpiar();
|
||||||
|
|
||||||
|
$('#btnGuardar').hide();
|
||||||
|
$('#btnInsertar').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#btnGuardar').click(function () {
|
||||||
|
ActualizarItem();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#btnInsertar').click(function () {
|
||||||
|
InsertarItem();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
obtenerItems();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.obtenerItems = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var uri = server + 'api/AplicacionAPI/ObtenerAplicacion';
|
||||||
|
|
||||||
|
var DTO = JSON.stringify(Item);
|
||||||
|
STARTREQUEST();
|
||||||
|
//$.getJSON(uri).done(function (data) {
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
url: uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
|
$('#TableItems').TableInit(0, false, true, true, false, null, null);
|
||||||
|
|
||||||
|
var TableItems = $('#TableItems').DataTable();
|
||||||
|
var lista = data;
|
||||||
|
|
||||||
|
$.each(lista, function (key, item) {
|
||||||
|
|
||||||
|
|
||||||
|
var option = $("#ucItemsCatalogo").html();
|
||||||
|
|
||||||
|
option = replaceAll("[$CodItem]", item.IdAplicacion, option);
|
||||||
|
|
||||||
|
var stateIcon = $("#ucItemsIcon").html();
|
||||||
|
|
||||||
|
if (item.Estado == false) {
|
||||||
|
stateIcon = replaceAll("[$icon]", "fa-check-circle", stateIcon);
|
||||||
|
stateIcon = replaceAll("[$state_color]", "muted", stateIcon);
|
||||||
|
|
||||||
|
option = replaceAll("[$opcion]", "Habilitar", option);
|
||||||
|
option = replaceAll("[$icon]", "fa-check", option);
|
||||||
|
option = replaceAll("[$value]", "1", option);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
stateIcon = replaceAll("[$icon]", "fa-check-circle", stateIcon);
|
||||||
|
stateIcon = replaceAll("[$state_color]", "success", stateIcon);
|
||||||
|
|
||||||
|
option = replaceAll("[$opcion]", "Deshabilitar", option);
|
||||||
|
option = replaceAll("[$icon]", "fa-times", option);
|
||||||
|
option = replaceAll("[$value]", "0", option);
|
||||||
|
}
|
||||||
|
|
||||||
|
TableItems.row.add([stateIcon,
|
||||||
|
item.IdAplicacion,
|
||||||
|
item.Descripcion,
|
||||||
|
option]).draw();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
}
|
||||||
|
}).fail(function (jqxhr, textStatus, error) {
|
||||||
|
|
||||||
|
toastr.error("Ha ocurrido un error inesperado. Vuela a intentarlo mas tarde");
|
||||||
|
|
||||||
|
console.log("Request Failed: " + textStatus + ', ' + error);
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}).then(function (value) {
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.EditarItem = function (id) {
|
||||||
|
|
||||||
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
limpiar();
|
||||||
|
var indexes = getRowIndex(TableItems, id_column, id);
|
||||||
|
|
||||||
|
if (indexes != null) {
|
||||||
|
|
||||||
|
$('#hiddenId').val(id)
|
||||||
|
$('#txtDescripcion').val(TableItems.cell(indexes, 2).data());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$("#formCatalogo").validateElement("#txtDescripcion");
|
||||||
|
|
||||||
|
|
||||||
|
$('#lbTituloAccion').empty();
|
||||||
|
$('#lbTituloAccion').append('Editar Valor de Campo ID: ' + id);
|
||||||
|
|
||||||
|
$('#btnInsertar').hide();
|
||||||
|
$('#btnGuardar').show();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.toggleEnabledItem = function (id, value) {
|
||||||
|
|
||||||
|
var msg = '¿Está seguro que desea habilitar la aplicación?';
|
||||||
|
|
||||||
|
if (value == 0) {
|
||||||
|
msg = '¿Está seguro que desea deshabilitar la aplicación?';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id == null || value == null) {
|
||||||
|
toastr.warning("No se pudo obtener el ID de la Aplicación seleccionada.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!confirm(msg))
|
||||||
|
{ return; }
|
||||||
|
STARTREQUEST();
|
||||||
|
|
||||||
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
|
||||||
|
Item = {
|
||||||
|
IdEmisor: id,
|
||||||
|
Estado: value,
|
||||||
|
}
|
||||||
|
|
||||||
|
var uri = server + 'api/AplicacionAPI/InsertarActualizarAplicacion';
|
||||||
|
var DTO = JSON.stringify(Item);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
|
if (data.CodigoRespuesta == "EXITOSO") {
|
||||||
|
toastr.info('Información actualizada con éxito', 'Completado');
|
||||||
|
limpiar();
|
||||||
|
|
||||||
|
$('#btnGuardar').hide();
|
||||||
|
$('#btnInsertar').show();
|
||||||
|
|
||||||
|
TableItems.clear().draw();
|
||||||
|
obtenerItems();
|
||||||
|
ENDREQUEST();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.error("Ha ocurrido un error.");
|
||||||
|
ENDREQUEST();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}).fail(function (jqxhr, textStatus, error) {
|
||||||
|
|
||||||
|
toastr.error("Ha ocurrido un error inesperado. Vuela a intentarlo.");
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}).then(function (value) {
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.ActualizarItem = function () {
|
||||||
|
|
||||||
|
if (!$("#formCatalogo").valid()) {
|
||||||
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?"))
|
||||||
|
{ return; }
|
||||||
|
STARTREQUEST();
|
||||||
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
|
||||||
|
Emisor = {
|
||||||
|
IdEmisor: $('#hiddenId').val(),
|
||||||
|
Descripcion: $('#txtDescripcion').val(),
|
||||||
|
Estado: 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
var uri = server + 'api/AplicacionAPI/InsertarActualizarAplicacion'
|
||||||
|
var DTO = JSON.stringify(Emisor);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
|
if (data.CodigoRespuesta == "EXITOSO") {
|
||||||
|
toastr.info('Información guardada con éxito', 'Completado');
|
||||||
|
limpiar();
|
||||||
|
|
||||||
|
$('#btnGuardar').hide();
|
||||||
|
$('#btnInsertar').show();
|
||||||
|
|
||||||
|
$('#lbTituloAccion').empty();
|
||||||
|
$('#lbTituloAccion').append('Ingresar Nueva Aplicación');
|
||||||
|
|
||||||
|
TableItems.clear().draw();
|
||||||
|
obtenerItems();
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.error("Ha ocurrido un error.");
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}).fail(function (jqxhr, textStatus, error) {
|
||||||
|
|
||||||
|
toastr.error("Ha ocurrido un error inesperado. Vuela a intentarlo.");
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}).then(function (value) {
|
||||||
|
|
||||||
|
ENDREQUEST();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
this.InsertarItem = function () {
|
||||||
|
|
||||||
|
|
||||||
|
if (!$("#formCatalogo").valid()) {
|
||||||
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!confirm("Va a ingresar una nueva aplicación.\n ¿Desea continuar?"))
|
||||||
|
{ return; }
|
||||||
|
|
||||||
|
STARTREQUEST();
|
||||||
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
|
||||||
|
Emisor = {
|
||||||
|
Descripcion: $("#txtDescripcion").val(),
|
||||||
|
IdTipoEmisor: 1,
|
||||||
|
Estado: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
var uri = server + 'api/AplicacionAPI/InsertarActualizarAplicacion';
|
||||||
|
var DTO = JSON.stringify(Emisor);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
|
if (data.CodigoRespuesta == "EXITOSO") {
|
||||||
|
toastr.info('Información guardada con exito', 'Completado');
|
||||||
|
limpiar();
|
||||||
|
$('#btnGuardar').hide();
|
||||||
|
$('#btnInsertar').show();
|
||||||
|
|
||||||
|
TableItems.clear().draw();
|
||||||
|
obtenerItems();
|
||||||
|
ENDREQUEST();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.error("Ha ocurrido un error.");
|
||||||
|
ENDREQUEST();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).fail(function (jqxhr, textStatus, error) {
|
||||||
|
|
||||||
|
toastr.error("Ha ocurrido un error inesperado. Vuela a intentarlo.");
|
||||||
|
ENDREQUEST();
|
||||||
|
|
||||||
|
}).then(function (value) {
|
||||||
|
ENDREQUEST();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
this.limpiar = function () {
|
||||||
|
|
||||||
|
$('#txtDescripcion').val('');
|
||||||
|
$("#formCatalogo").validateElement("#txtDescripcion");
|
||||||
|
|
||||||
|
$('#lbTituloAccion').empty();
|
||||||
|
$('#lbTituloAccion').append('Ingresar Nueva Aplicación');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@ this.obtenerItems = function () {
|
||||||
STARTREQUEST();
|
STARTREQUEST();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'POST',
|
||||||
url: uri,
|
url: uri,
|
||||||
cache: false,
|
cache: false,
|
||||||
data: DTO,
|
data: DTO,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
//#region READY
|
//#region READY
|
||||||
|
var Item = {};
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
CargarMantenimiento();
|
CargarMantenimiento();
|
||||||
});
|
});
|
||||||
|
|
@ -8,32 +8,41 @@ jQuery(document).ready(function () {
|
||||||
|
|
||||||
this.CargarMantenimiento = function () {
|
this.CargarMantenimiento = function () {
|
||||||
|
|
||||||
var uri = "api/MantenimientoAPI/ObtenerMantenimientoCatalogos"
|
var uri = server + 'api/MantenimientoAPI/ObtenerMantenimientoCatalogos';
|
||||||
|
var DTO = JSON.stringify(Item);
|
||||||
STARTREQUEST();
|
STARTREQUEST();
|
||||||
|
|
||||||
$.getJSON(server + uri).done(function (data) {
|
//$.getJSON(server + uri).done(function (data) {
|
||||||
|
$.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
url: uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
lista = data;
|
lista = data;
|
||||||
var Seleccionar = $("#ucbtnVista").html();
|
var Seleccionar = $("#ucbtnVista").html();
|
||||||
var columnDefinition = [
|
var columnDefinition = [
|
||||||
{ "data": "Catalogo" },
|
{ "data": "Catalogo" },
|
||||||
{ "data": null, className: "center", defaultContent: Seleccionar }
|
{ "data": null, className: "center", defaultContent: Seleccionar }
|
||||||
];
|
];
|
||||||
|
|
||||||
$('#tableMantenimiento').TableInitSpanish(1, true, true, true, true, columnDefinition, lista);
|
$('#tableMantenimiento').TableInit(1, true, true, true, true, columnDefinition, lista);
|
||||||
|
|
||||||
if ($.fn.DataTable.isDataTable('#tableMantenimiento')) {
|
if ($.fn.DataTable.isDataTable('#tableMantenimiento')) {
|
||||||
LoadMessage();
|
|
||||||
$('#tableMantenimiento').DataTable().search('').draw();
|
$('#tableMantenimiento').DataTable().search('').draw();
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
|
||||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
|
||||||
}
|
|
||||||
|
|
||||||
}).fail(function (jqxhr, textStatus, error) {
|
}).fail(function (jqxhr, textStatus, error) {
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||||
|
|
|
||||||
97
AYA.SlnSynor/AYA.SlnSynor/Views/Catalogos/Aplicacion.cshtml
Normal file
97
AYA.SlnSynor/AYA.SlnSynor/Views/Catalogos/Aplicacion.cshtml
Normal file
|
|
@ -0,0 +1,97 @@
|
||||||
|
|
||||||
|
@{
|
||||||
|
ViewBag.Title = "Aplicacion";
|
||||||
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<input type="hidden" id="hiddenId" value="true">
|
||||||
|
<form id="formCatalogo" class="form-horizontal" role="form">
|
||||||
|
<h3> <i class="fa fa-briefcase"></i> Aplicación</h3>
|
||||||
|
<div class="panel panel-success">
|
||||||
|
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<table id="TableItems" class="display">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th class="col-sm-1">ID</th>
|
||||||
|
<th class="col-sm-4">Descripción</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
<div id="ucItemsIcon" style="display:none;">
|
||||||
|
<div class="text-[$state_color]">
|
||||||
|
<i class="fa [$icon] fa-2x"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="ucItemsCatalogo" style="display:none;">
|
||||||
|
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-info dropdown-toggle btn-xs" data-toggle="dropdown">
|
||||||
|
<i class="fa fa-wrench"></i> Opciones <span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu" role="menu">
|
||||||
|
<li><a href="javascript: EditarItem([$CodItem]);"><i class="fa fa-wrench"></i> Editar</a></li>
|
||||||
|
<li><a href="javascript: toggleEnabledItem([$CodItem],[$value]);"><i class="fa [$icon]"></i> [$opcion]</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="panel panel-success">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h4 class="panel-title">
|
||||||
|
<i class="fa fa-bars"></i> <label id="lbTituloAccion">Ingresar Nueva Aplicación</label>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
|
||||||
|
@*Descripción*@
|
||||||
|
|
||||||
|
<input type="text" class="form-control" id="txtDescripcion">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2"></label>
|
||||||
|
<div class="col-md-4 ">
|
||||||
|
|
||||||
|
<button type="button" class="btn btn-default btn-sm pull-right" id="btnLimpiar">
|
||||||
|
<span class="fa fa-eraser" aria-hidden="true"></span> Limpiar
|
||||||
|
</button>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 ">
|
||||||
|
<button type="button" class="btn btn-default btn-sm pull-right" id="btnInsertar">
|
||||||
|
<span class="fa fa-upload" aria-hidden="true"></span> Insertar
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-default btn-sm pull-right" id="btnGuardar">
|
||||||
|
<span class="fa fa-floppy-o" aria-hidden="true"></span> Guardar
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
@Scripts.Render("~/Sinort-Scripts/Aplicacion.js")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -88,5 +88,5 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@Scripts.Render("~/Script-Catalogos")
|
@Scripts.Render("~/Sinort-Scripts/EmisorPN.js")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,32 +4,36 @@
|
||||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)">
|
||||||
<form id="formCatalogo" class="form-horizontal" role="form">
|
<form id="formCatalogo" class="form-horizontal" role="form">
|
||||||
<h3><i class="fa fa-list-ul"></i> Mantenimientos </h3>
|
<div class="panel-body">
|
||||||
<div>
|
<h3> <i class="fa fa-list-ul"></i> Mantenimientos </h3>
|
||||||
<table id="tableMantenimiento" class="table table-condensed dataTable no-footer">
|
<br />
|
||||||
<thead>
|
<br />
|
||||||
<tr>
|
<div>
|
||||||
<th class="col-sm-3">Catalogo</th>
|
<table id="tableMantenimiento" class="table table-condensed dataTable no-footer">
|
||||||
<th>Acción</th>
|
<thead>
|
||||||
</tr>
|
<tr>
|
||||||
</thead>
|
<th class="col-sm-4">Catalogo</th>
|
||||||
</table>
|
<th>Acción</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="ucbtnVista" style=" display:none;">
|
||||||
|
<button type="button" id="btnseleccionar" class="btn btn-default btn-xs">
|
||||||
|
<i class="fa fa-check"></i> Seleccionar
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
@Scripts.Render("~/Sinort-Scripts/Mantenimientos.js")
|
||||||
<div id="ucbtnVista" style=" display:none;">
|
|
||||||
<button type="button" id="btnseleccionar" class="btn btn-default btn-xs">
|
|
||||||
<i class="fa fa-check"></i> Seleccionar
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Scripts.Render("~/Script-Catalogos")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@
|
||||||
<li><a href="#">Compra de </br> documento técnico</a></li>
|
<li><a href="#">Compra de </br> documento técnico</a></li>
|
||||||
<li><a href="#">Modificación de </br> documento técnico</a></li>
|
<li><a href="#">Modificación de </br> documento técnico</a></li>
|
||||||
<li><a href="#">Solicitudes de </br> compras abiertas</a></li>
|
<li><a href="#">Solicitudes de </br> compras abiertas</a></li>
|
||||||
<li><a href="@Url.Action("EmisorPN", "Catalogos")"> Configuración de la </br> aplicación</a></li>
|
<li><a href="@Url.Action("Mantenimiento", "Catalogos")"> Configuración de la </br> aplicación</a></li>
|
||||||
<li><a href="#">Encuestas</a></li>
|
<li><a href="#">Encuestas</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ using System.Threading.Tasks;
|
||||||
using AYA.SlnSinortModel;
|
using AYA.SlnSinortModel;
|
||||||
using AYA.SlnSinortModel.Entidades;
|
using AYA.SlnSinortModel.Entidades;
|
||||||
using AYA.SlnSinortModel.Sinort;
|
using AYA.SlnSinortModel.Sinort;
|
||||||
|
using System.Data.Entity.Validation;
|
||||||
|
using Atesa.Utilitarios;
|
||||||
|
|
||||||
|
|
||||||
namespace AYA.SlnSinortModel.DAL.Sinort
|
namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
|
|
@ -45,7 +47,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
{
|
{
|
||||||
using (SinortContex db = new SinortContex())
|
using (SinortContex db = new SinortContex())
|
||||||
{
|
{
|
||||||
respuesta = db.Aplicacion.Where(t => t.Estado == true).ToList();
|
respuesta = db.Aplicacion.ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
@ -57,5 +59,62 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
#region InsertarActualizar
|
||||||
|
|
||||||
|
public BaseJson InsertarActualizarAplicacion(Aplicacion model)
|
||||||
|
{
|
||||||
|
Aplicacion Actual = new Aplicacion();
|
||||||
|
BaseJson Respuesta = new BaseJson();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
model.ClearProperties();
|
||||||
|
|
||||||
|
using (SinortContex Conn = new SinortContex())
|
||||||
|
{
|
||||||
|
Actual = Conn.Aplicacion.Where(x => x.IdAplicacion == model.IdAplicacion).FirstOrDefault();
|
||||||
|
if (Actual == null)
|
||||||
|
{
|
||||||
|
int? Next_id = Conn.Aplicacion.Max(t => (int?)t.IdAplicacion);
|
||||||
|
model.IdAplicacion = (Next_id == null) ? 1 : Next_id.Value + 1;
|
||||||
|
model.FechaCreacion = DateTime.Now;
|
||||||
|
Conn.Aplicacion.Add(model);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
model.FechaModificacion = DateTime.Now;
|
||||||
|
model.FechaCreacion = Actual.FechaCreacion;
|
||||||
|
model.UsuarioCreacion = Actual.UsuarioCreacion;
|
||||||
|
model.Descripcion = string.IsNullOrEmpty(model.Descripcion) ? Actual.Descripcion : model.Descripcion;
|
||||||
|
Conn.Entry(Actual).State = System.Data.Entity.EntityState.Detached;
|
||||||
|
Conn.Aplicacion.Attach(model);
|
||||||
|
Conn.Entry(model).State = System.Data.Entity.EntityState.Modified;
|
||||||
|
}
|
||||||
|
Conn.SaveChanges();
|
||||||
|
Conn.Commit();
|
||||||
|
Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.EXITOSO.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (DbEntityValidationException ex)
|
||||||
|
{
|
||||||
|
//logger.Error(exs);
|
||||||
|
Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
//logger.Error(ex);
|
||||||
|
Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
Actual = null;
|
||||||
|
}
|
||||||
|
return Respuesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,42 +112,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//public BaseJson ModificarEstadoEmisorPN(Emisor model)
|
|
||||||
//{
|
|
||||||
// BaseJson Respuesta = new BaseJson();
|
|
||||||
// Emisor Actual = new Emisor();
|
|
||||||
// try
|
|
||||||
// {
|
|
||||||
// using (SinortContex Conn = new SinortContex())
|
|
||||||
// {
|
|
||||||
// Emisor _model = Conn.Emisor.Where(x => x.IdEmisor == model.IdEmisor).FirstOrDefault();
|
|
||||||
// if (_model != null)
|
|
||||||
// {
|
|
||||||
// _model.Estado = model.Estado;
|
|
||||||
// _model.FechaModificacion = DateTime.Now;
|
|
||||||
// Conn.SaveChanges();
|
|
||||||
// Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.EXITOSO.ToString();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// catch (DbEntityValidationException ex)
|
|
||||||
// {
|
|
||||||
// //logger.Error(exs);
|
|
||||||
// Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
|
|
||||||
// }
|
|
||||||
// catch (Exception ex)
|
|
||||||
// {
|
|
||||||
// //logger.Error(ex);
|
|
||||||
// Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
|
|
||||||
// }
|
|
||||||
// finally
|
|
||||||
// {
|
|
||||||
// Actual = null;
|
|
||||||
// }
|
|
||||||
// return Respuesta;
|
|
||||||
|
|
||||||
|
|
||||||
//}
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
<Compile Include="Sinort\PlantillaEmail.cs" />
|
<Compile Include="Sinort\PlantillaEmail.cs" />
|
||||||
<Compile Include="Sinort\Roles.cs" />
|
<Compile Include="Sinort\Roles.cs" />
|
||||||
<Compile Include="Sinort\SinortContex.cs" />
|
<Compile Include="Sinort\SinortContex.cs" />
|
||||||
<Compile Include="Sinort\sysdiagrams.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" />
|
||||||
<Compile Include="Sinort\TipoEstado.cs" />
|
<Compile Include="Sinort\TipoEstado.cs" />
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
public int IdAplicacion { get; set; }
|
public int IdAplicacion { get; set; }
|
||||||
|
|
||||||
[StringLength(200)]
|
public int? IdTipoAplicacion { get; set; }
|
||||||
|
|
||||||
|
[StringLength(500)]
|
||||||
public string Descripcion { get; set; }
|
public string Descripcion { get; set; }
|
||||||
|
|
||||||
public bool? Estado { get; set; }
|
public bool? Estado { get; set; }
|
||||||
|
|
@ -27,5 +29,7 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
|
|
||||||
[StringLength(200)]
|
[StringLength(200)]
|
||||||
public string UsuarioModificacion { get; set; }
|
public string UsuarioModificacion { get; set; }
|
||||||
|
|
||||||
|
public virtual TipoAplicacion TipoAplicacion { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
359
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs
Normal file
359
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs
Normal file
|
|
@ -0,0 +1,359 @@
|
||||||
|
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<PermisosUsuario> PermisosUsuario { get; set; }
|
||||||
|
public virtual DbSet<PlantillaEmail> PlantillaEmail { get; set; }
|
||||||
|
public virtual DbSet<Roles> Roles { 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<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; }
|
||||||
|
|
||||||
|
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<PermisosUsuario>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<PermisosUsuario>()
|
||||||
|
.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<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<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.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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
namespace AYA.SlnSinortModel.Sinort
|
|
||||||
{
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
using System.Data.Entity.Spatial;
|
|
||||||
|
|
||||||
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