예제 #1
0
        // GET: Order
        public ActionResult Index()
        {
            EmployeeService employeeService = new EmployeeService();

            ViewBag.employeeService = employeeService.GetEmployeeName();

            ShipperService shipperService = new ShipperService();

            ViewBag.shipperService = shipperService.GetShipperName();

            return(View());
        }
예제 #2
0
        /// <summary>
        /// 修改訂單
        /// </summary>
        /// <param name="oederID"></param>
        /// <returns></returns>
        public ActionResult Update(int orderID)
        {
            ///連結orderService
            OrderService orderService = new OrderService();
            ///員工下拉式選單
            EmployeeService       employeeService = new EmployeeService();
            List <SelectListItem> employeeitems   = employeeService.GetEmployeeName();

            ViewBag.employeeService = employeeitems;
            ///出貨公司下拉式選單
            ShipperService        shipperService = new ShipperService();
            List <SelectListItem> shipperitems   = shipperService.GetShipperName();

            ViewBag.shipperService = shipperitems;
            ///顧客下拉式選單
            CustomerService       customerService = new CustomerService();
            List <SelectListItem> selectListItems = customerService.GetCustomerList();

            ViewBag.customerService = selectListItems;
            return(View(orderService.GetOrder(orderID)));
        }