public ActionResult NearbyList(string searchName) { string currentLon = Request.Cookies["currlong"].Value; string currentLat = Request.Cookies["currlat"].Value; QueryWhere entity = new QueryWhere() { SearchName = searchName, wxLat = currentLat, wxLon = currentLon }; string queryJson = entity.ToJson(); ViewBag.listgt = locationBll.GetList(queryJson); return(View()); //string currentLon = ""; //string currentLat = ""; //if (currentLon == "" || currentLat == "") //{ // currentLon = "118.33954"; // currentLat = "35.06199"; //} //QueryWhere entity = new QueryWhere() //{ // SearchName = searchName, // wxLat = currentLat, // wxLon = currentLon //}; //string queryJson = entity.ToJson(); //ViewBag.listgt = locationBll.GetList(queryJson); //return View(); }
public object Post(QueryWhere queryWhere) { try { var list = this.dayLogService.FindList(queryWhere.PaginationModel, queryWhere.QueryParamModel); return(base.ToSuccessObject(new { List = list, RecordTotal = queryWhere.PaginationModel.RecordTotal })); } catch (Exception ex) { return(base.ToFailureObject(ex.Message)); } }
public ActionResult MapList() { string currentLng = Request.Cookies["currlong"].Value; string currentLat = Request.Cookies["currlat"].Value; QueryWhere entity = new QueryWhere() { wxLat = currentLat, wxLon = currentLng }; string queryJson = entity.ToJson(); var data = posShopBll.GetList(queryJson); return(Content(data.ToJson())); }
public ActionResult ShopList(string searchName) { string currentLng = Request.Cookies["currlong"].Value; string currentLat = Request.Cookies["currlat"].Value; QueryWhere entity = new QueryWhere() { SearchName = searchName, wxLat = currentLat, wxLon = currentLng }; string queryJson = entity.ToJson(); ViewBag.listgt = posShopBll.GetList(queryJson); return(View()); }
public ActionResult OfficeCompanyList(string officeId, string officeName, string searchName) { string currentLng = Request.Cookies["currlong"].Value; string currentLat = Request.Cookies["currlat"].Value; QueryWhere entity = new QueryWhere() { OfficeId = officeId, SearchName = searchName, wxLat = currentLat, wxLon = currentLng }; string queryJson = entity.ToJson(); ViewBag.listgt = posOfficeCompanyBll.GetList(queryJson); ViewBag.officeId = officeId; ViewBag.officeName = officeName; return(View()); }
public object Post(QueryWhere queryWhere) { try { if (queryWhere.QueryParamModel.SortList.Count == 0) { queryWhere.QueryParamModel.SortList.Add(new SortField() { SortValue = "PositionCode" }); } var list = this.positionService.FindList(queryWhere.PaginationModel, queryWhere.QueryParamModel); return(base.ToSuccessObject(new { List = list, RecordTotal = queryWhere.PaginationModel.RecordTotal })); } catch (Exception ex) { return(base.ToFailureObject(ex.Message)); } }
/// <summary> /// 订单列表 /// </summary> /// <param name="searchName"></param> /// <returns></returns> public ActionResult SaleList(string searchName) { QueryWhere entity = new QueryWhere() { SearchName = searchName }; string queryJson = entity.ToJson(); var listgt = saleBLL.GetList(queryJson); foreach (var sale in listgt) { var listgtitem = saleBLL.GetDetails(sale.Id); foreach (var item in listgtitem) { //产品:50(个) * 10 = 500 sale.SpareField += item.ProductName + ": " + item.Count + "*" + item.ProductUnit + "=" + item.Amount + "<br/> "; } } ViewBag.listgt = listgt; return(View()); }