BMA EHR API Document
Loading...
Searching...
No Matches
BMA.EHR.Application.Repositories.Commands.CommandRepository Class Reference
Inheritance diagram for BMA.EHR.Application.Repositories.Commands.CommandRepository:
Collaboration diagram for BMA.EHR.Application.Repositories.Commands.CommandRepository:

Public Member Functions

 CommandRepository (IApplicationDBContext dbContext, IHttpContextAccessor httpContextAccessor, OrganizationCommonRepository organizationCommonRepository, UserProfileRepository userProfileRepository, IConfiguration configuration, EmailSenderService emailSenderService)
 
void SendMail ()
 
async Task< List< CommandReceiver > > GetReceiverForByCommndTypeAsync (Command command, string token="")
 
override async Task< Command?> GetByIdAsync (Guid id)
 
async Task< Command?> GetByIdWithPlacementAsync (Guid id)
 
override async Task< IReadOnlyList< Command > > GetAllAsync ()
 
override async Task< CommandAddAsync (Command command)
 
override async Task< CommandUpdateAsync (Command entity)
 
async Task ExecuteCommandAsync (Guid id)
 
async Task SaveSelectedReceiverAsync (Guid id, List< Guid > selected, string token="")
 
async Task< List< CommandReceiver > > GetReceiverForCommandAsync (Guid id, string token="")
 
async Task< List< CommandReceiver > > GetReceiverByCommmandIdAsync (Guid Id)
 
async Task< CommandReceiverDeleteCommandReceiverAsync (Guid personalId)
 
async Task< CommandReceiver?> GetCommandReceiverAsync (Guid personalId)
 
async Task SwapReceiverOrderAsync (Guid personalId, string direction)
 
async Task< string > GetReceiverPositionByCommandIdAsync (Guid id)
 
async Task< string > GetReceiverPosition2ByCommandIdAsync (Guid id)
 
async Task< List< CommandDeployment > > GetDeploymentByCommandIdAsync (Guid id)
 
async Task< List< ProfilePosition > > GetProfileByOrganizationIdAsync (Guid orgId)
 
async Task CreateCommandDeploymentAsync (Guid commandId, List< CommandDeployment > deploy)
 
async Task UpdatCommandDeploymentAsync (List< CommandDeployment > deploys)
 
async Task DeleteCommandDeploymentAsync (Guid id)
 
async Task< CommandDeployment?> GetCommandDeploymentById (Guid id)
 
async Task< List< CommandDocument > > GetExistDocument (Guid id, string category)
 
async Task UploadDocument (Guid id, string category, CommandDocument document)
 
async Task< List< CommandDocument > > GetCommandDocumentAsync (Guid id)
 
async Task GotoNextStateAsync (Guid id)
 
async Task GotoPrevStateAsync (Guid id)
 
async Task< PlacementSalaryResponseGetCommandReceiverSalary (Guid recordId, Double? _Amount, Double? _MouthSalaryAmount, Double? _PositionSalaryAmount)
 
async Task< PlacementSalaryResponseGetPlacementSalaryAsync (Guid placementProfileId)
 
async Task UpdateCommandReceiverSalaryAsync (Guid personalId, UpdatePlacementSalaryRequest req)
 
async Task UpdatePlacementSalaryAsync (Guid personalId, UpdatePlacementSalaryRequest req)
 
async Task< List< PositionPath > > GetPlacementPositionPath (Guid id)
 
async Task< CommandInfoResponseGetCommandInfoAsync (Guid id)
 
async Task UpdateCommandInfoAsync (Guid id, string orderNo, string orderYear, DateTime signDate)
 
async Task< Guid > GetRootOcIdAsync (Guid ocId)
 
async Task< List< KeyValueItemResponse > > GetCommandOrgAsync ()
 
async Task< List< OrganizationApproverResponse > > GetOrgApproverAsync (Guid ocId)
 
