/// <summary>
        /// 获取当前站点默认的方案下模板目录路径
        /// </summary>
        /// <returns></returns>
        public static string GetTemplateProjectPath(int siteId)
        {
            string     root             = "";
            string     htmlSaveRootPath = "";
            LabelUtils labUtils;

            labUtils = new LabelUtils();

            DataTable dt = labUtils.TP_GetList("ISDEFAULT", Utils.getOneNumParams(siteId));                          //获取当前站点默认方案的目录名

            if (dt != null && dt.Rows.Count != 0)
            {
                htmlSaveRootPath = dt.Rows[0]["Directory"].ToString();
            }

            //判断目录是否为空
            if (htmlSaveRootPath.Length > 0)
            {
                root = string.Format("{0}/{1}", "/SysAdmin/Template", htmlSaveRootPath);
                if (!Directory.Exists(root))                                                                        //如果不存在目录则先创建
                {
                    Directory.CreateDirectory(HttpContext.Current.Server.MapPath(root));
                }
            }
            else
            {
                Utils.AlertMessage("请先设置一个默认的方案!");
            }
            return(root);
        }
        /// <summary>
        /// 验证当前风格是否是默认滴
        /// </summary>
        /// <param name="sid">风格的ID</param>
        /// <returns>是否默认</returns>
        public static bool ValidateSkinIsDefault(string sid)
        {
            bool       ret = false;                 //结果
            LabelUtils labUtils;

            labUtils = new LabelUtils();

            DataTable dt = labUtils.TS_GetList("ONE", Utils.getOneParams(sid));

            try
            {
                if (dt.Rows.Count > 0)             //如果不为空则取出当前的风格是否默认选项
                {
                    int defaultValue = Convert.ToInt32(dt.Rows[0]["IsDefault"]);
                    if (defaultValue > 0)
                    {
                        ret = true;
                    }
                }
            }
            finally
            {
                dt.Dispose();                       //释放
            }
            return(ret);
        }
        /// <summary>
        /// 获取当前默认滴风格目录
        /// </summary>
        /// <returns>目录名</returns>
        public static string GetSkinIsDefault()
        {
            string     dirName = string.Empty;                                          //目录名
            LabelUtils labUtils;

            labUtils = new LabelUtils();
            DataTable dt = labUtils.TS_GetList("DEFAULTONE", new KingTop.Model.SelectParams());      //返回风格对象

            try
            {
                if (dt.Rows.Count > 0)             //如果不为空则取出当前的风格是否默认选项
                {
                    dirName = Convert.ToString(dt.Rows[0]["Dirct"]);
                }
            }
            finally
            {
                dt.Dispose();                       //释放
            }
            return(dirName);
        }
        /// <summary>
        /// 获取项目文件存放根目录
        /// </summary>
        /// <returns></returns>
        public static string GetWebSavePath(string siteid)
        {
            LabelUtils labUtils;

            labUtils = new LabelUtils();
            string htmlSaveRootPath = string.Empty;//文件根目录

            if (HttpContext.Current.Session["SiteDir"] == null)
            {
                string         directoryName = string.Empty;
                TemplateConfig templatedobj  = GetTemplateConfig();
                DataTable      dt            = labUtils.GetList("GETROOT", Utils.getOneParams(siteid)); //获取当前站点的目录名
                if (dt != null && dt.Rows.Count != 0)
                {
                    HttpContext.Current.Session["SiteDir"] = dt.Rows[0]["Directory"].ToString();
                    htmlSaveRootPath = "/" + dt.Rows[0]["Directory"].ToString();
                }
            }
            else
            {
                htmlSaveRootPath = "/" + HttpContext.Current.Session["SiteDir"].ToString();
            }
            return(htmlSaveRootPath);
        }