|
|
|
|
@ -8,29 +8,29 @@ namespace Gremlin.MVVM
|
|
|
|
|
{
|
|
|
|
|
public class LineItemViewModel : PropertyChangedBase
|
|
|
|
|
{
|
|
|
|
|
private ushort _position;
|
|
|
|
|
private ushort _amount;
|
|
|
|
|
private string _productNumber;
|
|
|
|
|
private string _optionNumber;
|
|
|
|
|
private string _sapShortDescription;
|
|
|
|
|
private CustomDescriptionViewModel _customDescriptionVM;
|
|
|
|
|
private string _productLine;
|
|
|
|
|
private decimal _totalDiscount;
|
|
|
|
|
private decimal _calcNetPrice;
|
|
|
|
|
private decimal _calcTotalNet;
|
|
|
|
|
private decimal _listPrice;
|
|
|
|
|
|
|
|
|
|
public ushort Position { get => _position; set { _position = value; NotifyOfPropertyChange(() => Position); } }
|
|
|
|
|
public ushort Amount { get => _amount; set { _amount = value; NotifyOfPropertyChange(() => Amount); } }
|
|
|
|
|
public string ProductNumber { get => _productNumber; set { _productNumber = value; NotifyOfPropertyChange(() => ProductNumber); } }
|
|
|
|
|
public string OptionNumber { get => _optionNumber; set { _optionNumber = value; NotifyOfPropertyChange(() => OptionNumber); } }
|
|
|
|
|
public string SapShortDescription { get => _sapShortDescription; set { _sapShortDescription = value; NotifyOfPropertyChange(() => SapShortDescription); } }
|
|
|
|
|
public CustomDescriptionViewModel CustomDescriptionVM { get => _customDescriptionVM; set { _customDescriptionVM = value; NotifyOfPropertyChange(() => CustomDescriptionVM); } }
|
|
|
|
|
public string ProductLine { get => _productLine; set { _productLine = value; NotifyOfPropertyChange(() => ProductLine); } }
|
|
|
|
|
public decimal TotalDiscount { get => _totalDiscount; set { _totalDiscount = value; NotifyOfPropertyChange(() => TotalDiscount); } }
|
|
|
|
|
public decimal CalcNetPrice { get => _calcNetPrice; set { _calcNetPrice = value; NotifyOfPropertyChange(() => CalcNetPrice); } }
|
|
|
|
|
public decimal CalcTotalNet { get => _calcTotalNet; set { _calcTotalNet = value; NotifyOfPropertyChange(() => CalcTotalNet); } }
|
|
|
|
|
public decimal ListPrice { get => _listPrice; set { _listPrice = value; NotifyOfPropertyChange(() => ListPrice); } }
|
|
|
|
|
private ushort position;
|
|
|
|
|
private ushort amount;
|
|
|
|
|
private string productNumber;
|
|
|
|
|
private string optionNumber;
|
|
|
|
|
private string sapShortDescription;
|
|
|
|
|
private CustomDescriptionViewModel customDescriptionVM;
|
|
|
|
|
private string productLine;
|
|
|
|
|
private decimal totalDiscount;
|
|
|
|
|
private decimal calcNetPrice;
|
|
|
|
|
private decimal calcTotalNet;
|
|
|
|
|
private decimal listPrice;
|
|
|
|
|
|
|
|
|
|
public ushort Position { get => position; set { position = value; NotifyOfPropertyChange(() => Position); } }
|
|
|
|
|
public ushort Amount { get => amount; set { amount = value; NotifyOfPropertyChange(() => Amount); } }
|
|
|
|
|
public string ProductNumber { get => productNumber; set { productNumber = value; NotifyOfPropertyChange(() => ProductNumber); } }
|
|
|
|
|
public string OptionNumber { get => optionNumber; set { optionNumber = value; NotifyOfPropertyChange(() => OptionNumber); } }
|
|
|
|
|
public string SapShortDescription { get => sapShortDescription; set { sapShortDescription = value; NotifyOfPropertyChange(() => SapShortDescription); } }
|
|
|
|
|
public CustomDescriptionViewModel CustomDescriptionVM { get => customDescriptionVM; set { customDescriptionVM = value; NotifyOfPropertyChange(() => CustomDescriptionVM); } }
|
|
|
|
|
public string ProductLine { get => productLine; set { productLine = value; NotifyOfPropertyChange(() => ProductLine); } }
|
|
|
|
|
public decimal TotalDiscount { get => totalDiscount; set { totalDiscount = value; NotifyOfPropertyChange(() => TotalDiscount); } }
|
|
|
|
|
public decimal CalcNetPrice { get => calcNetPrice; set { calcNetPrice = value; NotifyOfPropertyChange(() => CalcNetPrice); } }
|
|
|
|
|
public decimal CalcTotalNet { get => calcTotalNet; set { calcTotalNet = value; NotifyOfPropertyChange(() => CalcTotalNet); } }
|
|
|
|
|
public decimal ListPrice { get => listPrice; set { listPrice = value; NotifyOfPropertyChange(() => ListPrice); } }
|
|
|
|
|
|
|
|
|
|
internal static ObservableCollection<LineItemViewModel> ReadLineItemsFromClipboard()
|
|
|
|
|
{
|
|
|
|
|
|