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

View File

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

View File

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

View File

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

View File

@@ -104,6 +104,7 @@ namespace SytelineSaAppEfDataModel.Dtos
public string TranslatedStatus => TranslateStatus(Status); public string TranslatedStatus => TranslateStatus(Status);
public string? SlOrderNumber => EdiCustomerOrderTranslates.MaxBy(x => x.CreatedDate)?.CoCoNum; 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<EdiCustomerOrderLineDto> EdiCustomerOrderLines { get; set; } = new List<EdiCustomerOrderLineDto>();
public IEnumerable<EdiCustomerOrderTranslateDto> EdiCustomerOrderTranslates { get; set; } = new List<EdiCustomerOrderTranslateDto>(); public IEnumerable<EdiCustomerOrderTranslateDto> EdiCustomerOrderTranslates { get; set; } = new List<EdiCustomerOrderTranslateDto>();

View File

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