-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update Customer Information management logic and UI
- Added AddCustomerPetCommand logic in the AddCustomersView. It allows user to add pets to a customer. - Additional minor tweaks include updating scrollbar styles, CustomerViewModel and several other elements for accommodating the new changes and improving overall user experience. Signed-off-by: Russell Camo <[email protected]>
- Loading branch information
Showing
11 changed files
with
296 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
using GroomWise.Application.Observables; | ||
using GroomWise.Domain.Entities; | ||
using Mapster; | ||
|
||
namespace GroomWise.Application.Mappers; | ||
|
||
public static class PetMapper | ||
{ | ||
public static Pet ToEntity(this ObservablePet observablePet) | ||
{ | ||
return observablePet.Adapt<Pet>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,136 @@ | ||
<UserControl x:Class="GroomWise.Views.Pages.ServicesView" | ||
xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="https://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="https://schemas.openxmlformats.org/markup-compatibility/2006" | ||
HorizontalAlignment="Stretch" | ||
d:DesignHeight="300" | ||
d:DesignWidth="300" | ||
Style="{StaticResource FadeInFromBottomAnimation}" | ||
mc:Ignorable="d"> | ||
<TextBlock HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Text="Services" /> | ||
<UserControl | ||
x:Class="GroomWise.Views.Pages.ServicesView" | ||
xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="https://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:icons="clr-namespace:Material.Icons.WPF;assembly=Material.Icons.WPF" | ||
xmlns:mc="https://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:russkyc="clr-namespace:org.russkyc.moderncontrols;assembly=Russkyc.ModernControls.WPF" | ||
xmlns:templates="clr-namespace:GroomWise.Views.Templates" | ||
xmlns:viewModels="clr-namespace:GroomWise.Application.ViewModels;assembly=GroomWise.Application" | ||
HorizontalAlignment="Stretch" | ||
d:DataContext="{d:DesignInstance viewModels:GroomingServiceViewModel, | ||
IsDesignTimeCreatable=True}" | ||
d:DesignHeight="720" | ||
d:DesignWidth="1280" | ||
Style="{StaticResource FadeInFromBottomAnimation}" | ||
mc:Ignorable="d"> | ||
<Grid Style="{StaticResource FadeInFromBottomAnimation}"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="320" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid Grid.Column="0" Margin="16,20,16,16"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<Grid | ||
Grid.Row="0" | ||
Margin="0,0,0,12" | ||
HorizontalAlignment="Stretch"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="Auto" /> | ||
</Grid.ColumnDefinitions> | ||
<TextBlock | ||
Grid.Column="0" | ||
VerticalAlignment="Center" | ||
FontSize="16" | ||
Text="Services" /> | ||
<russkyc:ModernTextBox | ||
Grid.Column="2" | ||
Width="200" | ||
Margin="12,0" | ||
CornerRadius="5" | ||
LeftIcon="{icons:MaterialIconExt Search}" | ||
Placeholder="Find Employee" | ||
Text="{Binding Filter, UpdateSourceTrigger=PropertyChanged}" /> | ||
<russkyc:ModernButton | ||
Grid.Column="3" | ||
HorizontalAlignment="Right" | ||
Content="Add Employee" | ||
CornerRadius="5" | ||
FontWeight="Medium" | ||
IconSize="18" | ||
LeftIcon="{icons:MaterialIconExt Kind=AddBold}" /> | ||
</Grid> | ||
<ScrollViewer | ||
Grid.Row="1" | ||
VerticalAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch" | ||
VerticalScrollBarVisibility="Auto"> | ||
<ItemsControl ItemsSource="{Binding Employees.EditableCollectionView, UpdateSourceTrigger=PropertyChanged}"> | ||
<ItemsControl.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel IsVirtualizing="True" VirtualizationMode="Recycling" /> | ||
</ItemsPanelTemplate> | ||
</ItemsControl.ItemsPanel> | ||
<ItemsControl.ItemTemplate> | ||
<DataTemplate> | ||
<templates:EmployeeListCardTemplate /> | ||
</DataTemplate> | ||
</ItemsControl.ItemTemplate> | ||
<ItemsControl.ItemContainerStyle> | ||
<Style TargetType="{x:Type FrameworkElement}"> | ||
<Setter Property="Margin" Value="0,0,0,10" /> | ||
</Style> | ||
</ItemsControl.ItemContainerStyle> | ||
</ItemsControl> | ||
</ScrollViewer> | ||
</Grid> | ||
<Grid Grid.Column="1" Margin="0,20,16,16"> | ||
<Grid Margin="0,0,0,0" VerticalAlignment="Stretch"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<Grid Grid.Row="0" Margin="0,0,0,12"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="Auto" /> | ||
</Grid.ColumnDefinitions> | ||
<TextBlock | ||
Grid.Column="0" | ||
VerticalAlignment="Center" | ||
FontSize="16" | ||
Text="Roles" /> | ||
<russkyc:ModernButton | ||
Grid.Column="2" | ||
HorizontalAlignment="Right" | ||
Content="Add Role" | ||
CornerRadius="5" | ||
FontWeight="Medium" | ||
IconSize="18" | ||
LeftIcon="{icons:MaterialIconExt Kind=AddBold}" /> | ||
</Grid> | ||
<ScrollViewer | ||
Grid.Row="1" | ||
VerticalAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch" | ||
VerticalScrollBarVisibility="Auto"> | ||
<ItemsControl ItemsSource="{Binding Roles.EditableCollectionView, UpdateSourceTrigger=PropertyChanged}"> | ||
<ItemsControl.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel IsVirtualizing="True" VirtualizationMode="Recycling" /> | ||
</ItemsPanelTemplate> | ||
</ItemsControl.ItemsPanel> | ||
<ItemsControl.ItemTemplate> | ||
<DataTemplate> | ||
<templates:RoleListCardTemplate /> | ||
</DataTemplate> | ||
</ItemsControl.ItemTemplate> | ||
<ItemsControl.ItemContainerStyle> | ||
<Style TargetType="{x:Type FrameworkElement}"> | ||
<Setter Property="Margin" Value="0,0,0,10" /> | ||
</Style> | ||
</ItemsControl.ItemContainerStyle> | ||
</ItemsControl> | ||
</ScrollViewer> | ||
</Grid> | ||
</Grid> | ||
</Grid> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.