|
|
@@ -85,14 +85,14 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
var qj = queryJson.ToJObject(); |
|
|
|
|
|
|
|
var query = this.BaseRepository("CollegeMIS").FindList<Gz_ItemsEntity>(); |
|
|
|
if(!qj["keyword"].IsEmpty()) |
|
|
|
if (!qj["keyword"].IsEmpty()) |
|
|
|
{ |
|
|
|
var k = qj["keyword"].ToString(); |
|
|
|
query = query.Where(x => x.Name.Contains(k)); |
|
|
|
} |
|
|
|
pagination.records = query.Count(); |
|
|
|
|
|
|
|
query = query.OrderBy(x=>x.ShowOrder).Skip(skip).Take(pagination.rows); |
|
|
|
query = query.OrderBy(x => x.ShowOrder).Skip(skip).Take(pagination.rows); |
|
|
|
|
|
|
|
return query; |
|
|
|
} |
|
|
@@ -216,7 +216,8 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
foreach (var x in exc) |
|
|
|
{ |
|
|
|
i++; |
|
|
|
var adm = new Gz_ItemsEntity { Name = x, Id = Guid.NewGuid().ToString(), ShowOrder = i }; |
|
|
|
var o = cols.IndexOf(x) + 100; |
|
|
|
var adm = new Gz_ItemsEntity { Name = x, Id = Guid.NewGuid().ToString(), ShowOrder = o }; |
|
|
|
addLs.Add(adm); |
|
|
|
} |
|
|
|
//addLs = exc.Select(x => new Gz_ItemsEntity { Name = x, Id = Guid.NewGuid().ToString() }).ToList(); |
|
|
@@ -243,7 +244,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
try |
|
|
|
{ |
|
|
|
var dbm = this.BaseRepository("CollegeMIS").FindEntity<Gz_ItemsEntity>(x => x.Id == keyValue); |
|
|
|
if(dbm!=null) |
|
|
|
if (dbm != null) |
|
|
|
{ |
|
|
|
dbm.IsShow = !dbm.IsShow; |
|
|
|
this.BaseRepository("CollegeMIS").Update(dbm); |
|
|
|