async Task< dynamic > GetCommandProfileAsync (string commandType, int year, string? posno)
 
- Public Member Functions inherited from BMA.EHR.Application.Repositories.GenericRepository< Guid, Command >
 GenericRepository (IApplicationDBContext dbContext, IHttpContextAccessor httpContextAccessor)
 
async Task< Guid > GetProfileOrganizationAsync (string citizenId)
 
async Task< bool > CheckIsActiveOfficerAsync (string citizenId)
 
virtual async Task< T?> GetByIdAsync (S id)
 
virtual async Task< T > AddAsync (T entity)
 
virtual async Task< T > UpdateAsync (T entity)
 
virtual async Task DeleteAsync (T entity)
 

Properties

Guid UserOrganizationId [get]
 
- Properties inherited from BMA.EHR.Application.Repositories.GenericRepository< Guid, Command >
string? UserId [get]
 
string? FullName [get]
 
bool? IsPlacementAdmin [get]
 

Constructor & Destructor Documentation

◆ CommandRepository()

BMA.EHR.Application.Repositories.Commands.CommandRepository.CommandRepository ( IApplicationDBContext  dbContext,
IHttpContextAccessor  httpContextAccessor,
OrganizationCommonRepository  organizationCommonRepository,
UserProfileRepository  userProfileRepository,
IConfiguration  configuration,
EmailSenderService  emailSenderService 
)
inline

Member Function Documentation

◆ AddAsync()

override async Task< Command > BMA.EHR.Application.Repositories.Commands.CommandRepository.AddAsync ( Command  command)
inline

◆ CreateCommandDeploymentAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.CreateCommandDeploymentAsync ( Guid  commandId,
List< CommandDeployment deploy 
)
inline

◆ DeleteCommandDeploymentAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.DeleteCommandDeploymentAsync ( Guid  id)
inline

◆ DeleteCommandReceiverAsync()

async Task< CommandReceiver > BMA.EHR.Application.Repositories.Commands.CommandRepository.DeleteCommandReceiverAsync ( Guid  personalId)
inline

◆ ExecuteCommandAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.ExecuteCommandAsync ( Guid  id)
inline

◆ GetAllAsync()

override async Task< IReadOnlyList< Command > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetAllAsync ( )
inlinevirtual

◆ GetByIdAsync()

override async Task< Command?> BMA.EHR.Application.Repositories.Commands.CommandRepository.GetByIdAsync ( Guid  id)
inline

◆ GetByIdWithPlacementAsync()

async Task< Command?> BMA.EHR.Application.Repositories.Commands.CommandRepository.GetByIdWithPlacementAsync ( Guid  id)
inline

◆ GetCommandDeploymentById()

async Task< CommandDeployment?> BMA.EHR.Application.Repositories.Commands.CommandRepository.GetCommandDeploymentById ( Guid  id)
inline

◆ GetCommandDocumentAsync()

async Task< List< CommandDocument > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetCommandDocumentAsync ( Guid  id)
inline

◆ GetCommandInfoAsync()

async Task< CommandInfoResponse > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetCommandInfoAsync ( Guid  id)
inline

◆ GetCommandOrgAsync()

async Task< List< KeyValueItemResponse > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetCommandOrgAsync ( )
inline
Here is the call graph for this function:

◆ GetCommandProfileAsync()

async Task< dynamic > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetCommandProfileAsync ( string  commandType,
int  year,
string?  posno 
)
inline

◆ GetCommandReceiverAsync()

async Task< CommandReceiver?> BMA.EHR.Application.Repositories.Commands.CommandRepository.GetCommandReceiverAsync ( Guid  personalId)
inline

◆ GetCommandReceiverSalary()

async Task< PlacementSalaryResponse > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetCommandReceiverSalary ( Guid  recordId,
Double?  _Amount,
Double?  _MouthSalaryAmount,
Double?  _PositionSalaryAmount 
)
inline
Here is the caller graph for this function:

