示例#1
0
        private void InitChildViewBag(PurchaseInvoiceDetailViewModel info)
        {
            //ViewBag.PriceKindList =
            //    new SelectList(this._GlobalService.GetPriceKindList(), "Key", "Value", info?.PriceKindID);

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

            InitChildViewBag(null);

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