protected void btnIssueOK_Click(object sender, EventArgs e)
    {
        //判断电话与手机号
        if (txtTel.Value.Trim() == "" && txtMobile.Value.Trim() == "")
        {
            //Tz888.Common.MessageBox.Show(this.Page, "固定电话或手机至少填写一项,请检查!");
            Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", "alert('固定电话或手机至少填写一项,请检查!');", false);
            return;
        }
        Tz888.BLL.Info.ProjectInfoBLL             projectObj         = new Tz888.BLL.Info.ProjectInfoBLL();
        Tz888.Model.Info.MainInfoModel            mainInfoModel      = new Tz888.Model.Info.MainInfoModel();            //创建主体信息实体
        Tz888.Model.Info.ProjectInfoModel         projectInfoModel   = new Tz888.Model.Info.ProjectInfoModel();         //创建融资信息实体
        List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = new List <Tz888.Model.Info.InfoResourceModel>(); //上传文件

        Tz888.BLL.Info.InfoContact              dal            = new Tz888.BLL.Info.InfoContact();
        Tz888.Model.Info.InfoContactModel       model          = new Tz888.Model.Info.InfoContactModel();
        List <Tz888.Model.Common.IndustryModel> industryModels = new List <Tz888.Model.Common.IndustryModel>(); //融资行业实体列表
        DateTime time_Now = DateTime.Now;

        industryModels = this.SelectIndustryControl1.IndustryModels;

        projectInfoModel.CountryCode = this.ZoneSelectControl1.CountryID;  //*国家代码
        projectInfoModel.ProvinceID  = this.ZoneSelectControl1.ProvinceID; //*省
        projectInfoModel.CityID      = this.ZoneSelectControl1.CityID;     //*州或城市
        projectInfoModel.CountyID    = this.ZoneSelectControl1.CountyID;   //*县

        //*项目名称
        projectInfoModel.ProjectName = this.txtProjectName.Value.Trim();

        projectInfoModel.RecTime         = DateTime.Now;
        projectInfoModel.CapitalCurrency = "CNY"; //*资本金币种
        projectInfoModel.ProjectCurrency = "CNY"; //*资本金币种

        //*项目投资总额
        if (!string.IsNullOrEmpty(txtCapitalTotal.Text.Trim()))
        {
            projectInfoModel.CapitalTotal = Convert.ToDecimal(txtCapitalTotal.Text.Trim());
        }

        //*融资金额
        projectInfoModel.CapitalID = this.rbtnCapital.SelectedValue.Trim();

        //项目说明
        projectInfoModel.ComBrief = Tz888.Common.Utility.PageValidate.TxtToHtml(txtProIntro.Value.Trim());

        //行业
        foreach (Tz888.Model.Common.IndustryModel models in industryModels)
        {
            projectInfoModel.IndustryBID += models.IndustryBID + ",";
        }

        //股权融资
        projectInfoModel.CooperationDemandType = "10";

        //*融资对像

        projectInfoModel.financingID = "";

        //*融资额占股份比重
        projectInfoModel.SellStockShare = 1;


        //##20100603新加入字段
        //*项目立项情况 checkboxlist
        projectInfoModel.sXmlxqk = "";

        projectInfoModel.sXmgjz = "融资";
        //*退出方式
        projectInfoModel.ReturnModeID = "";
        //*企业发展阶段
        projectInfoModel.sQyfzjd = "";
        //*要求资金到位情况
        projectInfoModel.iYqzjdwqk = 1;
        //*市场占有率(份额)
        projectInfoModel.iSczylfy = 1;
        //*行业市场增长率
        projectInfoModel.iHysczzl = 1;
        //*资产负债率
        projectInfoModel.iZcfzl = 1;
        //*项目投资回报周期
        projectInfoModel.iXmtzfbzq = 1;
        //*项目详细描术
        projectInfoModel.ComAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtXmqxms.Value.Trim());


        //##项目详细资料
        //*单位年营业收入
        projectInfoModel.nDwlyysy = 1;
        //*单位年净利润
        projectInfoModel.nDwljly = 1;
        //*单位总资产
        projectInfoModel.nDwzzc = 1;
        //*单位总负债
        projectInfoModel.nDwzfz = 1;

        //产品概述
        projectInfoModel.ProjectAbout = "";
        //市场前景
        projectInfoModel.marketAbout = "";
        //竞争分析
        projectInfoModel.competitioAbout = "";
        //商业模式
        projectInfoModel.BussinessModeAbout = "";
        //管理团队
        projectInfoModel.ManageTeamAbout = txtManageTeamAbout.Value.Trim();


        //-----------------------------------主表信息-------------
        //项目标题
        if (!string.IsNullOrEmpty(this.txtProjectName.Value))
        {
            mainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtProjectName.Value);
        }

        mainInfoModel.InfoCode = Tz888.BLL.Info.Common.CreateInfoCode("Project", industryModels[0].IndustryBID, this.ZoneSelectControl1.CountryID, time_Now);
        mainInfoModel.publishT = time_Now;
        mainInfoModel.Hit      = 0;

        mainInfoModel.IsCore             = true;
        mainInfoModel.LoginName          = bp.LoginName;
        mainInfoModel.InfoOriginRoleName = "0"; //用户角色
        mainInfoModel.GradeID            = "0";
        mainInfoModel.FixPriceID         = this.rblFixPrice.SelectedValue.ToString().Trim();
        mainInfoModel.MainPointCount     = Convert.ToDecimal(txtPointCount.Text.ToString().Trim());
        mainInfoModel.AuditingStatus     = Convert.ToByte(this.rblAuditing.SelectedValue.ToString());
        mainInfoModel.FeeStatus          = 0;
        mainInfoModel.Descript           = this.txtProjectName.Value.ToString().Trim();

        //项目标题
        if (!string.IsNullOrEmpty(this.txtProjectName.Value.Trim()))
        {
            mainInfoModel.DisplayTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtProjectName.Value.Trim());
        }
        mainInfoModel.KeyWord = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtProjectName.Value.Trim());

        mainInfoModel.FrontDisplayTime  = time_Now;
        mainInfoModel.ValidateStartTime = time_Now;
        mainInfoModel.ValidateTerm      = Tz888.Common.Text.FormatData(rblXmyxqxx.SelectedValue.Trim()); //*项目有效期限
        mainInfoModel.TemplateID        = "001";
        mainInfoModel.HtmlFile          = "";
        //上传文件
        infoResourceModels = FilesUploadControl1.InfoList;


        model.OrganizationName = txtCompanyName.Value.Trim();
        model.Name             = txtLinkMan.Value.Trim();
        model.Career           = txtCareer.Value.Trim();
        model.TelCountryCode   = telArea1.Value.Trim();        //新加的国际号
        model.TelStateCode     = txtTelStateCode.Value.Trim(); //区号

        if (telFg.Value.Trim() != "")                          //如果分机号不为空
        {
            model.TelNum = txtTel.Value.Trim() + "-" + telFg.Value.Trim();
        }
        else
        {
            model.TelNum = txtTel.Value.Trim(); //电话号加分机号
        }
        model.Mobile  = txtMobile.Value.Trim();
        model.Address = txtAddress.Value.Trim();
        model.WebSite = txtWebSite.Value.Trim();
        model.Email   = txtEmail.Value.Trim();

        long num = projectObj.InsertNew(mainInfoModel, projectInfoModel, model, infoResourceModels);
        {
            if (num > 0)
            {
                string auditing = this.rblAuditing.SelectedValue.ToString();
                if (auditing == "1")
                {
                    string url = "Project/" + DateTime.Now.ToString("yyyyMM") + "/Project" + DateTime.Now.ToString("yyyyMMdd") + "_" + num + ".shtml";
                    merstatic.UpdateUrl(url, num);
                    #region 生成静态页面
                    state = page.SelProjectM(Convert.ToString(num));
                    string   CountryCode = "中国";                                                  // visit.SelCountry(ht[3].ToString().Trim());//国家
                    string   Province    = visit.SelProvince(state.ProvinceID.ToString().Trim()); //省名
                    string   City        = visit.SelCityID(state.CityID.ToString().Trim());       //地区所对应城市
                    string   County      = visit.SelCounty(state.CountyID.ToString().Trim());     //地区
                    string[] Bid         = state.IndustryBID.ToString().Trim().Split(',');
                    string   Industry    = "";
                    if (Bid.Length >= 0)
                    {
                        for (int j = 0; j < Bid.Length - 1; j++)
                        {
                            Industry += page.SelIndustryName(Bid[j].ToString()) + "、";//行业名称
                        }
                    }
                    if (Bid.Length == 1)
                    {
                        Industry = page.SelIndustryName(Bid[0].ToString());
                    }

                    //string Industry = page.SelIndustryName(Bid[0].ToString());//行业名称
                    string lated = page.SelIndustryLated(state.IndustryBID.ToString().Trim());
                    string sdt   = "";//还款保证
                    if (state.IZqYqjjdwqk == "" || state.IZqYqjjdwqk == null || state.IZqYqjjdwqk == "0")
                    {
                        sdt = "暂无";
                    }
                    else if (state.IZqYqjjdwqk == "1")
                    {
                        sdt = "担保";
                    }
                    else if (state.IZqYqjjdwqk == "2")
                    {
                        sdt = "抵押";
                    }
                    else if (state.IZqYqjjdwqk == "3")
                    {
                        sdt = "信用";
                    }
                    string   iZqXmyxqs = page.SelDictName(state.IZqXmyxqs.ToString()); //有效期
                    DateTime dt        = Convert.ToDateTime(state.PublishT.ToString());
                    string   publishT  = Convert.ToString(dt.ToString("yyyy-MM-dd"));  //发布时间
                    string   mainPoint = page.SelMainPoint();                          //资源收费查询
                    string   Fix       = "";                                           //收费状态
                    if (state.FixPriceID == "1" || state.FixPriceID == "0")
                    {
                        Fix = "免费";
                    }
                    else if (state.FixPriceID == "2")
                    {
                        Fix = "<span style='color:Red'>" + state.MainPointCount.ToString() + "</span>元";
                    }
                    else
                    {
                        Fix = "免费";
                    }
                    string str1 = Convert.ToString(state.CooperationDemandType).Trim(",".ToCharArray());
                    if (str1 == "9")//为债权融资
                    {
                        page.ProjectZqHtml(state.Id.ToString(), state.ProjectName.ToString(), state.ComAbout.ToString(), CountryCode, Province, City, County.Trim(), Industry,
                                           state.CapitalTotal.ToString(), sdt, iZqXmyxqs, publishT, "", "", state.DisplayTitle.ToString(), state.KeyWord.ToString(),
                                           state.Descript.ToString(), 1, lated, mainPoint, Fix);
                    }
                    else if (str1 == "10")//股权融资
                    {
                        page.ProjectZqHtml(state.Id.ToString(), state.ProjectName.ToString(), state.ComAbout.ToString(), CountryCode, Province, City, County.Trim(), Industry,
                                           state.CapitalTotal.ToString(), sdt, iZqXmyxqs, publishT, state.ComBrief.ToString(), state.ManageTeamAbout.ToString(), state.DisplayTitle.ToString(), state.KeyWord.ToString(),
                                           state.Descript.ToString(), 2, lated, mainPoint, Fix);
                    }
                    else
                    {
                        page.ProjectZqHtml(state.Id.ToString(), state.ProjectName.ToString(), state.ComAbout.ToString(), CountryCode, Province, City, County.Trim(), Industry,
                                           state.CapitalTotal.ToString(), sdt, iZqXmyxqs, publishT, state.ComBrief.ToString(), state.ManageTeamAbout.ToString(), state.DisplayTitle.ToString(), state.KeyWord.ToString(),
                                           state.Descript.ToString(), 2, lated, mainPoint, Fix);
                    }
                    #endregion
                }
                this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('发布成功!');location.href='ProjectManage.aspx'", true);
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "发布失败!");
            }
        }
    }
Esempio n. 2
0
    protected void IbtnSubmit_Click(object sender, EventArgs e)
    {
        //获取投资资源的信息
        Tz888.Model.Info.MainInfoModel               mainInfoModel         = new Tz888.Model.Info.MainInfoModel();               //创建主体信息实体
        Tz888.Model.Info.V124.CapitalInfoModel       capitalInfoModel      = new Tz888.Model.Info.V124.CapitalInfoModel();       //创建投资信息实体
        List <Tz888.Model.Info.CapitalInfoAreaModel> capitalInfoAreaModels = new List <Tz888.Model.Info.CapitalInfoAreaModel>(); //投资区域信息实体列表

        Tz888.Model.Info.ShortInfoModel shortInfoModel = new Tz888.Model.Info.ShortInfoModel();                                  //创建短信息实体
        //以下是文件上传的实体声明
        List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = new List <Tz888.Model.Info.InfoResourceModel>();

        DateTime time_now = DateTime.Now;

        //拟投向区域
        capitalInfoAreaModels = this.ZoneMoreSelectControl1.CapitalInfoAreaModels;

        //主体信息实体付值


        #region 投资信息实体赋值

        //投资意向详细说明
        capitalInfoModel.ComAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtCapitalIntent.Value.Trim());

        //单项目可投资金额

        capitalInfoModel.CapitalID = this.rblCurreny.SelectedValue;
        //投资回报率
        capitalInfoModel.RegisteredCapital = this.txtHBao.Text.ToString().Trim();
        //项目介绍提炼
        capitalInfoModel.ComBreif = "";

        capitalInfoModel.CooperationDemandType = "";

        //拟投资行业
        capitalInfoModel.IndustryBID = this.SelectIndustryControl1.IndustryString;
        //投资项目阶段
        //2010-06-23

        capitalInfoModel.stageID = Convert.ToInt32(1);//(this.rblStage.SelectedValue);
        // 是否参与项目方管理
        //2010-06-23
        capitalInfoModel.joinManageID = Convert.ToInt32(1); //(this.rdlJoinManage.SelectedValue);

        //投资方式
        for (int i = 0; chkLstCooperationDemand.Items.Count > i; i++)
        {
            if (chkLstCooperationDemand.Items[i].Selected)
            {
                capitalInfoModel.CooperationDemandType += chkLstCooperationDemand.Items[i].Value + ",";
            }
        }


        //以下是需要添加的参数
        //注册资金
        //capitalInfoModel.RegisteredCapital = "";// this.rblRegisterdollar.SelectedValue;
        //团队规模
        capitalInfoModel.TeamScale = "";            // this.rblTeam.SelectedValue;
        //机构年平均投资事件数
        capitalInfoModel.AverageInvestment = "";    // this.rblPinJ.SelectedValue;
        //机构成功投资事件总数
        capitalInfoModel.SuccessfulInvestment = ""; // this.rblSucess.SelectedValue;
        //投资需求摘要
        capitalInfoModel.InvestmentDemand = Tz888.Common.Utility.PageValidate.TxtToHtml("");

        //添加所属区域


        capitalInfoModel.SCountryID  = "001";
        capitalInfoModel.SProvinceID = "001";
        capitalInfoModel.SCityID     = "001";
        capitalInfoModel.SCountyID   = "001";



        //项目承办单位
        capitalInfoModel.Prorganizers = "no";
        //文件上传的
        infoResourceModels = FilesUploadControl1.InfoList;


        #endregion


        //这里是其他的实体值
        if (!string.IsNullOrEmpty(this.txtCapitalName.Text.Trim()))
        {
            mainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim());
        }

        string CountryCode;
        try
        {
            CountryCode = capitalInfoAreaModels[0].CountryCode;
        }
        catch
        {
            CountryCode = "ALL";
        }
        mainInfoModel.InfoCode       = Tz888.BLL.Info.Common.CreateInfoCode("Capital", capitalInfoModel.IndustryBID.Split(',')[0], CountryCode, time_now);
        mainInfoModel.publishT       = time_now;
        mainInfoModel.Hit            = 0;
        mainInfoModel.MainPointCount = Convert.ToDecimal(txtPointCount.Text.ToString().Trim());
        mainInfoModel.IsCore         = true;
        //mainInfoModel.LoginName = "cxj";

        mainInfoModel.LoginName          = bp.LoginName; //用户名称
        mainInfoModel.InfoOriginRoleName = "0";          //用户角色
        mainInfoModel.GradeID            = "0";

        if (chkIsPoint.Checked == true)
        {
            mainInfoModel.FixPriceID = "2";
        }
        else
        {
            mainInfoModel.FixPriceID = "1";
        }

        mainInfoModel.FeeStatus = 0;

        string keyword = "";


        mainInfoModel.KeyWord  = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim());
        mainInfoModel.Descript = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim());
        if (!string.IsNullOrEmpty(this.txtCapitalName.Text.Trim()))
        {
            mainInfoModel.DisplayTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim());
        }
        mainInfoModel.FrontDisplayTime  = time_now;
        mainInfoModel.ValidateStartTime = time_now;
        //意向有效期限
        //20100623
        mainInfoModel.ValidateTerm = Convert.ToInt32(this.rdlValiditeTerm.SelectedValue.Trim());
        capitalInfoModel.isVIP     = Convert.ToInt32(this.ddlIsVip.SelectedValue.ToString());
        mainInfoModel.IsVip        = Convert.ToInt32(this.ddlIsVip.SelectedValue.ToString());
        mainInfoModel.TemplateID   = "001";
        mainInfoModel.HtmlFile     = "";

        shortInfoModel.ShortInfoControlID = "CapitalIndex1";
        if (!string.IsNullOrEmpty(this.txtCapitalName.Text.Trim()))
        {
            shortInfoModel.ShortTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim());
        }
        shortInfoModel.ShortContent = "";
        shortInfoModel.Remark       = "";

        Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL();

        //这里是插入资源投资信息
        //long infoID = bll.Insert(mainInfoModel, capitalInfoModel, this.GetInfoContact(), shortInfoModel, capitalInfoAreaModels, null, infoResourceModels);
        long infoID = bll.Insert(mainInfoModel, capitalInfoModel, this.GetInfoContact(), shortInfoModel, capitalInfoAreaModels, infoResourceModels);
        //以下进行图片的插入


        if (infoID > 0)
        {
            Tz888.BLL.MerchantManage.PageStatic merstatic = new Tz888.BLL.MerchantManage.PageStatic();
            #region 定价
            string price = "";


            #endregion

            if (chkIsPoint.Checked == true)
            {
                price = "2";
            }
            else
            {
                price = "1";
            }

            bool pric = mainBll.HasFixPrice(infoID, price, bp.LoginName);
            if (rdPass.Checked == true)
            {
                string url = "Capital/" + DateTime.Now.ToString("yyyyMM") + "/Capital" + DateTime.Now.ToString("yyyyMMdd") + "_" + infoID + ".shtml";

                merstatic.UpdateUrl(url, infoID);
            }
            long   _infoID = Convert.ToInt64(infoID);
            string title   = Convert.ToString("投资发布");
            Tz888.Model.Info.InfoContactModel infoContactModel = new Tz888.Model.Info.InfoContactModel(); //创建信息联系方式主体

            string email       = this.txtEmail.Text.Trim();
            string telCountry  = this.txtTelCountry.Text.Trim();
            string telZoneCode = this.txtTelZoneCode.Text.Trim();
            string telNumber   = this.txtTelNumber.Text.Trim();
            //注释掉传真
            string faxCountry  = "0";
            string faxZoneCode = "0";
            string faxNumber   = "0";
            string webSite     = this.txtWebSite.Text.Trim();
            string name        = this.txtLinkMan.Text.Trim();
            string mobile      = this.txtMobile.Text.Trim();
            string address     = this.txtAddress.Text.Trim();
            //注释右邮编
            string postCode = "0";

            //以下是职位
            string position = ""; //this.txtPosition.Text.Trim();
            //投资机构名称
            string organizationName = this.txtGovName.Text.Trim();


            infoContactModel.OrganizationName = organizationName;
            infoContactModel.InfoID           = _infoID;
            infoContactModel.Email            = email;
            infoContactModel.WebSite          = webSite;
            infoContactModel.TelCountryCode   = telCountry;
            infoContactModel.TelStateCode     = telZoneCode;
            infoContactModel.TelNum           = telNumber;
            infoContactModel.FaxCountryCode   = faxCountry;
            infoContactModel.FaxStateCode     = faxZoneCode;
            infoContactModel.FaxNum           = faxNumber;
            infoContactModel.Name             = name;
            infoContactModel.Mobile           = mobile;
            infoContactModel.Address          = address;
            infoContactModel.PostCode         = postCode;
            //以下是职位
            infoContactModel.Position = position;

            Tz888.BLL.Info.InfoContact obj = new Tz888.BLL.Info.InfoContact();

            //这里是更新联系信息
            if (obj.Update(infoContactModel))
            {
                Tz888.Model.Info.V124.CapitalSetModel model = new Tz888.Model.Info.V124.CapitalSetModel();
                page = page.objGetMerchantInfoByInfoID(_infoID);    //根ID获取信息
                string IsVip   = Mercahrstatic.SelCapitalInfoVip(); //查询为重点推荐资源
                string Idstuny = page.SelectLndus(page.Are);        //根据区域查询信息
                int    sum     = page.StaticHtml(Convert.ToInt32(_infoID), page.Title, page.PublishT, page.AreaName, page.Content, page.IndustryCarveOutID, page.CooperationTypeName, page.Money, page.ValidateID, page.MerchantNameTotal, Idstuny, page.Pic, IsVip, page.Title, page.Title, page.Title, page.Register);
                this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('添加信息成功!');location.href='CapitalManage.aspx'", true);
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "更新联系方式失败!");
            }
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "发布失败!");
        }
    }
