แก้ไขการเรียงลำดับ บช2-3 เรียงตามเลขที่ใหม่
This commit is contained in:
parent
2940777197
commit
bd1ec56e82
2 changed files with 290 additions and 289 deletions
|
|
@ -162,7 +162,8 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
{
|
||||
try
|
||||
{
|
||||
var data = await _organizationReportService.GetReport2Query(id);
|
||||
var data = (await _organizationReportService.GetReport2Query(id)).OrderBy(x => x.OcOrder).ThenBy(x => x.PositionNumberIntNew).ToList();
|
||||
|
||||
var result_data = new List<Account2ResultItem>();
|
||||
foreach (var d in data)
|
||||
{
|
||||
|
|
@ -245,7 +246,7 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
}
|
||||
}
|
||||
|
||||
// <summary>
|
||||
/// <summary>
|
||||
/// รายงานบัญชี 3
|
||||
/// </summary>
|
||||
/// <param name="id">รหัสสำนัก</param>
|
||||
|
|
@ -267,7 +268,7 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
{
|
||||
try
|
||||
{
|
||||
var data = await _organizationReportService.GetReport2Query(id);
|
||||
var data = (await _organizationReportService.GetReport2Query(id)).OrderBy(x => x.OcOrder).ThenBy(x => x.PositionNumberIntNew).ToList();
|
||||
var result_data = new List<Account2ResultItem>();
|
||||
foreach (var d in data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -374,9 +374,9 @@ namespace BMA.EHR.Report.Service.Services
|
|||
PositionTypeNew = ptNew == null ? null : ptNew.Name,
|
||||
|
||||
})
|
||||
.ToList()
|
||||
.OrderBy(x => x.OcOrder).ThenBy(x => GetPosnoIntFromPosNo(x.PositionNumberOld))
|
||||
.ToList();
|
||||
//.OrderBy(x => x.OcOrder).ThenBy(x => GetPosnoIntFromPosNo(x.PositionNumberOld))
|
||||
//.ToList();
|
||||
|
||||
var results = new List<Account2ResultItem>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue