BMA EHR API Document
Loading...
Searching...
No Matches
BMA.EHR.Placement.Service.Controllers.PlacementRelocationController Class Reference
Inheritance diagram for BMA.EHR.Placement.Service.Controllers.PlacementRelocationController:
BMA.EHR.Domain.Common.BaseController

Public Member Functions

 PlacementRelocationController (PlacementRepository repository, NotificationRepository repositoryNoti, ApplicationDBContext context, MinIOService documentService, IHttpContextAccessor httpContextAccessor)
 
async Task< ActionResult< ResponseObject > > GetListByAdmin ()
 list รายการย้าย
 
async Task< ActionResult< ResponseObject > > GetDetailByUser (Guid id)
 get รายละเอียดย้าย
 
async Task< ActionResult< ResponseObject > > Post ([FromForm] PlacementAddProfileRequest req)
 สร้างย้าย
 
async Task< ActionResult< ResponseObject > > UpdatelocationPlacementRelocation ([FromBody] PersonSelectPositionRelocationRequest req, Guid id)
 เลือกหน่วยงาน
 
async Task< ActionResult< ResponseObject > > Put ([FromBody] PlacementRelocationEditRequest req, Guid id)
 แก้ไขย้าย
 
async Task< ActionResult< ResponseObject > > Delete (Guid id)
 ลบย้าย
 
async Task< ActionResult< ResponseObject > > PostToReport ([FromBody] PlacementProfileRequest req)
 สั่งรายชื่อไปออกคำสั่ง
 
async Task< ActionResult< ResponseObject > > GetRelocationUse ()
 หน่วยงานที่ถูกเลือกไปแล้ว
 

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

◆ PlacementRelocationController()

BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.PlacementRelocationController ( PlacementRepository  repository,
NotificationRepository  repositoryNoti,
ApplicationDBContext  context,
MinIOService  documentService,
IHttpContextAccessor  httpContextAccessor 
)
inline

Member Function Documentation

◆ Delete()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.Delete ( Guid  id)
inline

ลบย้าย

Parameters
idId ย้าย
Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

◆ GetDetailByUser()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.GetDetailByUser ( Guid  id)
inline

get รายละเอียดย้าย

Parameters
idId ย้าย
Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

◆ GetListByAdmin()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.GetListByAdmin ( )
inline

list รายการย้าย

Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

◆ GetRelocationUse()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.GetRelocationUse ( )
inline

หน่วยงานที่ถูกเลือกไปแล้ว

Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

◆ Post()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.Post ( [FromForm] PlacementAddProfileRequest  req)
inline

สร้างย้าย

Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

◆ PostToReport()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.PostToReport ( [FromBody] PlacementProfileRequest  req)
inline

สั่งรายชื่อไปออกคำสั่ง

Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

◆ Put()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.Put ( [FromBody] PlacementRelocationEditRequest  req,
Guid  id 
)
inline

แก้ไขย้าย

Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>

◆ UpdatelocationPlacementRelocation()

async Task< ActionResult< ResponseObject > > BMA.EHR.Placement.Service.Controllers.PlacementRelocationController.UpdatelocationPlacementRelocation ( [FromBody] PersonSelectPositionRelocationRequest  req,
Guid  id 
)
inline

เลือกหน่วยงาน

Parameters
idId ย้าย
Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response> <response code="401">ไม่ได้ Login เข้าระบบ</response> <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>


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