人员字典标签功能

parent 612643ed
......@@ -544,9 +544,10 @@ private T GetCellValue<T>(IRow row, List<string> columns, string key)
public HandsonTable GetReportPersonTag(int hospitalId, int allotId)
{
var hos = _hospitalRepository.GetEntity(t => t.ID == hospitalId);
var columnHeaders = _computeService.CustomColumnHeaders(hos, "/result/all_employee");
var type = (int)SheetType.Unidentifiable;
var cols = _computeService.CustomColumnHeaders(hos, "/result/all_employee").Select(t => t.Alias).ToArray();
var permissions = _computeService.CustomColumnHeaders(hos,"/result/all_employee").Select(t => new collect_permission { HeadName = t.Alias, Visible = 1 }).ToList();
var cols = columnHeaders.Where(w => w.States == 1).Select(t => t.Alias).ToArray();
var permissions = columnHeaders.Where(w => w.States == 1).Select(t => new collect_permission { HeadName = t.Alias, Visible = 1 }).ToList();
var result = new HandsonTable(type, cols, permissions);
var pdata = perforPeremployeeRepository.GetEntities(t => t.HospitalId == hospitalId && t.AllotId == allotId);
......
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