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:
BMA.EHR.Domain.Common.BaseController

Public Member Functions

 LeaveController (DutyTimeRepository dutyTimeRepository, LeaveDbContext context, IHttpContextAccessor httpContextAccessor, IWebHostEnvironment hostingEnvironment, IConfiguration configuration, UserProfileRepository userProfileRepository, UserTimeStampRepository userTimeStampRepository, MinIOService minIOService, ProcessUserTimeStampRepository processUserTimeStampRepository, UserDutyTimeRepository userDutyTimeRepository, AdditionalCheckRequestRepository additionalCheckRequestRepository)
 
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 - รายละเอียดการลงเวลาปฎิบัติงานรายบุคคล Tabรายากรลงเวลาที่ประมวลผลแล้ว (ADMIN)
 
async Task< ActionResult< ResponseObject > > GetTimeRecordAsync ([Required] DateTime startDate, [Required] DateTime endDate, int page=1, int pageSize=10, string status="NORMAL", string keyword="")
 LV1_009 - รายการลงเวลาปฏิบัติงานที่ประมวลผลแล้ว (ADMIN)
 
async Task< ActionResult< ResponseObject > > SearchProfileAsync ([FromBody] SearchProfileDto req)
 LV1_006 - เช็คเวลาต้องลงเวลาเข้าหรือออกงาน (USER)
 
async Task< ActionResult< ResponseObject > > CreateChangeRoundAsync ([FromBody] CreateChangeRoundDto req)
 LV1_014 - เปลี่ยนรอบการลงเวลา (ADMIN)
 
async Task< ActionResult< ResponseObject > > GetChangeRoundHistoryByProfileIdAsync (Guid id, int page=1, int pageSize=10, string keyword="")
 LV1_015 - ประวัติการเปลี่ยนรอบการลงเวลา (ADMIN)
 
async Task< ActionResult< ResponseObject > > CreateAdditionalCheckRequestAsync ([FromBody] CreateAdditionalCheckRequestDto req)
 LV1_017 - เพิ่มลงเวลากรณีพิเศษ (USER)
 
async Task< ActionResult< ResponseObject > > GetAdditionalCheckRequestAsync ([Required] int year, [Required] int month, [Required] int page=1, [Required] int pageSize=10, string keyword="")
 LV1_018 - รายการลงเวลากรณีพิเศษ (ADMIN)
 
async Task< ActionResult< ResponseObject > > ApproveRequestAsync (Guid id, [FromBody] ApproveRequestDto req)
 LV1_019 - อนุมัติลงเวลากรณีพิเศษ (ADMIN)
 
async Task< ActionResult< ResponseObject > > RejectRequestAsync (Guid id, [FromBody] RejectRequestDto req)
 LV1_020 - ไม่อนุมัติลงเวลากรณีพิเศษ (ADMIN)
 
async Task< ActionResult< ResponseObject > > GetLogRecordAsync ([Required] Guid id)
 LV1_021 - รายละเอียดการลงเวลาปฎิบัติงานรายบุคคล Tabรายการลงเวลา (ADMIN)
 
async Task< ActionResult< ResponseObject > > GetAdditionalCheckRequestHistoryAsync ([Required] int year, [Required] int month, [Required] int page=1, [Required] int pageSize=10, string keyword="")
 LV1_022 - ประวัติการยื่นขอลงเวลาพิเศษ (USER)
 

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,
ProcessUserTimeStampRepository  processUserTimeStampRepository,
UserDutyTimeRepository  userDutyTimeRepository,
AdditionalCheckRequestRepository  additionalCheckRequestRepository 
)
inline

Member Function Documentation

◆ ApproveRequestAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.ApproveRequestAsync ( Guid  id,
[FromBody] ApproveRequestDto  req 
)
inline

LV1_019 - อนุมัติลงเวลากรณีพิเศษ (ADMIN)

Returns

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

◆ 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>

◆ 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>

◆ 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>

◆ CreateAdditionalCheckRequestAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.CreateAdditionalCheckRequestAsync ( [FromBody] CreateAdditionalCheckRequestDto  req)
inline

LV1_017 - เพิ่มลงเวลากรณีพิเศษ (USER)

Returns

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

◆ CreateChangeRoundAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.CreateChangeRoundAsync ( [FromBody] CreateChangeRoundDto  req)
inline

LV1_014 - เปลี่ยนรอบการลงเวลา (ADMIN)

Returns

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

◆ 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>

◆ GetAdditionalCheckRequestAsync()

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

LV1_018 - รายการลงเวลากรณีพิเศษ (ADMIN)

Returns

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

◆ GetAdditionalCheckRequestHistoryAsync()

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

LV1_022 - ประวัติการยื่นขอลงเวลาพิเศษ (USER)

Returns

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

◆ 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>

◆ 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>

◆ 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>

◆ GetChangeRoundHistoryByProfileIdAsync()

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

LV1_015 - ประวัติการเปลี่ยนรอบการลงเวลา (ADMIN)

Returns

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

◆ GetLogRecordAsync()

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

LV1_021 - รายละเอียดการลงเวลาปฎิบัติงานรายบุคคล Tabรายการลงเวลา (ADMIN)

Returns

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

◆ GetTimeRecordAsync() [1/2]

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

LV1_009 - รายการลงเวลาปฏิบัติงานที่ประมวลผลแล้ว (ADMIN)

Returns

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

◆ GetTimeRecordAsync() [2/2]

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

LV1_011 - รายละเอียดการลงเวลาปฎิบัติงานรายบุคคล Tabรายากรลงเวลาที่ประมวลผลแล้ว (ADMIN)

Returns

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

◆ 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>

◆ 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>

◆ 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>

◆ RejectRequestAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.RejectRequestAsync ( Guid  id,
[FromBody] RejectRequestDto  req 
)
inline

LV1_020 - ไม่อนุมัติลงเวลากรณีพิเศษ (ADMIN)

Returns

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

◆ SearchProfileAsync()

async Task< ActionResult< ResponseObject > > BMA.EHR.Leave.Service.Controllers.LeaveController.SearchProfileAsync ( [FromBody] SearchProfileDto  req)
inline

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

Returns

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


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