/// <summary>
        /// 获取NoPictureUrl
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <returns></returns>
        public static string GetNoPictureUrl(int width, int height)
        {
            string   fileName = "nopicture.gif";
            SiteFile file     = SiteFiles.GetFile("NoPicture", fileName);

            if (file == null)
            {
                using (Stream sourceStream = new FileStream(GlobalSettings.MapPath(GetNoPictureUrl()), FileMode.Open, FileAccess.Read))
                {
                    SiteFiles.AddFile(sourceStream, "NoPicture", fileName);
                    file = SiteFiles.GetFile("NoPicture", fileName);
                }
            }
            return(GetResizedImageUrl(file.File, width, height));

            /*
             * string fileName = "nopicture.gif";
             *
             * string resizedFileName = fileName + "-" + width.ToString() + "x" + height.ToString() + ".";
             *
             * System.Drawing.Imaging.ImageFormat format;
             *
             * string extension = GlobalSettings.GetExtension(fileName).ToLower();
             *
             * if (extension == "png" || extension == "gif")
             * {
             *  format = System.Drawing.Imaging.ImageFormat.Png;
             *  resizedFileName += "png";
             * }
             * else
             * {
             *  format = System.Drawing.Imaging.ImageFormat.Jpeg;
             *  resizedFileName += "jpg";
             * }
             *
             * string url = "~/Utility/Images/" + resizedFileName;
             *
             * string path = GlobalSettings.MapPath(url);
             *
             * if (!System.IO.File.Exists(path))
             * {
             *
             *  using (Stream sourceStream = new FileStream(GlobalSettings.MapPath(GetNoPictureUrl()), FileMode.Open, FileAccess.Read))
             *  {
             *      using (MemoryStream imageStream = GlobalSettings.ResizeImage(sourceStream, height, width, format))
             *      {
             *          using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write))
             *          {
             *              imageStream.WriteTo(fs);
             *              fs.Close();
             *          }
             *      }
             *  }
             * }
             * return GlobalSettings.ResolveUrl(url);
             * */
        }
        /// <summary>
        /// 获取展示图片Url
        /// </summary>
        /// <param name="width">宽度</param>
        /// <param name="height">高度</param>
        /// <returns></returns>
        public static string GetShowPicture(int width, int height)
        {
            string       fileName = "ad.jpg";
            SiteSettings settings = SiteSettingsManager.GetSiteSettings();

            if (!String.IsNullOrEmpty(settings.ShowPicture.Trim()))
            {
                fileName = settings.ShowPicture.Trim();
            }
            SiteFile file = SiteFiles.GetFile("ShowPicture", fileName);

            if (file == null)
            {
                using (Stream sourceStream = new FileStream(GlobalSettings.MapPath(GetDefaultShowPictureUrl()), FileMode.Open, FileAccess.Read))
                {
                    SiteFiles.AddFile(sourceStream, "ShowPicture", fileName);
                    file = SiteFiles.GetFile("ShowPicture", fileName);
                    settings.ShowPicture = string.Empty;
                    SiteSettingsManager.Save(settings);
                }
            }
            return(GetResizedImageUrl(file.File, width, height));
        }