git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C8
This commit is contained in:
parent
36b399047c
commit
c4093b8f28
13 changed files with 692 additions and 91 deletions
|
|
@ -43,7 +43,7 @@
|
||||||
</binding>
|
</binding>
|
||||||
</wsHttpBinding>
|
</wsHttpBinding>
|
||||||
<webHttpBinding>
|
<webHttpBinding>
|
||||||
<binding name="JSONBinding" closeTimeout="00:50:00" openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00" allowCookies="false" bypassProxyOnLocal="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" useDefaultWebProxy="true" contentTypeMapper="NewtonsoftJsonContentTypeMapper">
|
<binding name="JSONBinding" closeTimeout="00:50:00" openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00" allowCookies="false" bypassProxyOnLocal="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" useDefaultWebProxy="true" contentTypeMapper="">
|
||||||
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
|
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
|
||||||
<security mode="None">
|
<security mode="None">
|
||||||
<transport clientCredentialType="None" />
|
<transport clientCredentialType="None" />
|
||||||
|
|
@ -65,11 +65,7 @@
|
||||||
|
|
||||||
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
|
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
|
||||||
|
|
||||||
<extensions>
|
|
||||||
<behaviorExtensions>
|
|
||||||
<add name="newtonsoftJsonBehavior" type="NewtonsoftJsonBehaviorExtension" />
|
|
||||||
</behaviorExtensions>
|
|
||||||
</extensions>
|
|
||||||
|
|
||||||
</system.serviceModel>
|
</system.serviceModel>
|
||||||
<system.webServer>
|
<system.webServer>
|
||||||
|
|
|
||||||
|
|
@ -6950,6 +6950,7 @@
|
||||||
<Content Include="Content\jQuery.FileUpload\css\jquery.fileupload.css" />
|
<Content Include="Content\jQuery.FileUpload\css\jquery.fileupload.css" />
|
||||||
<Content Include="Content\jQuery.FileUpload\img\loading.gif" />
|
<Content Include="Content\jQuery.FileUpload\img\loading.gif" />
|
||||||
<Content Include="Content\jQuery.FileUpload\img\progressbar.gif" />
|
<Content Include="Content\jQuery.FileUpload\img\progressbar.gif" />
|
||||||
|
<Content Include="Content\Principal.css" />
|
||||||
<Content Include="Content\simpleAngularUI.css" />
|
<Content Include="Content\simpleAngularUI.css" />
|
||||||
<Content Include="Content\simpleAngularUI.min.css" />
|
<Content Include="Content\simpleAngularUI.min.css" />
|
||||||
<Content Include="Content\tether\tether-theme-arrows-dark.css" />
|
<Content Include="Content\tether\tether-theme-arrows-dark.css" />
|
||||||
|
|
@ -8039,6 +8040,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\EmisorPN.js" />
|
||||||
<Content Include="Sinort-Scripts\Global.js" />
|
<Content Include="Sinort-Scripts\Global.js" />
|
||||||
<Content Include="Web.config" />
|
<Content Include="Web.config" />
|
||||||
<Content Include="Web.Debug.config">
|
<Content Include="Web.Debug.config">
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,9 @@ namespace AYA.SlnSynor
|
||||||
.Include("~/Scripts/jquery.easyui.min.js")
|
.Include("~/Scripts/jquery.easyui.min.js")
|
||||||
.Include("~/Scripts/locale/easyui-lang-es.js"));
|
.Include("~/Scripts/locale/easyui-lang-es.js"));
|
||||||
|
|
||||||
bundles.Add(new ScriptBundle("~/Script-Catalogos").Include(
|
bundles.Add(new ScriptBundle("~/Script-Catalogos")
|
||||||
"~/Sinort-Scripts/AdministrarCatalogos.js"));
|
.Include("~/Sinort-Scripts/AdministrarCatalogos.js")
|
||||||
|
.Include("~/Sinort-Scripts/EmisorPN.js"));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
147
AYA.SlnSynor/AYA.SlnSynor/Content/Principal.css
Normal file
147
AYA.SlnSynor/AYA.SlnSynor/Content/Principal.css
Normal file
|
|
@ -0,0 +1,147 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.menu_bar {
|
||||||
|
display:none;
|
||||||
|
text-align :right ;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
header a:visited {
|
||||||
|
color: #414042;
|
||||||
|
}
|
||||||
|
|
||||||
|
header a:hover {
|
||||||
|
color: #0055aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav {
|
||||||
|
background:#E6E7E8;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul {
|
||||||
|
list-style:none;
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
header ul + li {
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
header ul {
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
|
||||||
|
}
|
||||||
|
header nav ul li {
|
||||||
|
display:inline-block;
|
||||||
|
position: relative;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
font-size: 11pt;
|
||||||
|
font-weight :bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li:hover {
|
||||||
|
color:red;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li a {
|
||||||
|
color:#414042;
|
||||||
|
display:block;
|
||||||
|
text-decoration:none;
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
header nav ul li a:hover {
|
||||||
|
color:#0055aa;
|
||||||
|
}
|
||||||
|
header nav ul li a span {
|
||||||
|
margin-right:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li:hover .children {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li .children {
|
||||||
|
display: none;
|
||||||
|
background:#E6E7E8;
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
z-index:1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li .children li {
|
||||||
|
display:block;
|
||||||
|
overflow: hidden;
|
||||||
|
border-bottom: 1px solid rgba(255,255,255,.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li .children li a {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li .children li a span {
|
||||||
|
float: right;
|
||||||
|
position: relative;
|
||||||
|
top:3px;
|
||||||
|
margin-right:0;
|
||||||
|
margin-left:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li .caret {
|
||||||
|
position: relative;
|
||||||
|
top:3px;
|
||||||
|
margin-left:0px;
|
||||||
|
margin-right:0px;
|
||||||
|
}
|
||||||
|
.show-menu {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
text-decoration: none;
|
||||||
|
color: #fff;
|
||||||
|
background: #0055aa;
|
||||||
|
text-align: center;
|
||||||
|
padding: 10px 0;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=checkbox]{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
input[type=checkbox]:checked ~ #menuprincipal{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
nav ul {
|
||||||
|
position: static;
|
||||||
|
display: none;
|
||||||
|
margin :0 50px 0 0;
|
||||||
|
align-items :center ;
|
||||||
|
}
|
||||||
|
/*Create vertical spacing*/
|
||||||
|
nav li {
|
||||||
|
margin-bottom: 1px;
|
||||||
|
padding: 0 0 0 0;
|
||||||
|
}
|
||||||
|
/*Make all menu links full width*/
|
||||||
|
nav ul li, li a {
|
||||||
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.show-menu {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -124,9 +124,10 @@
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
||||||
}
|
}
|
||||||
.panel-title {
|
.panel-title {
|
||||||
font-size: 15px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #777;
|
color: #777;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
@ -807,7 +808,7 @@
|
||||||
border-radius: 5px 5px 5px 5px;
|
border-radius: 5px 5px 5px 5px;
|
||||||
}
|
}
|
||||||
.textbox .textbox-text {
|
.textbox .textbox-text {
|
||||||
font-size: 18px;
|
font-size: 12px;
|
||||||
border: 0;
|
border: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
|
|
@ -832,7 +833,7 @@
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
.textbox .textbox-prompt {
|
.textbox .textbox-prompt {
|
||||||
font-size: 18px;
|
font-size: 12px;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
.textbox .textbox-bgicon {
|
.textbox .textbox-bgicon {
|
||||||
|
|
@ -1377,7 +1378,7 @@
|
||||||
margin-top: -8px;
|
margin-top: -8px;
|
||||||
}
|
}
|
||||||
.tabs-title {
|
.tabs-title {
|
||||||
font-size: 18px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.tabs-closable {
|
.tabs-closable {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
|
|
@ -1753,13 +1754,13 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
font-size: 150%;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.datagrid-header .datagrid-cell {
|
.datagrid-header .datagrid-cell {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
.datagrid-header .datagrid-cell span {
|
.datagrid-header .datagrid-cell span {
|
||||||
font-size: 100%;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.datagrid-cell-group {
|
.datagrid-cell-group {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
@ -1837,7 +1838,7 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
border: 1px solid #D4D4D4;
|
border: 1px solid #D4D4D4;
|
||||||
font-size: 100%;
|
font-size: 12px;
|
||||||
outline-style: none;
|
outline-style: none;
|
||||||
-moz-border-radius: 0 0 0 0;
|
-moz-border-radius: 0 0 0 0;
|
||||||
-webkit-border-radius: 0 0 0 0;
|
-webkit-border-radius: 0 0 0 0;
|
||||||
|
|
@ -2083,7 +2084,7 @@
|
||||||
width: 3em;
|
width: 3em;
|
||||||
height: auto;
|
height: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 100%;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.pagination-page-list {
|
.pagination-page-list {
|
||||||
margin: 0px 6px;
|
margin: 0px 6px;
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -10,7 +10,7 @@ function IniciarForm() {
|
||||||
IniciarGridEmisoresPN(null);
|
IniciarGridEmisoresPN(null);
|
||||||
|
|
||||||
btnNuevo = $("#btnNuevo").click(NuevoEmisorPN);
|
btnNuevo = $("#btnNuevo").click(NuevoEmisorPN);
|
||||||
btnEliminar = $("#btnEliminar").click(EliminarEmisorPN);
|
//btnEliminar = $("#btnEliminar").click(EliminarEmisorPN);
|
||||||
btnBuscar = $("#btnBuscar").click(function () {
|
btnBuscar = $("#btnBuscar").click(function () {
|
||||||
filtro =
|
filtro =
|
||||||
{
|
{
|
||||||
|
|
@ -115,14 +115,14 @@ function IniciarGridEmisoresPN(data) {
|
||||||
data: data,
|
data: data,
|
||||||
columns: [[
|
columns: [[
|
||||||
//{ field: 'id_emisor', title: 'ID EMISOR', auto: true },
|
//{ field: 'id_emisor', title: 'ID EMISOR', auto: true },
|
||||||
{ field: 'titulo', title: 'TITULO', auto: true, width: 300 },
|
{ field: 'titulo', title: 'TITULO', align: 'center'},
|
||||||
{
|
//{
|
||||||
field: 'action', title: 'ACCIONES', align: 'center', haling: 'center',
|
// field: 'action', title: 'ACCIONES', align: 'center', haling: 'center',
|
||||||
formatter: function (value, row, index) {
|
// formatter: function (value, row, index) {
|
||||||
var editar = '<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onClick="EditarEmisorPN(this)" >Editar</a>';
|
// var editar = '<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onClick="EditarEmisorPN(this)" >Editar</a>';
|
||||||
return editar;
|
// return editar;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
]],
|
]],
|
||||||
pagination: true,
|
pagination: true,
|
||||||
|
|
|
||||||
334
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EmisorPN.js
Normal file
334
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EmisorPN.js
Normal file
|
|
@ -0,0 +1,334 @@
|
||||||
|
$("#formCatalogo").EnableValidationToolTip();
|
||||||
|
var DataCatalogo;
|
||||||
|
var id_column = 1;
|
||||||
|
var Item = {};
|
||||||
|
|
||||||
|
|
||||||
|
//#region READY
|
||||||
|
|
||||||
|
jQuery(document).ready(function () {
|
||||||
|
|
||||||
|
//GetControlsSettings("Cathay_Ejecutivo", "Cathay_Ejecutivo", "formCatalogo", true);
|
||||||
|
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();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#btnFormalizador').unbind('click');
|
||||||
|
$('#btnFormalizador').click(function () {
|
||||||
|
SelectedCatalog = "Formalizador";
|
||||||
|
CargarDataCatalogo($('#btnFormalizador').attr('direccion_api'), null, "1");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
obtenerItems();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.obtenerItems = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var uri = CatalogosWCF + '/api/ObtenerEmisoresPN';
|
||||||
|
|
||||||
|
$.getJSON(server + uri).done(function (data) {
|
||||||
|
|
||||||
|
$('#TableItems').TableInit(0, false, true, true, false, null, null);
|
||||||
|
|
||||||
|
var TableItems = $('#TableItems').DataTable();
|
||||||
|
|
||||||
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
|
|
||||||
|
var option = $("#ucItemsCatalogo").html();
|
||||||
|
|
||||||
|
option = replaceAll("[$CodItem]", item.IdEjecutivo, 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.IdTipoEmisor,
|
||||||
|
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 el Emisor PN?';
|
||||||
|
|
||||||
|
if (value == 0) {
|
||||||
|
msg = '¿Está seguro que desea deshabilitar el Emisor PN?';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id == null || value == null) {
|
||||||
|
toastr.warning("No se pudo obtener el ID del Emisor PN seleccionado.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!confirm(msg))
|
||||||
|
{ return; }
|
||||||
|
|
||||||
|
|
||||||
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
|
||||||
|
Item = {
|
||||||
|
IdEjecutivo: id,
|
||||||
|
Estado: value,
|
||||||
|
UsuarioModificado: $("#hiddenUserID").val()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var uri = 'api/EjecutivoAPI/toggleStateItem/';
|
||||||
|
var DTO = JSON.stringify(Item);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: server + uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
|
if (data == "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; }
|
||||||
|
|
||||||
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
|
||||||
|
Item = {
|
||||||
|
IdTipoEmisor: $('#hiddenId').val(),
|
||||||
|
Descripcion: $('#txtDescripcion').val(),
|
||||||
|
}
|
||||||
|
|
||||||
|
var uri = CatalogosWCF + '/api/ModificarEmisoresPN';
|
||||||
|
var DTO = JSON.stringify(Item);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: server + uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
|
if (data == "EXITOSO") {
|
||||||
|
toastr.info('Información guardada con éxito', 'Completado');
|
||||||
|
limpiar();
|
||||||
|
|
||||||
|
$('#btnGuardar').hide();
|
||||||
|
$('#btnInsertar').show();
|
||||||
|
|
||||||
|
$('#lbTituloAccion').empty();
|
||||||
|
$('#lbTituloAccion').append('Ingresar Nuevo Emisor PN');
|
||||||
|
|
||||||
|
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 un nuevo Emisor PN.\n ¿Desea continuar?"))
|
||||||
|
{ return; }
|
||||||
|
|
||||||
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
|
||||||
|
Ejecutivo = {
|
||||||
|
Descripcion: $("#txtDescripcion").val(),
|
||||||
|
}
|
||||||
|
|
||||||
|
var uri = CatalogosWCF + '/api/InsertarEmisorPN';
|
||||||
|
var DTO = JSON.stringify(Ejecutivo);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: server + uri,
|
||||||
|
cache: false,
|
||||||
|
data: DTO,
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType: 'json',
|
||||||
|
success: function (data) {
|
||||||
|
|
||||||
|
if (data == "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");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -132,4 +132,70 @@ function STARTREQUEST (Message) {
|
||||||
|
|
||||||
function ENDREQUEST() {
|
function ENDREQUEST() {
|
||||||
$("#loadingGif").hide();
|
$("#loadingGif").hide();
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.TableInit = function (columnOrder, order, bPaginate, bFilter, bInfo, columnDefinition, data) {
|
||||||
|
|
||||||
|
var ES = {
|
||||||
|
"sProcessing": "Procesando...",
|
||||||
|
"sLengthMenu": "Mostrar _MENU_ registros",
|
||||||
|
"sZeroRecords": "No se encontraron resultados",
|
||||||
|
"sEmptyTable": "Ningún dato disponible",
|
||||||
|
"sInfo": "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
|
||||||
|
"sInfoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros",
|
||||||
|
"sInfoFiltered": "(filtrado de un total de _MAX_ registros)",
|
||||||
|
"sInfoPostFix": "",
|
||||||
|
"sSearch": "Buscar:",
|
||||||
|
"sUrl": "",
|
||||||
|
"sInfoThousands": ",",
|
||||||
|
"sLoadingRecords": "Cargando...",
|
||||||
|
"oPaginate": {
|
||||||
|
"sFirst": "Primero",
|
||||||
|
"sLast": "Último",
|
||||||
|
"sNext": "Siguiente",
|
||||||
|
"sPrevious": "Anterior"
|
||||||
|
},
|
||||||
|
"oAria": {
|
||||||
|
"sSortAscending": ": Activar para ordenar la columna de manera ascendente",
|
||||||
|
"sSortDescending": ": Activar para ordenar la columna de manera descendente"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var EN = {
|
||||||
|
"sProcessing": "Processing...",
|
||||||
|
"sLengthMenu": "Show _MENU_ registers",
|
||||||
|
"sZeroRecords": "No results found",
|
||||||
|
"sEmptyTable": "No data available",
|
||||||
|
"sInfo": "Showing registers from _START_ to _END_ of a total of _TOTAL_ registers",
|
||||||
|
"sInfoEmpty": "Showing registers from 0 to 0 of a total of 0 registers",
|
||||||
|
"sInfoFiltered": "(filtering of a total of _MAX_ registers)",
|
||||||
|
"sInfoPostFix": "",
|
||||||
|
"sSearch": "Find:",
|
||||||
|
"sUrl": "",
|
||||||
|
"sInfoThousands": ",",
|
||||||
|
"sLoadingRecords": "Loading...",
|
||||||
|
"oPaginate": {
|
||||||
|
"sFirst": "First",
|
||||||
|
"sLast": "Last",
|
||||||
|
"sNext": "Next",
|
||||||
|
"sPrevious": "Previous"
|
||||||
|
},
|
||||||
|
"oAria": {
|
||||||
|
"sSortAscending": ": Activate to sort the column in ascending order",
|
||||||
|
"sSortDescending": ": Activate to sort the column in descending order"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.dataTable({
|
||||||
|
"language": EN,
|
||||||
|
"order": [[columnOrder, order]],
|
||||||
|
"destroy": true,
|
||||||
|
"bPaginate": bPaginate,
|
||||||
|
"bFilter": bFilter,
|
||||||
|
"bInfo": bInfo,
|
||||||
|
"data": data,
|
||||||
|
"columns": columnDefinition,
|
||||||
|
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
|
||||||
|
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -1,70 +1,93 @@
|
||||||
@{
|
@{
|
||||||
ViewBag.Title = "EmisorPN";
|
ViewBag.Title = "EmisorPN";
|
||||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Styles.Render("~/Content/sinort-css")
|
<br />
|
||||||
|
<br />
|
||||||
|
<form id="formCatalogo" class="form-horizontal" role="form">
|
||||||
|
<h3> <i class="fa fa-briefcase"></i> Emisor PN</h3>
|
||||||
|
<div class="panel panel-success">
|
||||||
|
|
||||||
<body>
|
<div class="panel-body">
|
||||||
<div id="emisorpn_win" style="margin-left: 50px !important; margin-right: 50px !important">
|
<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>
|
<div class="btn-group">
|
||||||
<br />
|
<button type="button" class="btn btn-info dropdown-toggle btn-xs" data-toggle="dropdown">
|
||||||
<div style="margin-bottom:10px">
|
<i class="fa fa-wrench"></i> Opciones <span class="caret"></span>
|
||||||
|
</button>
|
||||||
<input id="buscar_titulo" class="easyui-textbox" label="Título:" style="width: 30%;" prompt="INGRESAR TÍTULO">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<a id="btnBuscar" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-search" plain="true">Buscar Emisor PN</a>
|
<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 Nuevo Emisor PN</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>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<table id="grid_emisoresPN" style="min-height: 99%; width: 100%; height: auto" fitcolumns="true" showfooter="true"></table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="toolbar">
|
|
||||||
<a id="btnNuevo" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add" plain="true">Nuevo</a>
|
|
||||||
<a id="btnEliminar" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-remove" plain="true">Eliminar</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
@*---------------------- NUEVO USUARIO --------------------------*@
|
|
||||||
|
|
||||||
<div id="dlg" class="easyui-dialog" style="width:50%;"
|
|
||||||
closed="true" buttons="#dlg-buttons">
|
|
||||||
<form id="fm" method="post" novalidate style="margin:0;padding:20px 50px">
|
|
||||||
<div style="margin-bottom:20px;font-size:20px;border-bottom:1px solid #ccc">Información General</div>
|
|
||||||
|
|
||||||
<div style="margin-bottom:10px">
|
|
||||||
<input id="titulo" name="titulo" class="easyui-textbox" label="Título:" style="width:75%" prompt="INGRESAR TÍTULO">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="dlg-buttons">
|
|
||||||
<a href="javascript:void(0)" class="easyui-linkbutton c6" iconcls="icon-ok" onclick="AplicarCambios(true)" style="width:20%">Aceptar</a>
|
|
||||||
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')" style="width:20%">Cancelar</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@*---------------------- FIN NUEVO USUARIO ----------------------*@
|
|
||||||
|
|
||||||
|
|
||||||
<div id="dlgEdit" class="easyui-dialog" style="width:50%;"
|
|
||||||
closed="true" buttons="#dlg-buttons-edit">
|
|
||||||
<form id="fmEdit" method="post" novalidate style="margin:0;padding:20px 50px">
|
|
||||||
<div style="margin-bottom:20px;font-size:20px;border-bottom:1px solid #ccc">Información General</div>
|
|
||||||
|
|
||||||
<div style="margin-bottom:10px">
|
|
||||||
<input id="titulo" name="titulo" class="easyui-textbox" label="Título:" style="width:75%" prompt="INGRESAR TÍTULO">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="dlg-buttons-edit">
|
|
||||||
<a href="javascript:void(0)" class="easyui-linkbutton c6" iconcls="icon-ok" onclick="AplicarCambios(false)" style="width:20%">Aceptar</a>
|
|
||||||
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript: $('#dlgEdit').dialog('close')" style="width:20%">Cancelar</a>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
|
|
||||||
@Scripts.Render("~/Script-Catalogos")
|
@Scripts.Render("~/Sinort-Scripts/EmisorPN.js")
|
||||||
|
|
||||||
|
|
@ -7,15 +7,15 @@
|
||||||
|
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
|
|
||||||
<img class="img-rounded" src="~/dist/img/SinortBanner.jpg">
|
<img class="img-responsive" src="~/dist/img/SinortBanner.jpg">
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="content container-fluid">
|
<section class="content container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4"><a href="@Url.Action("Normativa_Reglamentacion_Tecnica", "Home")"> <img class="img-rounded" src="~/dist/img/imgNormReg.jpg"></div>
|
<div class="col-sm-4"><a href="@Url.Action("Normativa_Reglamentacion_Tecnica", "Home")"> <img class="img-responsive" src="~/dist/img/imgNormReg.jpg"></div>
|
||||||
<div class="col-sm-4"><a href="#"> <img class="img-rounded" src="~/dist/img/imgProyeNorm.jpg"></div>
|
<div class="col-sm-4"><a href="#"> <img class="img-responsive" src="~/dist/img/imgProyeNorm.jpg"></div>
|
||||||
<div class="col-sm-4"><a href="#"> <img class="img-rounded" src="~/dist/img/imgEst.jpg"></div>
|
<div class="col-sm-4"><a href="#"> <img class="img-responsive" src="~/dist/img/imgEst.jpg"></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="content-wrapper">
|
<div >
|
||||||
|
|
||||||
<section class="content-header"></section>
|
<section class="content-header"></section>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
<title> AYA | SINORT </title>
|
<title> AYA | SINORT </title>
|
||||||
<!-- Tell the browser to be responsive to screen width -->
|
<!-- Tell the browser to be responsive to screen width -->
|
||||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||||
|
|
@ -23,7 +24,7 @@
|
||||||
<!-- Google Font -->
|
<!-- Google Font -->
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||||
|
<link rel="stylesheet" href="~/Content/Principal.css" >
|
||||||
@Scripts.Render("~/bundles/modernizr")
|
@Scripts.Render("~/bundles/modernizr")
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -42,12 +43,33 @@
|
||||||
<span class="logo-lg"><img src="~/dist/img/LogoAyA.jpg" alt="logo"></span>
|
<span class="logo-lg"><img src="~/dist/img/LogoAyA.jpg" alt="logo"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar navbar-static-top" role="navigation">
|
<nav class="navbar navbar-static-top" role="navigation">
|
||||||
|
|
||||||
@*<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
</a>*@
|
</a>
|
||||||
|
|
||||||
<div class="navbar-custom-menu">
|
<div class="navbar-custom-menu">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
@ -262,8 +284,17 @@
|
||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
<div id="main" class="content-wrapper">
|
<div id="main" class="content-wrapper">
|
||||||
@RenderSection("featured", required: false)
|
|
||||||
@RenderBody()
|
|
||||||
|
|
||||||
|
@RenderSection("featured", required: false)
|
||||||
|
@RenderBody()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="main-footer">
|
<footer class="main-footer">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue