private void LoadInfo(long InfoID)
    {
        Tz888.BLL.Info.V124.CapitalInfoBLL    bll   = new Tz888.BLL.Info.V124.CapitalInfoBLL();
        Tz888.Model.Info.V124.CapitalSetModel model = new Tz888.Model.Info.V124.CapitalSetModel();
        model = bll.GetIntegrityModel(InfoID);

        //this.txtGovName.Text = model.InfoContactModel.OrganizationName;
        //this.txtGovIntro.Value = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt(model.CapitalInfoModel.ComBreif));

        this.txtCapitalName.Text = model.MainInfoModel.Title;
        if (model.CapitalInfoModel != null)
        {
            if (!string.IsNullOrEmpty(model.CapitalInfoModel.CapitalTypeID.ToString()))
            {
                //this.rblfinancingTarget.SelectedValue = model.CapitalInfoModel.CapitalTypeID;
            }
            string CooperationDemandType = model.CapitalInfoModel.CooperationDemandType;
            string CooperationDemandTypeItems;
            for (int i = 0; i < chkLstCooperationDemand.Items.Count; i++)
            {
                CooperationDemandTypeItems = chkLstCooperationDemand.Items[i].Value;
                //CooperationDemandTypeItems += ",";
                if (CooperationDemandType.IndexOf(CooperationDemandTypeItems) != -1)
                {
                    chkLstCooperationDemand.Items[i].Selected = true;
                }
            }
            //添加所属区域
            //this.ZoneSelectControl1.CountryID = model.CapitalInfoModel.SCountryID.Trim();
            //this.ZoneSelectControl1.ProvinceID = model.CapitalInfoModel.SProvinceID.Trim();
            //this.ZoneSelectControl1.CityID = model.CapitalInfoModel.SCityID.Trim();
            //this.ZoneSelectControl1.CountyID = model.CapitalInfoModel.SCountyID.Trim();



            this.ZoneMoreSelectControl1.CapitalInfoAreaModels = model.CapitalInfoAreaModels;
            if (!string.IsNullOrEmpty(model.CapitalInfoModel.IndustryBID.ToString()))
            {
                this.SelectIndustryControl1.IndustryString = model.CapitalInfoModel.IndustryBID;
            }

            this.rblCurreny.SelectedValue = model.CapitalInfoModel.CapitalID;

            //this.rdlJoinManage.SelectedValue = model.CapitalInfoModel.joinManageID.ToString();

            //this.rdlStage.SelectedValue = model.CapitalInfoModel.stageID.ToString();
            this.txtCapitalIntent.Value = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt(model.CapitalInfoModel.ComAbout));
            //以下是需要添加的参数
            //注册资金
            //this.rblRegisterdollar.SelectedValue = model.CapitalInfoModel.RegisteredCapital.ToString().Trim();
            ////团队规模
            //this.rblTeam.SelectedValue = model.CapitalInfoModel.TeamScale.ToString().Trim();
            ////机构年平均投资事件数
            //this.rblPinJ.SelectedValue = model.CapitalInfoModel.AverageInvestment.ToString().Trim();
            ////机构成功投资事件总数
            //this.rblSucess.SelectedValue = model.CapitalInfoModel.SuccessfulInvestment.ToString().Trim();
            ////投资需求摘要
            //this.txtDemand.Value = model.CapitalInfoModel.InvestmentDemand;
            ViewState["ComBreif"] = model.CapitalInfoModel.ComBreif;
        }
        //if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim()))
        //{
        //    string[] keys = model.MainInfoModel.KeyWord.Trim().Split(',');
        //    for (int i = 0; i < keys.Length; i++)
        //    {
        //        string key = keys[i].ToString().Trim();
        //        switch (i)
        //        {
        //            case 0:
        //                this.txtKeyword1.Text = key;
        //                break;
        //            case 1:
        //                this.txtKeyword2.Text = key;
        //                break;
        //            case 2:
        //                this.txtKeyword3.Text = key;
        //                break;
        //            default:
        //                break;
        //        }
        //    }
        //}
        this.rdlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();

        //this.CapitalAddressInfo1.InfoContact = model.InfoContactModel;

        //这里是换为投资机构名称
        txtGovName.Text = model.InfoContactModel.OrganizationName;
        //txtGovIntro.Value = model.InfoContactModel.OrgIntro;
        txtLinkMan.Text     = model.InfoContactModel.Name;
        txtTelCountry.Text  = model.InfoContactModel.TelCountryCode;
        txtTelZoneCode.Text = model.InfoContactModel.TelStateCode;
        txtTelNumber.Text   = model.InfoContactModel.TelNum;

        //txtFaxCountry.Text = model.InfoContactModel.FaxCountryCode;
        //txtFaxZoneCode.Text = model.InfoContactModel.FaxStateCode;
        //txtFaxNumber.Text = model.InfoContactModel.FaxNum;

        txtMobile.Text  = model.InfoContactModel.Mobile;
        txtAddress.Text = model.InfoContactModel.Address;
        //txtPostCode.Text = model.InfoContactModel.PostCode;
        txtEmail.Text = model.InfoContactModel.Email;

        txtWebSite.Text = model.InfoContactModel.WebSite;
        //以下是职位
        //txtPosition.Text = model.InfoContactModel.Position;



        if (Request.UrlReferrer != null)
        {
            ViewState["strPrePage"] = Request.UrlReferrer.ToString();
        }
        else
        {
            ViewState["strPrePage"] = "";
        }
        ViewState["InfoID"]   = model.MainInfoModel.InfoID;
        ViewState["PublishT"] = model.MainInfoModel.publishT;

        ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus;
        ViewState["HtmlFile"]       = model.MainInfoModel.HtmlFile;

        ViewState["ShortTitle"]         = model.ShortInfoModel.ShortTitle;
        ViewState["ShortContent"]       = model.ShortInfoModel.ShortContent;
        ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;


        this.FilesUploadControl1.InfoList = model.InfoResourceModels;
    }
