Exemplo n.º 1
0
    public string GetAllOtherInfoByInfoIDForStaticPage(string InfoID, string LoginName)
    {
        long lgCurrentPage = 1;
        long lgPageSize    = 0;
        long lgPageCount   = 0;

        decimal MainPointCount = 0;

        StringBuilder sOut = new StringBuilder();

        string CurrentUserName = "";

        CurrentUserName = LoginName;

        //用户会员资料展示页面
        string MemberURL = "";

        //用户是否是拓富通会员


        bool bIsTofMember = false;

        if (User.IsInRole("GT1002"))
        {
            //拓富通会员


            if (CurrentUserName.Trim() != "")
            {
                bIsTofMember = true;
            }
        }

        #region 用户的联系方式信息
        string PublishMan         = "";
        string NickName           = "";
        string SelfWebDomain      = "";//网上展厅域名
        string InfoTypeName       = "";
        int    FixPriceID         = 0;
        string InfoOriginRoleName = "0";
        string ManageTypeID       = "";

        Tz888.BLL.Common.CommonFunction cf = new Tz888.BLL.Common.CommonFunction();
        DataTable dt = cf.GetDTFromTableOrView("MainInfoViw", "infoid", "*", " infoid=" + InfoID, "InfoID", ref lgCurrentPage, lgPageSize, ref lgPageCount);
        if (dt != null && dt.Rows.Count > 0)
        {
            FixPriceID         = Convert.ToInt32(dt.Rows[0]["FixPriceID"].ToString().Trim());
            MainPointCount     = Convert.ToDecimal(dt.Rows[0]["MainPointCount"].ToString().Trim());
            InfoOriginRoleName = dt.Rows[0]["InfoOriginRoleName"].ToString().Trim();
            PublishMan         = dt.Rows[0]["LoginName"].ToString().Trim();
            ManageTypeID       = dt.Rows[0]["ManageTypeID"].ToString().Trim();
            Tz888.BLL.Conn con    = new Tz888.BLL.Conn();
            DataTable      domain = con.GetWebSiteList("SelfCreateWebInfo", "Domain", "LoginName", 1, 1, 0, 1, "LoginName='" + LoginName + "'");
            if (domain.Rows.Count > 0)
            {
                SelfWebDomain = domain.Rows[0]["Domain"].ToString();
            }
        }

        string sContract = "";

        //免费或已购买的信息的内容
        string sFree = "<ul><li><a href=\"javascript:GetContactDetail('" + InfoID + "');\"><img src=\"http://images.topfo.com/Info/Capital/1/images/zibc_23.jpg\" width=\"183\" height=\"30\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<span>提示:您需要登陆后才能查看联系方式</span></li></ul>";

        //收费的信息内容(需要购买才能看)

        string payDomain = System.Configuration.ConfigurationManager.AppSettings["payDomain"];

        Tz888.BLL.Common.DictionaryInfoBLL     diBll  = new Tz888.BLL.Common.DictionaryInfoBLL();
        Tz888.Model.Common.DictionaryInfoModel objDic = new Tz888.Model.Common.DictionaryInfoModel();
        objDic = diBll.GetModel("1");
        string strMainPointCount    = MainPointCount.ToString("c");
        string strMainPointCountVip = Convert.ToDecimal(Convert.ToString(Convert.ToDecimal(objDic.DictionaryInfoParam) * MainPointCount)).ToString("c");

        //收费的信息类容
        string sChange = "<ul><li>资源价格:<span class=\"orange01\"><strong>" + strMainPointCount + "</strong></span>元(拓富通会员价:<span class=\"orange01\"><strong>" + strMainPointCountVip + "</strong></span>元)</li>" +
                         "<li><a href=\"" + payDomain + "/order_item.aspx?InfoID=" + InfoID
                         + "\" class=\"spaces\"><img src=\"http://images.topfo.com/Info/Capital/1/images/tiem_03.jpg\" /></a>&nbsp;<a href=\"http://membertest.topfo.com/PayManage/shopcar.aspx?InfoID=" + InfoID
                         + "\" class=\"spaces\" target=\"_blank\"><img src=\"http://images.topfo.com/Info/Capital/1/images/tiem_05.jpg\" width=\"162\" height=\"36\" /></a></li>" +
                         "<li><font color=\"#CCCCCC\">支持多种支付方式,资源若无效经中国招商投资网确认后可全额返还所付款项,请放心购买</font></li></ul>";
        #endregion

        //sOut.Append(sContract);
        //多少人关注
        string Hits = "0";
        //if (dv != null && dv.Table.Rows.Count > 0)
        if (dt != null && dt.Rows.Count > 0)
        {
            Hits = dt.Rows[0]["hit"].ToString().Trim();
        }
        //sOut.Append("|");
        sOut.Append(Hits.Trim());

        //多少人收藏,同时更新浏览次数
        string ViewCollection = "0";
        if (MainPointCount > 0 && FixPriceID > 1)
        {
            Tz888.BLL.Info.MatchInfoBLL miBLL = new Tz888.BLL.Info.MatchInfoBLL();
            miBLL.dvViewCollectionCount(InfoID);//更新浏览次数
            Tz888.BLL.Info.MainInfoBLL mainBLL = new Tz888.BLL.Info.MainInfoBLL();
            ViewCollection = mainBLL.GetInfoBuyersCount(Convert.ToInt64(InfoID)).ToString();
        }
        else
        {
            Tz888.BLL.Info.MatchInfoBLL miBLL = new Tz888.BLL.Info.MatchInfoBLL();

            DataView dvViewCollection = miBLL.dvViewCollectionCount(InfoID);
            if (dvViewCollection != null && dvViewCollection.Table.Rows.Count > 0)
            {
                ViewCollection = Convert.ToInt32(dvViewCollection.Table.Rows[0][0]).ToString();
            }
        }
        sOut.Append("|");
        sOut.Append(ViewCollection.Trim());

        //推荐次数
        sOut.Append("|");
        sOut.Append("3");
        //留言条数
        Tz888.BLL.Conn dal = new Tz888.BLL.Conn();
        int            c   = dal.GetCount("InfoCommentTab", "InfoID", "InfoID=" + InfoID);

        sOut.Append("|");
        sOut.Append(c.ToString());

        sOut.Append("|");
        if (MainPointCount > 0 && FixPriceID > 1)
        {
            //这是一条收费信息
            bool bIsBuy = false;
            Tz888.BLL.Info.CapitalInfoBLL ciBll = new Tz888.BLL.Info.CapitalInfoBLL();
            bIsBuy = ciBll.bIsBuyInfoOfUser(CurrentUserName, InfoID);
            if (bIsBuy)
            {
                sContract = sFree;
            }
            else
            {
                sContract = sChange;
            }
        }
        else
        {
            sContract = sFree;
        }

        sOut.Append(sContract);
        return(sOut.ToString().Trim());
    }
Exemplo n.º 2
0
    public string GetAllOtherInfoByInfoIDForStaticPage(string InfoID, string LoginName)
    {
        #region 互告跟踪记录

        ///------------------------------
        ///--design by AdSystem_20090620
        ///------------------------------
        string         sitekey = "";
        AdSystem.Logic loc     = new AdSystem.Logic();
        if (HttpContext.Current.Request.Cookies["S"] != null && HttpContext.Current.Request.Cookies["S"].Value.Trim() != "")
        {
            sitekey = HttpContext.Current.Request.Cookies["S"].Value.Trim();
            HttpContext.Current.Request.Cookies["S"].Expires = DateTime.Now.AddDays(-1);
            bool flag = loc.setCookie(sitekey, InfoID);
            if (flag)
            {
                loc.Hits_Add();
            }
        }
        //跟踪浏览的用户
        if (LoginName.Trim() != "")
        {
            loc.View_Add(InfoID, LoginName);
        }

        #endregion


        StringBuilder sOut = new StringBuilder();


        #region 信息参数说与基本信息获取

        long    lgCurrentPage   = 1;
        long    lgPageSize      = 0;
        long    lgPageCount     = 0;
        decimal MainPointCount  = 0;                                                 //资源报价
        int     FixPriceID      = 0;                                                 //资源是否收费
        string  CurrentUserName = "";                                                //当前登陆的查看信息的用户
        //string MemberURL = "";            //用户会员资料展示页面
        string PublishMan         = "";                                              //发布信息的用户
        string NickName           = "";                                              //发布信息的用户昵称
        string InfoTypeName       = "";                                              //信息类别
        string InfoOriginRoleName = "0";                                             //
        string ManageTypeID       = "";                                              //发布信息的用户类别
        string payDomain          = System.Configuration.ConfigurationManager.AppSettings["payDomain"];
        string buyUrl             = payDomain + "/order_item.aspx?InfoID=" + InfoID; //资源购买的路径

        CurrentUserName = LoginName;
        BatchCreateXml bcx = new BatchCreateXml();
        Tz888.BLL.Common.CommonFunction cf = new Tz888.BLL.Common.CommonFunction();
        DataTable dt = cf.GetDTFromTableOrView("MainInfoViw", "infoid", "*", " infoid=" + InfoID, "InfoID", ref lgCurrentPage, lgPageSize, ref lgPageCount);
        if (dt != null && dt.Rows.Count > 0)
        {
            FixPriceID         = Convert.ToInt32(dt.Rows[0]["FixPriceID"].ToString().Trim());
            MainPointCount     = Convert.ToDecimal(dt.Rows[0]["MainPointCount"].ToString().Trim());
            InfoOriginRoleName = dt.Rows[0]["InfoOriginRoleName"].ToString().Trim();
            PublishMan         = dt.Rows[0]["LoginName"].ToString().Trim();
            ManageTypeID       = dt.Rows[0]["ManageTypeID"].ToString().Trim();
        }

        #endregion


        #region 资源是否购买的提示信息

        string WhetherCharges_button = "";       //按钮提示
        string WhetherCharges_Clew   = "";       //提示信息
        string userState             = "Charge"; // Charge购买 / Login登陆 / View查看
        //if (User.Identity.Name != null && LoginName.Trim() == User.Identity.Name.Trim())//已登陆
        //{
        if (MainPointCount > 0 && FixPriceID > 1)           //是否免费信息
        {
            bool bIsBuy = false;                            //这是一条收费信息
            Tz888.BLL.Info.CapitalInfoBLL ciBll = new Tz888.BLL.Info.CapitalInfoBLL();
            bIsBuy = ciBll.bIsBuyInfoOfUser(CurrentUserName, InfoID);
            if (bIsBuy)
            {
                userState = "View";
            }
            else
            {
                userState = "Charge";
            }
        }
        else
        {
            userState = "View";
        }
        //}
        switch (userState)
        {
        case "Login":       //提示登陆
        //WhetherCharges_button = "<a href=\"http://member.topfo.com\"><img src=\"/CommonV3/img/res3_btn14.gif\" alt=\"请先登陆\"></a>";
        //WhetherCharges_Clew = "<span class=\"tit f_tit3\">以下为该资源的项目核心资料,你需要登陆才能查看!</span><span class=\"btn\">" +
        //    "<a href=\"http://member.topfo.com\"><img src=\"/CommonV3/img/res3_btn14.gif\" alt=\"点击登陆\" /></a></span>" +
        //    "<div class=\"clear\"></div>";
        //break;
        case "View":        //提示查看
            WhetherCharges_button = "<a href=\"#88\" onclick=\"javascript:GetContactDetail(" + InfoID + ");\" ><img src=\"/CommonV3/img/res3_btn13.gif\" alt=\"请点击查看\"></a>";
            WhetherCharges_Clew   = "<span class=\"tit f_tit3\">以下为项目核心资料,你需要购买才能查看!</span><span class=\"btn\">" +
                                    "<a href=\"#88\" onclick=\"javascript:GetContactDetail(" + InfoID + ");\"><img src=\"/CommonV3/img/res3_btn13.gif\" alt=\"点击查看\" /></a></span>" +
                                    "<div class=\"clear\"></div>";
            break;

        case "Charge":      //提示购买
            WhetherCharges_button = "<a href=\"" + buyUrl + "\"><img src=\"/CommonV3/img/res3_btn7.gif\" alt=\"请点击购买\"></a>";
            WhetherCharges_Clew   = "<span class=\"tit f_tit3\">以下为项目核心资料,你需要购买才能查看!</span><span class=\"btn\">" +
                                    "<a href=\"" + buyUrl + "\"><img src=\"/CommonV3/img/res3_btn7.gif\" alt=\"点击购买\" /></a></span>" +
                                    "<div class=\"clear\"></div>";
            break;
        }

        sOut.Append(WhetherCharges_button.Trim());
        sOut.Append("|");
        sOut.Append(WhetherCharges_Clew.Trim());
        sOut.Append("|");

        #endregion


        #region 购买者评级

        //sOut.Append(getBuyerRatingById(InfoID).ToString().Trim());
        sOut.Append("");
        sOut.Append("|");

        #endregion


        #region 相关资源列表

        string list_Capital = bcx.getInfoList("Capital", InfoID);
        sOut.Append(list_Capital.Trim());
        sOut.Append("|");

        string list_Project = bcx.getInfoList("Project", InfoID);
        sOut.Append(list_Project.Trim());
        sOut.Append("|");

        string list_Merchant = bcx.getInfoList("Merchant", InfoID);
        sOut.Append(list_Merchant.Trim());
        sOut.Append("|");

        string list_Others = bcx.getInfoList("Others", InfoID);
        sOut.Append(list_Others.Trim());
        sOut.Append("|");

        string list_News = bcx.getInfoList("News", InfoID);
        sOut.Append(list_News.Trim());

        #endregion


        return(sOut.ToString().Trim());
    }
Exemplo n.º 3
0
    public string dgGetCart()
    {
        try
        {
            //DataSet ds;
            //return ds.GetXml();

            StringWriter   wr     = new StringWriter();
            HtmlTextWriter writer = new HtmlTextWriter(wr);
            StringBuilder  sb     = new StringBuilder();


            //读取用户的身份信息



            string LoginName = LoginInfoBLL.GetCookieContentByCookieType(0);
            if (LoginName.Trim() != "")
            {
                Tz888.BLL.Common.CommonFunction bllComm = new Tz888.BLL.Common.CommonFunction();
                DataTable dt = new DataTable();
                //dt = bllInner.GetInfoListForUserCenter(LoginName, 0, 3, 1, 0);
                long CurrPage = 1;
                long AllCount = 0;
                dt = bllComm.GetDTFromTableOrView("shopcarViw", "ShopCarID", "*", "LoginName='" + LoginName.Trim() + "'", "ShopCarID", ref CurrPage, 3, ref AllCount);

                //dg.AutoGenerateColumns = false;
                //dg.Columns[0].HeaderText = "发送人";
                //dg.Columns[1].HeaderText = "主题发送时间";
                //dg.Columns[2].HeaderText = "主题";
                //dg.ShowHeader = false;
                //dg.DataSource = dt.DefaultView;
                //dg.Width = 588;
                //dg.DataBind();

                sb.Append("<div class='notemsg1'>您的购物车中共有<a href='/PayManage/trade_info_wait.aspx' class='chenglink'><span id='shopCartCount'>" + AllCount + "</span>条</a>未付款的资源</div>");

                sb.Append("<table width=100% border=0 cellpadding=0 cellspacing=0 >");
                sb.Append("<tr><td>资源标题</td><td>价格(元)</td></tr>");


                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    sb.Append("<tr>");
                    sb.Append("<td width=58%><a target='_blank' title='" + dt.Rows[i]["SourceType"].ToString().Trim() + "' href='http://www.topfo.com/" + dt.Rows[i]["HtmlFile"].ToString().Trim() + "'>" + GetStr(dt.Rows[i]["SourceType"].ToString().Trim(), 18) + "</a></td>");
                    sb.Append("<td width=20%>" + Convert.ToInt32(dt.Rows[i]["WorthPoint"].ToString()) * 0.8 + "</td>");
                    sb.Append("</tr>");
                    if (i > 5)
                    {
                        break;
                    }
                }
                sb.Append("</table>");
                sb.Append("<div class='entermail'><a href='/PayManage/trade_info_wait.aspx'  class='blue'>&gt;&gt;进入我的购物车</a></div></div>");
            }
            return(sb.ToString());
        }
        catch (Exception ex)
        {
            string err = ex.Message.ToString();
            err = "";
            return(err);
        }
    }
Exemplo n.º 4
0
    /// <summary>
    /// 获取查询结果
    /// </summary>
    /// <param name="LoginName"></param>
    /// <returns></returns>
    private string GetDingYueCondition(string LoginName)
    {
        string SelectCol = "*";
        string Criteria  = " LoginName='" + LoginName + "'";

        Tz888.SQLServerDAL.Conn obj = new Tz888.SQLServerDAL.Conn();
        DataTable     dt            = obj.GetList("CustomInfoTab", "*", "ID", 1, 1, 0, 1, Criteria);
        StringBuilder sb            = new StringBuilder();
        StringBuilder sbTemp        = new StringBuilder();
        long          iAllCount     = 0;
        string        str           = "";

        if (dt.Rows.Count > 0)//已设置订阅
        {
            sbTemp.Append("<table width=100% border=0 cellpadding=0 cellspacing=0 >");
            sbTemp.Append("<tr><td >资源名称</td><td>发布时间</td></tr>");
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                //查询条件
                string sCondtion = SetDingYueCondition(dt.Rows[i]);
                //数据源名称
                string sViewName = GetViewNameByCustomType(dt.Rows[i]["CustomType"].ToString().Trim());

                Tz888.BLL.Common.CommonFunction bllComm = new Tz888.BLL.Common.CommonFunction();
                DataTable dtResult = new DataTable();
                long      CurrPage = 1;
                long      AllCount = 0;
                dtResult = bllComm.GetDTFromTableOrView(sViewName, "InfoID", "*", sCondtion, "InfoID", ref CurrPage, 10, ref AllCount);

                if (dtResult.Rows.Count > 0)
                {
                    for (int m = 0; m < 3; m++)
                    {
                        string title = dtResult.Rows[m]["title"].ToString();
                        if (title.Length > 16)
                        {
                            title = title.Substring(0, 16) + "...";
                        }
                        DateTime date = Convert.ToDateTime(dtResult.Rows[m]["publishT"].ToString());

                        sbTemp.Append("<tr>");
                        sbTemp.Append("<td><a href='http://www.topfo.com/" + dtResult.Rows[m]["HtmlFile"].ToString() + "' target='_blank'>" + title + "</a></td>");
                        sbTemp.Append("<td>" + date.ToShortDateString() + "</td>");
                        sbTemp.Append("</tr>");
                    }
                }
                iAllCount = iAllCount + AllCount;
            }


            sbTemp.Append("</table>");

            sb.Append("<div class='notemsg1'>您共有<a href='helper/MachingMessage.aspx?ID=" + dt.Rows[0]["id"] + "' class='blue'><span id='diyueCount'>" + iAllCount.ToString() + "</span></a>条订阅信息</div>");
            sb.Append(sbTemp.ToString().Trim());
            sb.Append("<div class='entermail'><a href='helper/MachingMessage.aspx?ID=" + dt.Rows[0]["id"].ToString() + "' class='blue'>&gt;&gt;查看更多订阅资源</a></div></div>");
            str = sb.ToString();
        }
        else
        {
            sb.Append("<div>您没有新的订阅资源</div>");
            sb.Append("<table><tr><td>您还没有设置任何订阅条件,<a href='helper/MatchingInfo.aspx'>点此立即设置</a></td></tr></table>");
            str = sb.ToString().Trim();
        }
        return(str);
    }
