예제 #1
0
        public string GetDate(int good_id)
        {
            string jsonstr = "";
            try {
                GoodDateInfo list=new GoodDateInfo ();
                list.setWeekPrice(good_id);
                list.setDatePrice(good_id); 

                list.setCloseDate(good_id);
                list.setSpecialPrice(good_id);
                jsonstr = ReturnJson.toJson("100", "成功", list);
            }
            catch (Exception e) {  jsonstr = ReturnJson.toJson("101","失败",-1);}
            return jsonstr;
        }
예제 #2
0
        public HpartyForDetail(Model.hp_goodinfo model)
        {
            var bussinfoModel = entity.hp_businessinfo.First(o => o.countid == model.countid);
            var busscountModel = entity.hp_count.First(o => o.id == model.countid);
            var hpartyModel = entity.hp_hparty.First(o => o.goodid == model.id);

            id = model.id;
            title = model.title;
            images = ImageCut(model.images);
            summary = hpartyModel.summary;
            oldprice = model.oldprice.ToString();
            tel = busscountModel.tel;
            address = model.adddetail;
            lng = model.lng.ToString();
            lat = model.lat.ToString();
            favorite = "0";
            score = "4.5";//评分
            allnum =commentManager.GetNumOfGoodById(model.id).ToString();//总评论人数
            beforebuy = "整个数据库都没有这个字段,林耀鑫就喜欢做梦";
            //最新评论
            comment = commentManager.GetCommentFirst(model.id);
            //价格信息
            pricelist = dateManager.GetDateByGoodInfo(model.id);
        }