Esempio n. 3
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        //结束部分
        //实体部分
        // this.imgLoding.Visible = true;
        Tz888.Model.Info.MainInfoModel              mainInfoModel        = new Tz888.Model.Info.MainInfoModel();              //创建主体信息实体
        Tz888.Model.Info.MerchantInfoModel          merchantInfoModel    = new Tz888.Model.Info.MerchantInfoModel();          //创建招商信息实体
        Tz888.Model.Info.InfoContactModel           infoContactModel     = new Tz888.Model.Info.InfoContactModel();           //创建信息联系方式主体
        Tz888.Model.Info.ShortInfoModel             shortInfoModel       = new Tz888.Model.Info.ShortInfoModel();             //创建短信息实体
        List <Tz888.Model.Common.IndustryModel>     industryModels       = new List <Tz888.Model.Common.IndustryModel>();     //融资行业实体列表
        List <Tz888.Model.Info.InfoContactManModel> infoContactManModels = new List <Tz888.Model.Info.InfoContactManModel>(); //联系人实体列表
        List <Tz888.Model.Info.InfoResourceModel>   infoResourceModels   = new List <Tz888.Model.Info.InfoResourceModel>();   //招商信息资源信息实体

        DateTime time_now = DateTime.Now;

        industryModels = this.SelectIndustryControl1.IndustryModels;
        //这里是多个联系方式的添加


        #region 招商信息实体赋值
        merchantInfoModel.MerchantTypeID = "";// rblMerchantType.SelectedValue;
        merchantInfoModel.CountryCode    = ZoneSelectControl1.CountryID;
        merchantInfoModel.ProvinceID     = ZoneSelectControl1.ProvinceID;
        merchantInfoModel.CityID         = ZoneSelectControl1.CityID;
        merchantInfoModel.CountyID       = ZoneSelectControl1.CountyID;

        //联系方式赋值
        infoContactModel.OrganizationName = this.txtCompanyName.Text;
        infoContactModel.Name             = this.txtName.Text;
        infoContactModel.Position         = "";// this.txtPosition.Text;
        infoContactModel.TelCountryCode   = this.txtTelCountry.Text;
        infoContactModel.TelStateCode     = this.txtTelZoneCode.Text;
        infoContactModel.TelNum           = this.txtTelNumber.Text;
        infoContactModel.Mobile           = this.txtMobile.Text;
        infoContactModel.Email            = this.txtEmail.Text;
        infoContactModel.Address          = this.txtAddress.Text;

        merchantInfoModel.CooperationDemandType = "";
        merchantInfoModel.CapitalCurrency       = this.ddlCapitalCurrency.SelectedValue;

        if (!string.IsNullOrEmpty(this.txtCapitalTotal.Text.Trim()))
        {
            merchantInfoModel.CapitalTotal = Convert.ToDecimal(this.txtCapitalTotal.Text.Trim());
        }

        merchantInfoModel.MerchantCurrency = ""; // this.ddlMerchantCurrency.SelectedValue;
        merchantInfoModel.MerchantTotal    = ""; // this.ddlMerchantTotal.SelectedValue;

        if (!string.IsNullOrEmpty(this.txtZoneAbout.Value.Trim()))
        {
            merchantInfoModel.ZoneAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtZoneAbout.Value.Trim());
        }

        //这里是2010-06-01新加的招商信息
        //if (!string.IsNullOrEmpty(this.txtZoneAboutBrief.Value.Trim()))
        merchantInfoModel.ZoneAboutBrief = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        // if (!string.IsNullOrEmpty(this.txtBenefit.Value.Trim()))
        merchantInfoModel.Benefit = Tz888.Common.Utility.PageValidate.TxtToHtml("");

        // if (!string.IsNullOrEmpty(this.txtEconomicIndicators.Value.Trim()))
        merchantInfoModel.EconomicIndicators = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //if (!string.IsNullOrEmpty(this.txtInvestmentEnvironment.Value.Trim()))
        merchantInfoModel.InvestmentEnvironment = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //if (!string.IsNullOrEmpty(this.txtProjectStatus.Value.Trim()))
        merchantInfoModel.ProjectStatus = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //  if (!string.IsNullOrEmpty(this.txtMarket.Value.Trim()))

        merchantInfoModel.Market = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //merchantInfoModel.Merchanreturns = Convert.ToInt32(this.txtHuiBao.Text.Trim());//回报率
        if (txtHuiBao.Text.ToString().Trim() == "")
        {
            merchantInfoModel.Merchanreturns = 0;
        }
        else
        {
            merchantInfoModel.Merchanreturns = Convert.ToInt32(this.txtHuiBao.Text.Trim());
        }
        //结束处
        foreach (Tz888.Model.Common.IndustryModel model in industryModels)
        {
            merchantInfoModel.IndustryClassList += model.IndustryBID + ",";
        }

        //2010-06-08以下是对信息完整度的统计
        merchantInfoModel.InformationIntegrity = Tz888.BLL.Info.MarchantInfoBLL.CountInfoInte(merchantInfoModel, infoContactModel);

        #endregion

        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            mainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }

        mainInfoModel.InfoCode = Tz888.BLL.Info.Common.CreateInfoCode("Merchant", industryModels[0].IndustryBID, this.ZoneSelectControl1.CountryID, DateTime.Now);
        mainInfoModel.publishT = time_now;
        mainInfoModel.Hit      = Convert.ToInt32(tbHits.Text.Trim());

        mainInfoModel.IsCore = true;
        //注意这里是添加主信息表与用户登陆表的通过用户名相联系
        //mainInfoModel.LoginName = "111111";
        mainInfoModel.LoginName          = bp.LoginName;
        mainInfoModel.InfoOriginRoleName = "0"; //用户角色
        mainInfoModel.GradeID            = "0";
        if (chkIsPoint.Checked == true)
        {
            mainInfoModel.FixPriceID     = "2";
            mainInfoModel.MainPointCount = Convert.ToInt32(txtPointCount.Text.Trim());
        }
        else
        {
            mainInfoModel.MainPointCount = 0;
            mainInfoModel.FixPriceID     = "1";
        }
        mainInfoModel.FeeStatus = 0;
        mainInfoModel.KeyWord   = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        mainInfoModel.Descript  = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            mainInfoModel.DisplayTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        mainInfoModel.FrontDisplayTime  = time_now;
        mainInfoModel.ValidateStartTime = time_now;
        mainInfoModel.ValidateTerm      = Convert.ToInt32(this.rdlValiditeTerm.SelectedValue.Trim());
        mainInfoModel.TemplateID        = "001";
        byte AuditingStatus = 0;

        if (rdAudit.Checked == true)
        {
            AuditingStatus = 0;
        }
        if (rdPass.Checked == true)
        {
            AuditingStatus = 1;
        }
        if (rdNopass.Checked == true)
        {
            AuditingStatus = 2;
        }
        mainInfoModel.AuditingStatus      = AuditingStatus;
        mainInfoModel.HtmlFile            = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        shortInfoModel.ShortInfoControlID = "MerchantIndex1";
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            shortInfoModel.ShortTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        shortInfoModel.ShortContent = "";
        shortInfoModel.Remark       = "";

        //将已上传的图片从临时目录迁移到正式目录
        //infoResourceModels = Tz888.Common.InfoResourceManage.ImageTransfer("Image", "Merchant", Tz888.Common.ResourceType.Image, Tz888.Common.ResourceProperty.InfoImage, FilesUploadControl1.InfoList);
        infoResourceModels = FilesUploadControl1.InfoList;

        Tz888.BLL.Info.MarchantInfoBLL marchantObj = new Tz888.BLL.Info.MarchantInfoBLL();
        //插入数据
        long infoID = marchantObj.Insert(mainInfoModel, merchantInfoModel, infoContactModel, shortInfoModel, infoResourceModels);
        if (infoID > 0)
        {
            if (rdPass.Checked == true)
            {
                Tz888.Model.Info.MerchantSetModel model = new Tz888.Model.Info.MerchantSetModel();

                string url = "Merchant/" + DateTime.Now.ToString("yyyyMM") + "/Merchant" + DateTime.Now.ToString("yyyyMMdd") + "_" + infoID + ".shtml";
                merstatic.UpdateUrl(url, infoID);

                page = page.objGetMerchantInfoByInfoID(infoID);                   //根ID获取信息
                string IsVip   = Mercahrstatic.SelIsVip();                        //查询为重大商机的信息
                string Idstuny = page.SelectLndus(ZoneSelectControl1.ProvinceID); //根据区域查询信息
                int    sum     = page.StaticHtml(Convert.ToInt32(infoID), page.Title, page.PublishT, page.AreaName, page.Content, page.IndustryCarveOutID, page.MerchantNameTotal, page.ValidateID, Idstuny, IsVip, page.Title, page.Title, page.Title, page.Merchanreturns);
            }
            //招商重大投资商机设置
            Tz888.BLL.MerchantOppor objOppor = new Tz888.BLL.MerchantOppor();
            if (chkIsVip.Checked)
            {
                objOppor.IsVip(infoID, 1, txtIsVipAbout.Text.Trim());
            }
            else
            {
                objOppor.IsVip(infoID, 0, "");
            }
            Response.Redirect("MerchantManage.aspx");
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "发布失败!");
        }
    }