예제 #1
0
        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();
        }
예제 #2
0
 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));
     }
 }
예제 #3
0
        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()));
        }
예제 #4
0
        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());
        }
예제 #5
0
        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());
        }
예제 #6
0
 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));
     }
 }
예제 #7
0
        /// <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 + ":&nbsp;" + item.Count + "*" + item.ProductUnit + "=" + item.Amount + "<br/> ";
                }
            }

            ViewBag.listgt = listgt;
            return(View());
        }