Ejemplo n.º 1
0
        private void AddAddInfectionLineItemCommandToExecute(ActivityInfectionItem item)
        {
            if (item == null) return;
            var cmd = new AddActivityInfectionLineItemCommand();

            cmd.CommandCreatedDateTime = DateTime.Now;
            cmd.CommandGeneratedByCostCentreApplicationId = DocumentIssuerCostCentreApplicationId;
            cmd.CommandGeneratedByCostCentreId = FieldClerk.Id;
            cmd.CommandId = Guid.NewGuid();
            cmd.DocumentId = Id;
            cmd.InfectionId = item.Infection.Id;
            cmd.Description = item.Description;
            cmd.LineItemId = item.Id;
            cmd.Description = item.Description;
            _AddCommand(cmd);
        }
Ejemplo n.º 2
0
        public void Add(ActivityInfectionItem item)
        {
            _activityInfectionItems.Add(item);

            AddAddInfectionLineItemCommandToExecute(item);
        }