diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 57ee1409..c4bfa0c4 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -202,6 +202,23 @@ namespace BMA.EHR.Application.Repositories.Reports if (evaluate_assign.data != null) { + evaluate_assign.data.evaluate.achievement_score = evaluate_assign.data.evaluate.achievement_score.ToThaiNumber(); + evaluate_assign.data.evaluate.behavior_score = evaluate_assign.data.evaluate.behavior_score.ToThaiNumber(); + evaluate_assign.data.evaluate.sum_score = evaluate_assign.data.evaluate.sum_score.ToThaiNumber(); + evaluate_assign.data.evaluate.achievement_percent = evaluate_assign.data.evaluate.achievement_percent.ToThaiNumber(); + evaluate_assign.data.evaluate.behavior_percent = evaluate_assign.data.evaluate.behavior_percent.ToThaiNumber(); + evaluate_assign.data.evaluate.sum_percent = evaluate_assign.data.evaluate.sum_percent.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_orientation_score = evaluate_assign.data.evaluate.develop_orientation_score.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_self_learning_score = evaluate_assign.data.evaluate.develop_self_learning_score.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_training_seminar_score = evaluate_assign.data.evaluate.develop_training_seminar_score.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_other_training_score = evaluate_assign.data.evaluate.develop_other_training_score.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_total_score = evaluate_assign.data.evaluate.develop_total_score.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_orientation_percent = evaluate_assign.data.evaluate.develop_orientation_percent.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_self_learning_percent = evaluate_assign.data.evaluate.develop_self_learning_percent.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_training_seminar_percent = evaluate_assign.data.evaluate.develop_training_seminar_percent.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_other_training_percent = evaluate_assign.data.evaluate.develop_other_training_percent.ToThaiNumber(); + evaluate_assign.data.evaluate.develop_total_percent = evaluate_assign.data.evaluate.develop_total_percent.ToThaiNumber(); + return new { No = string.IsNullOrEmpty(evaluate_assign.data.evaluate.no.ToString()) ? string.Empty : evaluate_assign.data.evaluate.no.ToString().ToThaiNumber(), diff --git a/BMA.EHR.Application/Responses/EvaluateChairmanAssignResponse.cs b/BMA.EHR.Application/Responses/EvaluateChairmanAssignResponse.cs index e40d274d..e48a05e4 100644 --- a/BMA.EHR.Application/Responses/EvaluateChairmanAssignResponse.cs +++ b/BMA.EHR.Application/Responses/EvaluateChairmanAssignResponse.cs @@ -105,26 +105,26 @@ namespace BMA.EHR.Application.Responses public DisciplineLevel discipline5_level { get; set; } public BehaviorLevel behavior_other_level { get; set; } public string behavior_other_desc { get; set; } - public int achievement_score { get; set; } + public string achievement_score { get; set; } public int achievement_score_total { get; set; } - public double achievement_percent { get; set; } + public string achievement_percent { get; set; } public int achievement_result { get; set; } - public int behavior_score { get; set; } + public string behavior_score { get; set; } public int behavior_score_total { get; set; } - public double behavior_percent { get; set; } + public string behavior_percent { get; set; } public int behavior_result { get; set; } - public int sum_score { get; set; } - public double sum_percent { get; set; } - public int develop_orientation_score { get; set; } - public int develop_self_learning_score { get; set; } - public int develop_training_seminar_score { get; set; } - public int develop_other_training_score { get; set; } - public int develop_total_score { get; set; } - public int develop_orientation_percent { get; set; } - public int develop_self_learning_percent { get; set; } - public int develop_training_seminar_percent { get; set; } - public int develop_other_training_percent { get; set; } - public int develop_total_percent { get; set; } + public string sum_score { get; set; } + public string sum_percent { get; set; } + public string develop_orientation_score { get; set; } + public string develop_self_learning_score { get; set; } + public string develop_training_seminar_score { get; set; } + public string develop_other_training_score { get; set; } + public string develop_total_score { get; set; } + public string develop_orientation_percent { get; set; } + public string develop_self_learning_percent { get; set; } + public string develop_training_seminar_percent { get; set; } + public string develop_other_training_percent { get; set; } + public string develop_total_percent { get; set; } public int develop_result { get; set; } public int evaluate_result { get; set; } public DateTime createdAt { get; set; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index f79dbd33..48811ec2 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -63,7 +63,7 @@ namespace BMA.EHR.Placement.Service.Controllers { var placementAppointments = await _context.PlacementAppointments.AsQueryable() - .Where(x => (x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "PREM") || (x.Profile.ProfileType == "OFFICER")) + .Where(x => (x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") || (x.Profile.ProfileType == "officer")) .OrderByDescending(x => x.CreatedAt) .Select(p => new { @@ -124,7 +124,7 @@ namespace BMA.EHR.Placement.Service.Controllers public async Task> GetDetailByUser(Guid id) { var data = await _context.PlacementAppointments.AsQueryable() - .Where(x => (x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "PREM") || (x.Profile.ProfileType == "OFFICER")) + .Where(x => (x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") || (x.Profile.ProfileType == "officer")) .Where(x => x.Id == id) .Select(p => new { @@ -244,7 +244,7 @@ namespace BMA.EHR.Placement.Service.Controllers .Include(x => x.Position) .Include(x => x.Gender) .Include(x => x.Prefix) - .Where(x => (x.ProfileType == "EMPLOYEE" && x.EmployeeClass == "PREM") || (x.ProfileType == "OFFICER")) + .Where(x => (x.ProfileType == "employee" && x.EmployeeClass == "perm") || (x.ProfileType == "officer")) .FirstOrDefaultAsync(x => x.Id == req.Id); if (profile == null) return Error(GlobalMessages.DataNotFound, 404); @@ -326,7 +326,7 @@ namespace BMA.EHR.Placement.Service.Controllers public async Task> UpdatePositionPlacementAppointment([FromBody] PersonSelectPositionAppointmentRequest req, Guid id) { var uppdated = await _context.PlacementAppointments - .Where(x => (x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "PREM") || (x.Profile.ProfileType == "OFFICER")) + .Where(x => (x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") || (x.Profile.ProfileType == "officer")) .FirstOrDefaultAsync(x => x.Id == id); if (uppdated == null) return Error(GlobalMessages.PlacementAppointmentNotFound, 404); @@ -406,7 +406,7 @@ namespace BMA.EHR.Placement.Service.Controllers public async Task> Put([FromBody] PlacementAppointmentEditRequest req, Guid id) { var uppdated = await _context.PlacementAppointments - .Where(x => (x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "PREM") || (x.Profile.ProfileType == "OFFICER")) + .Where(x => (x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") || (x.Profile.ProfileType == "officer")) .FirstOrDefaultAsync(x => x.Id == id); if (uppdated == null) return Error(GlobalMessages.PlacementAppointmentNotFound, 404); @@ -489,7 +489,7 @@ namespace BMA.EHR.Placement.Service.Controllers var deleted = await _context.PlacementAppointments.AsQueryable() .Include(x => x.PlacementAppointmentDocs) .ThenInclude(x => x.Document) - .Where(x => (x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "PREM") || (x.Profile.ProfileType == "OFFICER")) + .Where(x => (x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") || (x.Profile.ProfileType == "officer")) .FirstOrDefaultAsync(x => x.Id == id); if (deleted == null) return NotFound(); @@ -526,7 +526,7 @@ namespace BMA.EHR.Placement.Service.Controllers foreach (var item in req.Id) { var uppdated = await _context.PlacementAppointments - .Where(x => (x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "PREM") || (x.Profile.ProfileType == "OFFICER")) + .Where(x => (x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") || (x.Profile.ProfileType == "officer")) .FirstOrDefaultAsync(x => x.Id == item); if (uppdated == null) continue; @@ -556,7 +556,7 @@ namespace BMA.EHR.Placement.Service.Controllers { var appointments = await _context.PlacementAppointments .Where(x => x.PositionNumber != null) - .Where(x => (x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "PREM") || (x.Profile.ProfileType == "OFFICER")) + .Where(x => (x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") || (x.Profile.ProfileType == "officer")) .Select(x => x.PositionNumber.Id) .ToListAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index 796ea9bc..18595896 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -64,7 +64,7 @@ namespace BMA.EHR.Placement.Service.Controllers var placementAppointments = await _context.PlacementAppointments.AsQueryable() .OrderByDescending(x => x.CreatedAt) - .Where(x => x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "TEMP") + .Where(x => x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") .Select(p => new { p.Id, @@ -127,7 +127,7 @@ namespace BMA.EHR.Placement.Service.Controllers { var data = await _context.PlacementAppointments.AsQueryable() .Where(x => x.Id == id) - .Where(x => x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "TEMP") + .Where(x => x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") .Select(p => new { p.Id, @@ -246,7 +246,7 @@ namespace BMA.EHR.Placement.Service.Controllers .Include(x => x.Position) .Include(x => x.Gender) .Include(x => x.Prefix) - .Where(x => x.ProfileType == "EMPLOYEE" && x.EmployeeClass == "TEMP") + .Where(x => x.ProfileType == "employee" && x.EmployeeClass == "perm") .FirstOrDefaultAsync(x => x.Id == req.Id); if (profile == null) return Error(GlobalMessages.DataNotFound, 404); @@ -328,7 +328,7 @@ namespace BMA.EHR.Placement.Service.Controllers public async Task> UpdatePositionPlacementAppointment([FromBody] PersonSelectPositionAppointmentRequest req, Guid id) { var uppdated = await _context.PlacementAppointments - .Where(x => x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "TEMP") + .Where(x => x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") .FirstOrDefaultAsync(x => x.Id == id); if (uppdated == null) return Error(GlobalMessages.PlacementAppointmentNotFound, 404); @@ -408,7 +408,7 @@ namespace BMA.EHR.Placement.Service.Controllers public async Task> Put([FromBody] PlacementAppointmentEditRequest req, Guid id) { var uppdated = await _context.PlacementAppointments - .Where(x => x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "TEMP") + .Where(x => x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") .FirstOrDefaultAsync(x => x.Id == id); if (uppdated == null) return Error(GlobalMessages.PlacementAppointmentNotFound, 404); @@ -491,7 +491,7 @@ namespace BMA.EHR.Placement.Service.Controllers var deleted = await _context.PlacementAppointments.AsQueryable() .Include(x => x.PlacementAppointmentDocs) .ThenInclude(x => x.Document) - .Where(x => x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "TEMP") + .Where(x => x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") .FirstOrDefaultAsync(x => x.Id == id); if (deleted == null) return NotFound(); @@ -528,7 +528,7 @@ namespace BMA.EHR.Placement.Service.Controllers foreach (var item in req.Id) { var uppdated = await _context.PlacementAppointments - .Where(x => x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "TEMP") + .Where(x => x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") .FirstOrDefaultAsync(x => x.Id == item); if (uppdated == null) continue; @@ -558,7 +558,7 @@ namespace BMA.EHR.Placement.Service.Controllers { var appointments = await _context.PlacementAppointments .Where(x => x.PositionNumber != null) - .Where(x => x.Profile.ProfileType == "EMPLOYEE" && x.Profile.EmployeeClass == "TEMP") + .Where(x => x.Profile.ProfileType == "employee" && x.Profile.EmployeeClass == "perm") .Select(x => x.PositionNumber.Id) .ToListAsync(); diff --git a/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp b/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp index 1ee65508..ead35012 100644 Binary files a/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp and b/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp b/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp index 6c19d262..0c90b3e1 100644 Binary files a/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp and b/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp b/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp index 7ac03bb1..2cb35156 100644 Binary files a/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp and b/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp b/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp index 131e4e44..1c929004 100644 Binary files a/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp and b/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp b/BMA.EHR.Report.Service/Reports/05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp index 7dfb60ee..f258b7e3 100644 Binary files a/BMA.EHR.Report.Service/Reports/05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp and b/BMA.EHR.Report.Service/Reports/05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp b/BMA.EHR.Report.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp index d61741db..eb926611 100644 Binary files a/BMA.EHR.Report.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp and b/BMA.EHR.Report.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp b/BMA.EHR.Report.Service/Reports/11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp index a4231180..2320c944 100644 Binary files a/BMA.EHR.Report.Service/Reports/11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp and b/BMA.EHR.Report.Service/Reports/11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp b/BMA.EHR.Report.Service/Reports/12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp index e8dec4e6..5a9b6e22 100644 Binary files a/BMA.EHR.Report.Service/Reports/12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp and b/BMA.EHR.Report.Service/Reports/12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-2.trdp b/BMA.EHR.Report.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-2.trdp index 0647a44a..fdee5446 100644 Binary files a/BMA.EHR.Report.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-2.trdp and b/BMA.EHR.Report.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-2.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-1.trdp b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-1.trdp index 2463d9e6..86f910a5 100644 Binary files a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-1.trdp and b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-1.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-2.trdp b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-2.trdp index f988338d..c6cbe78a 100644 Binary files a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-2.trdp and b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-2.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-3.trdp b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-3.trdp index b37bb7ee..ac355f64 100644 Binary files a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-3.trdp and b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-3.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-4.trdp b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-4.trdp index a37d00cf..0859cef6 100644 Binary files a/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-4.trdp and b/BMA.EHR.Report.Service/Reports/21-คำร้องขอโอน-4.trdp differ