Commit 3f84d4b8 by 李承祥

返回绩效发放列表时,修改排序方式

parent 4a1fb586
...@@ -58,7 +58,8 @@ public List<res_compute> GetCompute(int allotId, int type) ...@@ -58,7 +58,8 @@ public List<res_compute> GetCompute(int allotId, int type)
} }
else if (type == 99) else if (type == 99)
{ {
list = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId); list = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId)
.OrderByDescending(t => t.FitPeople).ThenBy(t => t.AccountingUnit).ToList();
} }
else else
{ {
......
...@@ -249,7 +249,7 @@ public PerExcel Import(string path) ...@@ -249,7 +249,7 @@ public PerExcel Import(string path)
public void Copy(per_allot allot) public void Copy(per_allot allot)
{ {
var list = _perforPerAllotRepository.GetEntities(t => t.HospitalId == allot.HospitalId) var list = _perforPerAllotRepository.GetEntities(t => t.HospitalId == allot.HospitalId)
.OrderByDescending(t => t.Year).ThenBy(t => t.Month).ToList(); .OrderBy(t => t.Year).ThenBy(t => t.Month).ToList();
int allotId = 0; int allotId = 0;
for (int i = 0; i < list.Count; i++) for (int i = 0; i < list.Count; i++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment