report template
This commit is contained in:
parent
229c83a565
commit
f9656fedcb
1 changed files with 44 additions and 0 deletions
|
|
@ -1280,5 +1280,49 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
await _context.SaveChangesAsync();
|
||||
return Success(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// report1
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <response code="200"></response>
|
||||
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet("report1")]
|
||||
public async Task<ActionResult<ResponseObject>> report1(string? nodeId = null, int? node = 0, DateOnly? startDate = null, DateOnly? startEnd = null)
|
||||
{
|
||||
var data = new
|
||||
{
|
||||
template = "retriement01",
|
||||
reportName = "xlsx-report",
|
||||
data = ""
|
||||
};
|
||||
|
||||
return Success(data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// report2
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <response code="200"></response>
|
||||
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet("report2")]
|
||||
public async Task<ActionResult<ResponseObject>> report2(string? nodeId = null, int? node = 0, DateOnly? startDate = null, DateOnly? startEnd = null)
|
||||
{
|
||||
|
||||
var data = new
|
||||
{
|
||||
template = "retriement02",
|
||||
reportName = "xlsx-report",
|
||||
data = ""
|
||||
|
||||
};
|
||||
|
||||
return Success(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue