Beispiel #1
0
        private bool UpdateAdvertImage(JObject advertimageobject)
        {
            this.message            = string.Format(this.resultformat, "false", "\"修改单张广告图片失败\"");
            this.elementId          = advertimageobject["Id"].ToString().Split('_')[1];
            advertimageobject["Id"] = this.elementId;
            Dictionary <string, string> xmlNodeString = this.GetXmlNodeString(advertimageobject);

            return(TagsHelper.UpdateAdNode(Convert.ToInt16(this.elementId), "image", xmlNodeString));
        }
        private bool UpdateAdvertSlide(JavaScriptObject avdvertobject)
        {
            this.message        = string.Format(this.resultformat, "false", "\"修改轮播广告失败\"");
            this.elementId      = avdvertobject["Id"].ToString().Split(new char[] { '_' })[1];
            avdvertobject["Id"] = this.elementId;
            Dictionary <string, string> xmlNodeString = this.GetXmlNodeString(avdvertobject);

            return(TagsHelper.UpdateAdNode(Convert.ToInt16(this.elementId), "slide", xmlNodeString));
        }
Beispiel #3
0
 private bool UpdateAdvertImage(JavaScriptObject advertimageobject)
 {
     this.message   = string.Format(this.resultformat, "false", "\"修改单张广告图片失败\"");
     this.elementId = advertimageobject["Id"].ToString().Split(new char[]
     {
         '_'
     })[1];
     advertimageobject["Id"] = this.elementId;
     System.Collections.Generic.Dictionary <string, string> xmlNodeString = this.GetXmlNodeString(advertimageobject);
     return(TagsHelper.UpdateAdNode((int)System.Convert.ToInt16(this.elementId), "image", xmlNodeString));
 }
Beispiel #4
0
        private bool UpdateAdvertCustom(JObject advertcustomobject)
        {
            this.message             = string.Format(this.resultformat, "false", "\"自定义编辑失败\"");
            this.elementId           = advertcustomobject["Id"].ToString().Split('_')[1];
            advertcustomobject["Id"] = this.elementId;
            Dictionary <string, string> xmlNodeString = this.GetXmlNodeString(advertcustomobject);

            if (xmlNodeString.Keys.Contains("Html"))
            {
                xmlNodeString["Html"] = Globals.HtmlDecode(xmlNodeString["Html"]);
            }
            return(TagsHelper.UpdateAdNode(Convert.ToInt16(this.elementId), "custom", xmlNodeString));
        }
Beispiel #5
0
 private bool UpdateAdvertImage(JObject advertimageobject, System.Web.HttpContext context, out Dictionary <string, string> common_ImageNewAdCtrAttr)
 {
     System.Collections.Generic.Dictionary <string, string> xmlNodeString = this.GetXmlNodeString(advertimageobject);
     if (advertimageobject["Id"].ToString().StartsWith("newads_"))
     {
         return(TagsHelper.UpdateNewAdNode(advertimageobject["Id"].ToString(), "image", xmlNodeString, out common_ImageNewAdCtrAttr));
         //return UpdateAdvertCustomWriteToHTML(advertimageobject, context);
     }
     if (advertimageobject["Id"].ToString().StartsWith("logo_"))
     {
         return(TagsHelper.UpdateNewAdNode(advertimageobject["Id"].ToString(), "logo", xmlNodeString, out common_ImageNewAdCtrAttr));
         //return UpdateAdvertCustomWriteToHTML(advertimageobject, context);
     }
     this.message   = string.Format(this.resultformat, "false", "\"修改单张广告图片失败\"");
     this.elementId = advertimageobject["Id"].ToString().Split(new char[]
     {
         '_'
     })[1];
     advertimageobject["Id"]  = this.elementId;
     common_ImageNewAdCtrAttr = null;
     //System.Collections.Generic.Dictionary<string, string> xmlNodeString = this.GetXmlNodeString(advertimageobject);
     return(TagsHelper.UpdateAdNode((int)System.Convert.ToInt32(this.elementId), "image", xmlNodeString));
 }