Exemplo n.º 1
0
        /// <summary>
        /// 生成招商投资融资模板页
        /// </summary>
        /// <param name="LoginName"></param>
        public int PmcStatic(string LoginName)
        {
            string wenjian = ComShowPath + LoginName;


            string TempFileName10 = CSproject.ToString();
            string TempSoure10    = Compage.Reader(TempFileName10);

            TempSoure10 = TempSoure10.Replace("$loginName$", LoginName);
            Tz888.SQLServerDAL.Company.CompanyShowDAL com = new Tz888.SQLServerDAL.Company.CompanyShowDAL();
            TempSoure10 = TempSoure10.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths10 = wenjian + "\\" + "project.htm";

            Compage.Writer(htmlpaths10, TempSoure10);
            return(1);
        }
Exemplo n.º 2
0
        string UpProductImage = ConfigurationManager.AppSettings["UpProductImage"].ToString();//企业展厅logo存放路径
        #endregion

        #region 企业展厅
        public void CompanyShowHtml(string LoginName, string Title, string KeyWord, string Descript)
        {
            Tz888.SQLServerDAL.Info.IndexSelect       dal = new Tz888.SQLServerDAL.Info.IndexSelect();
            Tz888.SQLServerDAL.Company.CompanyShowDAL com = new Tz888.SQLServerDAL.Company.CompanyShowDAL();

            string ProjectList = dal.MerchantNew(LoginName);
            string lgleft      = lgpic + LoginName;//判断文件夹是否存在

            if (Directory.Exists(lgleft) == false)
            {
                Directory.CreateDirectory(lgleft);
            }
            string lgLeftPath  = lgleft + "\\" + LoginName + "pic.jpg";
            string lgRightPath = lgleft + "\\" + LoginName + "index.jpg";

            if (System.IO.File.Exists(lgLeftPath))
            {
                //File.Delete(lgLeftPath);
            }
            else
            {
                File.Copy(lgpolice, lgLeftPath);
            }
            if (System.IO.File.Exists(lgRightPath))
            {
                //File.Delete(lgRightPath);
            }

            else
            {
                File.Copy(lgIndex, lgRightPath);
            }

            string wenjian = ComShowPath + LoginName;
            string imgS    = ComShowPath + LoginName + "\\" + "img";

            if (Directory.Exists(imgS) == false)
            {
                Directory.CreateDirectory(imgS);
            }
            if (Directory.Exists(wenjian) == false)
            {
                Directory.CreateDirectory(wenjian);
            }
            #region 页面1
            string TempFileName1 = CScost.ToString();
            string TempSoure1    = Compage.Reader(TempFileName1);
            TempSoure1 = TempSoure1.Replace("$loginName$", LoginName);
            TempSoure1 = TempSoure1.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths1 = wenjian + "\\" + "cost.htm";
            Compage.Writer(htmlpaths1, TempSoure1);
            #endregion

            #region 页面2
            string TempFileName2 = CSindex.ToString();
            string TempSoure2    = Compage.Reader(TempFileName2);
            TempSoure2 = TempSoure2.Replace("$loginName$", LoginName);
            TempSoure2 = TempSoure2.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            TempSoure2 = TempSoure2.Replace("$Title$", Title.ToString().Trim());
            TempSoure2 = TempSoure2.Replace("$Description$", KeyWord.ToString().Trim());
            TempSoure2 = TempSoure2.Replace("$KeyWords$", Descript.ToString().Trim());
            string htmlpaths2 = wenjian + "\\" + "index.htm";
            Compage.Writer(htmlpaths2, TempSoure2);
            #endregion

            #region 页面3
            string TempFileName3 = CSindustry.ToString();
            string TempSoure3    = Compage.Reader(TempFileName3);
            TempSoure3 = TempSoure3.Replace("$loginName$", LoginName);
            TempSoure3 = TempSoure3.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths3 = wenjian + "\\" + "industry.htm";
            Compage.Writer(htmlpaths3, TempSoure3);
            #endregion

            #region 页面4
            string TempFileName4 = CSinfor.ToString();
            string TempSoure4    = Compage.Reader(TempFileName4);
            TempSoure4 = TempSoure4.Replace("$loginName$", LoginName);
            TempSoure4 = TempSoure4.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths4 = wenjian + "\\" + "infor.htm";
            Compage.Writer(htmlpaths4, TempSoure4);
            #endregion

            #region 页面5
            string TempFileName5 = CSInvestmentenvironment.ToString();
            string TempSoure5    = Compage.Reader(TempFileName5);
            TempSoure5 = TempSoure5.Replace("$loginName$", LoginName);
            TempSoure5 = TempSoure5.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths5 = wenjian + "\\" + "Investmentenvironment.htm";
            Compage.Writer(htmlpaths5, TempSoure5);
            #endregion

            #region 页面6
            string TempFileName6 = CSPark.ToString();
            string TempSoure6    = Compage.Reader(TempFileName6);
            TempSoure6 = TempSoure6.Replace("$loginName$", LoginName);
            TempSoure6 = TempSoure6.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths6 = wenjian + "\\" + "Park.htm";
            Compage.Writer(htmlpaths6, TempSoure6);
            #endregion

            #region 页面7
            string TempFileName7 = CSPhotogallery2.ToString();
            string TempSoure7    = Compage.Reader(TempFileName7);
            TempSoure7 = TempSoure7.Replace("$loginName$", LoginName);
            string htmlpaths7 = wenjian + "\\" + "Photogallery2.htm";
            Compage.Writer(htmlpaths7, TempSoure7);
            #endregion

            #region 页面8
            string TempFileName8 = CSPhotogallery.ToString();
            string TempSoure8    = Compage.Reader(TempFileName8);
            TempSoure8 = TempSoure8.Replace("$loginName$", LoginName);
            TempSoure8 = TempSoure8.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths8 = wenjian + "\\" + "Photogallery.htm";
            Compage.Writer(htmlpaths8, TempSoure8);
            #endregion

            #region 页面9
            string TempFileName9 = CSPreferentialpolicies.ToString();
            string TempSoure9    = Compage.Reader(TempFileName9);
            TempSoure9 = TempSoure9.Replace("$loginName$", LoginName);
            TempSoure9 = TempSoure9.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths9 = wenjian + "\\" + "Preferentialpolicies.htm";
            Compage.Writer(htmlpaths9, TempSoure9);
            #endregion

            #region 页面10
            string TempFileName10 = CSproject.ToString();
            string TempSoure10    = Compage.Reader(TempFileName10);
            TempSoure10 = TempSoure10.Replace("$loginName$", LoginName);
            TempSoure10 = TempSoure10.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths10 = wenjian + "\\" + "project.htm";
            Compage.Writer(htmlpaths10, TempSoure10);
            #endregion

            #region 页面11
            string TempFileName11 = CSRegionaloverview.ToString();
            string TempSoure11    = Compage.Reader(TempFileName11);
            TempSoure11 = TempSoure11.Replace("$loginName$", LoginName);
            TempSoure11 = TempSoure11.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths11 = wenjian + "\\" + "Regionaloverview.htm";
            Compage.Writer(htmlpaths11, TempSoure11);
            #endregion

            #region 页面12
            string TempFileName12 = CSvideo.ToString();
            string TempSoure12    = Compage.Reader(TempFileName12);
            TempSoure12 = TempSoure12.Replace("$loginName$", LoginName);
            TempSoure12 = TempSoure12.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths12 = wenjian + "\\" + "video.htm";
            Compage.Writer(htmlpaths12, TempSoure12);
            #endregion


            #region 空白模版
            string htmlpaths14 = wenjian + "\\" + "PolicyRight.htm";
            Compage.Writer(htmlpaths14, "");

            string htmlpaths15 = wenjian + "\\" + "ProductIF.htm";
            Compage.Writer(htmlpaths15, "");

            string htmlpaths16 = wenjian + "\\" + "FriendLink.htm";
            Compage.Writer(htmlpaths16, "");

            string htmlpaths17 = wenjian + "\\" + "Investmentenvironments.htm";
            Compage.Writer(htmlpaths17, "");

            string htmlpaths18 = wenjian + "\\" + "newss.htm";
            Compage.Writer(htmlpaths18, "");

            string htmlpaths19 = wenjian + "\\" + "Photogallery3.htm";
            Compage.Writer(htmlpaths19, "");

            string htmlpaths20 = wenjian + "\\" + "Regionaloverviews.htm";
            Compage.Writer(htmlpaths20, "");

            #region 页面21
            string TempFileName21 = Contact.ToString();
            string TempSoure21    = Compage.Reader(TempFileName21);
            TempSoure21 = TempSoure21.Replace("$loginName$", LoginName);
            TempSoure21 = TempSoure21.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths21 = wenjian + "\\" + "Contact.htm";

            Compage.Writer(htmlpaths21, TempSoure21);
            #endregion

            #region ifrom招商信息
            //string TempFileName13 = MerchntList.ToString();
            //string TempSoure13 = Compage.Reader(TempFileName13);
            //TempSoure13 = TempSoure13.Replace("$ProjectList$", ProjectList);
            //string htmlpaths13 = wenjian + "\\" + "MearcharList.htm";
            //Compage.Writer(htmlpaths13, TempSoure13);
            #endregion

            #region 页面22 投资需求
            string TempFileName22 = InvestNeed.ToString();
            string TempSoure22    = Compage.Reader(TempFileName22);
            TempSoure22 = TempSoure22.Replace("$loginName$", LoginName);
            TempSoure22 = TempSoure22.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths22 = wenjian + "\\" + "InvestNeed.htm";
            Compage.Writer(htmlpaths22, TempSoure22);
            #endregion
            #region 页面23 融资项目
            string TempFileName23 = RZProject.ToString();
            string TempSoure23    = Compage.Reader(TempFileName23);
            TempSoure23 = TempSoure23.Replace("$loginName$", LoginName);
            TempSoure23 = TempSoure23.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths23 = wenjian + "\\" + "RZProject.htm";
            Compage.Writer(htmlpaths23, TempSoure23);
            #endregion
            #region 页面24 融资项目
            string TempFileName24 = InvestCost.ToString();
            string TempSoure24    = Compage.Reader(TempFileName24);
            TempSoure24 = TempSoure24.Replace("$loginName$", LoginName);
            TempSoure24 = TempSoure24.Replace("$CompanyName$", com.GetCompanyNameByLoginName(LoginName));
            string htmlpaths24 = wenjian + "\\" + "InvestCost.htm";
            Compage.Writer(htmlpaths24, TempSoure24);

            #endregion
            MerchantStatic(LoginName);
        }