git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C247
This commit is contained in:
parent
e8887fa358
commit
8c6f2bbb60
13 changed files with 103 additions and 48 deletions
|
|
@ -11,7 +11,7 @@ editando este archivo MSBuild. Para conocer más acerca de esto, visite http://g
|
||||||
<SiteUrlToLaunchAfterPublish />
|
<SiteUrlToLaunchAfterPublish />
|
||||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||||
<publishUrl>C:\Proyectos\AYA.SlnSinort.WCF</publishUrl>
|
<publishUrl>C:\Instaladores SINORT\WCF SINORT</publishUrl>
|
||||||
<DeleteExistingFiles>False</DeleteExistingFiles>
|
<DeleteExistingFiles>False</DeleteExistingFiles>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -8,6 +8,7 @@ namespace AYA.SlnSinort.Controllers.NormativaReglamentacionTecnica
|
||||||
{
|
{
|
||||||
public class NormativaReglamentacionTecnicaController : BaseController
|
public class NormativaReglamentacionTecnicaController : BaseController
|
||||||
{
|
{
|
||||||
|
//[LoggingFilter]
|
||||||
public ActionResult FichaTecnica()
|
public ActionResult FichaTecnica()
|
||||||
{
|
{
|
||||||
InitControllers();
|
InitControllers();
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ this.ObtenerContenido = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EditarItem = function (id) {
|
this.EditarItem = function (id) {
|
||||||
|
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
LimpiarControles();
|
LimpiarControles();
|
||||||
var indexes = getRowIndex(TableItems, id_column, id);
|
var indexes = getRowIndex(TableItems, id_column, id);
|
||||||
|
|
@ -135,10 +135,14 @@ this.EditarItem = function (id) {
|
||||||
$('#btnInsertar').hide();
|
$('#btnInsertar').hide();
|
||||||
$('#btnGuardar').show();
|
$('#btnGuardar').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toggleEnabledItem = function (id, value) {
|
this.toggleEnabledItem = function (id, value) {
|
||||||
|
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||||
var msg = '¿Está seguro que desea habilitar el Contenido?';
|
var msg = '¿Está seguro que desea habilitar el Contenido?';
|
||||||
|
|
||||||
if (value == 0) {
|
if (value == 0) {
|
||||||
|
|
@ -162,6 +166,10 @@ this.toggleEnabledItem = function (id, value) {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarContenido';
|
var uri = CatalogosWCF + '/api/InsertarActualizarContenido';
|
||||||
AjaxPostData(uri, Contenido, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, Contenido, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ActualizarItem = function () {
|
this.ActualizarItem = function () {
|
||||||
|
|
@ -189,7 +197,7 @@ this.ActualizarItem = function () {
|
||||||
|
|
||||||
this.InsertarItem = function () {
|
this.InsertarItem = function () {
|
||||||
|
|
||||||
|
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||||
if (!$("#formCatalogo").valid()) {
|
if (!$("#formCatalogo").valid()) {
|
||||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -208,7 +216,10 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarContenido';
|
var uri = CatalogosWCF + '/api/InsertarActualizarContenido';
|
||||||
AjaxPostData(uri, Contenido , true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, Contenido , true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.CompletarAccion = function () {
|
this.CompletarAccion = function () {
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ this.ObtenerDocumentoTecnico = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EditarItem = function (id) {
|
this.EditarItem = function (id) {
|
||||||
|
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
LimpiarControles();
|
LimpiarControles();
|
||||||
var indexes = getRowIndex(TableItems, id_column, id);
|
var indexes = getRowIndex(TableItems, id_column, id);
|
||||||
|
|
@ -138,10 +138,14 @@ this.EditarItem = function (id) {
|
||||||
$('#btnInsertar').hide();
|
$('#btnInsertar').hide();
|
||||||
$('#btnGuardar').show();
|
$('#btnGuardar').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toggleEnabledItem = function (id, value) {
|
this.toggleEnabledItem = function (id, value) {
|
||||||
|
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||||
var msg = '¿Está seguro que desea habilitar el Documento Técnico ?';
|
var msg = '¿Está seguro que desea habilitar el Documento Técnico ?';
|
||||||
|
|
||||||
if (value == 0) {
|
if (value == 0) {
|
||||||
|
|
@ -165,6 +169,10 @@ this.toggleEnabledItem = function (id, value) {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarDocumentoTecnico';
|
var uri = CatalogosWCF + '/api/InsertarActualizarDocumentoTecnico';
|
||||||
AjaxPostData(uri, DocumentoTecnico, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, DocumentoTecnico, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ActualizarItem = function () {
|
this.ActualizarItem = function () {
|
||||||
|
|
@ -191,7 +199,7 @@ this.ActualizarItem = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.InsertarItem = function () {
|
this.InsertarItem = function () {
|
||||||
|
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||||
|
|
||||||
if (!$("#formCatalogo").valid()) {
|
if (!$("#formCatalogo").valid()) {
|
||||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
|
|
@ -211,7 +219,10 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarDocumentoTecnico';
|
var uri = CatalogosWCF + '/api/InsertarActualizarDocumentoTecnico';
|
||||||
AjaxPostData(uri, DocumentoTecnico, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, DocumentoTecnico, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.CompletarAccion = function () {
|
this.CompletarAccion = function () {
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ this.ObtenerGrupoTematico = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EditarItem = function (id) {
|
this.EditarItem = function (id) {
|
||||||
|
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
LimpiarControles();
|
LimpiarControles();
|
||||||
var indexes = getRowIndex(TableItems, id_column, id);
|
var indexes = getRowIndex(TableItems, id_column, id);
|
||||||
|
|
@ -134,10 +134,14 @@ this.EditarItem = function (id) {
|
||||||
$('#btnInsertar').hide();
|
$('#btnInsertar').hide();
|
||||||
$('#btnGuardar').show();
|
$('#btnGuardar').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toggleEnabledItem = function (id, value) {
|
this.toggleEnabledItem = function (id, value) {
|
||||||
|
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||||
var msg = '¿Está seguro que desea habilitar el Grupo Temático?';
|
var msg = '¿Está seguro que desea habilitar el Grupo Temático?';
|
||||||
|
|
||||||
if (value == 0) {
|
if (value == 0) {
|
||||||
|
|
@ -161,6 +165,10 @@ this.toggleEnabledItem = function (id, value) {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarGrupoTematico';
|
var uri = CatalogosWCF + '/api/InsertarActualizarGrupoTematico';
|
||||||
AjaxPostData(uri, GrupoTematico , true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, GrupoTematico , true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ActualizarItem = function () {
|
this.ActualizarItem = function () {
|
||||||
|
|
@ -188,7 +196,7 @@ this.ActualizarItem = function () {
|
||||||
|
|
||||||
this.InsertarItem = function () {
|
this.InsertarItem = function () {
|
||||||
|
|
||||||
|
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||||
if (!$("#formCatalogo").valid()) {
|
if (!$("#formCatalogo").valid()) {
|
||||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -208,7 +216,10 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarGrupoTematico';
|
var uri = CatalogosWCF + '/api/InsertarActualizarGrupoTematico';
|
||||||
AjaxPostData(uri, GrupoTematico , true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, GrupoTematico , true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.CompletarAccion = function () {
|
this.CompletarAccion = function () {
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ this.ObtenerPalabraClave = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EditarItem = function (id) {
|
this.EditarItem = function (id) {
|
||||||
|
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
LimpiarControles();
|
LimpiarControles();
|
||||||
var indexes = getRowIndex(TableItems, id_column, id);
|
var indexes = getRowIndex(TableItems, id_column, id);
|
||||||
|
|
@ -134,10 +134,14 @@ this.EditarItem = function (id) {
|
||||||
$('#btnInsertar').hide();
|
$('#btnInsertar').hide();
|
||||||
$('#btnGuardar').show();
|
$('#btnGuardar').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toggleEnabledItem = function (id, value) {
|
this.toggleEnabledItem = function (id, value) {
|
||||||
|
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||||
var msg = '¿Está seguro que desea habilitar la Palabra Clave ?';
|
var msg = '¿Está seguro que desea habilitar la Palabra Clave ?';
|
||||||
|
|
||||||
if (value == 0) {
|
if (value == 0) {
|
||||||
|
|
@ -161,6 +165,10 @@ this.toggleEnabledItem = function (id, value) {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarPalabraClave';
|
var uri = CatalogosWCF + '/api/InsertarActualizarPalabraClave';
|
||||||
AjaxPostData(uri, PalabraClave, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, PalabraClave, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ActualizarItem = function () {
|
this.ActualizarItem = function () {
|
||||||
|
|
@ -187,7 +195,7 @@ this.ActualizarItem = function () {
|
||||||
|
|
||||||
this.InsertarItem = function () {
|
this.InsertarItem = function () {
|
||||||
|
|
||||||
|
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||||
if (!$("#formCatalogo").valid()) {
|
if (!$("#formCatalogo").valid()) {
|
||||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -205,6 +213,10 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarPalabraClave';
|
var uri = CatalogosWCF + '/api/InsertarActualizarPalabraClave';
|
||||||
AjaxPostData(uri, PalabraClave, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, PalabraClave, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
//#region READY
|
//#region READY
|
||||||
var Item = {};
|
var Item = {};
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
|
$('#tableSitios').TableInit(0, false, true, true, false, null, null);
|
||||||
|
$('#tableSitios').DataTable().column(0).visible(false);
|
||||||
|
$('#tableSitios').DataTable().column(2).visible(false);
|
||||||
|
$('#tableSitios').DataTable().column(4).visible(false);
|
||||||
|
$('#tableSitios').DataTable().column(5).visible(false);
|
||||||
CargarSitios();
|
CargarSitios();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -9,6 +14,7 @@ jQuery(document).ready(function () {
|
||||||
this.CargarSitios = function () {
|
this.CargarSitios = function () {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/ObtenerSitios';
|
var uri = CatalogosWCF + '/api/ObtenerSitios';
|
||||||
|
model =
|
||||||
AjaxPostData(uri, Item, true, true, CargarTablaSitios, null, null);
|
AjaxPostData(uri, Item, true, true, CargarTablaSitios, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ this.ObtenerSubCategoriaContenido = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EditarItem = function (id) {
|
this.EditarItem = function (id) {
|
||||||
|
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
LimpiarControles();
|
LimpiarControles();
|
||||||
var indexes = getRowIndex(TableItems, id_column, id);
|
var indexes = getRowIndex(TableItems, id_column, id);
|
||||||
|
|
@ -188,10 +188,14 @@ this.EditarItem = function (id) {
|
||||||
$('#btnInsertar').hide();
|
$('#btnInsertar').hide();
|
||||||
$('#btnGuardar').show();
|
$('#btnGuardar').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toggleEnabledItem = function (id, value) {
|
this.toggleEnabledItem = function (id, value) {
|
||||||
|
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||||
var msg = '¿Está seguro que desea habilitar la Sub Categoria de Contenido ?';
|
var msg = '¿Está seguro que desea habilitar la Sub Categoria de Contenido ?';
|
||||||
|
|
||||||
if (value == 0) {
|
if (value == 0) {
|
||||||
|
|
@ -215,6 +219,10 @@ this.toggleEnabledItem = function (id, value) {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaContenido';
|
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaContenido';
|
||||||
AjaxPostData(uri, SubCategoriaContenido, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, SubCategoriaContenido, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ActualizarItem = function () {
|
this.ActualizarItem = function () {
|
||||||
|
|
@ -241,7 +249,7 @@ this.ActualizarItem = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.InsertarItem = function () {
|
this.InsertarItem = function () {
|
||||||
|
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||||
|
|
||||||
if (!$("#formCatalogo").valid()) {
|
if (!$("#formCatalogo").valid()) {
|
||||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
|
|
@ -261,6 +269,10 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaContenido';
|
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaContenido';
|
||||||
AjaxPostData(uri, Contenido, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, Contenido, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ this.ObtenerSubCategoriaGrupoTematico = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EditarItem = function (id) {
|
this.EditarItem = function (id) {
|
||||||
|
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
LimpiarControles();
|
LimpiarControles();
|
||||||
var indexes = getRowIndex(TableItems, id_column, id);
|
var indexes = getRowIndex(TableItems, id_column, id);
|
||||||
|
|
@ -188,10 +188,14 @@ this.EditarItem = function (id) {
|
||||||
$('#btnInsertar').hide();
|
$('#btnInsertar').hide();
|
||||||
$('#btnGuardar').show();
|
$('#btnGuardar').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toggleEnabledItem = function (id, value) {
|
this.toggleEnabledItem = function (id, value) {
|
||||||
|
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||||
var msg = '¿Está seguro que desea habilitar la Sub Categoria del Grupo Temático ?';
|
var msg = '¿Está seguro que desea habilitar la Sub Categoria del Grupo Temático ?';
|
||||||
|
|
||||||
if (value == 0) {
|
if (value == 0) {
|
||||||
|
|
@ -215,6 +219,10 @@ this.toggleEnabledItem = function (id, value) {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaGrupoTematico';
|
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaGrupoTematico';
|
||||||
AjaxPostData(uri, SubCategoriaGrupoTematico, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, SubCategoriaGrupoTematico, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ActualizarItem = function () {
|
this.ActualizarItem = function () {
|
||||||
|
|
@ -242,7 +250,7 @@ this.ActualizarItem = function () {
|
||||||
|
|
||||||
this.InsertarItem = function () {
|
this.InsertarItem = function () {
|
||||||
|
|
||||||
|
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||||
if (!$("#formCatalogo").valid()) {
|
if (!$("#formCatalogo").valid()) {
|
||||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -262,6 +270,10 @@ this.InsertarItem = function () {
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaGrupoTematico';
|
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaGrupoTematico';
|
||||||
AjaxPostData(uri, SubCategoriaGrupoTematico, true, true, CompletarAccion, null, null);
|
AjaxPostData(uri, SubCategoriaGrupoTematico, true, true, CompletarAccion, null, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,3 +41,4 @@
|
||||||
@Scripts.Render("~/Sinort-Scripts/PropuestaNormativa/Historico.js")
|
@Scripts.Render("~/Sinort-Scripts/PropuestaNormativa/Historico.js")
|
||||||
|
|
||||||
|
|
||||||
|
@Scripts.Render("~/Sinort-Scripts/PropuestaNormativa/Historico.js")
|
||||||
|
|
@ -121,20 +121,6 @@
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@*<li class="user-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<a href="#">usuario@aya.go.cr</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<a href="#"></a>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<a href="#"></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</li>*@
|
|
||||||
|
|
||||||
<li class="user-footer">
|
<li class="user-footer">
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
|
||||||
|
|
@ -15,16 +15,8 @@
|
||||||
<section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
|
<section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
|
||||||
</sectionGroup>
|
</sectionGroup>
|
||||||
</configSections>
|
</configSections>
|
||||||
<!--<connectionStrings>
|
|
||||||
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-AYA.SlnSinort-20180604035805.mdf;Initial Catalog=aspnet-AYA.SlnSinort-20180604035805;Integrated Security=True" providerName="System.Data.SqlClient" />
|
|
||||||
</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" />
|
|
||||||
</connectionStrings>
|
|
||||||
|
|
||||||
<!--<connectionStrings>
|
|
||||||
<add name="ADConn" connectionString="LDAP://localhost" />
|
|
||||||
</connectionStrings>-->
|
|
||||||
|
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="webpages:Version" value="3.0.0.0" />
|
<add key="webpages:Version" value="3.0.0.0" />
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ namespace AYA.SlnSinortModel.Constantes
|
||||||
|
|
||||||
public class EnumTipoEstado
|
public class EnumTipoEstado
|
||||||
{
|
{
|
||||||
public const int INICIAL = 1;
|
public const int ACTIVO = 1;
|
||||||
public const int CONSTRUCCION = 2;
|
public const int INICIAL = 2;
|
||||||
public const int ELIMINADO = 3;
|
public const int CONSTRUCCION = 3;
|
||||||
public const int HISTORICO = 4;
|
public const int HISTORICO = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue