private void ShowImgBind() { //var comid = Context.Request["comid"].ConvertTo<int>(0); var comid = UserHelper.CurrentCompany.ID; if (adid != 0) { var actdata = new WxAdData(); var pro = actdata.Getwxad(adid, comid); if (pro != null) { Title = pro.Title; Link = pro.Link; } } if (id != 0) { var actdata = new WxAdImagesData(); var imgpro = actdata.Getwxadimages(id, adid); if (imgpro != null) { FileUploadModel identityFileUpload = new FileUploadData().GetFileById(imgpro.Imageid); if (identityFileUpload != null) { headPortraitImgSrc = identityFileUpload.Relativepath; } } } }
private void ShowImgBind() { //var comid = Context.Request["comid"].ConvertTo<int>(0); var comid = UserHelper.CurrentCompany.ID; if (adid != 0) { var actdata = new WxAdData(); var pro = actdata.Getwxad(adid, comid); if (pro != null) { Title = pro.Title; } } }
private void ShowImgBind() { //var comid = Context.Request["comid"].ConvertTo<int>(0); string RequestUrl = Request.ServerVariables["SERVER_NAME"].ToLower(); if (Domain_def.Domain_yanzheng(RequestUrl))//如果符合shop101.etown.cn的格式,则从多微信商户基本信息表中获取comid { comid = Int32.Parse(Domain_def.Domain_Huoqu(RequestUrl).ToString()); } else { B2b_company_info companyinfo = B2bCompanyData.GetComId(RequestUrl); if (companyinfo != null) { comid = companyinfo.Com_id; } } if (id != 0 && comid != 0) { var actdata = new WxAdData(); var pro = actdata.Getwxad(id, comid); if (pro != null) { id = pro.Id; Title = pro.Title; Link = pro.Link; Author = pro.Author; Keyword = pro.Keyword; Musicid = pro.Musicid; Applystate = pro.Applystate; if (Musicid != 0) { Musicscr = FileSerivce.GetImgUrl(Musicid); } } } }
private void ShowImgBind() { //var comid = Context.Request["comid"].ConvertTo<int>(0); var comid = UserHelper.CurrentCompany.ID; if (id != 0) { var actdata = new WxAdData(); var pro = actdata.Getwxad(id, comid); if (pro != null) { Adtype = pro.Adtype; id = pro.Id; Title = pro.Title; Link = pro.Link; Author = pro.Author; Keyword = pro.Keyword; Applystate = pro.Applystate; Votecount = pro.Votecount; Lookcount = pro.Lookcount; Musicid = pro.Musicid; if (Musicid != 0) { Musicscr = FileSerivce.GetImgUrl(Musicid); } FileUploadModel identityFileUpload = new FileUploadData().GetFileById(pro.Musicid); if (identityFileUpload != null) { headPortraitImgSrc = identityFileUpload.Relativepath; } } } }