Exemplo n.º 5
0
    public string GetAllOtherInfoByInfoIDForStaticPage(string InfoID, string LoginName)
    {
        #region 互告跟踪记录
        ///------------------------------
        ///--design by AdSystem_20090620
        ///------------------------------
        string         sitekey = "";
        AdSystem.Logic loc     = new AdSystem.Logic();
        if (HttpContext.Current.Request.Cookies["S"] != null && HttpContext.Current.Request.Cookies["S"].Value.Trim() != "")
        {
            sitekey = HttpContext.Current.Request.Cookies["S"].Value.Trim();
            HttpContext.Current.Request.Cookies["S"].Expires = DateTime.Now.AddDays(-1);
            bool flag = loc.setCookie(sitekey, InfoID);
            if (flag)
            {
                loc.Hits_Add();
            }
        }
        //跟踪浏览的用户
        if (LoginName.Trim() != "")
        {
            loc.View_Add(InfoID, LoginName);
        }
        #endregion

        #region 信息参数说明
        StringBuilder sOut            = new StringBuilder();
        long          lgCurrentPage   = 1;
        long          lgPageSize      = 0;
        long          lgPageCount     = 0;
        decimal       MainPointCount  = 0;
        string        CurrentUserName = "";
        CurrentUserName = LoginName;
        string MemberURL = "";              //用户会员资料展示页面

        bool bIsTofMember = false;          //用户是否是拓富通会员
        if (User.IsInRole("GT1002"))
        {
            //拓富通会员
            if (CurrentUserName.Trim() != "")
            {
                bIsTofMember = true;
            }
        }

        string sContract = "";              //1,用户的联系方式信息 | 2,type
        #endregion

        #region 获取用户的联系方式信息
        string PublishMan                  = "";
        string NickName                    = "";
        string SelfWebDomain               = ""; //网上展厅域名
        string InfoTypeName                = "";
        int    FixPriceID                  = 0;
        string InfoOriginRoleName          = "0";
        string ManageTypeID                = "";
        Tz888.BLL.Common.CommonFunction cf = new Tz888.BLL.Common.CommonFunction();
        DataTable dt = cf.GetDTFromTableOrView("MainInfoViw", "infoid", "*", " infoid=" + InfoID, "InfoID", ref lgCurrentPage, lgPageSize, ref lgPageCount);
        if (dt != null && dt.Rows.Count > 0)
        {
            FixPriceID         = Convert.ToInt32(dt.Rows[0]["FixPriceID"].ToString().Trim());
            MainPointCount     = Convert.ToDecimal(dt.Rows[0]["MainPointCount"].ToString().Trim());
            InfoOriginRoleName = dt.Rows[0]["InfoOriginRoleName"].ToString().Trim();
            PublishMan         = dt.Rows[0]["LoginName"].ToString().Trim();
            ManageTypeID       = dt.Rows[0]["ManageTypeID"].ToString().Trim();
            Tz888.BLL.Conn con    = new Tz888.BLL.Conn();
            DataTable      domain = con.GetWebSiteList("SelfCreateWebInfo", "Domain", "LoginName", 1, 1, 0, 1, "LoginName='" + PublishMan + "'");
            if (domain.Rows.Count > 0)
            {
                SelfWebDomain = domain.Rows[0]["Domain"].ToString();
            }
        }
        string ToSelfWebDomain = "";
        string href            = "";
        if (SelfWebDomain != "")
        {
            if (ManageTypeID == "2004")
            {
                href = "http://" + SelfWebDomain + ".gov.topfo.com";
            }
            else
            {
                href = "http://" + SelfWebDomain + ".co.topfo.com";
            }
            ToSelfWebDomain = "<a href='" + href + "' target='_blank'><img src='/images/huiy_23.jpg' width='206' height='30' /></a>";
        }
        //总站发布的信息
        string sManage = "<a href='#88' onclick=\"javascript:GetContactDetail(" + InfoID + ");\" class='spaces' ><img src='/web13/images/project/button_cklxfs.gif' width='150' height='30' align='absmiddle' /></a>&nbsp;&nbsp;" + ToSelfWebDomain + "|1";
        //免费的信息的内容
        string sFree = "<a href='#88' onclick=\"javascript:GetContactDetail(" + InfoID + ");\" class='spaces' ><img src='/web13/images/project/button_cklxfs.gif' width='150' height='30' align='absmiddle' /></a>&nbsp;&nbsp;" + ToSelfWebDomain + "|1";
        //收费的信息内容(需要购买才能看)
        string payDomain = System.Configuration.ConfigurationManager.AppSettings["payDomain"];
        string sChange   = "<a href=\"" + payDomain + "/order_item.aspx?InfoID=" + InfoID
                           + "\" class=\"spaces\"><img src='/web13/images/project/button_ljgm.gif' width=\"130\" height=\"30\" border=\"0\" align=\"absmiddle\" /></a>&nbsp;<a href=\"http://member.topfo.com/PayManage/shopcar.aspx?InfoID=" + InfoID
                           + "\" class=\"spaces\" target=\"_blank\"><img src=\"/web13/images/project/button_flgwc.gif\" width=\"150\" height=\"30\" border=\"0\" align=\"absmiddle\" /></a><br /><font color='#CCCCCC'>支持多种支付方式,资源若无效经中国招商投资网确认后可全额返还所付款项,请放心购买</font><br>" + ToSelfWebDomain + "|2";
        if (MainPointCount > 0 && FixPriceID > 1)       //当前用户名
        {
            bool bIsBuy = false;                        //这是一条收费信息
            Tz888.BLL.Info.CapitalInfoBLL ciBll = new Tz888.BLL.Info.CapitalInfoBLL();
            bIsBuy = ciBll.bIsBuyInfoOfUser(CurrentUserName, InfoID);
            if (bIsBuy)
            {
                if (InfoOriginRoleName == "0")
                {
                    sContract = sFree;
                }
                else
                {
                    sContract = sManage;
                }
            }
            else
            {
                if (bIsTofMember)
                {
                    //拓富通会员购买了此信息
                    if (InfoOriginRoleName == "0")
                    {
                        sContract = sFree;
                    }
                    else
                    {
                        sContract = sManage;
                    }
                }
                else
                {
                    //拓富通会员没有购买了此信息
                    sContract = sChange;
                }
            }
        }
        else
        {
            //这是一条免费信息
            if (InfoOriginRoleName == "0")
            {
                sContract = sFree;
            }
            else
            {
                sContract = sManage;
            }
        }
        #endregion

        sOut.Append(sContract.Trim());
        sOut.Append("|");                   //3,null

        #region 点击量
        string Hits = "0";                  //4,多少人关注
        //if (dv != null && dv.Table.Rows.Count > 0)
        if (dt != null && dt.Rows.Count > 0)
        {
            Hits = dt.Rows[0]["hit"].ToString().Trim();
        }
        #endregion

        sOut.Append("|");
        sOut.Append(Hits.Trim());

        #region 收藏与浏览量
        string ViewCollection = "0";        //5,多少人收藏,同时更新浏览次数

        if (MainPointCount > 0 && FixPriceID > 1)
        {
            Tz888.BLL.Info.MatchInfoBLL miBLL = new Tz888.BLL.Info.MatchInfoBLL();
            miBLL.dvViewCollectionCount(InfoID);//更新浏览次数
            Tz888.BLL.Info.MainInfoBLL mainBLL = new Tz888.BLL.Info.MainInfoBLL();
            ViewCollection = mainBLL.GetInfoBuyersCount(Convert.ToInt64(InfoID)).ToString();
        }
        else
        {
            Tz888.BLL.Info.MatchInfoBLL miBLL = new Tz888.BLL.Info.MatchInfoBLL();
            DataView dvViewCollection         = miBLL.dvViewCollectionCount(InfoID);
            if (dvViewCollection != null && dvViewCollection.Table.Rows.Count > 0)
            {
                ViewCollection = Convert.ToInt32(dvViewCollection.Table.Rows[0][0]).ToString();
            }
        }
        #endregion

        sOut.Append("|");
        sOut.Append(ViewCollection.Trim());

        #region 查询推荐的次数
        ///------------------------------------------
        ///-- 20090601 ----------------     6,查询推荐的次数
        ///------------------------------------------
        Tz888.BLL.CommendBLL com = new Tz888.BLL.CommendBLL();
        long currpage            = 1;
        long pagecount           = 1;
        int  count = com.GetListCount("*", "InfoID=" + InfoID.ToString(), "", ref currpage, 1, ref pagecount);
        #endregion

        sOut.Append("|");
        sOut.Append(count.ToString().Trim());

        #region 附件列表
        string fujianStr = "";              //7,附件列表
        fujianStr = getInfoResourceById(Convert.ToInt64(InfoID), InfoOriginRoleName, MainPointCount, FixPriceID, bIsTofMember);
        #endregion

        sOut.Append("|");
        sOut.Append(fujianStr.Trim());

        sOut.Append("|");                   //8,资源价格
        sOut.Append(MainPointCount.ToString());

        sOut.Append("|");
        if (MainPointCount > 0 && FixPriceID > 1)//9,判断是否为收费资源
        {
            sOut.Append("收费");
        }
        else
        {
            sOut.Append("免费");
        }

        return(sOut.ToString().Trim());
    }