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

Public Member Functions

 InsigniaManageController (ApplicationDBContext context, MinIOService documentService, InsigniaPeriodsRepository repository, NotificationRepository repositoryNoti, IHttpContextAccessor httpContextAccessor)
 
async Task< ActionResult< ResponseObject > > GetList (int year, Guid insigniaTypeId)
 list จัดสรรเครื่องราชฯ
 
async Task< ActionResult< ResponseObject > > GetById (Guid insigniaManageId)
 get รายละเอียดจัดสรรเครื่องราชฯ
 
async Task< ActionResult< ResponseObject > > Post ([FromBody] InsigniaManageRequest req)
 สร้างจัดสรรเครื่องราชฯ
 
async Task< ActionResult< ResponseObject > > Delete (Guid insigniaManageId)
 ลบจัดสรรเครื่องราช
 
async Task< ActionResult< ResponseObject > > Put ([FromBody] InsigniaManageRequest req, Guid insigniaManageId)
 แก้ไขจัดสรรเครื่องราชฯ
 
async Task< ActionResult< ResponseObject > > GetListOrganization (Guid insigniaManageId)
 list หน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์
 
async Task< ActionResult< ResponseObject > > PostOrganization ([FromBody] InsigniaManageOrganizationRequest req)
 สร้างหน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์
 
async Task< ActionResult< ResponseObject > > DeleteOrganization (Guid insigniaManageOrgId)
 ลบหน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์
 
async Task< ActionResult< ResponseObject > > PutOrganization ([FromBody] InsigniaManageOrganizationUpdateRequest req, Guid insigniaManageOrgId)
 แก้ไขหน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์
 
async Task< ActionResult< ResponseObject > > GetListDashboardOrganization (Guid insigniaManageId)
 list dashboard หน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์
 
async Task< ActionResult< ResponseObject > > PostBorrowInsignia ([FromBody] InsigniaBorrowRequest req)
 ยืมเครื่องราชฯ
 
async Task< ActionResult< ResponseObject > > PutReturnInsignia ([FromBody] InsigniaReturnRequest req, Guid insigniaManageProfileId)
 คืนเครื่องราชฯ
 
async Task< ActionResult< ResponseObject > > ListBorrowReturnInsignia (int year, Guid insigniaTypeId)
 list รายการยืม/คืนเครื่องราชฯ
 
async Task< ActionResult< ResponseObject > > GetBorrowReturnInsignia (Guid insigniaManageProfileId)
 get รายการยืม/คืนเครื่องราชฯ
 

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

◆ InsigniaManageController()

BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.InsigniaManageController ( ApplicationDBContext  context,
MinIOService  documentService,
InsigniaPeriodsRepository  repository,
NotificationRepository  repositoryNoti,
IHttpContextAccessor  httpContextAccessor 
)
inline

Member Function Documentation

◆ Delete()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.Delete ( Guid  insigniaManageId)
inline

ลบจัดสรรเครื่องราช

Parameters
insigniaManageIdId จัดสรรเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ DeleteOrganization()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.DeleteOrganization ( Guid  insigniaManageOrgId)
inline

ลบหน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์

Parameters
insigniaManageOrgIdId หน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์
Returns

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

Here is the call graph for this function:

◆ GetBorrowReturnInsignia()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.GetBorrowReturnInsignia ( Guid  insigniaManageProfileId)
inline

get รายการยืม/คืนเครื่องราชฯ

Parameters
insigniaManageProfileIdId ประเภทเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ GetById()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.GetById ( Guid  insigniaManageId)
inline

get รายละเอียดจัดสรรเครื่องราชฯ

Parameters
insigniaManageIdId จัดสรรเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ GetList()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.GetList ( int  year,
Guid  insigniaTypeId 
)
inline

list จัดสรรเครื่องราชฯ

Parameters
yearปีการจัดสรร
insigniaTypeIdId ประเภทเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ GetListDashboardOrganization()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.GetListDashboardOrganization ( Guid  insigniaManageId)
inline

list dashboard หน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์

Parameters
insigniaManageIdId จัดสรรเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ GetListOrganization()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.GetListOrganization ( Guid  insigniaManageId)
inline

list หน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์

Parameters
insigniaManageIdId จัดสรรเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ ListBorrowReturnInsignia()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.ListBorrowReturnInsignia ( int  year,
Guid  insigniaTypeId 
)
inline

list รายการยืม/คืนเครื่องราชฯ

Parameters
yearปียืมขอ
insigniaTypeIdId ประเภทเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ Post()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.Post ( [FromBody] InsigniaManageRequest  req)
inline

สร้างจัดสรรเครื่องราชฯ

Returns

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

Here is the call graph for this function:

◆ PostBorrowInsignia()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.PostBorrowInsignia ( [FromBody] InsigniaBorrowRequest  req)
inline

ยืมเครื่องราชฯ

Returns

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

Here is the call graph for this function:

◆ PostOrganization()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.PostOrganization ( [FromBody] InsigniaManageOrganizationRequest  req)
inline

สร้างหน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์

Returns

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

Here is the call graph for this function:

◆ Put()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.Put ( [FromBody] InsigniaManageRequest  req,
Guid  insigniaManageId 
)
inline

แก้ไขจัดสรรเครื่องราชฯ

Parameters
insigniaManageIdId จัดสรรเครื่องราชฯ
Returns

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

Here is the call graph for this function:

◆ PutOrganization()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.PutOrganization ( [FromBody] InsigniaManageOrganizationUpdateRequest  req,
Guid  insigniaManageOrgId 
)
inline

แก้ไขหน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์

Parameters
insigniaManageOrgIdId หน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์
Returns

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

Here is the call graph for this function:

◆ PutReturnInsignia()

async Task< ActionResult< ResponseObject > > BMA.EHR.Insignia.Service.Controllers.InsigniaManageController.PutReturnInsignia ( [FromBody] InsigniaReturnRequest  req,
Guid  insigniaManageProfileId 
)
inline

คืนเครื่องราชฯ

Parameters
insigniaManageProfileIdId ยืมเครื่องราชฯ
Returns

<response code="200"></response> <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</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: