예제 #1
0
        private void GenerateOrderSubOrders(CompanyOrder order, string[] subOrderIds)
        {
            foreach (var subOrderId in subOrderIds)
            {
                if (string.IsNullOrEmpty(subOrderId))
                {
                    continue;
                }

                var subOrder = _companySubOrderService.GetById(new Guid(subOrderId));
                if (subOrder != null)
                {
                    order.SubOrders.Add(subOrder);
                }
            }
        }
예제 #2
0
        public ActionResult Edit(Guid id)
        {
            var model = new HospitalBookProcessViewModel();

            using (UnitOfWorkManager.NewUnitOfWork())
            {
                CompanySubOrder order = _companySubOrderService.GetById(id);
                model.CompanySubOrder = order;
            }
            return(View(model));
        }