コード例 #1
0
        public ActionResult EditOfSecondSuccess(int id, string EnterpriseID)
        {
            ViewBag.MPurl = ConstConfigBll.GetConfigByKey("MPurl");
            WeixinMPBll bll = new WeixinMPBll();

            return(View(bll.GetByIDOfSample(id, EnterpriseID)));
        }
コード例 #2
0
ファイル: GoodsBasicController.cs プロジェクト: xingdd/myjobs
        public FileContentResult ReadByte(string id)
        {
            #region 存放后返回地址
            //if (id != "")
            //{
            //    string path = Server.MapPath("~/Files/QRcodeImage");
            //    string url = LoginUser.UserBasic.EnterpriseID+"." + ConstConfigBll.GetConfigByKey("domian");
            //    string showUrl = url + "/GoodsInfo/Index/" + id;
            //    return Json("/Files/QRcodeImage" + ImageHelper.GetShowImgUrl(path, url.Replace('.', '_').Replace(':', '_') + id, showUrl), JsonRequestBehavior.AllowGet);
            //}
            //else
            //{
            //    return Json("", JsonRequestBehavior.AllowGet);
            //}
            #endregion

            if (id != "")
            {
                string url         = LoginUser.UserBasic.EnterpriseID + "." + ConstConfigBll.GetConfigByKey("domian");
                string showUrl     = url + "/GoodsInfo/Index/" + id;
                byte[] img         = ImageHelper.GetShowImgUrl(showUrl);
                string contentType = MimeMapping.GetMimeMapping("*.jpg");
                return(File(img, contentType));
            }
            else
            {
                return(null);
            }
        }
コード例 #3
0
ファイル: WeixinMPController.cs プロジェクト: xingdd/myjobs
        public ActionResult CreateOfSecondSuccess(int id)
        {
            ViewBag.MPurl = ConstConfigBll.GetConfigByKey("MPurl");
            WeixinMPBll bll = new WeixinMPBll();

            return(View(bll.GetByIDOfSample(id, LoginUser.UserBasic.EnterpriseID)));
        }
コード例 #4
0
        public string GetConfigParamPublic()
        {
            string PageCollectRecord = ConstConfigBll.GetConfigByKey("PageCollectRecord");
            //商品详情页的累计评价记录,默认加载和点击更多追加的条数(10)
            string PageComment     = ConstConfigBll.GetConfigByKey("PageComment");
            string PageOrderRecord = ConstConfigBll.GetConfigByKey("PageOrderRecord");
            //老客户回访记录,默认加载和点击更多追加的条数(10)
            string PageReturnVisit = ConstConfigBll.GetConfigByKey("PageReturnVisit");
            //销售卖点记录默认加载和点击更多追加的条数(10)
            string PageSallingPoint = ConstConfigBll.GetConfigByKey("PageSallingPoint");
            //其他未强调的数据列表,默认显示和上拉更多的条数(12)
            string PagePublic = ConstConfigBll.GetConfigByKey("PagePublic");

            //图片展示地止
            string ImageShowUrl = ConstConfigBll.GetConfigByKey("ImageShowUrl");
            //图片上传地止
            string ImgServiceURL = ConstConfigBll.GetConfigByKey("ImgServiceURL");
            //avi
            string AviShowUrl = ConstConfigBll.GetConfigByKey("AviShowUrl");

            return(new
            {
                PageCollectRecord = PageCollectRecord,
                PageComment = PageComment,
                PageOrderRecord = PageOrderRecord,
                PageReturnVisit = PageReturnVisit,
                PageSallingPoint = PageSallingPoint,
                PagePublic = PagePublic,
                ImageShowUrl = ImageShowUrl,
                ImgServiceURL = ImgServiceURL,
                AviShowUrl = AviShowUrl
            }.GetJson());
        }
コード例 #5
0
 /// <summary>
 /// 预览商品二维码
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public FileContentResult ReadByte(string id)
 {
     if (id != "")
     {
         string path        = Server.MapPath("~/Files/QRcodeImage");
         string url         = AgentLoginUser.UserBasic.EnterpriseID + "." + ConstConfigBll.GetConfigByKey("domian");
         string showUrl     = url + "/GoodsInfo/Index/" + id;
         byte[] img         = ImageHelper.GetShowImgUrl(showUrl);
         string contentType = MimeMapping.GetMimeMapping("*.jpg");
         return(File(img, contentType));
     }
     else
     {
         return(null);
     }
 }
コード例 #6
0
ファイル: BaseController.cs プロジェクト: xingdd/myjobs
        public string GetGoodsClass()
        {
            string PagePublic = ConstConfigBll.GetConfigByKey("PagePublic");

            return(new BrandBll().GetBrandList(LoginUser.UserBasic.EnterpriseID));
        }