private void InitChildViewBag(InquiryDetailViewModel info) { ViewBag.PriceKindList = new SelectList(this._GlobalService.GetPriceKindList(), "Key", "Value", info?.PriceKindID); //-----------------kevin新增修改 begin------------------ ViewBag.ProductNameList = new SelectList(this._GlobalService.GetProductList(), "Value", "Value", info?.ProductID); //-----------------kevin新增修改 end-------------------- ViewBag.ConditionKindList = new SelectList(this._GlobalService.GetConditionKindList(), "Key", "Value", info?.ConditionID); }
public ActionResult _Item(string id) { //child action don't share the same ViewBag with its “parents” action var info = new InquiryDetailViewModel() { SeqNo = 0, Discount = 100, IsDirty = true }; InitChildViewBag(null); return(PartialView("_Item", info)); }