123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Cksoft.Data;
- using Cksoft.Data.Repository;
- using Cksoft.Unity;
- using DllEapDal.OFILM;
- using DllEapEntity.OFILM;
- using Microsoft.AspNetCore.Authorization;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DllEapBll.OFILM
- {
- [Route("eap/api/[controller]/[action]")]
- [ApiController]
- [Authorize]
- public class PersonnelAttendanceController : ControllerBase
- {
- private IDatabase db;
- [HttpGet]
- public EapResponse Get(string name, string rate, DateTime? start, DateTime? end, string order = "desc", int pageIndex = 1, int pageSize = 20)
- {
- db = DbFactory.Base("MESPRD");
- var dal = new PersonnelAttendanceDal(db);
- int total = 0;
- var data = dal.Get(name, rate,order, start, end,pageIndex,pageSize,ref total);
- return new EapResponse()
- {
- Code = 1,
- Total=total,
- Data = data
- };
-
- }
- /* [HttpPost]
- public EapResponse Add([FromBody] Attendance Attend)
- {
- db = DbFactory.Base("MESPRD");
- var dal = new PersonnelAttendanceDal(db);
- string msg = dal.Add(Attend);
- }*/
- }
- }
|