Exemplo n.º 2
0
    public string GetOtherResource(string InfoID)
    {
        StringBuilder sOut      = new StringBuilder();
        string        doMainUrl = Tz888.Common.Common.GetWWWDomain();

        Tz888.BLL.Info.MatchInfoBLL miBll = new Tz888.BLL.Info.MatchInfoBLL();
        long     CurrentPage = 1;
        long     TotalCount  = 10;
        DataView dv          = miBll.GetMatchList("CC", Convert.ToInt64(InfoID), "InfoID", "", "degree asc", ref CurrentPage, 10, ref TotalCount);
        int      IsVip       = this.GetUserGrad(InfoID);

        if (IsVip == 0)
        {
            if (dv != null && dv.Table.Rows.Count > 0)
            {
                sOut.Append("<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">" +
                            "<tr>" +
                            "<td width=\"52%\" align=\"left\">" +
                            "<font color=\"#888888\"><b>项目名称</b></font></td>" +
                            "<td width=\"16%\" align=\"left\">" +
                            "<font color=\"#888888\"><b>融资金额</b></font></td>" +
                            "<td width=\"32%\" align=\"left\">" +
                            "<font color=\"#888888\"><b>所属行业</b></font></td>" +
                            "</tr>");
                Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL();
                for (int i = 0; i < dv.Table.Rows.Count; i++)
                {
                    long tmpId = Convert.ToInt64(dv.Table.Rows[i]["InfoID"]);
                    Tz888.Model.Info.V124.CapitalSetModel model = bll.GetIntegrityModel(tmpId);
                    string industryname = "";

                    for (int j = 0; j < model.CapitalInfoModel.IndustryBName.Count; j++)
                    {
                        string temp = model.CapitalInfoModel.IndustryBName[j];
                        if (!string.IsNullOrEmpty(temp))
                        {
                            if (j != (model.CapitalInfoModel.IndustryBName.Count - 1))
                            {
                                industryname += temp + " ";
                            }
                            else
                            {
                                industryname += temp;
                            }
                        }
                    }
                    sOut.Append("<tr>" +
                                "<td align=\"left\" bgcolor=\"#f6f6f6\">" +
                                "·<a href=\"" + doMainUrl + "/" + model.MainInfoModel.HtmlFile + "\">" + model.MainInfoModel.Title + "</a> " + model.MainInfoModel.publishT.ToString("yyyy-MM-dd") +
                                "</td>" +
                                "<td align=\"left\" bgcolor=\"#f6f6f6\">" +
                                model.CapitalInfoModel.CapitalName +
                                "</td>" +
                                "<td align=\"left\" bgcolor=\"#f6f6f6\">" +
                                industryname + "</td>" +
                                "</tr>");
                }
                sOut.Append("</table>");
            }
            else
            {
                sOut.Append("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"listtab\"><tr><td align=\"center\" class=\"title\">没有相关资源</td></tr></table>");
            }
        }
        else if (IsVip == 1)
        {
            if (dv != null && dv.Table.Rows.Count > 0)
            {
                sOut.Append("<div class=\"leftbox\"><ul>");
                Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL();

                string RowModel = "<li>·<a href=\"{0}\">{1} </a>{2} <span>{3}</span></li>";
                for (int i = 0; i < dv.Table.Rows.Count; i++)
                {
                    long tmpId = Convert.ToInt64(dv.Table.Rows[i]["InfoID"]);
                    Tz888.Model.Info.V124.CapitalSetModel model = bll.GetIntegrityModel(tmpId);

                    string HtmlFile    = doMainUrl + "/" + model.MainInfoModel.HtmlFile;
                    string Title       = model.MainInfoModel.Title;
                    string PublishTime = model.MainInfoModel.publishT.ToString("yyyy-MM-dd");
                    string CapitalName = model.CapitalInfoModel.CapitalName;
                    if (i == 5)
                    {
                        sOut.Append("</ul></div><div class=\"leftbox\"><ul>");
                    }
                    sOut.Append(string.Format(RowModel, HtmlFile, Title, PublishTime, CapitalName));
                }
                sOut.Append("</ul></div>");
            }
            else
            {
                sOut.Append("");
            }
        }
        if (string.IsNullOrEmpty(sOut.ToString()))
        {
            sOut.Append("没有相关的资源");
        }
        return(sOut.ToString().Trim());
    }
Exemplo n.º 3
0
    private void LoadInfo(long InfoID)
    {
        Tz888.BLL.Info.V124.CapitalInfoBLL    bll   = new Tz888.BLL.Info.V124.CapitalInfoBLL();
        Tz888.Model.Info.V124.CapitalSetModel model = new Tz888.Model.Info.V124.CapitalSetModel();
        model = bll.GetIntegrityModel(InfoID);



        this.txtCapitalName.Text = model.MainInfoModel.Title;
        if (model.CapitalInfoModel != null)
        {
            string CooperationDemandType = model.CapitalInfoModel.CooperationDemandType;


            //string CooperationDemandTypeItems;
            //for (int i = 0; i < chkLstCooperationDemand.Items.Count; i++)
            //{
            //    CooperationDemandTypeItems = chkLstCooperationDemand.Items[i].Value;

            //    if (CooperationDemandType.IndexOf(CooperationDemandTypeItems) != -1)
            //        chkLstCooperationDemand.Items[i].Selected = true;
            //}
            string[] str = model.CapitalInfoModel.CooperationDemandType.Split(new char[] { ',' });//1:123|2:123|3:123|4:123|

            string[] strchild = str;
            for (int j = 0; j < strchild.Length - 1; j++)
            {
                if (!string.IsNullOrEmpty(strchild[j].ToString()))
                {
                    switch (strchild[j].ToString())
                    {
                    case "1":
                        chkLstCooperationDemand.Items[0].Selected = true;
                        break;

                    case "11":
                        chkLstCooperationDemand.Items[1].Selected = true;
                        break;

                    case "2":
                        chkLstCooperationDemand.Items[2].Selected = true;
                        break;

                    default:
                        break;
                    }
                }
            }


            this.ZoneMoreSelectControl1.CapitalInfoAreaModels = model.CapitalInfoAreaModels;
            if (!string.IsNullOrEmpty(model.CapitalInfoModel.IndustryBID.ToString()))
            {
                this.SelectIndustryControl1.IndustryString = model.CapitalInfoModel.IndustryBID;
            }

            this.rblCurreny.SelectedValue = model.CapitalInfoModel.CapitalID;



            this.txtCapitalIntent.Value = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt(model.CapitalInfoModel.ComAbout));

            ViewState["ComBreif"] = model.CapitalInfoModel.ComBreif;
        }

        this.rdlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();


        txtHBao.Text = model.CapitalInfoModel.RegisteredCapital.ToString().Trim();
        //这里是换为投资机构名称
        txtGovName.Text = model.InfoContactModel.OrganizationName;

        txtLinkMan.Text     = model.InfoContactModel.Name;
        txtTelCountry.Text  = model.InfoContactModel.TelCountryCode;
        txtTelZoneCode.Text = model.InfoContactModel.TelStateCode;
        txtTelNumber.Text   = model.InfoContactModel.TelNum;



        txtMobile.Text  = model.InfoContactModel.Mobile;
        txtAddress.Text = model.InfoContactModel.Address;

        txtEmail.Text = model.InfoContactModel.Email;

        txtWebSite.Text = model.InfoContactModel.WebSite;

        txtKeord.Text         = model.MainInfoModel.KeyWord;      //网页关键字
        txtWtitle.Text        = model.MainInfoModel.DisplayTitle; //网页标题
        this.txtDescript.Text = model.MainInfoModel.Descript;     //网页描述

        if (Request.UrlReferrer != null)
        {
            ViewState["strPrePage"] = Request.UrlReferrer.ToString();
        }
        else
        {
            ViewState["strPrePage"] = "";
        }
        ViewState["InfoID"]         = model.MainInfoModel.InfoID;
        ViewState["PublishT"]       = model.MainInfoModel.publishT;
        ViewState["LoginName"]      = model.MainInfoModel.LoginName;
        ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus;
        ViewState["HtmlFile"]       = model.MainInfoModel.HtmlFile;


        int FixPriceID = Convert.ToInt32(model.MainInfoModel.FixPriceID.Trim());

        if (FixPriceID > 1)
        {
            chkIsPoint.Checked = true;
            spShowPoint.Attributes.Add("style", "display:''");
        }
        else
        {
            rbFree.Checked = true;
            spShowPoint.Attributes.Add("style", "display:none");
        }


        if (model.CapitalInfoModel.isVIP.ToString() != "")
        {
            this.ddlIsVip.SelectedValue = model.CapitalInfoModel.isVIP.ToString();
        }
        this.tbHits.Text = model.MainInfoModel.Hit.ToString();
        if (model.MainInfoModel.AuditingStatus == 0)
        {
            this.rdAudit.Checked = true;

            //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(0);", true);
        }
        if (model.MainInfoModel.AuditingStatus == 1)
        {
            this.rdPass.Checked = true;
            //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(1);", true);
        }
        if (model.MainInfoModel.AuditingStatus == 2)
        {
            this.rdNopass.Checked = true;
            //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(2);", true);
        }
        this.txtPointCount.Text = model.MainInfoModel.MainPointCount.ToString();

        this.FilesUploadControl1.InfoList = model.InfoResourceModels;
    }