◆ GetDeploymentByCommandIdAsync()

async Task< List< CommandDeployment > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetDeploymentByCommandIdAsync ( Guid  id)
inline

◆ GetExistDocument()

async Task< List< CommandDocument > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetExistDocument ( Guid  id,
string  category 
)
inline

◆ GetOrgApproverAsync()

async Task< List< OrganizationApproverResponse > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetOrgApproverAsync ( Guid  ocId)
inline

◆ GetPlacementPositionPath()

async Task< List< PositionPath > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetPlacementPositionPath ( Guid  id)
inline

◆ GetPlacementSalaryAsync()

async Task< PlacementSalaryResponse > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetPlacementSalaryAsync ( Guid  placementProfileId)
inline
Here is the caller graph for this function:

◆ GetProfileByOrganizationIdAsync()

async Task< List< ProfilePosition > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetProfileByOrganizationIdAsync ( Guid  orgId)
inline

◆ GetReceiverByCommmandIdAsync()

async Task< List< CommandReceiver > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetReceiverByCommmandIdAsync ( Guid  Id)
inline

◆ GetReceiverForByCommndTypeAsync()

async Task< List< CommandReceiver > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetReceiverForByCommndTypeAsync ( Command  command,
string  token = "" 
)
inline
Here is the caller graph for this function:

◆ GetReceiverForCommandAsync()

async Task< List< CommandReceiver > > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetReceiverForCommandAsync ( Guid  id,
string  token = "" 
)
inline
Here is the call graph for this function:

◆ GetReceiverPosition2ByCommandIdAsync()

async Task< string > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetReceiverPosition2ByCommandIdAsync ( Guid  id)
inline

◆ GetReceiverPositionByCommandIdAsync()

async Task< string > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetReceiverPositionByCommandIdAsync ( Guid  id)
inline

◆ GetRootOcIdAsync()

async Task< Guid > BMA.EHR.Application.Repositories.Commands.CommandRepository.GetRootOcIdAsync ( Guid  ocId)
inline
Here is the caller graph for this function:

◆ GotoNextStateAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.GotoNextStateAsync ( Guid  id)
inline

◆ GotoPrevStateAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.GotoPrevStateAsync ( Guid  id)
inline

◆ SaveSelectedReceiverAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.SaveSelectedReceiverAsync ( Guid  id,
List< Guid >  selected,
string  token = "" 
)
inline
Here is the call graph for this function:

◆ SendMail()

void BMA.EHR.Application.Repositories.Commands.CommandRepository.SendMail ( )
inline

◆ SwapReceiverOrderAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.SwapReceiverOrderAsync ( Guid  personalId,
string  direction 
)
inline

◆ UpdatCommandDeploymentAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.UpdatCommandDeploymentAsync ( List< CommandDeployment deploys)
inline

◆ UpdateAsync()

override async Task< Command > BMA.EHR.Application.Repositories.Commands.CommandRepository.UpdateAsync ( Command  entity)
inline

◆ UpdateCommandInfoAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.UpdateCommandInfoAsync ( Guid  id,
string  orderNo,
string  orderYear,
DateTime  signDate 
)
inline

◆ UpdateCommandReceiverSalaryAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.UpdateCommandReceiverSalaryAsync ( Guid  personalId,
UpdatePlacementSalaryRequest  req 
)
inline

◆ UpdatePlacementSalaryAsync()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.UpdatePlacementSalaryAsync ( Guid  personalId,
UpdatePlacementSalaryRequest  req 
)
inline

◆ UploadDocument()

async Task BMA.EHR.Application.Repositories.Commands.CommandRepository.UploadDocument ( Guid  id,
string  category,
CommandDocument  document 
)
inline

Property Documentation

◆ UserOrganizationId

Guid BMA.EHR.Application.Repositories.Commands.CommandRepository.UserOrganizationId
getprotected

The documentation for this class was generated from the following file: