Ficha Tecnica (Subcategoria listo)
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C220
This commit is contained in:
parent
f27cab61fa
commit
1e72f486d5
5 changed files with 18 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.40629.0
|
||||
VisualStudioVersion = 12.0.21005.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSinort", "AYA.SlnSynor\AYA.SlnSinort.csproj", "{D672EAD6-E8C6-4374-B149-DED461546905}"
|
||||
EndProject
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ this.getDataModel = function () {
|
|||
CargarAplicacion();
|
||||
CargarContenido();
|
||||
CargarGrupoTematico();
|
||||
CargarSubCategoriaContenido();
|
||||
CargarSubCategoriaGrupoTematico();
|
||||
CargarDocumentoTecnico();
|
||||
CargarPalabraClave();
|
||||
CargarEstado();
|
||||
|
|
@ -133,7 +131,6 @@ this.getDataModel = function () {
|
|||
LoadMessage();
|
||||
|
||||
$('#tableSubCategoriaContenido').DataTable().search('').draw();
|
||||
|
||||
$('#modalSubCategoriaContenido').modal('show');
|
||||
|
||||
ENDREQUEST();
|
||||
|
|
@ -337,7 +334,7 @@ this.CargarSubCategoriaContenido = function (filtro) {
|
|||
|
||||
var uri = CatalogosWCF + '/api/ObtenerSubCategoriaContenidoPopUp';
|
||||
var model = {
|
||||
IdTipo: 1,
|
||||
IdTipo: $("#hiddenContenido").val(),
|
||||
filtro: filtro == null ? '' : '&filtro=' + filtro
|
||||
}
|
||||
|
||||
|
|
@ -407,7 +404,7 @@ this.CargarSubCategoriaGrupoTematico = function (filtro) {
|
|||
|
||||
var uri = CatalogosWCF + '/api/ObtenerSubCategoriaGrupoTematicoPopUp';
|
||||
var model = {
|
||||
IdTipo: 1,
|
||||
IdTipo: $("#hiddenGrupoTematico").val(),
|
||||
filtro: filtro == null ? '' : '&filtro=' + filtro
|
||||
}
|
||||
|
||||
|
|
@ -590,6 +587,8 @@ $('#tableContenido').on('click', 'button', function () {
|
|||
}
|
||||
$('#modalContenido').modal('hide');
|
||||
|
||||
CargarSubCategoriaContenido();
|
||||
|
||||
});
|
||||
|
||||
$('#tableSubCategoriaContenido').on('click', 'button', function () {
|
||||
|
|
@ -616,6 +615,9 @@ $('#tableGrupoTematico').on('click', 'button', function () {
|
|||
}
|
||||
$('#modalGrupoTematico').modal('hide');
|
||||
|
||||
|
||||
CargarSubCategoriaGrupoTematico();
|
||||
|
||||
});
|
||||
|
||||
$('#tableSubCategoriaGrupoTematico').on('click', 'button', function () {
|
||||
|
|
@ -797,4 +799,5 @@ $('#tableDocFichaTecnica').on('click', 'button', function () {
|
|||
|
||||
window.open(data[4]);
|
||||
|
||||
});
|
||||
});
|
||||
//fin adjuntos
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
<div class="form-group " id="divIdentificacion">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblIdentificacion">Identificación</label>
|
||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||
<textarea name="txtAreaIdentificacion" rows="8" cols="33" id="txtAreaIdentificacion" style="resize: none"></textarea>
|
||||
<textarea name="txtAreaIdentificacion" rows="8" cols="43" id="txtAreaIdentificacion" style="resize: none"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
{
|
||||
using (SinortContex db = new SinortContex())
|
||||
{
|
||||
registros = db.SubCategoriaContenido.Where(t => t.Estado == true && (string.IsNullOrEmpty(filtro) || t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower())))
|
||||
registros = db.SubCategoriaContenido.Where(t => t.Estado == true
|
||||
&& (string.IsNullOrEmpty(filtro) || t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower()))
|
||||
&& (IdSubCategoriaContenido == null || t.IdContenido == model.IdTipo))
|
||||
.Select(t => new CatalogosJSON()
|
||||
{
|
||||
codigo = t.IdSubCategoriaContenido.ToString(),
|
||||
|
|
|
|||
|
|
@ -27,7 +27,10 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
{
|
||||
using (SinortContex db = new SinortContex())
|
||||
{
|
||||
registros = db.SubCategoriaGrupoTematico.Where(t => t.Estado == true && (string.IsNullOrEmpty(filtro) || t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower())))
|
||||
registros = db.SubCategoriaGrupoTematico.Where(t => t.Estado == true
|
||||
&& (string.IsNullOrEmpty(filtro) || t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower()))
|
||||
&& (IdSubCategoriaGrupoTematico == null || t.IdGrupoTematico == model.IdTipo ))
|
||||
|
||||
.Select(t => new CatalogosJSON()
|
||||
{
|
||||
codigo = t.IdSubCategoriaGrupoTematico.ToString(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue