排序

parent 2294683e
......@@ -30,11 +30,14 @@ public class im_employee
/// sheet页id
/// </summary>
public Nullable<int> SheetID { get; set; }
/// <summary>
///
/// </summary>
public Nullable<int> RowNumber { get; set; }
/// <summary>
/// 科室类别(例如 医技科室 临床科室 其他科室)
/// </summary>
public string AccountType { get; set; }
......
......@@ -48,7 +48,7 @@ public im_employee GetEmployee(EmployeeRequest request)
public List<im_employee> GetEmployeeList(int allotId)
{
var employee = perforImemployeeRepository.GetEntities(t => t.AllotID == allotId);
return employee?.OrderBy(t => t.AccountType).ThenBy(t => t.AccountingUnit).ThenBy(t => t.DoctorName).ToList();
return employee?.OrderBy(t => t.RowNumber).ToList();
}
/// <summary>
......
......@@ -405,7 +405,7 @@ private void AccountBaiscExport(int sheetID, SheetExportResponse response)
private void EmployeeExport(int sheetID, SheetExportResponse response)
{
var employeeList = _perforImEmployeeRepository.GetEntities(t => t.SheetID == sheetID);
var employeeList = _perforImEmployeeRepository.GetEntities(t => t.SheetID == sheetID).OrderBy(t => t.RowNumber);
if (employeeList != null && employeeList.Count() > 0)
{
......
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