Alap BUGFIX javításhoz
This commit is contained in:
@@ -19,11 +19,12 @@ namespace WorkFlowCheck.MAUI.Helper
|
|||||||
public static string DatabaseName = "";
|
public static string DatabaseName = "";
|
||||||
public static bool Syncronised = false;
|
public static bool Syncronised = false;
|
||||||
public static UserDTO SystemUserDTO;
|
public static UserDTO SystemUserDTO;
|
||||||
public static string ProgramVersion = "v1.1.035";
|
public static string ProgramVersion = "v1.1.036";
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
//public static string ApiBaseUrl = $"http://10.0.2.2:59027/";
|
//public static string ApiBaseUrl = $"http://10.0.2.2:59027/";
|
||||||
public static string ApiBaseUrl = $"https://dev.wfcapi.nuvolar.hu/";
|
//public static string ApiBaseUrl = $"https://dev.wfcapi.nuvolar.hu/";
|
||||||
|
public static string ApiBaseUrl = $"https://uat.wfcapi.nuvolar.hu/";
|
||||||
public static string ApiKey = $"RUJeLSpSMzVASUdaRCEzUyYxRSE0VyFISFRSJC0zRzhLM1hCSDU=";
|
public static string ApiKey = $"RUJeLSpSMzVASUdaRCEzUyYxRSE0VyFISFRSJC0zRzhLM1hCSDU=";
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="WorkFlowCheck.MAUI.Pages.CheckList.CheckListWorkPage"
|
x:Class="WorkFlowCheck.MAUI.Pages.CheckList.CheckListWorkPage"
|
||||||
xmlns:templateselectors="clr-namespace:WorkFlowCheck.MAUI.TemplateSelectors"
|
xmlns:templateselectors="clr-namespace:WorkFlowCheck.MAUI.TemplateSelectors"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
xmlns:local="clr-namespace:WorkFlowCheck.MAUI.Pages.CheckList"
|
xmlns:local="clr-namespace:WorkFlowCheck.MAUI.Pages.CheckList"
|
||||||
BackgroundColor="#f0f0f0"
|
BackgroundColor="#f0f0f0"
|
||||||
Title="">
|
Title="">
|
||||||
@@ -134,7 +135,14 @@
|
|||||||
Aspect="AspectFill"
|
Aspect="AspectFill"
|
||||||
Margin="0,0,10,0"
|
Margin="0,0,10,0"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
Source="{Binding Photo, Converter={StaticResource ByteArrayToImageSourceConverter}}" />
|
Source="{Binding Photo, Converter={StaticResource ByteArrayToImageSourceConverter}}" >
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:EventToCommandBehavior
|
||||||
|
EventName="BindingContextChanged"
|
||||||
|
Command="{Binding BindingContext.RefreshImageCommand, Source={x:Reference CheckPointCheckListRows}}"
|
||||||
|
CommandParameter="{Binding .}" />
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
<Button Text="📷" Grid.Column="1"
|
<Button Text="📷" Grid.Column="1"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
Command="{Binding BindingContext.TakePhoto, Source={x:Reference CheckPointCheckListRows}}"
|
Command="{Binding BindingContext.TakePhoto, Source={x:Reference CheckPointCheckListRows}}"
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ public partial class CheckListWorkPage : ContentPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public ObservableCollection<CheckListRowDTO> CheckListRows { get; set; } = new ObservableCollection<CheckListRowDTO>();
|
public ObservableCollection<CheckListRowDTO> CheckListRows { get; set; } = new ObservableCollection<CheckListRowDTO>();
|
||||||
|
public ICommand RefreshImageCommand => new Command<CheckListRowDTO>(item =>
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
// Ha kell, itt újra lehet állítani valamit vagy logolni
|
||||||
|
//Debug.WriteLine($"Kép frissítés: {item.Id}");
|
||||||
|
});
|
||||||
public ICommand TakePhoto { get; set; }
|
public ICommand TakePhoto { get; set; }
|
||||||
public ICommand SendCommand { get; set; }
|
public ICommand SendCommand { get; set; }
|
||||||
public ICommand SaveCommand { get; set; }
|
public ICommand SaveCommand { get; set; }
|
||||||
@@ -275,7 +281,7 @@ public class ByteArrayToImageSourceConverter : IValueConverter
|
|||||||
{
|
{
|
||||||
return ImageSource.FromStream(() => new MemoryStream(bytes));
|
return ImageSource.FromStream(() => new MemoryStream(bytes));
|
||||||
}
|
}
|
||||||
return null;
|
return ImageSource.FromFile("noimage.png"); ;
|
||||||
}
|
}
|
||||||
|
|
||||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
Reference in New Issue
Block a user