예제 #1
0
 public ActionResult Index1(string Searchkey, string city)
 {
     var str = Searchkey;
     var result = new TResult<List<Entity.SpeechInfoEntity>>();
     SpeechInfoBLL bll = new SpeechInfoBLL();
     ViewBag.Citys = citys;
     ViewBag.Sel = city;
     ViewBag.Key = Searchkey;
     result = bll.GetAllSpeechInfoList(str, city, null);
     return View("Index",result);
 }
예제 #2
0
        public ActionResult SelectShop()
        {
            ViewBag.count = BuildFactory.AppylyStroeFactory().QueryShop().Count;

            var str = string.Empty;
            var city = string.Empty;
            if (Request["key"] != null)
            {
                str = Request["key"];
            }
            if (Request["c"] != null)
            {
                city = Request["c"];
            }
            var result = new TResult<List<Entity.SpeechInfoEntity>>();
            SpeechInfoBLL bll = new SpeechInfoBLL();
            ViewBag.Citys = citys;
            result = bll.GetAllSpeechInfoList(str, city, null);

            ;

            return View(result);
        }
예제 #3
0
        public ActionResult Index()
        {
            //IPScaner objScan = new IPScaner();
            //string ip = Request.UserHostAddress.ToString();
            //objScan.DataPath = Server.MapPath("/App_data/qqwry.Dat");
            //objScan.IP = "58.19.17.114";
            ////"113.200.29.90";
            //string addre = "湖北省武汉市";
            //int IndexofA = addre.IndexOf("省") + 1;
            //var ct = addre.Substring(0,IndexofA);

            //Response.Write("58.19.17.114====" + addre + "========" + ct);

            var str = string.Empty;
            var city = string.Empty;
            if (Request["key"] != null)
            {
                str = Request["key"];
            }
            if (Request["c"] != null)
            {
                city = Request["c"];
            }
            var result = new TResult<List<Entity.SpeechInfoEntity>>();
            SpeechInfoBLL bll = new SpeechInfoBLL();
            ViewBag.Citys = citys;
            result = bll.GetAllSpeechInfoList(str, city, null);

              ;

            return View(result);
        }
예제 #4
0
        public ActionResult MyShop1(int id)
        {
            double pageCount = (double)(BuildFactory.GoodsFactory().Count(id)) / 12;//每页10
            pageCount = Math.Ceiling(pageCount);
            ViewBag.PageCout = pageCount;//一共多少页

            ViewBag.Count = BuildFactory.GoodsFactory().Count(id);
            Session["stroeid"] = id;

            ViewBag.count = BuildFactory.AppylyStroeFactory().QueryShop().Count;

            var str = string.Empty;
            var city = string.Empty;
            if (Request["key"] != null)
            {
                str = Request["key"];
            }
            if (Request["c"] != null)
            {
                city = Request["c"];
            }
            var result = new TResult<List<Entity.SpeechInfoEntity>>();
            SpeechInfoBLL bll = new SpeechInfoBLL();
            ViewBag.Citys = citys;
            result = bll.GetAllSpeechInfoList(str, city, null);

            ;

            return View(result);
        }