コード例 #1
0
        public ActionResult _Edit(int id)
        {
            DesignConsumptionLineViewModel s = _BomDetailService.GetDesignConsumptionLineForEdit(id);

            DesignConsumptionLineViewModel temp = _BomDetailService.GetBaseProductDetail(s.BaseProductId);

            s.DesignName  = temp.DesignName;
            s.DesignId    = temp.DesignId;
            s.QualityName = temp.QualityName;
            s.Weight      = temp.Weight;

            PrepareViewBag(s);

            if (s == null)
            {
                return(HttpNotFound());
            }
            return(PartialView("_Create", s));
        }