* Renamed files

* Added SentToSl field
* Changed launchSettings.json
This commit is contained in:
2025-01-30 20:25:47 +01:00
parent b7f9ab54dc
commit 1512357460
8 changed files with 50 additions and 42 deletions

View File

@@ -29,6 +29,8 @@ builder.Services.AddOpenApiDocument(config =>
// Configure AutoMapper
builder.Services.AddAutoMapper(typeof(FaKrosnoMappingProfile), typeof(SytelineSaAppMappingProfile));
// Configure JWT Authentication
builder.Services.AddAuthentication(options =>
{
@@ -56,8 +58,6 @@ builder.Services.AddScoped<ICustomerOrderService, CustomerOrderService>();
var app = builder.Build();
app.Urls.Add("http://0.0.0.0:5555");
// Configure the HTTP request pipeline.
//if (app.Environment.IsDevelopment())
//{

View File

@@ -23,7 +23,7 @@
</ItemGroup>
<ItemGroup>
<None Update="appsettings.json">
<None Update="appsettings_F.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

View File

@@ -62,6 +62,9 @@
<GridColumn TItem="EdiCustomerOrderDto" HeaderText="Zamówienie SL" PropertyName="SlOrderNumber">
@context.SlOrderNumber
</GridColumn>
<GridColumn TItem="EdiCustomerOrderDto" HeaderText="Wysłane do SL" PropertyName="SentToSl">
@context.SentToSl
</GridColumn>
</GridColumns>
</Grid>
</div>

View File

@@ -1,45 +1,49 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:61370",
"sslPort": 44319
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iis": {
"applicationUrl": "http://localhost:80",
"sslPort": 443
},
"iisExpress": {
"applicationUrl": "http://localhost:61370",
"sslPort": 44319
}
},
"profiles": {
"IIS": {
"commandName": "IIS",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
}
},
"profiles": {
"IIS": {
"commandName": "IIS",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5295",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7215;http://localhost:5295",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5295",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7215;http://localhost:5295",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

View File

@@ -104,6 +104,7 @@ namespace SytelineSaAppEfDataModel.Dtos
public string TranslatedStatus => TranslateStatus(Status);
public string? SlOrderNumber => EdiCustomerOrderTranslates.MaxBy(x => x.CreatedDate)?.CoCoNum;
public string SentToSl => Posted == 1 ? "TAK" : "NIE";
public IEnumerable<EdiCustomerOrderLineDto> EdiCustomerOrderLines { get; set; } = new List<EdiCustomerOrderLineDto>();
public IEnumerable<EdiCustomerOrderTranslateDto> EdiCustomerOrderTranslates { get; set; } = new List<EdiCustomerOrderTranslateDto>();

View File

@@ -23,7 +23,7 @@
</ItemGroup>
<ItemGroup>
<None Update="appsettings.json">
<None Update="appsettings_FA.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>