Compare commits
16
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea9673c29b | ||
|
|
4c7e24c478 | ||
|
|
c11ff65a3e | ||
|
|
8c0796eb69 | ||
|
|
10ad411b5e | ||
|
|
8d766ab988 | ||
|
|
8177a60351 | ||
|
|
0fd073755e | ||
|
|
6ea799dcdf | ||
|
|
caf9746443 | ||
|
|
41542e492d | ||
|
|
4f4ca5cec4 | ||
|
|
f480269bc5 | ||
|
|
24c49567aa | ||
|
|
affad21ab0 | ||
|
|
a646258837 |
@@ -1,7 +1,7 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.12.35527.113
|
||||
# Visual Studio Version 18
|
||||
VisualStudioVersion = 18.2.11408.102 d18.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkFlowCheck.API", "WorkFlowCheck.API\WorkFlowCheck.API.csproj", "{2466E04A-CB0C-4421-9074-A928F819926C}"
|
||||
EndProject
|
||||
|
||||
@@ -63,14 +63,14 @@ namespace WorkFlowCheck.API.Controllers
|
||||
|
||||
return retVal;
|
||||
}
|
||||
[HttpGet("GetAllCheckListHeaders")]
|
||||
public async Task<ApiResponseDTO<List<CheckListHeaderDTO>>> GetAllCheckListHeadersAsync()
|
||||
[HttpGet("GetAllCheckListHeaders/{mode}")]
|
||||
public async Task<ApiResponseDTO<List<CheckListHeaderDTO>>> GetAllCheckListHeadersAsync(int mode = 0)
|
||||
{
|
||||
var retVal = new ApiResponseDTO<List<CheckListHeaderDTO>>()
|
||||
{
|
||||
IsSuccess = true,
|
||||
};
|
||||
var checkPointListDTO = await _checkListService.GetAllCheckListHeaderAsync();
|
||||
var checkPointListDTO = await _checkListService.GetAllCheckListHeaderAsync(mode);
|
||||
|
||||
if (checkPointListDTO != null)
|
||||
{
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"WSL": {
|
||||
"commandName": "WSL2",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "https://localhost:5069/swagger",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"ASPNETCORE_URLS": "https://localhost:5069"
|
||||
},
|
||||
"distributionName": ""
|
||||
}
|
||||
},
|
||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<InvariantGlobalization>false</InvariantGlobalization>
|
||||
<PublishAot>false</PublishAot>
|
||||
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
|
||||
<UserSecretsId>4081cb25-5ca2-40a1-a788-0d8396b4f50e</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\WorkFlowCheck.BL\WorkFlowCheck.BL.csproj" />
|
||||
|
||||
@@ -9,5 +9,12 @@
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://localhost:59027"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,14 @@
|
||||
dotnet publish -c Release -o e:\wfcapi\
|
||||
@echo off
|
||||
|
||||
REM ha van paraméter, azt használjuk, különben default
|
||||
set PUBLISH_DIR=%1
|
||||
|
||||
if "%PUBLISH_DIR%"=="" (
|
||||
set PUBLISH_DIR=c:\Publish\wfcapi
|
||||
)
|
||||
|
||||
echo Publish to: %PUBLISH_DIR%
|
||||
|
||||
dotnet publish -c Release -o "%PUBLISH_DIR%"
|
||||
|
||||
pause
|
||||
@@ -81,21 +81,40 @@ namespace WorkFlowCheck.BL.Services
|
||||
|
||||
return retVal;
|
||||
}
|
||||
public async Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync()
|
||||
public async Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync(int mode = 0)
|
||||
{
|
||||
var retVal = new List<CheckListHeaderDTO>();
|
||||
try
|
||||
{
|
||||
var checkListHeaders = await _dbContext.CheckListHeaders
|
||||
IQueryable<CheckListHeader> query = _dbContext.CheckListHeaders
|
||||
.Include(i => i.CheckListRows)
|
||||
.Include(i => i.User)
|
||||
.Include(i => i.AcceptUser)
|
||||
.AsNoTracking()
|
||||
.ToListAsync();
|
||||
if (checkListHeaders != null)
|
||||
.AsNoTracking();
|
||||
switch (mode)
|
||||
{
|
||||
retVal = _mapper.Map<List<CheckListHeaderDTO>>(checkListHeaders);
|
||||
case 0:
|
||||
query = query.Where(w => w.CheckStatus == CheckStatus.InProgress || w.CheckStatus == CheckStatus.Open).OrderByDescending(o => o.CreatedAt);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
query = query.Where(w => w.CheckStatus == CheckStatus.Sent).OrderByDescending(o => o.CreatedAt);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
query = query.Where(w => w.CheckStatus == CheckStatus.Closed).OrderByDescending(o => o.CreatedAt);
|
||||
break;
|
||||
case 3:
|
||||
query = query.Where(w => w.CheckStatus == CheckStatus.Signed).OrderByDescending(o => o.CreatedAt);
|
||||
break;
|
||||
|
||||
default:
|
||||
query = query.OrderByDescending(o => o.CreatedAt);
|
||||
break;
|
||||
}
|
||||
|
||||
var list = await query.ToListAsync();
|
||||
retVal = _mapper.Map<List<CheckListHeaderDTO>>(list);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -285,7 +304,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Log.Error(ex.Message);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace WorkFlowCheck.BL.Services.Interfaces
|
||||
public interface ICheckListService
|
||||
{
|
||||
Task<CheckListHeaderDTO> GetCheckListHeaderAsync(int Id);
|
||||
Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync();
|
||||
Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync(int mode = 0);
|
||||
Task<CheckListHeaderDTO> UpdateCheckListHeaderAsync(CheckListHeaderDTO checkListHeaderDTO);
|
||||
Task<bool> AcceptCheckListHeaderAsync(int id, int userid);
|
||||
Task<bool> BlockCheckListHeaderAsync(int id, int userid);
|
||||
|
||||
@@ -51,12 +51,44 @@ namespace WorkFlowCheck.BL.Services
|
||||
}
|
||||
|
||||
message.Body = builder.ToMessageBody();
|
||||
const int maxRetries = 10;
|
||||
const int delayMs = 2000;
|
||||
|
||||
bool authenticated = false;
|
||||
Exception lastException = null;
|
||||
|
||||
for (int attempt = 1; attempt <= maxRetries; attempt++)
|
||||
{
|
||||
try
|
||||
{
|
||||
using var smtp = new SmtpClient();
|
||||
|
||||
await smtp.ConnectAsync(_settings.SmtpServer, _settings.SmtpPort, SecureSocketOptions.StartTls);
|
||||
await smtp.AuthenticateAsync(_settings.Username, _settings.Password);
|
||||
await smtp.SendAsync(message);
|
||||
await smtp.DisconnectAsync(true);
|
||||
|
||||
authenticated = true;
|
||||
break; // 🎯 siker
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
lastException = ex;
|
||||
Log.ForContext("TAG", "BusinessFlow").Error(lastException?.Message ?? "E-mail küldése sikertelen!");
|
||||
if (attempt == maxRetries)
|
||||
break;
|
||||
|
||||
// ⏳ várunk 1 másodpercet és újrapróbáljuk
|
||||
await Task.Delay(delayMs);
|
||||
}
|
||||
}
|
||||
|
||||
if (!authenticated)
|
||||
{
|
||||
// 🔴 IDE ÍRHATSZ MAJD SAJÁT LOGIKÁT
|
||||
Log.ForContext("TAG", "BusinessFlow").Error(lastException?.Message ?? "E-mail küldése sikertelen!");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
public async Task<bool> SendFCMTokenAsync(string token)
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
var user = await _dbContext.Users
|
||||
.Include(i => i.UserRoles)
|
||||
.ThenInclude(i => i.Role)
|
||||
.Where(w => w.UserName == userName)
|
||||
.Where(w => w.UserName == userName && w.Active == true)
|
||||
.FirstOrDefaultAsync();
|
||||
if (user != null && PasswordHasher.VerifyPassword(user.PasswordHash, password))
|
||||
{
|
||||
|
||||
@@ -34,6 +34,8 @@ namespace WorkFlowCheck.Common.Security
|
||||
// Jelszó ellenőrzése
|
||||
public static bool VerifyPassword(string storedPasswordHash, string inputPassword)
|
||||
{
|
||||
var inputPasswordHash = HashPassword(inputPassword);
|
||||
|
||||
byte[] hashBytes = Convert.FromBase64String(storedPasswordHash);
|
||||
|
||||
// Extract salt (first 16 bytes) and stored hash (next 32 bytes)
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
using SkiaSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WorkFlowCheck.MAUI.Helper
|
||||
{
|
||||
public static class ImageHelper
|
||||
{
|
||||
public static string ResizeAndSaveImage(byte[] imageBytes, int id, int targetWidth = 50)
|
||||
{
|
||||
// Átméretezett fájl elérési útja
|
||||
var filename = Path.Combine(FileSystem.CacheDirectory, $"wfc_{id}_photo.jpg");
|
||||
|
||||
if (File.Exists(filename))
|
||||
{
|
||||
try
|
||||
{
|
||||
File.Delete(filename);
|
||||
// opcionálisan logolhatsz
|
||||
// Console.WriteLine($"Törölve: {filename}");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//Console.WriteLine($"Hiba a fájl törlésekor: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
// Eredeti kép betöltése
|
||||
using var inputStream = new MemoryStream(imageBytes);
|
||||
using var original = SKBitmap.Decode(inputStream);
|
||||
|
||||
if (original == null)
|
||||
throw new InvalidOperationException("A kép nem olvasható vagy hibás.");
|
||||
|
||||
// Új szélesség és magasság arányosan
|
||||
|
||||
int targetHeight = (int)(original.Height * ((double)targetWidth / original.Width));
|
||||
|
||||
// Új üres bitmap létrehozása
|
||||
using var resizedSurface = SKSurface.Create(new SKImageInfo(targetWidth, targetHeight));
|
||||
using var canvas = resizedSurface.Canvas;
|
||||
|
||||
canvas.Clear(SKColors.White); // választható háttérszín
|
||||
|
||||
var srcRect = new SKRect(0, 0, original.Width, original.Height);
|
||||
var destRect = new SKRect(0, 0, targetWidth, targetHeight);
|
||||
canvas.DrawBitmap(original, srcRect, destRect);
|
||||
|
||||
using var resizedImage = resizedSurface.Snapshot();
|
||||
using var imageData = resizedImage.Encode(SKEncodedImageFormat.Jpeg, 90);
|
||||
|
||||
// Mentés fájlba
|
||||
using var fileStream = File.OpenWrite(filename);
|
||||
imageData.SaveTo(fileStream);
|
||||
|
||||
return filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace WorkFlowCheck.MAUI.Helper
|
||||
public static string DatabaseName = "";
|
||||
public static bool Syncronised = false;
|
||||
public static UserDTO SystemUserDTO;
|
||||
public static string ProgramVersion = "v1.1.036";
|
||||
public static string ProgramVersion = "v1.1.039";
|
||||
|
||||
#if DEBUG
|
||||
//public static string ApiBaseUrl = $"http://10.0.2.2:59027/";
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
using SkiaSharp;
|
||||
using System.ComponentModel;
|
||||
using WorkFlowCheck.Common.DTO;
|
||||
using WorkFlowCheck.MAUI.Helper;
|
||||
|
||||
namespace WorkFlowCheck.MAUI.Pages.CheckList
|
||||
{
|
||||
public class CheckListRowCS : INotifyPropertyChanged
|
||||
{
|
||||
private byte[] _photoBytes;
|
||||
private ImageSource? _photo;
|
||||
//private ImageSource? _photo;
|
||||
private string? _photoPath;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
@@ -18,6 +21,7 @@ namespace WorkFlowCheck.MAUI.Pages.CheckList
|
||||
public string Answer { get; set; } = null!;
|
||||
public bool? AnswerYes { get; set; } = null!;
|
||||
public bool? AnswerNo { get; set; } = null!;
|
||||
|
||||
public byte[] PhotoBytes
|
||||
{
|
||||
get => _photoBytes;
|
||||
@@ -26,37 +30,58 @@ namespace WorkFlowCheck.MAUI.Pages.CheckList
|
||||
if (_photoBytes != value)
|
||||
{
|
||||
_photoBytes = value;
|
||||
_photo = null;
|
||||
OnPropertyChanged(nameof(PhotoBytes));
|
||||
OnPropertyChanged(nameof(Photo));
|
||||
//_photo = null;
|
||||
_photoPath = null;
|
||||
//OnPropertyChanged(nameof(PhotoBytes));
|
||||
//OnPropertyChanged(nameof(Photo));
|
||||
OnPropertyChanged(nameof(PhotoPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
public ImageSource Photo
|
||||
//public ImageSource Photo
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// if (_photo == null)
|
||||
// {
|
||||
// if (PhotoBytes != null && PhotoBytes.Length > 0)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// var bytesCopy = PhotoBytes.ToArray();
|
||||
// _photo = ImageSource.FromStream(() => new MemoryStream(bytesCopy));
|
||||
// }
|
||||
// catch
|
||||
// {
|
||||
// _photo = ImageSource.FromFile("noimage.png");
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// _photo = ImageSource.FromFile("noimage.png");
|
||||
// }
|
||||
// }
|
||||
|
||||
// return _photo;
|
||||
// }
|
||||
//}
|
||||
|
||||
public string PhotoPath
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_photo == null)
|
||||
if (_photoPath == null)
|
||||
{
|
||||
if (PhotoBytes != null && PhotoBytes.Length > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
var bytesCopy = PhotoBytes.ToArray();
|
||||
_photo = ImageSource.FromStream(() => new MemoryStream(bytesCopy));
|
||||
}
|
||||
catch
|
||||
{
|
||||
_photo = ImageSource.FromFile("noimage.png");
|
||||
}
|
||||
_photoPath = ImageHelper.ResizeAndSaveImage(PhotoBytes, Id, 100);
|
||||
}
|
||||
else
|
||||
{
|
||||
_photo = ImageSource.FromFile("noimage.png");
|
||||
_photoPath = "noimage.png";
|
||||
}
|
||||
}
|
||||
|
||||
return _photo;
|
||||
return _photoPath;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -130,12 +130,12 @@
|
||||
<Label Text="{Binding OperationDescription}" BackgroundColor="WhiteSmoke" Grid.Column="1" />
|
||||
<Grid Grid.Column="2" ColumnDefinitions="Auto,Auto" VerticalOptions="Center">
|
||||
<Image Grid.Column="0"
|
||||
WidthRequest="95"
|
||||
HeightRequest="120"
|
||||
WidthRequest="65"
|
||||
HeightRequest="90"
|
||||
Aspect="AspectFill"
|
||||
Margin="0,0,10,0"
|
||||
VerticalOptions="Center"
|
||||
Source="{Binding Photo}" >
|
||||
Source="{Binding PhotoPath}" >
|
||||
</Image>
|
||||
<Button Text="📷" Grid.Column="1"
|
||||
VerticalOptions="Center"
|
||||
@@ -162,6 +162,7 @@
|
||||
<Entry Grid.Column="3"
|
||||
Text="{Binding Answer}"
|
||||
HorizontalTextAlignment="Center"
|
||||
TextChanged="V_Entry_Text_Changed"
|
||||
VerticalOptions="Center" />
|
||||
</Grid>
|
||||
</Frame>
|
||||
|
||||
@@ -124,14 +124,19 @@ public partial class CheckListWorkPage : ContentPage
|
||||
|
||||
if (checkListRowDTO != null)
|
||||
{
|
||||
if (checkListRowDTO.AnswerYes == true)
|
||||
checkListRowDTO.Answer = checkListRowCS.Answer;
|
||||
if (checkListRowCS.AnswerYes == true)
|
||||
{
|
||||
checkListRowDTO.Answer = "Igen";
|
||||
}
|
||||
if (checkListRowDTO.AnswerNo == true)
|
||||
else if (checkListRowCS.AnswerNo == true)
|
||||
{
|
||||
checkListRowDTO.Answer = "Nem";
|
||||
}
|
||||
else
|
||||
{
|
||||
checkListRowDTO.Answer = checkListRowCS.Answer;
|
||||
}
|
||||
await _checkListService.UpdateCheckListRow(checkListRowDTO, withReload);
|
||||
}
|
||||
}
|
||||
@@ -182,7 +187,7 @@ public partial class CheckListWorkPage : ContentPage
|
||||
{
|
||||
if (MediaPicker.IsCaptureSupported)
|
||||
{
|
||||
await OnSave(false);
|
||||
//await OnSave(false);
|
||||
var photo = await MediaPicker.CapturePhotoAsync();
|
||||
if (photo != null)
|
||||
{
|
||||
@@ -196,7 +201,7 @@ public partial class CheckListWorkPage : ContentPage
|
||||
checkListRowDTO.Answer = "Igen";
|
||||
|
||||
await _checkListService.UpdateCheckListRow(checkListRowDTO, true);
|
||||
await LoadCheckPointCheckListRows();
|
||||
//await LoadCheckPointCheckListRows();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -249,6 +254,15 @@ public partial class CheckListWorkPage : ContentPage
|
||||
IsLoading = false;
|
||||
}
|
||||
|
||||
private void V_Entry_Text_Changed(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
var entry = sender as Entry;
|
||||
var model = entry?.BindingContext as CheckListRowCS;
|
||||
if (model != null)
|
||||
{
|
||||
model.Answer = e.NewTextValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
public class BindableRadioButton : RadioButton
|
||||
{
|
||||
@@ -274,12 +288,12 @@ public class BindableRadioButton : RadioButton
|
||||
}
|
||||
private void OnCheckedChangedInternal(object sender, CheckedChangedEventArgs e)
|
||||
{
|
||||
if (e.Value && BindingContext is CheckListRowDTO dto)
|
||||
if (e.Value && BindingContext is CheckListRowCS checkListRowCS)
|
||||
{
|
||||
if (Value?.ToString() == "Igen")
|
||||
dto.Answer = "Igen";
|
||||
checkListRowCS.Answer = "Igen";
|
||||
else if (Value?.ToString() == "Nem")
|
||||
dto.Answer = "Nem";
|
||||
checkListRowCS.Answer = "Nem";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -287,12 +301,12 @@ public class BindableRadioButton : RadioButton
|
||||
{
|
||||
base.OnBindingContextChanged();
|
||||
|
||||
if (BindingContext is CheckListRowDTO dto)
|
||||
if (BindingContext is CheckListRowCS checkListRowCS)
|
||||
{
|
||||
if (Value?.ToString() == "Igen")
|
||||
IsChecked = dto.Answer == "Igen";
|
||||
IsChecked = checkListRowCS.Answer == "Igen";
|
||||
else if (Value?.ToString() == "Nem")
|
||||
IsChecked = dto.Answer == "Nem";
|
||||
IsChecked = checkListRowCS.Answer == "Nem";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 2.2 KiB |
@@ -166,11 +166,18 @@ namespace WorkFlowCheck.MAUI.Services
|
||||
//.AsNoTracking()
|
||||
.Where(w => w.Id == checkListRowDTO.Id).FirstOrDefaultAsync();
|
||||
if (checkListRow != null)
|
||||
{
|
||||
if (checkListRow.Answer != checkListRowDTO.Answer)
|
||||
{
|
||||
checkListRow.Answer = checkListRowDTO.Answer;
|
||||
}
|
||||
|
||||
if (checkListRowDTO.Photo != null && checkListRowDTO.Photo.Length > 0 && withPhoto)
|
||||
{
|
||||
checkListRow.Photo = checkListRowDTO.Photo;
|
||||
if (!checkListRow.Photo.SequenceEqual(checkListRowDTO.Photo ?? Array.Empty<byte>()))
|
||||
{
|
||||
checkListRow.Photo = checkListRowDTO.Photo ?? Array.Empty<byte>();
|
||||
}
|
||||
}
|
||||
await _dbContext.SaveChangesAsync();
|
||||
}
|
||||
@@ -321,7 +328,8 @@ namespace WorkFlowCheck.MAUI.Services
|
||||
.Include(i => i.CheckListTemplateRow)
|
||||
.ThenInclude(i => i.CheckPoint)
|
||||
.Where(w => w.CheckListHeaderId == checkListHeaderDTO.Id
|
||||
&& string.IsNullOrEmpty(w.Answer.Trim()))
|
||||
&& string.IsNullOrEmpty(w.Answer.Trim())
|
||||
&& w.CheckListTemplateRow.AnswerType != "PN")
|
||||
.Select(w => w.CheckListTemplateRow.CheckPoint)
|
||||
.OrderBy(cp => cp.ShortName)
|
||||
.FirstOrDefaultAsync();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace WorkFlowCheck.Web.Helpers
|
||||
public static class SystemHelper
|
||||
{
|
||||
public static string DatabaseName = "";
|
||||
public static string ProgramVersion = "v1.1.030";
|
||||
public static string ProgramVersion = "v1.1.032";
|
||||
|
||||
public async static Task GetAPIInfoAsync(IConfiguration configuration)
|
||||
{
|
||||
|
||||
@@ -21,6 +21,15 @@
|
||||
<div class="card shadow p-4" style="min-width: 350px; max-width: 400px; width: 100%;">
|
||||
<h2 class="mb-4 text-center">Jelszó módosítása</h2>
|
||||
|
||||
<!-- Loading overlay -->
|
||||
<div id="formLoading" class="position-absolute top-0 start-0 w-100 h-100 d-none align-items-center justify-content-center"
|
||||
style="background: rgba(255,255,255,.75); z-index: 10; border-radius: .375rem;">
|
||||
<div class="text-center">
|
||||
<div class="spinner-border" role="status" aria-hidden="true"></div>
|
||||
<div class="mt-2 small text-muted">Kérlek várj…</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="errorMessageContainer" class="alert alert-danger" style="display:none;"></div>
|
||||
|
||||
<form method="post">
|
||||
@@ -55,7 +64,7 @@
|
||||
</div>
|
||||
<hr class="mt-4 mb-3 border-secondary">
|
||||
<div id="login2F1" class="d-grid">
|
||||
<button id="Login2F1Btn" type="button" class="btn btn-primary">Bejelentkezés</button>
|
||||
<button id="Login2F1Btn" type="button" class="btn btn-primary">Ellenőrzés</button>
|
||||
</div>
|
||||
<div id="login2F2" class="d-grid">
|
||||
<button id="Login2F2Btn" type="button" class="btn btn-primary">Megerősítés</button>
|
||||
@@ -88,6 +97,30 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery-validation-unobtrusive@4.0.0/dist/jquery.validate.unobtrusive.min.js"></script>
|
||||
|
||||
<script>
|
||||
function setLoading(isLoading) {
|
||||
if (isLoading) {
|
||||
$('#formLoading').removeClass('d-none').addClass('d-flex');
|
||||
$('#Login2F1Btn, #Login2F2Btn').prop('disabled', true);
|
||||
// opcionális: inputok tiltása is
|
||||
// $('#User2FADTO_UserName, #User2FADTO_Password, #User2FADTO_Code').prop('disabled', true);
|
||||
} else {
|
||||
$('#formLoading').addClass('d-none').removeClass('d-flex');
|
||||
$('#Login2F1Btn, #Login2F2Btn').prop('disabled', false);
|
||||
// $('#User2FADTO_UserName, #User2FADTO_Password, #User2FADTO_Code').prop('disabled', false);
|
||||
}
|
||||
}
|
||||
let requestInFlight = false;
|
||||
function beginRequest() {
|
||||
if (requestInFlight) return false;
|
||||
requestInFlight = true;
|
||||
setLoading(true);
|
||||
return true;
|
||||
}
|
||||
function endRequest() {
|
||||
requestInFlight = false;
|
||||
setLoading(false);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#VerificationCode').hide();
|
||||
$('#login2F2').hide();
|
||||
@@ -97,6 +130,8 @@
|
||||
|
||||
$('#Login2F1Btn').on('click', function () {
|
||||
// $('#Login2F1Btn, #Login2F2Btn').prop('disabled', true);
|
||||
if (!beginRequest()) return;
|
||||
|
||||
$('#errorMessageContainer').hide().text('');
|
||||
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
|
||||
const userName = $('#UserChangePassword2FADTO_UserName').val();
|
||||
@@ -136,6 +171,9 @@
|
||||
// .prop('disabled', false)
|
||||
// .removeAttr('disabled')
|
||||
// .removeClass('disabled');
|
||||
},
|
||||
complete: function () {
|
||||
endRequest();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -143,6 +181,7 @@
|
||||
|
||||
$('#Login2F2Btn').on('click', function () {
|
||||
// $('#Login2F1Btn, #Login2F2Btn').prop('disabled', true);
|
||||
if (!beginRequest()) return;
|
||||
$('#errorMessageContainer').hide().text('');
|
||||
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
|
||||
|
||||
@@ -194,6 +233,9 @@
|
||||
// .prop('disabled', false)
|
||||
// .removeAttr('disabled')
|
||||
// .removeClass('disabled');
|
||||
},
|
||||
complete: function () {
|
||||
endRequest();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -8,9 +8,6 @@
|
||||
Layout = null;
|
||||
ViewData["Title"] = "Bejelentkezés";
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
@@ -25,6 +22,15 @@
|
||||
<div class="card shadow p-4" style="min-width: 350px; max-width: 400px; width: 100%;">
|
||||
<h2 class="mb-4 text-center">Bejelentkezés</h2>
|
||||
|
||||
<!-- Loading overlay -->
|
||||
<div id="formLoading" class="position-absolute top-0 start-0 w-100 h-100 d-none align-items-center justify-content-center"
|
||||
style="background: rgba(255,255,255,.75); z-index: 10; border-radius: .375rem;">
|
||||
<div class="text-center">
|
||||
<div class="spinner-border" role="status" aria-hidden="true"></div>
|
||||
<div class="mt-2 small text-muted">Kérlek várj…</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="errorMessageContainer" class="alert alert-danger" style="display:none;"></div>
|
||||
|
||||
<form method="post">
|
||||
@@ -68,13 +74,41 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery-validation-unobtrusive@4.0.0/dist/jquery.validate.unobtrusive.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function setLoading(isLoading) {
|
||||
if (isLoading) {
|
||||
$('#formLoading').removeClass('d-none').addClass('d-flex');
|
||||
$('#Login2F1Btn, #Login2F2Btn').prop('disabled', true);
|
||||
// opcionális: inputok tiltása is
|
||||
// $('#User2FADTO_UserName, #User2FADTO_Password, #User2FADTO_Code').prop('disabled', true);
|
||||
} else {
|
||||
$('#formLoading').addClass('d-none').removeClass('d-flex');
|
||||
$('#Login2F1Btn, #Login2F2Btn').prop('disabled', false);
|
||||
// $('#User2FADTO_UserName, #User2FADTO_Password, #User2FADTO_Code').prop('disabled', false);
|
||||
}
|
||||
}
|
||||
let requestInFlight = false;
|
||||
function beginRequest() {
|
||||
if (requestInFlight) return false;
|
||||
requestInFlight = true;
|
||||
setLoading(true);
|
||||
return true;
|
||||
}
|
||||
function endRequest() {
|
||||
requestInFlight = false;
|
||||
setLoading(false);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#VerificationCode').hide();
|
||||
$('#login2F2').hide();
|
||||
$('#Login2F2Btn').hide();
|
||||
|
||||
|
||||
|
||||
$('#Login2F1Btn').on('click', function () {
|
||||
// $('#Login2F1Btn, #Login2F2Btn').prop('disabled', true);
|
||||
if (!beginRequest()) return;
|
||||
$('#errorMessageContainer').hide().text('');
|
||||
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
|
||||
const userName = $('#User2FADTO_UserName').val();
|
||||
@@ -114,6 +148,9 @@
|
||||
// .prop('disabled', false)
|
||||
// .removeAttr('disabled')
|
||||
// .removeClass('disabled');
|
||||
},
|
||||
complete: function () {
|
||||
endRequest();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -121,6 +158,7 @@
|
||||
|
||||
$('#Login2F2Btn').on('click', function () {
|
||||
// $('#Login2F1Btn, #Login2F2Btn').prop('disabled', true);
|
||||
if (!beginRequest()) return;
|
||||
$('#errorMessageContainer').hide().text('');
|
||||
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
|
||||
|
||||
@@ -147,6 +185,7 @@
|
||||
if (result.success) {
|
||||
window.location.href = `/Index`;
|
||||
} else {
|
||||
console.log(result);
|
||||
$('#errorMessageContainer').text('Hibás felhasználónév vagy jelszó!').show();
|
||||
// $('#Login2F1Btn, #Login2F2Btn')
|
||||
// .prop('disabled', false)
|
||||
@@ -162,6 +201,9 @@
|
||||
// .prop('disabled', false)
|
||||
// .removeAttr('disabled')
|
||||
// .removeClass('disabled');
|
||||
},
|
||||
complete: function () {
|
||||
endRequest();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -55,8 +55,8 @@ namespace WorkFlowCheck.Web.Pages.Account
|
||||
Response.Cookies.Append("AuthToken", token, new CookieOptions
|
||||
{
|
||||
HttpOnly = true,
|
||||
Secure = true,
|
||||
SameSite = SameSiteMode.Strict,
|
||||
Secure = HttpContext.Request.IsHttps,
|
||||
SameSite = SameSiteMode.Lax,
|
||||
Expires = DateTimeOffset.UtcNow.AddDays(1)
|
||||
});
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#tbCheckPointsEditPage').on('click', '.edit-btn', function ()
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newCheckPointBtn').on('click', function ()
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newEquipmentBtn').on('click', function ()
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#tbImageFilesPage').on('click', '.download-btn', function ()
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newLocationBtn').on('click', function ()
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#tbAuditFilesPage').on('click', '.download-btn', function ()
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#tbBusinessFilesPage').on('click', '.download-btn', function ()
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#tbPDFFilesPage').on('click', '.download-btn', function ()
|
||||
|
||||
+1
-1
@@ -173,7 +173,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,14 @@
|
||||
@using Microsoft.AspNetCore.Antiforgery
|
||||
@inject IAntiforgery Antiforgery
|
||||
@{
|
||||
ViewData["Title"] = "Ellenőrzések";
|
||||
ViewData["Title"] = Model.Mode switch
|
||||
{
|
||||
0 => "Ellenőrzések (folyamatban)",
|
||||
1 => "Ellenőrzések (beküldött)",
|
||||
2 => "Ellenőrzések (lezárt)",
|
||||
3 => "Ellenőrzések (jóváhagyott)",
|
||||
_ => "Ellenőrzések (összes)"
|
||||
};
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
<meta name="csrf-token" content="@Antiforgery.GetAndStoreTokens(HttpContext).RequestToken" />
|
||||
@@ -49,10 +56,16 @@
|
||||
|
||||
@section Scripts {
|
||||
<script>
|
||||
let currentMode = @Model.Mode;
|
||||
const table = new DataTable('#tbCheckListHeadersPage', {
|
||||
ordering: true,
|
||||
order: [],
|
||||
ajax: {
|
||||
url: "@Url.Page("./CheckListHeaderPage", "LoadCheckListHeaders")",
|
||||
type: "GET",
|
||||
data: function (d) {
|
||||
d.mode = currentMode;
|
||||
},
|
||||
dataSrc : "data"
|
||||
},
|
||||
columns: [
|
||||
@@ -104,7 +117,7 @@
|
||||
],
|
||||
|
||||
processing: true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newCheckListHeaderBtn').on('click', function ()
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace WorkFlowCheck.Web.Pages.CheckList.CheckListHeader
|
||||
{
|
||||
private readonly ILogger<IndexModel> _logger;
|
||||
private readonly ICheckListService _checkListService;
|
||||
|
||||
public int Mode { get; private set; }
|
||||
public List<SelectListItem> CheckStatus { get; set; }
|
||||
|
||||
public CheckListHeaderPageModel(ILogger<IndexModel> logger, ICheckListService checkListService)
|
||||
@@ -21,15 +21,16 @@ namespace WorkFlowCheck.Web.Pages.CheckList.CheckListHeader
|
||||
_logger = logger;
|
||||
_checkListService = checkListService;
|
||||
}
|
||||
public async Task OnGet()
|
||||
public async Task OnGet(int mode = 0)
|
||||
{
|
||||
Mode = mode;
|
||||
CheckStatus = _checkListService.GetCheckStatus();
|
||||
}
|
||||
|
||||
|
||||
public async Task<JsonResult> OnGetLoadCheckListHeaders()
|
||||
public async Task<JsonResult> OnGetLoadCheckListHeaders(int mode = 0)
|
||||
{
|
||||
var results = await _checkListService.GetAllCheckListHeaderAsync();
|
||||
var results = await _checkListService.GetAllCheckListHeaderAsync(mode);
|
||||
return new JsonResult(new { data = results });
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newCheckListTemplateHeaderBtn').on('click', function ()
|
||||
|
||||
@@ -49,7 +49,26 @@
|
||||
Ellenőrzési adatok
|
||||
</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="checkListDropdown">
|
||||
<li><a class="dropdown-item" asp-area="" asp-page="/CheckList/CheckListHeader/CheckListHeaderPage">Ellenőrzések</a></li>
|
||||
<li>
|
||||
<a class="dropdown-item" asp-area="" asp-page="/CheckList/CheckListHeader/CheckListHeaderPage"
|
||||
asp-route-mode="0">Ellenőrzések (folyamatban)</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" asp-area="" asp-page="/CheckList/CheckListHeader/CheckListHeaderPage"
|
||||
asp-route-mode="1">Ellenőrzések (beküldött)</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" asp-area="" asp-page="/CheckList/CheckListHeader/CheckListHeaderPage"
|
||||
asp-route-mode="3">Ellenőrzések (jóváhagyott)</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" asp-area="" asp-page="/CheckList/CheckListHeader/CheckListHeaderPage"
|
||||
asp-route-mode="2">Ellenőrzések (lezárt)</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" asp-area="" asp-page="/CheckList/CheckListHeader/CheckListHeaderPage"
|
||||
asp-route-mode="4">Ellenőrzések (összes)</a>
|
||||
</li>
|
||||
<li><hr class="dropdown-divider"></li> <!-- EZ AZ ELVÁLASZTÓ VONAL -->
|
||||
<li><a class="dropdown-item" asp-area="" asp-page="/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderPage">Ellenőrzési sablonok</a></li>
|
||||
</ul>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newRoleCheckListTemplateHeadersBtn').on('click', function ()
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newRoleCheckPointsBtn').on('click', function ()
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newRoleBtn').on('click', function ()
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$("#saveUser").click(function () {
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newUserBtn').on('click', function ()
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
],
|
||||
|
||||
processing:true,
|
||||
language: { url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/hu.json',}
|
||||
language: { url: '/lib/datatables/datatables.hu.json',}
|
||||
});
|
||||
|
||||
$('#newUserRoleBtn').on('click', function ()
|
||||
|
||||
@@ -24,6 +24,16 @@
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"WSL": {
|
||||
"commandName": "WSL2",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "https://localhost:7041",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"ASPNETCORE_URLS": "https://localhost:7041;http://localhost:5258"
|
||||
},
|
||||
"distributionName": ""
|
||||
}
|
||||
},
|
||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace WorkFlowCheck.Web.Services
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync()
|
||||
public async Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync(int mode = 0)
|
||||
{
|
||||
var endpoint = $"{_httpClient.BaseAddress}api/CheckList/GetAllCheckListHeaders";
|
||||
var endpoint = $"{_httpClient.BaseAddress}api/CheckList/GetAllCheckListHeaders/{mode}";
|
||||
var retVal = new List<CheckListHeaderDTO>();
|
||||
try
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace WorkFlowCheck.Web.Services.Interfaces
|
||||
public interface ICheckListService
|
||||
{
|
||||
Task<CheckListHeaderDTO> GetCheckListHeader(int id);
|
||||
Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync();
|
||||
Task<List<CheckListHeaderDTO>> GetAllCheckListHeaderAsync(int mode = 0);
|
||||
Task<ApiResponseDTO<CheckListHeaderDTO>> UpdateCheckListHeader(CheckListHeaderDTO checkListHeaderDTO);
|
||||
Task<ApiResponseDTO<byte[]>> CreatePDF(int id);
|
||||
Task<ApiResponseDTO<bool>> AcceptCheckListHeader(int id, int userid);
|
||||
|
||||
@@ -60,9 +60,12 @@ namespace WorkFlowCheck.Web.Services
|
||||
try
|
||||
{
|
||||
if (userDTO.Id != null)
|
||||
{
|
||||
if (userDTO.Id > 0)
|
||||
{
|
||||
userDTO.Password = "xXyY3456!!!;;"; // Ez csak amiatt kell, hogy ne szálljon el a JSON
|
||||
}
|
||||
}
|
||||
|
||||
string endpoint = $"{_httpClient.BaseAddress}api/user/UpdateUser";
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<InvariantGlobalization>false</InvariantGlobalization>
|
||||
<PublishAot>false</PublishAot>
|
||||
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
|
||||
<UserSecretsId>b1687ae9-f7e6-45cf-bfbb-293f5d38ca14</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,10 +1,17 @@
|
||||
{
|
||||
"ApiBaseUrl": "https://localhost:44382/",
|
||||
"ApiBaseUrl": "http://localhost:59027/",
|
||||
"DetailedErrors": true,
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://localhost:5258"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
|
||||
REM ha van paraméter, azt használjuk, különben default
|
||||
set PUBLISH_DIR=%1
|
||||
|
||||
if "%PUBLISH_DIR%"=="" (
|
||||
set PUBLISH_DIR=c:\Publish\wfcweb
|
||||
)
|
||||
|
||||
echo Publish to: %PUBLISH_DIR%
|
||||
|
||||
dotnet publish -c Release -o "%PUBLISH_DIR%"
|
||||
|
||||
pause
|
||||
@@ -0,0 +1,230 @@
|
||||
{
|
||||
"emptyTable": "Nincs rendelkezésre álló adat",
|
||||
"info": "Találatok: _START_ - _END_ Összesen: _TOTAL_",
|
||||
"infoFiltered": "(_MAX_ összes rekord közül szűrve)",
|
||||
"infoThousands": " ",
|
||||
"lengthMenu": "_MENU_ találat oldalanként",
|
||||
"loadingRecords": "Betöltés...",
|
||||
"processing": "Feldolgozás...",
|
||||
"search": "Keresés:",
|
||||
"zeroRecords": "Nincs a keresésnek megfelelő találat",
|
||||
"paginate": {
|
||||
"first": "Első",
|
||||
"previous": "Előző",
|
||||
"next": "Következő",
|
||||
"last": "Utolsó"
|
||||
},
|
||||
"aria": {
|
||||
"sortAscending": ": aktiválja a növekvő rendezéshez",
|
||||
"sortDescending": ": aktiválja a csökkenő rendezéshez"
|
||||
},
|
||||
"select": {
|
||||
"rows": {
|
||||
"_": "%d sor kiválasztva",
|
||||
"1": "1 sor kiválasztva"
|
||||
},
|
||||
"cells": {
|
||||
"1": "1 cella kiválasztva",
|
||||
"_": "%d cella kiválasztva"
|
||||
},
|
||||
"columns": {
|
||||
"1": "1 oszlop kiválasztva",
|
||||
"_": "%d oszlop kiválasztva"
|
||||
}
|
||||
},
|
||||
"buttons": {
|
||||
"colvis": "Oszlopok",
|
||||
"copy": "Másolás",
|
||||
"copyTitle": "Vágólapra másolás",
|
||||
"copySuccess": {
|
||||
"_": "%d sor másolva",
|
||||
"1": "1 sor másolva"
|
||||
},
|
||||
"collection": "Gyűjtemény",
|
||||
"colvisRestore": "Oszlopok visszaállítása",
|
||||
"csv": "CSV",
|
||||
"excel": "Excel",
|
||||
"pageLength": {
|
||||
"-1": "Összes sor megjelenítése",
|
||||
"_": "%d sor megjelenítése"
|
||||
},
|
||||
"pdf": "PDF",
|
||||
"print": "Nyomtat",
|
||||
"copyKeys": "A táblázat adatainak vágólapra másolásához nyomja meg a CTRL vagy u2318 + C billentyűt!<br \/><br \/>A megszakításhoz kattintson az üzenetre, vagy nyomja meg az ESC billentyűt!",
|
||||
"createState": "Állapot mentése",
|
||||
"removeAllStates": "Mentett állapotok törlése",
|
||||
"removeState": "Törlés",
|
||||
"renameState": "Átnevezés",
|
||||
"savedStates": "Mentett állapotok",
|
||||
"stateRestore": "%d. állapot",
|
||||
"updateState": "Frissítés"
|
||||
},
|
||||
"autoFill": {
|
||||
"cancel": "Megszakítás",
|
||||
"fill": "Összes cella kitöltése a következővel: <i>%d<\/i>",
|
||||
"fillHorizontal": "Cellák vízszintes kitöltése",
|
||||
"fillVertical": "Cellák függőleges kitöltése"
|
||||
},
|
||||
"searchBuilder": {
|
||||
"add": "Feltétel hozzáadása",
|
||||
"button": {
|
||||
"0": "Keresés konfigurátor",
|
||||
"_": "Keresés konfigurátor (%d)"
|
||||
},
|
||||
"clearAll": "Összes feltétel törlése",
|
||||
"condition": "Feltétel",
|
||||
"conditions": {
|
||||
"date": {
|
||||
"after": "Után",
|
||||
"before": "Előtt",
|
||||
"between": "Között",
|
||||
"empty": "Üres",
|
||||
"equals": "Egyenlő",
|
||||
"not": "Nem",
|
||||
"notBetween": "Kívül eső",
|
||||
"notEmpty": "Nem üres"
|
||||
},
|
||||
"number": {
|
||||
"between": "Között",
|
||||
"empty": "Üres",
|
||||
"equals": "Egyenlő",
|
||||
"gt": "Nagyobb mint",
|
||||
"gte": "Nagyobb vagy egyenlő mint",
|
||||
"lt": "Kissebb mint",
|
||||
"lte": "Kissebb vagy egyenlő mint",
|
||||
"not": "Nem",
|
||||
"notBetween": "Kívül eső",
|
||||
"notEmpty": "Nem üres"
|
||||
},
|
||||
"string": {
|
||||
"contains": "Tartalmazza",
|
||||
"empty": "Üres",
|
||||
"endsWith": "Végződik",
|
||||
"equals": "Egyenlő",
|
||||
"not": "Nem",
|
||||
"notEmpty": "Nem üres",
|
||||
"startsWith": "Kezdődik",
|
||||
"notContains": "Nem tartalmazza",
|
||||
"notStartsWith": "Nem kezdődik",
|
||||
"notEndsWith": "Nem végződik"
|
||||
},
|
||||
"array": {
|
||||
"equals": "Egyenlő",
|
||||
"empty": "Üres",
|
||||
"contains": "Tartalmazza",
|
||||
"not": "Nem",
|
||||
"notEmpty": "Nem üres",
|
||||
"without": "Nélkül"
|
||||
}
|
||||
},
|
||||
"data": "Adat",
|
||||
"deleteTitle": "Feltétel törlése",
|
||||
"logicAnd": "És",
|
||||
"logicOr": "Vagy",
|
||||
"title": {
|
||||
"0": "Keresés konfigurátor",
|
||||
"_": "Keresés konfigurátor (%d)"
|
||||
},
|
||||
"value": "Érték"
|
||||
},
|
||||
"searchPanes": {
|
||||
"clearMessage": "Szűrők törlése",
|
||||
"collapse": {
|
||||
"0": "Szűrőpanelek",
|
||||
"_": "Szűrőpanelek (%d)"
|
||||
},
|
||||
"count": "{total}",
|
||||
"countFiltered": "{shown} ({total})",
|
||||
"emptyPanes": "Nincsenek szűrőpanelek",
|
||||
"loadMessage": "Szűrőpanelek betöltése",
|
||||
"title": "Aktív szűrőpanelek: %d",
|
||||
"showMessage": "Mindet megmutat",
|
||||
"collapseMessage": "Mindet összecsuk"
|
||||
},
|
||||
"datetime": {
|
||||
"previous": "Előző",
|
||||
"next": "Következő",
|
||||
"hours": "Óra",
|
||||
"minutes": "Perc",
|
||||
"seconds": "Másodperc",
|
||||
"amPm": [
|
||||
"de.",
|
||||
"du."
|
||||
],
|
||||
"weekdays": [
|
||||
"H",
|
||||
"K",
|
||||
"Sze",
|
||||
"Cs",
|
||||
"P",
|
||||
"Szo",
|
||||
"V"
|
||||
],
|
||||
"months": [
|
||||
"Január",
|
||||
"Február",
|
||||
"Március",
|
||||
"Április",
|
||||
"Május",
|
||||
"Június",
|
||||
"Július",
|
||||
"Augusztus",
|
||||
"Szeptember",
|
||||
"Október",
|
||||
"November",
|
||||
"December"
|
||||
]
|
||||
},
|
||||
"editor": {
|
||||
"close": "Bezárás",
|
||||
"create": {
|
||||
"button": "Új",
|
||||
"title": "Új",
|
||||
"submit": "Létrehozás"
|
||||
},
|
||||
"edit": {
|
||||
"button": "Módosítás",
|
||||
"title": "Módosítás",
|
||||
"submit": "Módosítás"
|
||||
},
|
||||
"remove": {
|
||||
"button": "Törlés",
|
||||
"title": "Törlés",
|
||||
"submit": "Törlés"
|
||||
},
|
||||
"error": {
|
||||
"system": "Technikai hiba történt."
|
||||
}
|
||||
},
|
||||
"infoEmpty": "Nincs találat",
|
||||
"thousands": " ",
|
||||
"stateRestore": {
|
||||
"creationModal": {
|
||||
"button": "Létrehozás",
|
||||
"columns": {
|
||||
"search": "Oszlopkeresők",
|
||||
"visible": "Oszlop láthatóság"
|
||||
},
|
||||
"name": "Név:",
|
||||
"order": "Rendezés",
|
||||
"paging": "Oldalszám",
|
||||
"scroller": "Görgetés pozíciója",
|
||||
"search": "Kereső",
|
||||
"searchBuilder": "Keresési feltételek",
|
||||
"select": "Kijelölések",
|
||||
"title": "Állapot mentése",
|
||||
"toggleLabel": "Tartalmazza:"
|
||||
},
|
||||
"duplicateError": "Ilyen névvel már létezik mentett állapot.",
|
||||
"emptyError": "A név nem lehet üres.",
|
||||
"emptyStates": "Nincs mentett állapot",
|
||||
"removeConfirm": "Biztos törlöd %s állapotot?",
|
||||
"removeError": "Nem sikerült törölni a mentett állapotot.",
|
||||
"removeJoiner": "és",
|
||||
"removeSubmit": "Törlés",
|
||||
"removeTitle": "Mentett állapot törlése",
|
||||
"renameButton": "Átnevezés",
|
||||
"renameLabel": "%s új neve:",
|
||||
"renameTitle": "Mentett állapot átnevezése"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user