| | |
| | | private readonly IHrDeptService _hrDeptService; |
| | | private readonly ILogger<AdmAttendanceController> _logger; |
| | | private readonly IAdmAttendanceService _admAttendanceService; |
| | | private readonly IAdmAttendanceDtlService _admAttendanceDtlService; |
| | | |
| | | |
| | | |
| | | public AdmAttendanceController(ILogger<AdmAttendanceController> logger |
| | | , IAdmAttendanceService admAttendanceService |
| | | , IHrDeptService hrDeptService |
| | | , IAdmAttendanceDtlService admAttendanceDtlService |
| | | ) |
| | | { |
| | | _logger = logger; |
| | | _hrDeptService = hrDeptService; |
| | | _admAttendanceService = admAttendanceService; |
| | | |
| | | _admAttendanceDtlService = admAttendanceDtlService; |
| | | |
| | | |
| | | } |
| | | public IActionResult Index() |
| | | { |
| | |
| | | |
| | | return new JsonResult(_admAttendanceService.SearchByPaging(search)); |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult IndexDtl(string AttendanceId) |
| | | { |
| | | List<ActionEntity> actionlist = new List<ActionEntity>(); |
| | | ActionEntity actionEntity = new ActionEntity(); |
| | | actionEntity.OpenType = 0; |
| | | actionEntity.ActionUrl = ""; |
| | | actionEntity.ActionFun = "Search"; |
| | | actionEntity.PageIco = "fa fa-search"; |
| | | actionEntity.ActionName = "查询"; |
| | | actionlist.Add(actionEntity); |
| | | |
| | | |
| | | ViewBag.AttendanceId = AttendanceId; |
| | | |
| | | |
| | | ViewBag.editBtn = false; |
| | | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | //ViewBag.dept = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList(); |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 列表内容 |
| | | /// </summary> |
| | | /// <param name="search"></param> |
| | | /// <returns></returns> |
| | | public IActionResult GetListDtl(AdmAttendanceDtlDTOSearch search) |
| | | { |
| | | |
| | | |
| | | return new JsonResult(_admAttendanceDtlService.SearchByPaging(search)); |
| | | } |
| | | |
| | | } |
| | | } |