|
|
@@ -344,17 +344,17 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
|
|
|
|
if (items.Any()) |
|
|
|
{ |
|
|
|
var xmId = items.FirstOrDefault(x => x.Name == "职员姓名").Id; |
|
|
|
var deptCodeId = items.FirstOrDefault(x => x.Name == "部门代码").Id; |
|
|
|
var deptId = items.FirstOrDefault(x => x.Name == "部门名称").Id; |
|
|
|
var ptcId = items.FirstOrDefault(x => x.Name == "职员类型代码").Id; |
|
|
|
var ptId = items.FirstOrDefault(x => x.Name == "职员类型").Id; |
|
|
|
var sendId = items.FirstOrDefault(x => x.Name == "发放时间").Id; |
|
|
|
var sendCountId = items.FirstOrDefault(x => x.Name == "发放次数").Id; |
|
|
|
var kchjId = items.FirstOrDefault(x => x.Name == "扣款合计").Id; |
|
|
|
var sfhjId = items.FirstOrDefault(x => x.Name == "实发合计").Id; |
|
|
|
var bzId = items.FirstOrDefault(x => x.Name == "备注").Id; |
|
|
|
var shrId = items.FirstOrDefault(x => x.Name == "审核人").Id; |
|
|
|
var xmId = items.FirstOrDefault(x => x.Name == "职员姓名")?.Id ?? "职员姓名"; |
|
|
|
var deptCodeId = items.FirstOrDefault(x => x.Name == "部门代码")?.Id ?? "部门代码"; |
|
|
|
var deptId = items.FirstOrDefault(x => x.Name == "部门名称")?.Id ?? "部门名称"; |
|
|
|
var ptcId = items.FirstOrDefault(x => x.Name == "职员类型代码")?.Id ?? "职员类型代码"; |
|
|
|
var ptId = items.FirstOrDefault(x => x.Name == "职员类型")?.Id ?? "职员类型"; |
|
|
|
var sendId = items.FirstOrDefault(x => x.Name == "发放时间")?.Id ?? "发放时间"; |
|
|
|
var sendCountId = items.FirstOrDefault(x => x.Name == "发放次数")?.Id ?? "发放次数"; |
|
|
|
var kchjId = items.FirstOrDefault(x => x.Name == "扣款合计")?.Id ?? "扣款合计"; |
|
|
|
var sfhjId = items.FirstOrDefault(x => x.Name == "实发合计")?.Id ?? "实发合计"; |
|
|
|
var bzId = items.FirstOrDefault(x => x.Name == "备注")?.Id ?? "备注"; |
|
|
|
var shrId = items.FirstOrDefault(x => x.Name == "审核人")?.Id ?? "审核人"; |
|
|
|
|
|
|
|
var itemId = items.Select(x => x.Id).ToArray(); |
|
|
|
|
|
|
@@ -402,13 +402,13 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<Tuple<string, string>> GetAmountsDetail(string userNo, int year, int month, int show) |
|
|
|
public IEnumerable<Tuple<string, string, int>> GetAmountsDetail(string userNo, int year, int month, int show) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
var items = this.BaseRepository("CollegeMIS").FindList<Gz_ItemsEntity>(x => x.IsShow == (show==1)).ToList(); |
|
|
|
var items = this.BaseRepository("CollegeMIS").FindList<Gz_ItemsEntity>(x => x.IsShow == (show == 1)).OrderBy(x => x.ShowOrder).ToList(); |
|
|
|
var itemId = items.Select(x => x.Id).ToArray(); |
|
|
|
var query = this.BaseRepository("CollegeMIS").FindList<Gz_AmountsEntity>(x => itemId.Contains(x.ItemId) && x.Year == year && x.Month == month && x.UserNo == userNo).Join(items, a => a.ItemId, b => b.Id, (a, b) => new Tuple<string, string>(b.Name, a.OriVal)); |
|
|
|
var query = this.BaseRepository("CollegeMIS").FindList<Gz_AmountsEntity>(x => itemId.Contains(x.ItemId) && x.Year == year && x.Month == month && x.UserNo == userNo).Join(items, a => a.ItemId, b => b.Id, (a, b) => new Tuple<string, string, int>(b.Name, a.OriVal, b.ShowOrder ?? 0)).OrderBy(x => x.Item3); |
|
|
|
return query; |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
@@ -453,17 +453,17 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
var items = this.BaseRepository("CollegeMIS").FindList<Gz_ItemsEntity>(x => x.IsShow == true).ToList(); |
|
|
|
if (items.Any()) |
|
|
|
{ |
|
|
|
var xmId = items.FirstOrDefault(x => x.Name == "职员姓名").Id; |
|
|
|
var deptCodeId = items.FirstOrDefault(x => x.Name == "部门代码").Id; |
|
|
|
var deptId = items.FirstOrDefault(x => x.Name == "部门名称").Id; |
|
|
|
var ptcId = items.FirstOrDefault(x => x.Name == "职员类型代码").Id; |
|
|
|
var ptId = items.FirstOrDefault(x => x.Name == "职员类型").Id; |
|
|
|
var sendId = items.FirstOrDefault(x => x.Name == "发放时间").Id; |
|
|
|
var sendCountId = items.FirstOrDefault(x => x.Name == "发放次数").Id; |
|
|
|
var kchjId = items.FirstOrDefault(x => x.Name == "扣款合计").Id; |
|
|
|
var sfhjId = items.FirstOrDefault(x => x.Name == "实发合计").Id; |
|
|
|
var bzId = items.FirstOrDefault(x => x.Name == "备注").Id; |
|
|
|
var shrId = items.FirstOrDefault(x => x.Name == "审核人").Id; |
|
|
|
var xmId = items.FirstOrDefault(x => x.Name == "职员姓名")?.Id ?? "职员姓名"; |
|
|
|
var deptCodeId = items.FirstOrDefault(x => x.Name == "部门代码")?.Id ?? "部门代码"; |
|
|
|
var deptId = items.FirstOrDefault(x => x.Name == "部门名称")?.Id ?? "部门名称"; |
|
|
|
var ptcId = items.FirstOrDefault(x => x.Name == "职员类型代码")?.Id ?? "职员类型代码"; |
|
|
|
var ptId = items.FirstOrDefault(x => x.Name == "职员类型")?.Id ?? "职员类型"; |
|
|
|
var sendId = items.FirstOrDefault(x => x.Name == "发放时间")?.Id ?? "发放时间"; |
|
|
|
var sendCountId = items.FirstOrDefault(x => x.Name == "发放次数")?.Id ?? "发放次数"; |
|
|
|
var kchjId = items.FirstOrDefault(x => x.Name == "扣款合计")?.Id ?? "扣款合计"; |
|
|
|
var sfhjId = items.FirstOrDefault(x => x.Name == "实发合计")?.Id ?? "实发合计"; |
|
|
|
var bzId = items.FirstOrDefault(x => x.Name == "备注")?.Id ?? "备注"; |
|
|
|
var shrId = items.FirstOrDefault(x => x.Name == "审核人")?.Id ?? "审核人"; |
|
|
|
|
|
|
|
var itemId = items.Select(x => x.Id).ToArray(); |
|
|
|
|
|
|
|