Beispiel #1
0
        private void AddAddInputLineItemCommandToExecute(ActivityInputItem lineItem)
        {
            if (lineItem == null) return;
            if (!_CanAddCommands) return;
            var cmd = new AddActivityInputLineItemCommand();

            cmd.CommandCreatedDateTime = DateTime.Now;
            cmd.CommandGeneratedByCostCentreApplicationId = DocumentIssuerCostCentreApplicationId;
            cmd.CommandGeneratedByCostCentreId = FieldClerk.Id;
            cmd.CommandId = Guid.NewGuid();

            cmd.DocumentId = Id;
            cmd.ExpiryDate = lineItem.ExpiryDate;
            cmd.ManufacturedDate = lineItem.ManufacturedDate;
            cmd.ProductId = lineItem.Product.Id;
            cmd.Quantity = lineItem.Quantity;
            cmd.SerialNo = lineItem.SerialNo;
            cmd.LineItemId = lineItem.Id;
            cmd.Description = lineItem.Description;
            _AddCommand(cmd);

        }
Beispiel #2
0
  public  void Add(ActivityInputItem item)
 {
     _activityInputItem.Add(item);
     AddAddInputLineItemCommandToExecute(item);
 }