ขอโอนเพิ่ม workflow
This commit is contained in:
parent
e5f8b5b9f0
commit
38259fdea5
1 changed files with 14 additions and 0 deletions
|
|
@ -591,6 +591,20 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var baseAPIOrg = _configuration["API"];
|
||||||
|
var apiUrlOrg = $"{baseAPIOrg}/org/workflow/add-workflow";
|
||||||
|
using (var client = new HttpClient())
|
||||||
|
{
|
||||||
|
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||||
|
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
|
||||||
|
var _res = await client.PostAsJsonAsync(apiUrlOrg, new
|
||||||
|
{
|
||||||
|
refId = placementTransfer.Id,
|
||||||
|
sysName = "PLACEMENT_TRANSFER",
|
||||||
|
posLevelName = placementTransfer.posLevelNameOld,
|
||||||
|
posTypeName = placementTransfer.posTypeNameOld,
|
||||||
|
});
|
||||||
|
}
|
||||||
// await _repositoryNoti.PushNotificationAsync(
|
// await _repositoryNoti.PushNotificationAsync(
|
||||||
// Guid.Parse("08dbc953-6268-4e2c-80a3-aca65eedc6d0"),
|
// Guid.Parse("08dbc953-6268-4e2c-80a3-aca65eedc6d0"),
|
||||||
// $"{profile.Prefix?.Name}{profile.FirstName} {profile.LastName} ได้ทำการยื่นคำขอโอน",
|
// $"{profile.Prefix?.Name}{profile.FirstName} {profile.LastName} ได้ทำการยื่นคำขอโอน",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue