Esempio n. 1
0
        private void InitChildViewBag(QuotationDetailViewModel info)
        {
            ViewBag.PriceKindList =
                new SelectList(this._GlobalService.GetPriceKindList(), "Key", "Value", info?.PriceKindID);

            ViewBag.ConditionKindList =
                new SelectList(this._GlobalService.GetConditionKindList(), "Key", "Value", info?.ConditionID);
        }
Esempio n. 2
0
        public ActionResult _Item(string id)
        {
            //child action don't share the same ViewBag with its “parents” action
            var info = new QuotationDetailViewModel()
            {
                SeqNo   = 0,
                IsDirty = true
            };

            InitChildViewBag(null);

            return(PartialView("_Item", info));
        }