Commit graph

335 commits

Author SHA1 Message Date
Suphonchai Phoonsawat
7e613ab2e6 Merge branch 'develop' into working
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m43s
2026-02-19 17:34:10 +07:00
Suphonchai Phoonsawat
7eade164e9 Update LeaveRequestController to use GetLastLeaveRequestByTypeForUserAsync2 method with CreatedAt for fetching last leave request 2026-02-19 17:33:37 +07:00
harid
256da24caf แก้ไขสิทธิ์ PARENT ให้เห็นข้อมูลทั้งหมดทุกหน่วยงาน #54
All checks were successful
Build & Deploy Discipline Service / build (push) Successful in 1m55s
Build & Deploy Insignia Service / build (push) Successful in 1m48s
Build & Deploy Leave Service / build (push) Successful in 1m49s
Build & Deploy Placement Service / build (push) Successful in 1m46s
Build & Deploy Retirement Service / build (push) Successful in 1m50s
2026-02-19 17:01:44 +07:00
Suphonchai Phoonsawat
65feb994ee Add GetLastLeaveRequestByTypeForUserAsync2 method and update LeaveReportController to use new method for fetching last leave request #2305
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 2m0s
2026-02-19 15:10:44 +07:00
Suphonchai Phoonsawat
d748308419 Enhance LeaveController to implement check-out logic and status validation based on last check-in record 2026-02-19 15:07:04 +07:00
Suphonchai Phoonsawat
b8df2d4024 Add NodaTime package and update LeaveRequestController to use LocalDate for date calculations
#2324
2026-02-19 14:06:59 +07:00
Suphonchai Phoonsawat
ddaa339e9f Refactor LeaveRequestController and LeaveReportController to use GetSumApproveLeaveTotalByTypeAndRangeForUser2 method and update fiscal year end date calculation #2305
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m41s
2026-02-18 20:24:30 +07:00
Suphonchai Phoonsawat
d70ed254c0 Enhance LeaveRequestController to restore profile checks and implement officer notification logic #2164
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m34s
2026-02-18 16:56:48 +07:00
Suphonchai Phoonsawat
de91fd0fa2 Refactor LeaveBeginningController to restore profile checks and reset leave days to zero 2026-02-18 16:47:14 +07:00
Suphonchai Phoonsawat
7d3ec6c74e Refactor ScheduleUpdateLeaveBeginningAsync to use ScheduleEditLeaveBeginningDto and remove unused profile checks 2026-02-18 16:34:35 +07:00
Suphonchai Phoonsawat
a8271c8d79 Update leave summary calculation to use BeginningLeaveDays instead of LeaveDaysUsed #2305
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m12s
2026-02-12 20:09:05 +07:00
Suphonchai Phoonsawat
14fd9d5262 Refactor leave limit logic to use IsProbation property instead of govAge check
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m17s
2026-02-11 12:14:44 +07:00
Suphonchai Phoonsawat
c81220a049 Remove unnecessary whitespace and comment out unused code in LeaveReportController
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m18s
2026-02-11 11:56:04 +07:00
Suphonchai Phoonsawat
e5e7c77880 Add GetProfileByProfileIdNoAuthAsync method and update related controller logic 2026-02-11 11:47:49 +07:00
Suphonchai Phoonsawat
a2ac05ed61 Add BeginningLeaveDays and BeginningLeaveCount to LeaveBeginning DTOs and update controller logic #2304 #2305 2026-02-11 11:11:19 +07:00
Suphonchai Phoonsawat
2410574d42 Fix typo in IsProbatin property name and update related condition check in LeaveRequestController #2306 2026-02-11 10:47:01 +07:00
Suphonchai Phoonsawat
c693364fe1 Refactor LeaveReportController to use LeaveCount instead of CountLeaveDay for leave types
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m14s
2026-02-05 12:03:48 +07:00
Suphonchai Phoonsawat
4f18a97d0b Add GetOCStaffAsync method to UserProfileRepository and create GetOcStaff response models 2026-02-05 11:57:19 +07:00
Suphonchai Phoonsawat
639d41649c Add LeaveCount column to LeaveBeginnings table
- Introduced a new column 'LeaveCount' of type int to the LeaveBeginnings table.
- Set default value to 0 and added a comment for clarity in Thai: "จำนวนครั้งที่ลาสะสม".
2026-02-05 10:54:44 +07:00
Suphonchai Phoonsawat
358fd47b99 Add IsProbatin property to GetProfileByKeycloakIdDto and update leave request logic for probationary users #2266 2026-02-05 10:39:57 +07:00
Suphonchai Phoonsawat
09a7208074 Update govAge calculation to use DateStart instead of DateAppoint in Leave repositories and controller
Some checks failed
Build & Deploy Leave Service / build (push) Failing after 1h5m56s
2026-02-04 10:49:13 +07:00
Suphonchai Phoonsawat
7775ea85c3 Refactor error handling in LeaveController to return appropriate error responses instead of throwing exceptions
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m18s
2026-02-04 10:32:44 +07:00
Suphonchai Phoonsawat
19000b2e42 Refactor check-out status logic to improve clarity and handle edge cases for same-day and next-day check-outs 2026-02-04 10:18:44 +07:00
Suphonchai Phoonsawat
1a0e712a1c Update leave limit logic and add GovAge property to user leave profile DTO
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m10s
2026-02-03 21:03:40 +07:00
Suphonchai Phoonsawat
c25bef0672 Update leave calculations to use DateAppoint and adjust leave limits based on government age #2266
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m35s
2026-02-03 20:46:20 +07:00
Suphonchai Phoonsawat
659e06a08d Add cancellation token support and extend timeout to 30 minutes for external API calls
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m19s
2026-01-30 13:35:58 +07:00
Suphonchai Phoonsawat
5c05f1123a Increase HttpClient timeout for long-running operations
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m21s
2026-01-30 09:49:54 +07:00
harid
06b53ddeaa Fix Bug Leave Report Issue #2233
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m10s
2026-01-29 15:09:14 +07:00
harid
e80f89117c Change Call Org 2026-01-29 13:22:41 +07:00
Suphonchai Phoonsawat
4c189fdc4a Fix null reference for CheckIn and CheckOut location names in LeaveController
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m21s
2026-01-29 10:07:29 +07:00
harid
90eb94cee3 กรองค้นหาข้อมูลรายการลงเวลากรณีพิเศษ #2252
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m24s
2026-01-28 16:24:59 +07:00
harid
02487d91ff เปลี่ยนเส้น api สำหรับเก็บ logs
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m12s
Build & Deploy Discipline Service / build (push) Successful in 1m27s
Build & Deploy Insignia Service / build (push) Successful in 1m25s
Build & Deploy Placement Service / build (push) Successful in 1m17s
Build & Deploy Retirement Service / build (push) Successful in 1m23s
2026-01-28 13:27:25 +07:00
Suphonchai Phoonsawat
839c357842 Update LeaveController to use KeycloakUserId for profile retrieval #2253
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m38s
2026-01-28 11:47:10 +07:00
Suphonchai Phoonsawat
cbc2a1a88d Comment out profile retrieval in LeaveRequestController to prevent unnecessary calls #2250
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m29s
2026-01-27 17:05:07 +07:00
Suphonchai Phoonsawat
e8ffb82ead Comment out profile retrieval and error handling in LeaveRequestController #2250
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m16s
2026-01-27 17:00:22 +07:00
Suphonchai Phoonsawat
54c8152752 Refactor LeaveRequestController to improve filtering logic and update appsettings.json to modify connection strings
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m12s
2026-01-27 16:55:23 +07:00
Suphonchai Phoonsawat
4f28b4e9e0 Add LeaveTotal property to LeaveRequest DTOs for better leave tracking #2245
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m13s
2026-01-26 22:58:37 +07:00
Suphonchai Phoonsawat
982dfc33d1 Refactor LeaveReportController and LeaveRequestController to calculate leave days using repository methods #2246 #2247
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 11s
2026-01-26 22:35:24 +07:00
harid
2e6a81ff31 Task #2233 รายงานใบลา แสดงสำนักงาน ก.ก.
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m23s
2026-01-26 18:21:33 +07:00
Suphonchai Phoonsawat
22a7a8c17c Update LeaveController to refine check-in/check-out logic based on meeting location #2223
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m17s
2026-01-26 12:04:58 +07:00
Suphonchai Phoonsawat
c1d689ebfa Update LeaveController to adjust check-in/check-out times based on location for meetings
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m14s
2026-01-23 21:25:34 +07:00
Suphonchai Phoonsawat
ecf5ada7ed Update LeaveController to conditionally set check-out time based on existing value and duty schedule
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m14s
2026-01-23 20:55:21 +07:00
Suphonchai Phoonsawat
9bd6017ded Update LeaveController to adjust check-in/check-out times based on user duty schedule #2223
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m16s
2026-01-23 20:35:54 +07:00
Suphonchai Phoonsawat
e1c7688913 Update LeaveController to set end times based on duty schedule for check-in/check-out #2228 2026-01-23 20:27:22 +07:00
Suphonchai Phoonsawat
4e4eec3d84 Add job status check for pending or processing check-in/check-out requests
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m19s
2026-01-23 09:32:17 +07:00
Suphonchai Phoonsawat
2f366374fa Refactor user profile retrieval to use new method GetProfileByKeycloakIdNewAsync
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m12s
2026-01-22 12:43:52 +07:00
Suphonchai Phoonsawat
a463df5716 Add migration to create CheckInJobStatuses table for RMQ task control
- Introduced a new migration that creates the CheckInJobStatuses table.
- The table includes fields for tracking job statuses, timestamps, user information, and error messages.
- Supports various statuses such as PENDING, PROCESSING, COMPLETED, and FAILED.
2026-01-20 10:49:13 +07:00
harid
93a83b34e6 ปรับแบบใบขอยกเลิกวันลา
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m17s
2026-01-19 17:15:17 +07:00
Suphonchai Phoonsawat
79e0fe7f1b Merge branch 'develop' into working
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m20s
2026-01-19 14:28:29 +07:00
Suphonchai Phoonsawat
21f82d69e1 Add load testing script for simulating 30,000 requests over 10 minutes 2026-01-19 14:27:43 +07:00