コード例 #1
0
        public ActionResult Detail(string ActionMode, string No)
        {
            DetailModel model = new DetailModel();

            model.ActionMode = ActionMode;
            model.No         = No;

            if (ActionMode != "Add")
            {
                if (!model.GetDetail())
                {
                    TempData["ResultMessage"] = model.ErrMsg;
                    return(RedirectToAction("SearchList"));
                }
            }
            return(View(model));
        }
コード例 #2
0
        public List <OrderDetail> GetDetail()
        {
            int OrderID = View.OrderID;

            return(DetailModel.GetDetail(OrderID));
        }