/// <summary> /// 订阅行其 /// </summary> /// <returns></returns> public JsonResult TrueQuotation(string textval) { PlasBll.MemberCenterBll mbll = new PlasBll.MemberCenterBll(); string errMsg = string.Empty; bool isadd = false; if (!string.IsNullOrWhiteSpace(textval)) { if (AccountData != null && AccountData.UserID != null) { PlasModel.Physics_QuotationModel model = new Physics_QuotationModel(); model.UserId = AccountData.UserID; model.ProductGuid = textval; isadd = mbll.AddPhysics_Quotation(model, ref errMsg); } else { errMsg = "订阅行情请先登录!"; } } else { errMsg = "订阅号不能未空!"; } return(Json(new { errMsg = errMsg, isadd = isadd }, JsonRequestBehavior.AllowGet)); }
// GET: 物料对比 public ActionResult Index() { Sidebar(); PlasBll.MemberCenterBll mbll = new PlasBll.MemberCenterBll(); var userName = string.Empty; string errMsg = string.Empty; if (AccountData != null) { userName = AccountData.UserID; } var list = new List <PlasModel.Physics_ContrastModel>(); if (!string.IsNullOrWhiteSpace(userName)) { list = mbll.GetPhysics_Contrast(userName, ref errMsg); } ViewBag.ContrastList = list; return(View()); }