public ActionResult Create(int unitPriceMode = 0) { var model = new CreateEditViewModel(); model.OrderNo = "NEW"; model.Date = DateTime.Today; model.Start = DateTime.Now; model.UnitPriceMode = unitPriceMode; var orderTypes = lookUpProvider.GetLookUpValues("OrderType").ToList(); ViewBag.DefaultOrderType = orderTypes[0]; OrderDetailSessionWrapper.Initialize(); return(View("CreateEdit", model)); }
public ActionResult Edit(string name) { IEnumerable <string> lookUpValues = lookUpProvider.GetLookUpValues(name); string values = String.Join("\n", lookUpValues); ViewBag.values = values; return(View()); }
public ActionResult GetCurrencies() { var currencies = lookUpProvider.GetLookUpValues("Currency"); return(Json(currencies, JsonRequestBehavior.AllowGet)); }
public ActionResult KlasisLKKJ() { ViewBag.FlagUmum = lookUpProvider.GetLookUpValues("FlagUmum"); return(View()); }