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 />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<publishUrl>C:\Proyectos\AYA.SlnSinort.WCF</publishUrl>
|
||||
<publishUrl>C:\Instaladores SINORT\WCF SINORT</publishUrl>
|
||||
<DeleteExistingFiles>False</DeleteExistingFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
@ -8,6 +8,7 @@ namespace AYA.SlnSinort.Controllers.NormativaReglamentacionTecnica
|
|||
{
|
||||
public class NormativaReglamentacionTecnicaController : BaseController
|
||||
{
|
||||
//[LoggingFilter]
|
||||
public ActionResult FichaTecnica()
|
||||
{
|
||||
InitControllers();
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ this.ObtenerContenido = function () {
|
|||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -136,9 +136,13 @@ this.EditarItem = function (id) {
|
|||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar el Contenido?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -163,6 +167,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
var uri = CatalogosWCF + '/api/InsertarActualizarContenido';
|
||||
AjaxPostData(uri, Contenido, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
||||
|
|
@ -189,7 +197,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
|
|
@ -208,7 +216,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarContenido';
|
||||
AjaxPostData(uri, Contenido , true, true, CompletarAccion, null, null);
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.CompletarAccion = function () {
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ this.ObtenerDocumentoTecnico = function () {
|
|||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -139,9 +139,13 @@ this.EditarItem = function (id) {
|
|||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar el Documento Técnico ?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -166,6 +170,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
var uri = CatalogosWCF + '/api/InsertarActualizarDocumentoTecnico';
|
||||
AjaxPostData(uri, DocumentoTecnico, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
||||
|
|
@ -191,7 +199,7 @@ this.ActualizarItem = function () {
|
|||
}
|
||||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
|
|
@ -211,7 +219,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarDocumentoTecnico';
|
||||
AjaxPostData(uri, DocumentoTecnico, true, true, CompletarAccion, null, null);
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.CompletarAccion = function () {
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ this.ObtenerGrupoTematico = function () {
|
|||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -135,9 +135,13 @@ this.EditarItem = function (id) {
|
|||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar el Grupo Temático?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -162,6 +166,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
var uri = CatalogosWCF + '/api/InsertarActualizarGrupoTematico';
|
||||
AjaxPostData(uri, GrupoTematico , true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
||||
|
|
@ -188,7 +196,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
|
|
@ -208,7 +216,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarGrupoTematico';
|
||||
AjaxPostData(uri, GrupoTematico , true, true, CompletarAccion, null, null);
|
||||
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.CompletarAccion = function () {
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ this.ObtenerPalabraClave = function () {
|
|||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -135,9 +135,13 @@ this.EditarItem = function (id) {
|
|||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar la Palabra Clave ?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -162,6 +166,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
var uri = CatalogosWCF + '/api/InsertarActualizarPalabraClave';
|
||||
AjaxPostData(uri, PalabraClave, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
||||
|
|
@ -187,7 +195,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
|
|
@ -205,6 +213,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarPalabraClave';
|
||||
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
|
||||
var Item = {};
|
||||
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();
|
||||
});
|
||||
|
||||
|
|
@ -9,6 +14,7 @@ jQuery(document).ready(function () {
|
|||
this.CargarSitios = function () {
|
||||
|
||||
var uri = CatalogosWCF + '/api/ObtenerSitios';
|
||||
model =
|
||||
AjaxPostData(uri, Item, true, true, CargarTablaSitios, null, null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ this.ObtenerSubCategoriaContenido = function () {
|
|||
}
|
||||
|
||||
this.EditarItem = function (id) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -189,9 +189,13 @@ this.EditarItem = function (id) {
|
|||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar la Sub Categoria de Contenido ?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -216,6 +220,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaContenido';
|
||||
AjaxPostData(uri, SubCategoriaContenido, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
||||
|
|
@ -241,7 +249,7 @@ this.ActualizarItem = function () {
|
|||
}
|
||||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
|
|
@ -261,6 +269,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaContenido';
|
||||
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) {
|
||||
|
||||
if (ValidarPermisos('Modificar catálogos').length > 0) {
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
LimpiarControles();
|
||||
var indexes = getRowIndex(TableItems, id_column, id);
|
||||
|
|
@ -189,9 +189,13 @@ this.EditarItem = function (id) {
|
|||
$('#btnGuardar').show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.toggleEnabledItem = function (id, value) {
|
||||
|
||||
if (ValidarPermisos('Desactivar / Activar catálogos').length > 0) {
|
||||
var msg = '¿Está seguro que desea habilitar la Sub Categoria del Grupo Temático ?';
|
||||
|
||||
if (value == 0) {
|
||||
|
|
@ -216,6 +220,10 @@ this.toggleEnabledItem = function (id, value) {
|
|||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaGrupoTematico';
|
||||
AjaxPostData(uri, SubCategoriaGrupoTematico, true, true, CompletarAccion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
this.ActualizarItem = function () {
|
||||
|
||||
|
|
@ -242,7 +250,7 @@ this.ActualizarItem = function () {
|
|||
|
||||
this.InsertarItem = function () {
|
||||
|
||||
|
||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
||||
if (!$("#formCatalogo").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
return false;
|
||||
|
|
@ -262,6 +270,10 @@ this.InsertarItem = function () {
|
|||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarSubCategoriaGrupoTematico';
|
||||
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")
|
||||
|
|
@ -121,20 +121,6 @@
|
|||
|
||||
</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">
|
||||
|
||||
<div align="center">
|
||||
|
|
|
|||
|
|
@ -15,16 +15,8 @@
|
|||
<section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
|
||||
</sectionGroup>
|
||||
</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>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ namespace AYA.SlnSinortModel.Constantes
|
|||
|
||||
public class EnumTipoEstado
|
||||
{
|
||||
public const int INICIAL = 1;
|
||||
public const int CONSTRUCCION = 2;
|
||||
public const int ELIMINADO = 3;
|
||||
public const int ACTIVO = 1;
|
||||
public const int INICIAL = 2;
|
||||
public const int CONSTRUCCION = 3;
|
||||
public const int HISTORICO = 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue