git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C429
This commit is contained in:
parent
e497ea75dc
commit
18310f9dd6
5 changed files with 43 additions and 6 deletions
|
|
@ -230,7 +230,7 @@ this.InsertarItem = function () {
|
||||||
Descripcion: $("#txtDescripcion").val(),
|
Descripcion: $("#txtDescripcion").val(),
|
||||||
DescripcionLarga: $("#txtAreaDescripcionLarga").val(),
|
DescripcionLarga: $("#txtAreaDescripcionLarga").val(),
|
||||||
IdTipoAplicacion: 1,
|
IdTipoAplicacion: 1,
|
||||||
Estado: Estados.Inicial.Codigo
|
Estado: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarAplicacion';
|
var uri = CatalogosWCF + '/api/InsertarActualizarAplicacion';
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,24 @@ this.ActualizarItem = function () {
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
var repetido = false;
|
||||||
|
var data = TableItems
|
||||||
|
.rows()
|
||||||
|
.data();
|
||||||
|
|
||||||
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
|
if (item[2] == $("#txtDescripcion").val()) {
|
||||||
|
repetido = true
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
if (repetido == true) {
|
||||||
|
toastr.warning('Ya existe un emisor con la misma descripción', Message_Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
EmisorPN = {
|
EmisorPN = {
|
||||||
IdEmisor: $('#hiddenId').val(),
|
IdEmisor: $('#hiddenId').val(),
|
||||||
Descripcion: $('#txtDescripcion').val(),
|
Descripcion: $('#txtDescripcion').val(),
|
||||||
|
|
@ -167,6 +184,7 @@ this.ActualizarItem = function () {
|
||||||
this.InsertarItem = function () {
|
this.InsertarItem = function () {
|
||||||
|
|
||||||
if (ValidarPermisos('Crear catálogos').length > 0) {
|
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;
|
||||||
|
|
@ -175,11 +193,30 @@ this.InsertarItem = function () {
|
||||||
if (!confirm("Va a ingresar un nuevo Emisor .\n ¿Desea continuar?"))
|
if (!confirm("Va a ingresar un nuevo Emisor .\n ¿Desea continuar?"))
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
|
|
||||||
TableItems = $('#TableItems').DataTable();
|
TableItems = $('#TableItems').DataTable();
|
||||||
|
var repetido = false;
|
||||||
|
var data = TableItems
|
||||||
|
.rows()
|
||||||
|
.data();
|
||||||
|
|
||||||
|
$.each(data, function (key, item) {
|
||||||
|
|
||||||
|
if (item[2] == $("#txtDescripcion").val()) {
|
||||||
|
repetido = true
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
if (repetido == true) {
|
||||||
|
toastr.warning('Ya existe un emisor con la misma descripción', Message_Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
EmisorPN = {
|
EmisorPN = {
|
||||||
IdTipoEmisor : 1,
|
IdTipoEmisor : 1,
|
||||||
Descripcion: $("#txtDescripcion").val(),
|
Descripcion: $("#txtDescripcion").val(),
|
||||||
|
Estado: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
var uri = CatalogosWCF + '/api/InsertarActualizarEmisor';
|
var uri = CatalogosWCF + '/api/InsertarActualizarEmisor';
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ this.CargarTareasPendientes = function () {
|
||||||
var uri = SinortWCF + '/api/ObtenerTareasPendientes';
|
var uri = SinortWCF + '/api/ObtenerTareasPendientes';
|
||||||
|
|
||||||
var model = {
|
var model = {
|
||||||
codigo: 'josnunez'
|
codigo: UsuarioSistema
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label ControlsForms">Descripción</label>
|
<label class="col-sm-4 control-label ControlsForms">Título</label>
|
||||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required />
|
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" required />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
@*--------------------- Descripcion Larga ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divAreaDescripcionLarga">
|
<div class="form-group " id="divAreaDescripcionLarga">
|
||||||
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Detalle</label>
|
<label class="col-sm-4 control-label ControlsForms" id="lblAreaDescripcionLarga">Descripción</label>
|
||||||
<div class="input-group input-group-sm col-lg-4 col-md-4 col-sm-4 col-xs-4">
|
<div class="input-group input-group-sm col-lg-4 col-md-4 col-sm-4 col-xs-4">
|
||||||
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none" required></textarea>
|
<textarea name="txtAreaDescripcionLarga" rows="8" cols="31" id="txtAreaDescripcionLarga" style="resize: none" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<table id="tableMantenimiento" class="table table-condensed dataTable no-footer">
|
<table id="tableMantenimiento" class="table table-condensed dataTable no-footer">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-sm-4">Catalogo</th>
|
<th class="col-sm-4">Catálogo</th>
|
||||||
<th>Acción</th>
|
<th>Acción</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue