public InvoiceAdditionalPriceVM(IFuelController appController,
                                 IInvoiceServiceWrapper invoiceServiceWrapper)
 {
     mainController = appController;
     serviceWrapper = invoiceServiceWrapper;
     Entity = new InvoiceAdditionalPriceDto();
     DisplayName = "ویرایش عوامل تاثیر گذار ";
 }
 public void Load(InvoiceAdditionalPriceDto invoiceAdditionalPrice, ObservableCollection<EffectiveFactorDto> factors, decimal currencyToMainCurrencyRate)
 {
     EffectiveFactors = factors;
     Entity = invoiceAdditionalPrice;
     SelectedEffectiveFactorId = invoiceAdditionalPrice.EffectiveFactorId;
     editMode = true;
 }
 public void SetCollection(ObservableCollection<EffectiveFactorDto> factors, decimal currencyToMainCurrencyRate, Guid uniqId)
 {
     Entity = new InvoiceAdditionalPriceDto();
     EffectiveFactors = factors;
     Entity.CurrencyToMainCurrencyRate = currencyToMainCurrencyRate;
     UniqId = uniqId;
 }
Exemplo n.º 4
0
 public void EditAdditionalPrice(InvoiceAdditionalPriceDto selectedAdditionalPrice, ObservableCollection<EffectiveFactorDto> effectiveFactors, decimal currencyToMainCurrencyRate)
 {
     var view = ViewManager.ShowInDialog<IInvoiceAdditionalPriceView>();
     (view.ViewModel as InvoiceAdditionalPriceVM).Load(selectedAdditionalPrice,effectiveFactors,currencyToMainCurrencyRate);
 }