|
|
@@ -12,11 +12,11 @@ namespace PRS.Avalonia.Modules;
|
|
|
|
|
|
public class BaseDimensions : IBaseDimensions
|
|
|
{
|
|
|
- public double Quantity { get; set; }
|
|
|
- public double Length { get; set; }
|
|
|
- public double Width { get; set; }
|
|
|
- public double Height { get; set; }
|
|
|
- public double Weight { get; set; }
|
|
|
+ public decimal Quantity { get; set; }
|
|
|
+ public decimal Length { get; set; }
|
|
|
+ public decimal Width { get; set; }
|
|
|
+ public decimal Height { get; set; }
|
|
|
+ public decimal Weight { get; set; }
|
|
|
}
|
|
|
|
|
|
public partial class DimensionsEditorViewModel : BasePopupViewModel<BaseDimensions?>, IAlignedPopup
|
|
|
@@ -62,11 +62,11 @@ public partial class DimensionsEditorViewModel : BasePopupViewModel<BaseDimensio
|
|
|
|
|
|
partial void OnSelectedInstanceChanged(ProductInstanceShell? value)
|
|
|
{
|
|
|
- Length = value?.Length ?? 0.0;
|
|
|
- Height = value?.Height ?? 0.0;
|
|
|
- Width = value?.Width ?? 0.0;
|
|
|
- Weight = value?.Weight ?? 0.0;
|
|
|
- Quantity = value?.Quantity ?? 0.0;
|
|
|
+ Length = value?.Length ?? 0;
|
|
|
+ Height = value?.Height ?? 0;
|
|
|
+ Width = value?.Width ?? 0;
|
|
|
+ Weight = value?.Weight ?? 0;
|
|
|
+ Quantity = value?.Quantity ?? 0;
|
|
|
}
|
|
|
|
|
|
// [ObservableProperty] private bool _hasLength;
|
|
|
@@ -79,15 +79,15 @@ public partial class DimensionsEditorViewModel : BasePopupViewModel<BaseDimensio
|
|
|
//
|
|
|
// [ObservableProperty] private bool _hasWeight;
|
|
|
|
|
|
- [ObservableProperty] private double _length;
|
|
|
+ [ObservableProperty] private decimal _length;
|
|
|
|
|
|
- [ObservableProperty] private double _width;
|
|
|
+ [ObservableProperty] private decimal _width;
|
|
|
|
|
|
- [ObservableProperty] private double _height;
|
|
|
+ [ObservableProperty] private decimal _height;
|
|
|
|
|
|
- [ObservableProperty] private double _quantity;
|
|
|
+ [ObservableProperty] private decimal _quantity;
|
|
|
|
|
|
- [ObservableProperty] private double _weight;
|
|
|
+ [ObservableProperty] private decimal _weight;
|
|
|
|
|
|
public DimensionsEditorViewModel()
|
|
|
{
|