Ejemplo n.º 1
0
        public ActionResult GenerateProcessDetails(WorkProcess process) {

            _workProcessService.GenerateWorkProcesses( process);
            _unitOfWork.SaveChanges();
            return Json(new { success = true }, JsonRequestBehavior.AllowGet);
        }
Ejemplo n.º 2
0
 // GET: WorkProcesses/Create
 public ActionResult Create()
 {
     WorkProcess workProcess = new WorkProcess();
     //set default value
     var customerRepository = _unitOfWork.Repository<Customer>();
     ViewBag.CustomerId = new SelectList(customerRepository.Queryable(), "Id", "AccountNumber");
     var orderRepository = _unitOfWork.Repository<Order>();
     ViewBag.OrderId = new SelectList(orderRepository.Queryable(), "Id", "OrderKey");
     var productionprocessRepository = _unitOfWork.Repository<ProductionProcess>();
     ViewBag.ProductionProcessId = new SelectList(productionprocessRepository.Queryable(), "Id", "Name");
     var skuRepository = _unitOfWork.Repository<SKU>();
     ViewBag.SKUId = new SelectList(skuRepository.Queryable(), "Id", "Sku");
     var workRepository = _unitOfWork.Repository<Work>();
     ViewBag.WorkId = new SelectList(workRepository.Queryable(), "Id", "WorkNo");
     var workdetailRepository = _unitOfWork.Repository<WorkDetail>();
     ViewBag.WorkDetailId = new SelectList(workdetailRepository.Queryable(), "Id", "WorkNo");
     return View(workProcess);
 }