예제 #1
0
        public override void OnCreating(ExternalTransferOrderItem model)
        {
            base.OnCreating(model);

            model._CreatedAgent      = "Service";
            model._CreatedBy         = this.Username;
            model._LastModifiedAgent = "Service";
            model._LastModifiedBy    = this.Username;

            ExternalTransferOrderDetailService externalTransferOrderDetailService = ServiceProvider.GetService <ExternalTransferOrderDetailService>();

            externalTransferOrderDetailService.Username = this.Username;

            foreach (ExternalTransferOrderDetail externalTransferOrderDetail in model.ExternalTransferOrderDetails)
            {
                externalTransferOrderDetailService.OnCreating(externalTransferOrderDetail);
            }
        }