// GET: MaterialInputs/Create
 public ActionResult Create()
 {
     ViewBag.MaterialId      = new SelectList(materialService.GetAll(), "Id", "Name");
     ViewBag.OrderId         = new SelectList(orderService.GetAll(), "Id", "Name");
     ViewBag.OrderTypeId     = new SelectList(orderTypeService.GetAll(), "Id", "Name");
     ViewBag.StockLocationId = new SelectList(stockLocationService.GetAll(), "Id", "Name");
     ViewBag.SupplierId      = new SelectList(supplierService.GetAll(), "Id", "Name");
     return(View());
 }
示例#2
0
 // GET: Orders/Create
 public ActionResult Create()
 {
     ViewBag.BusinessAreaId         = new SelectList(businessAreaService.GetAll(), "Id", "Name");
     ViewBag.CompanyId              = new SelectList(companyService.GetAll(), "Id", "Name");
     ViewBag.FacilityId             = new SelectList(facilityService.GetAll(), "Id", "Name");
     ViewBag.OrderTypeId            = new SelectList(orderTypeService.GetAll(), "Id", "Name");
     ViewBag.PurchasingDepartmentId = new SelectList(purchasingDepartmentService.GetAll(), "Id", "Name");
     ViewBag.SupplierId             = new SelectList(supplierService.GetAll(), "Id", "Name");
     return(View());
 }
示例#3
0
        // GET: OrderTypes
        public ActionResult Index()
        {
            var orderTypes = Mapper.Map <IEnumerable <OrderTypeViewModel> >(orderTypeService.GetAll());

            return(View(orderTypes));
        }