public ProductionOrderCustomsDeclarationPayment(ProductionOrderCustomsDeclaration customsDeclaration, string paymentDocumentNumber, DateTime date,
                                                        decimal sumInCurrency, CurrencyRate currencyRate, ProductionOrderPaymentForm form) : base(paymentDocumentNumber, date, sumInCurrency, currencyRate, form,
                                                                                                                                                  ProductionOrderPaymentType.ProductionOrderCustomsDeclarationPayment)
        {
            ValidationUtils.NotNull(customsDeclaration, "Не указан таможенный лист.");
            CustomsDeclaration = customsDeclaration;
            CustomsDeclaration.AddPayment(this);

            ProductionOrder = CustomsDeclaration.ProductionOrder;
            ProductionOrder.AddPayment(this);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Удаление таможенного листа
 /// </summary>
 /// <param name="customsDeclaration">Таможенный лист</param>
 /// <param name="currentDateTime">Текущее время</param>
 public virtual void DeleteCustomsDeclaration(ProductionOrderCustomsDeclaration customsDeclaration, DateTime currentDateTime)
 {
     customsDeclaration.DeletionDate = currentDateTime;
     customsDeclarations.Remove(customsDeclaration);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Добавление таможенного листа
 /// </summary>
 /// <param name="customsDeclaration">Таможенный лист</param>
 public virtual void AddCustomsDeclaration(ProductionOrderCustomsDeclaration customsDeclaration)
 {
     customsDeclarations.Add(customsDeclaration);
     customsDeclaration.ProductionOrder = this;
 }