Просмотр исходного кода

implemented process rejection

pull/131/head
meris.ahmatovic 3 лет назад
Родитель
Сommit
58f5996199

+ 6
- 0
Diligent.WebAPI.Business/Services/ApplicantService.cs Просмотреть файл

@@ -23,6 +23,12 @@ namespace Diligent.WebAPI.Business.Services
_userService = userService;
_configuration = configuration;
}
public ApplicantService(DatabaseContext context, IMapper mapper, ILogger<ApplicantService> logger)
{
_context = context;
_mapper = mapper;
_logger = logger;
}

public async Task<QueryResultDto<ApplicantViewDto>> GetFilteredApplicants(ApplicantFilterDto applicantFilterDto)
{

+ 7
- 0
Diligent.WebAPI.Business/Services/SelectionProcessService.cs Просмотреть файл

@@ -17,6 +17,13 @@ namespace Diligent.WebAPI.Business.Services
_userManager = userManager;
}

public SelectionProcessService(DatabaseContext context, IMapper mapper, ILogger<SelectionProcessService> logger)
{
_context = context;
_mapper = mapper;
_logger = logger;
}

public async Task<List<SelectionProcessResposneDto>> GetAllAsync()
{
_logger.LogInformation("Start getting all Selection Processes");

+ 1
- 0
Diligent.WebAPI.Contracts/DTOs/SelectionProcess/SelectionProcessResposneWithoutApplicantDto.cs Просмотреть файл

@@ -8,6 +8,7 @@ namespace Diligent.WebAPI.Contracts.DTOs.SelectionProcess
public string Status { get; set; }
public DateTime? Date { get; set; }
public string? Link { get; set; }
public string? Comment { get; set; }
public UserResponseDTO Scheduler { get; set; }
public SelectionLevelResposneDto SelectionLevel { get; set; }
}

+ 1
- 0
Diligent.WebAPI.Contracts/DTOs/SelectionProcess/StatusChangeDTO.cs Просмотреть файл

@@ -14,5 +14,6 @@ namespace Diligent.WebAPI.Contracts.DTOs.SelectionProcess
public int ProcessId { get; set; }
public int? SchedulerId { get; set; }
public DateTime? Appointment { get; set; }
public string? Comment { get; set; }
}
}

+ 1
- 0
Diligent.WebAPI.Data/Entities/SelectionProcess.cs Просмотреть файл

@@ -13,5 +13,6 @@
public SelectionLevel? SelectionLevel { get; set; }
public int ApplicantId { get; set; }
public Applicant? Applicant { get; set; }
public string? Comment { get; set; }
}
}

+ 1068
- 0
Diligent.WebAPI.Data/Migrations/20221228154125_CommentProcess.Designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 25
- 0
Diligent.WebAPI.Data/Migrations/20221228154125_CommentProcess.cs Просмотреть файл

@@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Diligent.WebAPI.Data.Migrations
{
public partial class CommentProcess : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Comment",
table: "SelectionProcesses",
type: "nvarchar(max)",
nullable: true);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Comment",
table: "SelectionProcesses");
}
}
}

+ 3
- 0
Diligent.WebAPI.Data/Migrations/DatabaseContextModelSnapshot.cs Просмотреть файл

@@ -496,6 +496,9 @@ namespace Diligent.WebAPI.Data.Migrations
b.Property<int>("ApplicantId")
.HasColumnType("int");

b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");

b.Property<DateTime?>("Date")
.HasColumnType("datetime2");


Загрузка…
Отмена
Сохранить