Sfoglia il codice sorgente

工资检索修改,工资项排序修改

西昌分支
dao 6 mesi fa
parent
commit
17852f2dd4
3 ha cambiato i file con 20 aggiunte e 6 eliminazioni
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Gz_AmountsController.cs
  2. +14
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Gz_Amounts/Gz_AmountsService.cs
  3. +5
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Gz_Items/Gz_ItemsService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Gz_AmountsController.cs Vedi File

@@ -216,7 +216,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers

#region 导入
/// <summary>
/// 成绩导入
/// 导入
/// </summary>
/// <param name="fileGuid"></param>
/// <param name="chunks"></param>


+ 14
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Gz_Amounts/Gz_AmountsService.cs Vedi File

@@ -643,7 +643,20 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement

var itemId = items.Select(x => x.Id).ToArray();

var q = this.BaseRepository("CollegeMIS").FindList<Gz_AmountsEntity>(x => itemId.Contains(x.ItemId) && ((yearStart == yearEnd && x.Year == yearStart && x.Month >= monthStart && x.Month <= monthEnd) || (yearStart < yearEnd && (x.Year == yearStart && x.Month >= monthStart) || (x.Year == yearEnd && x.Month <= monthEnd) || (x.Year > yearStart && x.Year < yearEnd))));
var q = this.BaseRepository("CollegeMIS").FindList<Gz_AmountsEntity>(x => itemId.Contains(x.ItemId));
if(yearStart== yearEnd)
{
q = q.Where(x => x.Year == yearStart && x.Month >= monthStart && x.Month <= monthEnd);
}
else if(yearStart < yearEnd)
{
q = q.Where(x => (x.Year == yearStart && x.Month >= monthStart) || (x.Year == yearEnd && x.Month <= monthEnd) || (x.Year > yearStart && x.Year < yearEnd));
}
else
{
total = 0;
return new List<Gz_AmountsCols>();
}

if (!userNo.IsEmpty())
{


+ 5
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Gz_Items/Gz_ItemsService.cs Vedi File

@@ -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);


Caricamento…
Annulla
Salva