public ActionResult PrintFrom() { ViewBag.UserName = Code.OperatorProvider.Provider.Current().UserName; DateTime time = DateTime.Now; ViewBag.year = time.Year.ToString(); ViewBag.month = (time.Month < 10 ? ("0" + time.Month.ToString()) : time.Month.ToString()); ViewBag.day = (time.Day < 10 ? ("0" + time.Day.ToString()) : time.Day.ToString()); string property_id = ""; if (!string.IsNullOrEmpty(Utils.GetCookie("property_id"))) { property_id = Utils.GetCookie("property_id"); } OptionBLL optionbll = new OptionBLL(); var data = optionbll.GetEntity(property_id); if (data != null) { ViewBag.option_exchange = string.Format("{0:N2}", data.option_exchange); } return(View()); }
public ActionResult GetFormJson(string keyValue) { string property_id = ""; if (!string.IsNullOrEmpty(Utils.GetCookie("property_id"))) { property_id = Utils.GetCookie("property_id"); } var data = optionbll.GetEntity(property_id); return(ToJsonResult(data)); }