ออกคำสั่งลูกจ้างวินัย
Some checks failed
release-dev / release-dev (push) Failing after 10s

This commit is contained in:
kittapath 2024-12-20 11:10:24 +07:00
parent f3f2d25280
commit 52a3d00a65

View file

@ -827,6 +827,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -924,6 +927,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1094,6 +1100,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1207,6 +1216,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1318,6 +1330,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1429,6 +1444,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1540,6 +1558,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1651,6 +1672,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1762,6 +1786,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -1888,6 +1915,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
}).ToList();
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline";
if(data.profileType =="EMPLOYEE"){
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave-discipline";
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));