Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public ActionResult Edit(string name)
        {
            IEnumerable <string> lookUpValues = lookUpProvider.GetLookUpValues(name);
            string values = String.Join("\n", lookUpValues);

            ViewBag.values = values;
            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult GetCurrencies()
        {
            var currencies = lookUpProvider.GetLookUpValues("Currency");

            return(Json(currencies, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 4
0
 public ActionResult KlasisLKKJ()
 {
     ViewBag.FlagUmum = lookUpProvider.GetLookUpValues("FlagUmum");
     return(View());
 }