Ejemplo n.º 1
0
        /// <summary>
        ///创建视频静态页面
        /// </summary>
        public int StaticHtml(int id, string loginname)
        {
            try
            {
                string TempFileName = CasesTem.ToString();
                string Tem          = Compage.Reader(TempFileName); //读取模板内容

                string TempSoure              = Tem;
                GZS.Model.VideoSysM model     = videosysdal.GetModel(id);
                StringBuilder       imageurls = new StringBuilder();
                // string inPathTo = "/video";
                List <GZS.Model.VideoSysM> list = videosysdal.GetTopModel(loginname);
                if (list.Count > 0)
                {
                    for (int i = 0; i < list.Count; i++)
                    {
                        string urlhtml = list[i].htmlurl.Trim();//连接地址
                        if (list[i].ImageName.Trim() != ConfigurationManager.AppSettings["VideoDefaultImgeName"].ToString().Trim())
                        {
                            imageurls.Append("<li><a href=\"http://" + loginname + ".topfo.com/" + urlhtml + "\"><img alt=\"" + list[i].videotitle + "\" src=\"http://dp.topfo.com/img/" + loginname + "/");
                            imageurls.Append(list[i].ImageName + "\"");
                            imageurls.Append(" width=\"110\" height=\"83\" /></a></li>");
                        }
                        else
                        {
                            imageurls.Append("<li><a href=\"http://" + loginname + ".topfo.com/" + urlhtml + "\"><img alt=\"" + list[i].videotitle + "\" src=\"http://dp.topfo.com/UpImage/" + ConfigurationManager.AppSettings["VideoDefaultImgeNames"].ToString().Trim() + "\"");
                            imageurls.Append(" width=\"110\" height=\"83\" /></a></li>");
                        }
                    }
                }
                TempSoure = TempSoure.Replace("$VoidioTitle$", model.videotitle.ToString().Trim());
                TempSoure = TempSoure.Replace("$context$", model.introduction.ToString().Trim());
                TempSoure = TempSoure.Replace("$name$", model.VidoiName.Trim());
                TempSoure = TempSoure.Replace("$imageurl$", imageurls.ToString());
                TempSoure = TempSoure.Replace("$loginName$", loginname.Trim());
                CompanyShow com = new CompanyShow();
                TempSoure = TempSoure.Replace("$CompanyName$", com.GetCompanyNameByLoginName(loginname));
                string htmlFile = model.htmlurl.ToString().Trim();
                //string[] html = htmlFile.Split('/');


                //string[] nn = html[2].Split('_');
                //string cc = nn[0].Substring(nn[0].Length - 8);

                string wenjian = MerchantTmpPathTo + loginname + "/";

                if (Directory.Exists(wenjian) == false)
                {
                    Directory.CreateDirectory(wenjian);
                }
                string htmlpaths = MerchantTmpPathTo + loginname + "/" + htmlFile;
                Compage.Writer(htmlpaths, TempSoure);
                return(1);
            }

            catch (Exception e)
            {
                return(0);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///创建首页相册链接静态页面
        /// </summary>
        public int StaticHtmlshouye(string loginname)
        {
            try
            {
                string TempFileName = CasesTemss.ToString();
                string Tem          = Compage.Reader(TempFileName); //读取模板内容

                string TempSoure = Tem;
                GZS.DAL.product.CommStatic dal = new GZS.DAL.product.CommStatic();
                TempSoure = TempSoure.Replace("$cntex$", GetImageList(loginname));
                //string[] html = htmlFile.Split('/');


                //string[] nn = html[2].Split('_');
                //string cc = nn[0].Substring(nn[0].Length - 8);

                string wenjian = MerchantTmpPathTo + loginname + "/";

                if (Directory.Exists(wenjian) == false)
                {
                    Directory.CreateDirectory(wenjian);
                }
                string htmlpaths = MerchantTmpPathTo + loginname + "/Photogallery3.htm";
                Compage.Writer(htmlpaths, TempSoure);
                return(1);
            }

            catch (Exception e)
            {
                return(0);
            }
        }
Ejemplo n.º 3
0
        public int StaticHtmls(int id, string loginname)
        {
            try
            {
                GZS.Model.ImageTabM model = GetModel(id);
                string TempFileName       = CasesTems.ToString();
                string Tem = Compage.Reader(TempFileName); //读取模板内容

                string TempSoure = Tem;
                List <GZS.Model.ImageUrlTabM> list = dal.GetAlls(loginname);
                StringBuilder ste = new StringBuilder();
                if (list.Count > 0)
                {
                    for (int i = 0; i < list.Count; i++)
                    {
                        GZS.Model.ImageTabM           dsd   = GetModel(Convert.ToInt32(list[i].Imageid));
                        List <GZS.Model.ImageUrlTabM> lists = dal.GetAllByImageIds(Convert.ToInt32(list[i].Imageid));
                        if (lists.Count > 0)
                        {
                            string imagetu      = lists[0].Imagepath.Trim();
                            string imagemiaoshu = list[i].imgexplain;
                            ste.Append("<li><a href=\"http://" + loginname + ".topfo.com/" + dsd.Htmlurl + "\"><img alt=\"" + imagemiaoshu + "\" src=\"http://dp.topfo.com/img/" + loginname + "/" + imagetu + "\" /></a>  </li>");
                        }
                    }
                }
                TempSoure = TempSoure.Replace("$context$", ste.ToString());
                TempSoure = TempSoure.Replace("$loginName$", loginname.ToString().Trim());
                CompanyShow com = new CompanyShow();
                TempSoure = TempSoure.Replace("$CompanyName$", com.GetCompanyNameByLoginName(loginname));
                string htmlFile = model.Htmlurllist.ToString().Trim();
                // string[] html = htmlFile.Split('/');
                // string[] nn = html[1].Split('_');
                //string[] nn = html[2].Split('_');
                // string cc = nn[0].Substring(nn[0].Length - 8);

                string wenjian = MerchantTmpPathTo + loginname + "/";

                if (Directory.Exists(wenjian) == false)
                {
                    Directory.CreateDirectory(wenjian);
                }

                string htmlpaths = MerchantTmpPathTo + loginname + "/" + htmlFile;
                Compage.Writer(htmlpaths, TempSoure);
                return(1);
            }

            catch (Exception e)
            {
                return(0);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        ///创建相册静态页面
        /// </summary>
        public int StaticHtml(int id, string loginname)
        {
            try
            {
                string TempFileName = CasesTem.ToString();
                string Tem          = Compage.Reader(TempFileName); //读取模板内容

                string TempSoure = Tem;
                GZS.Model.ImageTabM           areatabm = GetModel(id);             //主表
                List <GZS.Model.ImageUrlTabM> list     = dal.GetAllByImageIds(id); //从表
                StringBuilder imageurls     = new StringBuilder();
                StringBuilder imagedescript = new StringBuilder();
                //上一影集;
                GZS.Model.ImageTabM shangImageModel = GetYinJi(id, loginname, "<", "desc");
                string shangImangeUrl    = ""; //链接地址
                string shangImageDefault = ""; //默认图片
                if (shangImageModel != null)
                {
                    List <GZS.Model.ImageUrlTabM> listd = dal.GetAllByImageIds(shangImageModel.imageid);
                    if (listd.Count > 0)
                    {
                        shangImageDefault = listd[0].Imagepath.Trim();
                    }
                    else
                    {
                        shangImageDefault = ConfigurationManager.AppSettings["ImagesDefaultImgeName"].ToString();
                    }
                    shangImangeUrl = shangImageModel.Htmlurl;
                }
                else
                {
                    shangImangeUrl = areatabm.Htmlurl;
                    if (list.Count > 0)
                    {
                        shangImageDefault = list[0].Imagepath.Trim();
                    }
                    else
                    {
                        shangImageDefault = ConfigurationManager.AppSettings["ImagesDefaultImgeName"].ToString();
                    }
                }
                //下一影集;
                GZS.Model.ImageTabM xiaImageModel = GetYinJi(id, loginname, ">", "asc");
                string xiaImangeUrl    = ""; //链接地址
                string xiaImageDefault = ""; //默认图片
                if (xiaImageModel != null)
                {
                    xiaImangeUrl = xiaImageModel.Htmlurl;
                    List <GZS.Model.ImageUrlTabM> lists = dal.GetAllByImageIds(xiaImageModel.imageid);
                    if (lists.Count > 0)
                    {
                        xiaImageDefault = lists[0].Imagepath.Trim();
                    }
                    else
                    {
                        xiaImageDefault = ConfigurationManager.AppSettings["ImagesDefaultImgeName"].ToString();
                    }
                }
                else
                {
                    xiaImangeUrl = areatabm.Htmlurl;
                    if (list.Count > 0)
                    {
                        xiaImageDefault = list[0].Imagepath.Trim();
                    }
                    else
                    {
                        xiaImageDefault = ConfigurationManager.AppSettings["ImagesDefaultImgeName"].ToString();
                    }
                }

                string iamgedefault = "";
                if (list.Count > 0)
                {
                    iamgedefault = "<img src=\"http://dp.topfo.com/img/" + loginname + "/" + list[0].Imagepath.Trim() + "\" id=\"placeholder\"  />";
                    for (int i = 0; i < list.Count; i++)
                    {
                        imageurls.Append(" <div class=\"pic\"><a href=\"http://dp.topfo.com/img/" + loginname + "/" + list[i].Imagepath.Trim() + "\" onMouseOver=\"showPic(this," + (i + 1) + "," + list.Count + ");return false;\" target=\"_blank\">");
                        imageurls.Append("<img src=\"http://dp.topfo.com/img/" + loginname + "/" + list[i].Imagepath.Trim() + "\" width=\"126\" height=\"94\" /> </a> </div>");
                        if (i == 0)
                        {
                            imagedescript.Append("<div  style=\"text-align:center; display:block\" id=\"show" + (i + 1) + "\">" + list[i].imgexplain + "</div>");
                        }
                        else
                        {
                            imagedescript.Append("<div  style=\"text-align:center; display:none\" id=\"show" + (i + 1) + "\">" + list[i].imgexplain + "</div>");
                        }
                    }
                }
                else
                {
                    iamgedefault = "";

                    imageurls.Append("");
                }
                string shanga = "";
                string xiaa   = "";
                if (shangImageDefault.Trim() != ConfigurationManager.AppSettings["ImagesDefaultImgeName"].ToString().Trim())
                {
                    shanga = "<a href=\"http://" + loginname + ".topfo.com/" + shangImangeUrl + "\"><img src=\"http://dp.topfo.com/img/" + loginname + "/" + shangImageDefault + "\" /></a><p><a href=\"http://" + loginname + ".topfo.com/" + shangImangeUrl + "\">上一影集</a></p>";
                }
                else
                {
                    shanga = "<a href=\"http://" + loginname + ".topfo.com/" + shangImangeUrl + "\"><img src=\"" + ConfigurationManager.AppSettings["ImagesDefaultLuJin"].ToString() + "\" /></a><p><a href=\"http://" + loginname + ".topfo.com/" + shangImangeUrl + "\">上一影集</a></p>";
                }
                if (xiaImageDefault.Trim() != ConfigurationManager.AppSettings["ImagesDefaultImgeName"].ToString().Trim())
                {
                    xiaa = "<a href=\"http://" + loginname + ".topfo.com/" + xiaImangeUrl + "\"><img src=\"http://dp.topfo.com/img/" + loginname + "/" + xiaImageDefault + "\" /></a><p><a href=\"http://" + loginname + ".topfo.com/" + xiaImangeUrl + "\">下一影集</a></p>";
                }
                else
                {
                    xiaa = "<a href=\"http://" + loginname + ".topfo.com/" + xiaImangeUrl + "\"><img src=\"" + ConfigurationManager.AppSettings["ImagesDefaultLuJin"].ToString() + "\" /></a><p><a href=\"http://" + loginname + ".topfo.com/" + xiaImangeUrl + "\">下一影集</a></p>";
                }
                TempSoure = TempSoure.Replace("$shang$", shanga);
                TempSoure = TempSoure.Replace("$xia$", xiaa);
                TempSoure = TempSoure.Replace("$ImageTitle$", areatabm.imageName.Trim());
                TempSoure = TempSoure.Replace("$DefaultImage$", iamgedefault.Trim());
                TempSoure = TempSoure.Replace("$ImageList$", imageurls.ToString());
                TempSoure = TempSoure.Replace("$loginName$", loginname.Trim());
                TempSoure = TempSoure.Replace("$imagedescript$", imagedescript.ToString());
                CompanyShow com = new CompanyShow();
                TempSoure = TempSoure.Replace("$CompanyName$", com.GetCompanyNameByLoginName(loginname));
                string htmlFile = areatabm.Htmlurl.ToString().Trim();
                // string[] html = htmlFile.Split('/');
                // string[] nn = html[1].Split('_');
                //string[] nn = html[2].Split('_');
                // string cc = nn[0].Substring(nn[0].Length - 8);

                string wenjian = MerchantTmpPathTo + loginname + "/";

                if (Directory.Exists(wenjian) == false)
                {
                    Directory.CreateDirectory(wenjian);
                }

                string htmlpaths = MerchantTmpPathTo + loginname + "/" + htmlFile;
                Compage.Writer(htmlpaths, TempSoure);
                return(1);
            }

            catch (Exception e)
            {
                return(0);
            }
        }
Ejemplo n.º 5
0
        private string areabe = ConfigurationManager.AppSettings["areabe"].ToString(); //区域概括生成的静态页面存放路径
        // private string areaMa = ConfigurationManager.AppSettings["areaMa"].ToString(); //区域概括模版页存放路径

        public void AreaHtml(string name, int num)
        {
            GZS.DAL.product.CommStatic comm = new GZS.DAL.product.CommStatic();
            string areaMa = "J:/topfo/tzWeb/Corporation/cn001/index.htm";

            //string areaMa = "F:/zf/topfo001/index.html";
            string[] ar = areaMa.Split('/');
            string   nn = ar[ar.Length - 2].ToString();
            string   ma = nn.Replace(nn, name);

            string bb = "J:\\topfo\\tzWeb\\Corporation\\" + ma + "\\index.htm";
            // string bb = "F:\\zf\\"+ma+"\\index.html";
            string TempFileName = bb.ToString();
            string Tem          = Compage.Reader(TempFileName); //读取模板内容

            #region 替换模版
            string TempSoure = Tem;
            if (num == 1)//产品优势
            {
                string industry = comm.GetListUIByloginName(name);
                TempSoure = TempSoure.Replace("$industry$", industry);
            }
            else if (num == 2)//投资环境
            {
            }
            else if (num == 3)//园区特色
            {
                string land = comm.GetParkListUIByLoginName(name);
                TempSoure = TempSoure.Replace("$Land$", land);
            }
            else if (num == 4)//投资成本
            {
                string project = comm.GetInvestListUIByLoginName(name);
                TempSoure = TempSoure.Replace("$Project$", project);
            }
            else if (num == 5)//区域概括
            {
                string area = SelArea(name);
                TempSoure = TempSoure.Replace("$area$", area);
            }
            else if (num == 6)//友情链接
            {
                string friend = comm.GetListFriend(name);
                TempSoure = TempSoure.Replace("$friendship$", friend);
            }
            else if (num == 7)//相册图片
            {
                string pic = comm.GetImageList(name);
                TempSoure = TempSoure.Replace("$pic$", pic);
            }
            else if (num == 8)//优惠政策
            {
                string Policy = comm.GetPolicyListUIByLoginName(name);
                TempSoure = TempSoure.Replace("$Policy$", Policy);
            }
            #endregion

            string wenjian = areabe + name;
            if (Directory.Exists(wenjian) == false)
            {
                Directory.CreateDirectory(wenjian);
            }
            string htmlpaths = wenjian + "\\" + "index.htm";
            Compage.Writer(htmlpaths, TempSoure);
        }
Ejemplo n.º 6
0
        /// <summary>
        ///创建投资环境静态页面
        /// </summary>
        public int StaticHtml(string loginname)
        {
            try
            {
                string ids          = "";
                string TempFileName = CasesTem.ToString();
                string Tem          = Compage.Reader(TempFileName); //读取模板内容
                string TempSoure    = Tem;
                GZS.DAL.EnvironmentTypeDAL        typedal = new EnvironmentTypeDAL();
                GZS.DAL.EnvironmentImgDAL         Imgdal  = new EnvironmentImgDAL();
                List <GZS.Model.EnvironmentTypeM> list    = typedal.GetAllType();
                StringBuilder str = new StringBuilder();
                for (int i = 0; i < list.Count; i++)
                {
                    GZS.Model.EnvironmentTabM envtab = EnvironmentlistByLoginNameandTypeid(loginname, list[i].EnvironmentTypeID);
                    string zhongwen = "";
                    string english  = "";
                    string txt1     = "";
                    string txt2     = "";
                    string txt3     = "";
                    string txt4     = "";
                    string txts1    = "";
                    string txts2    = "";
                    string txts3    = "";
                    string txts4    = "";
                    if (envtab != null)
                    {
                        zhongwen = envtab.Chineseintroduced.Trim();
                        english  = envtab.Englishintroduction.Trim();
                        List <GZS.Model.EnvironmentImgM> lists = Imgdal.GetAllByEnvironmentTabId(envtab.Environmentid);
                        for (int t = 0; t < lists.Count; t++)
                        {
                            if (t == 0)
                            {
                                txt1  = lists[t].imgpath;
                                txts1 = lists[t].imgexplain;
                            }
                            if (t == 1)
                            {
                                txt2  = lists[t].imgpath;
                                txts2 = lists[t].imgexplain;
                            }
                            if (t == 2)
                            {
                                txt3  = lists[t].imgpath;
                                txts3 = lists[t].imgexplain;
                            }
                            if (t == 3)
                            {
                                txt4  = lists[t].imgpath;
                                txts4 = lists[t].imgexplain;
                            }
                        }
                    }
                    if (i == 0)
                    {
                        str.Append("<div  id=\"gk_con_" + (10 + i) + "\" style =\"display:block\">");
                        ids += 10 + i + ",";
                    }
                    else
                    {
                        ids += 10 + i + ","; str.Append("<div  id=\"gk_con_" + (10 + i) + "\" style =\"display:none\">");
                    }
                    str.Append("<div class=\"envuroment-right1\">" + zhongwen + "</div>");
                    str.Append("<div class=\"envuroment-right1\">" + english + "</div>");
                    str.Append("<div class=\"envuroment-right2\">");
                    str.Append("<div class=\"industry-img-left001\"><ul>");
                    if (txt1.Trim() != "")
                    {
                        str.Append("<li class=\"l\">");
                        str.Append("<a href=\"http://dp.topfo.com/img/" + loginname + "/" + txt1 + "\" alt='点击查看大图' target=\"_blank\">");
                        str.Append("<img alt='点击查看大图' src=\"http://dp.topfo.com/img/" + loginname + "/" + txt1 + "\" />");
                        str.Append("<p style=\"text-align:center;\">" + txts1 + "</p>");
                        str.Append("</li>");
                    }
                    else
                    {
                        //str.Append("<li class=\"l\">");
                    }

                    if (txt2.Trim() != "")
                    {
                        str.Append("<li class=\"r\">");
                        str.Append("<a href=\"http://dp.topfo.com/img/" + loginname + "/" + txt2 + "\" alt='点击查看大图' target=\"_blank\">");
                        str.Append("<img src=\"http://dp.topfo.com/img/" + loginname + "/" + txt2 + "\" alt='点击查看大图'/>");
                        str.Append("<p style=\"text-align:center;\">" + txts2 + "</p>");
                        str.Append("</li>");
                    }
                    else
                    {
                        // str.Append("<li class=\"r\">");
                    }
                    str.Append("</ul>");
                    str.Append("</div></div>");
                    if (txt3.Trim() != "")
                    {
                        str.Append("<div class=\"envuroment-right3\"><div class=\"industry-img-left001\">");
                        str.Append("<a href=\"http://dp.topfo.com/img/" + loginname + "/" + txt3 + "\" alt='点击查看大图' target=\"_blank\">");
                        str.Append("<img src=\"http://dp.topfo.com/img/" + loginname + "/" + txt3 + "\" alt='点击查看大图'/>");
                        str.Append("<p style=\"text-align:center;\">" + txts3 + "</p>");
                        str.Append("</div>");
                    }
                    else
                    {
                        //str.Append("<div class=\"envuroment-right3\">");
                    }

                    if (txt4.Trim() != "")
                    {
                        str.Append("<div class=\"envuroment-right4\"><div class=\"industry-img-left001\">");
                        str.Append("<a href=\"http://dp.topfo.com/img/" + loginname + "/" + txt4 + "\" alt='点击查看大图' target=\"_blank\">");
                        str.Append("<img src=\"http://dp.topfo.com/img/" + loginname + "/" + txt4 + "\" />");
                        str.Append("<p style=\"text-align:center;\">" + txts4 + "</p>");
                        str.Append("</div>");
                    }
                    else
                    { //str.Append("<div class=\"envuroment-right4\">");
                    }

                    //str.Append("</div></div>");
                    str.Append("</div>");
                }

                TempSoure = TempSoure.Replace("$contex$", str.ToString());
                TempSoure = TempSoure.Replace("$loginName$", loginname.Trim());
                TempSoure = TempSoure.Replace("$styles$", types(ids));
                CompanyShow com = new CompanyShow();
                TempSoure = TempSoure.Replace("$CompanyName$", com.GetCompanyNameByLoginName(loginname));
                string wenjian = MerchantTmpPathTo + loginname + "/";

                if (Directory.Exists(wenjian) == false)
                {
                    Directory.CreateDirectory(wenjian);
                }
                string htmlpaths = MerchantTmpPathTo + loginname + "/" + "Investmentenvironment.htm";
                Compage.Writer(htmlpaths, TempSoure);
                return(1);
            }

            catch (Exception e)
            {
                return(0);
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        ///创建区域静态页面
        /// </summary>
        public int StaticHtml(int id, string loaginnames)
        {
            try
            {
                string                   TempFileName = CasesTem.ToString();
                string                   Tem          = Compage.Reader(TempFileName); //读取模板内容
                GZS.Model.AreaTab        areatabm     = null;
                List <GZS.Model.Areaimg> list         = null;
                string                   TempSoure    = Tem;
                if (id == 0)
                {
                    areatabm = GetModelCountByLogName(loaginnames);
                }
                else
                {
                    areatabm = GetModel(id);
                }

                StringBuilder      imageurls  = new StringBuilder();
                GZS.DAL.AreaimgDAL areaimgdal = new AreaimgDAL();
                if (id == 0)
                {
                    list = areaimgdal.GetAllModelByareId(areatabm.areaid);
                }
                else
                {
                    list = areaimgdal.GetAllModelByareId(id);
                }

                string iamgedefaults = "";
                string iamgedefault  = "";
                if (list.Count > 0)
                {
                    if (list[0].ImageUrl.Trim() != "")
                    {
                        iamgedefaults = "<img src=\" http://dp.topfo.com/img/" + loaginnames + "/" + list[0].ImageUrl.Trim() + "\"   />";
                        iamgedefault  = "<img src=\" http://dp.topfo.com/img/" + loaginnames + "/" + list[0].ImageUrl.Trim() + "\"  id=\"placeholder\"  />";
                        for (int i = 0; i < list.Count; i++)
                        {
                            imageurls.Append(" <div  class=\"pic\"><a href=\"http://dp.topfo.com/img/" + loaginnames + "/" + list[i].ImageUrl.Trim() + "\" onMouseOver=\"showPic(this);return false;\" target=\"_blank\">");
                            imageurls.Append("<img id=\"dx" + i + "\" src=\"http://dp.topfo.com/img/" + loaginnames + "/" + list[i].ImageUrl.Trim() + "\" /> </a> </div>");
                        }
                    }
                    else
                    {
                        iamgedefault  = "";
                        iamgedefaults = "";
                        imageurls.Append("<li></li>");
                    }
                }

                TempSoure = TempSoure.Replace("$zhongwencontex$", areatabm.Chineseintroduced.Trim());
                TempSoure = TempSoure.Replace("$EnglishContext$", areatabm.Englishintroduction.Trim());
                TempSoure = TempSoure.Replace("$DefaultImage$", iamgedefault.Trim());
                TempSoure = TempSoure.Replace("$ImageList$", imageurls.ToString());
                TempSoure = TempSoure.Replace("$loginName$", loaginnames.Trim());
                TempSoure = TempSoure.Replace("$txtup$", iamgedefaults.Trim());
                CompanyShow com = new CompanyShow();
                TempSoure = TempSoure.Replace("$CompanyName$", com.GetCompanyNameByLoginName(loaginnames));
                string htmlFile = areatabm.Htmlurl.ToString().Trim();

                //string[] nn = html[2].Split('_');
                // string cc = nn[0].Substring(nn[0].Length - 8);

                string wenjian = MerchantTmpPathTo + loaginnames + "/";
                if (Directory.Exists(wenjian) == false)
                {
                    Directory.CreateDirectory(wenjian);
                }
                string htmlpaths = MerchantTmpPathTo + loaginnames + "/" + htmlFile;
                Compage.Writer(htmlpaths, TempSoure);
                return(1);
            }

            catch (Exception e)
            {
                return(0);
            }
        }