BMA EHR API Document
Loading...
Searching...
No Matches
BMA.EHR.Leave.Service.Controllers.LeaveController Class Reference
Inheritance diagram for BMA.EHR.Leave.Service.Controllers.LeaveController:
Collaboration diagram for BMA.EHR.Leave.Service.Controllers.LeaveController:

Public Member Functions

 LeaveController (DutyTimeRepository dutyTimeRepository, LeaveDbContext context, IHttpContextAccessor httpContextAccessor, IWebHostEnvironment hostingEnvironment, IConfiguration configuration, UserProfileRepository userProfileRepository, UserTimeStampRepository userTimeStampRepository, MinIOService minIOService)
 
async Task< ActionResult< ResponseObject > > GetAllAsync ()
 LV1_004 - ข้อมูลทั้งหมดของรอบการปฏิบัติงาน (ADMIN)
 
async Task< ActionResult< ResponseObject > > GetByIdAsync (Guid id)
 ข้อมูลของรอบการปฏิบัติงาน (ADMIN)
 
async Task< ActionResult< ResponseObject > > PostAsync ([FromBody] CreateDutyTimeDto data)
 LV1_001 - สร้างรอบการปฏิบัติงาน (ADMIN)
 
async Task< ActionResult< ResponseObject > > PutAsync (Guid id, [FromBody] UpdateDutyTimeDto data)
 LV1_002 - แก้ไขรอบการปฏิบัติงาน (ADMIN)
 
async Task< ActionResult< ResponseObject > > DeleteAsync (Guid id)
 LV1_003 - ลบรอบการปฏิบัติงาน (ADMIN)
 
async Task< ActionResult< ResponseObject > > GetAllActiveAsync ()
 LV1_012 - ข้อมูลทั้งหมดของรอบการปฏิบัติงานที่ active (ADMIN)
 
async Task< ActionResult< ResponseObject > > CheckTimeAsync ()
 LV1_006 - เช็คเวลาต้องลงเวลาเข้าหรือออกงาน (USER)
 
async Task< ActionResult< ResponseObject > > CheckInAsync ([FromForm] CheckTimeDto data)
 LV1_005 - ลงเวลาเข้า-ออกงาน (USER)
 
async Task< ActionResult< ResponseObject > > CheckInHistoryAsync (int year, int page=1, int pageSize=10, string keyword="")
 LV1_007 - ประวัติการลงเวลา (USER)
 
async Task< ActionResult< ResponseObject > > LogRecordAsync ([Required] DateTime startDate, [Required] DateTime endDate, int page=1, int pageSize=10, string keyword="")
 LV1_010 - รายการลงเวลาปฏิบัติงาน (ADMIN)
 
async Task< ActionResult< ResponseObject > > GetTimeRecordAsync ([Required] Guid id)
 LV1_011 - รายละเอียดการลงเวลาปฎิบัติงานรายบุคคล
 

Additional Inherited Members

- Protected Member Functions inherited from BMA.EHR.Domain.Common.BaseController
virtual ActionResult< ResponseObjectSuccess (string message, object? result=null)
 
virtual ActionResult< ResponseObjectSuccess (object? result=null)
 
virtual ActionResult< ResponseObjectError (string message, string result, int statusCode=StatusCodes.Status500InternalServerError)
 
virtual ActionResult< ResponseObjectError (string message, int statusCode=StatusCodes.Status500InternalServerError)
 
virtual ActionResult< ResponseObjectError (Exception exception, string message, int statusCode=StatusCodes.Status500InternalServerError)
 
virtual ActionResult< ResponseObjectError (Exception exception, int statusCode=StatusCodes.Status500InternalServerError)
 

Constructor & Destructor Documentation

◆ LeaveController()

BMA.EHR.Leave.Service.Controllers.LeaveController.LeaveController ( DutyTimeRepository  dutyTimeRepository,
LeaveDbContext  context,
IHttpContextAccessor  httpContextAccessor,
IWebHostEnvironment  hostingEnvironment,
IConfiguration  configuration,
UserProfileRepository  userProfileRepository,
UserTimeStampRepository  userTimeStampRepository,
MinIOService  minIOService 
)
inline

Member Function Documentation

◆ CheckInAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.CheckInAsync ( [FromForm] CheckTimeDto  data)
inline

LV1_005 - ลงเวลาเข้า-ออกงาน (USER)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ CheckInHistoryAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.CheckInHistoryAsync ( int  year,
int  page = 1,
int  pageSize = 10,
string  keyword = "" 
)
inline

LV1_007 - ประวัติการลงเวลา (USER)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ CheckTimeAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.CheckTimeAsync ( )
inline

LV1_006 - เช็คเวลาต้องลงเวลาเข้าหรือออกงาน (USER)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ DeleteAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.DeleteAsync ( Guid  id)
inline

LV1_003 - ลบรอบการปฏิบัติงาน (ADMIN)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ GetAllActiveAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.GetAllActiveAsync ( )
inline

LV1_012 - ข้อมูลทั้งหมดของรอบการปฏิบัติงานที่ active (ADMIN)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ GetAllAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.GetAllAsync ( )
inline

LV1_004 - ข้อมูลทั้งหมดของรอบการปฏิบัติงาน (ADMIN)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ GetByIdAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.GetByIdAsync ( Guid  id)
inline

ข้อมูลของรอบการปฏิบัติงาน (ADMIN)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ GetTimeRecordAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.GetTimeRecordAsync ( [Required] Guid  id)
inline

LV1_011 - รายละเอียดการลงเวลาปฎิบัติงานรายบุคคล

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ LogRecordAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.LogRecordAsync ( [Required] DateTime  startDate,
[Required] DateTime  endDate,
int  page = 1,
int  pageSize = 10,
string  keyword = "" 
)
inline

LV1_010 - รายการลงเวลาปฏิบัติงาน (ADMIN)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ PostAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.PostAsync ( [FromBody] CreateDutyTimeDto  data)
inline

LV1_001 - สร้างรอบการปฏิบัติงาน (ADMIN)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

◆ PutAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.PutAsync ( Guid  id,
[FromBody] UpdateDutyTimeDto  data 
)
inline

LV1_002 - แก้ไขรอบการปฏิบัติงาน (ADMIN)

Returns

<response code="200">เมื่อทำรายการสำเร็จ</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

Here is the call graph for this function:

The documentation for this class was generated from the following file: