无题

protected void gvProjectInfo_RowDataBound(object sender, GridViewRowEventArgs e)

{

      if (e.Row.RowType == DataControlRowType.DataRow)
      {

                DataTable ProjectInfoDt = new ProjectInfoRule().GetDetailByProjectInfoID(ProjectInfoID);
                if (ProjectInfoDt.Rows.Count > 0)
                {
                    StringBuilder str = new StringBuilder();
                    str.AppendLine("ID: " + ProjectInfoDt.Rows[0]["ProjectStreamID"].ToString());
                    str.AppendLine("鉴定报告编号: " + ProjectInfoDt.Rows[0]["ReportCode"].ToString());
                    str.AppendLine(String.Empty);
                    str.AppendLine("委托单位(人): " + ProjectInfoDt.Rows[0]["ProjectProvider"].ToString());
                    str.AppendLine("项目地址: " + ProjectInfoDt.Rows[0]["ConcreteAddress"].ToString());
                    str.AppendLine("联系人: " + ProjectInfoDt.Rows[0]["ProjectContacter"].ToString());
                    if (ProjectInfoDt.Rows[0]["Mobile"].ToString() != "")
                    {
                        str.AppendLine("手机: " + ProjectInfoDt.Rows[0]["Mobile"].ToString());
                    }
                    if (ProjectInfoDt.Rows[0]["TelecomTel"].ToString() != "")
                    {
                        str.AppendLine("小灵通: " + ProjectInfoDt.Rows[0]["TelecomTel"].ToString());
                    }
                    if (ProjectInfoDt.Rows[0]["OtherContact"].ToString() != "")
                    {
                        str.AppendLine("其他电话: " + ProjectInfoDt.Rows[0]["OtherContact"].ToString());
                    }
                    str.AppendLine(String.Empty);
                    str.AppendLine("项目名称: " + ProjectInfoDt.Rows[0]["ProjectName"].ToString());
                    str.AppendLine("楼层(地上/地下): " + ProjectInfoDt.Rows[0]["TotalLayerUp"].ToString() + "/" + ProjectInfoDt.Rows[0]["TotalLayerDown"].ToString());
                    str.AppendLine("结构类型: " + ProjectInfoDt.Rows[0]["StructTypeName"].ToString());
                    str.AppendLine("建造年代: " + ProjectInfoDt.Rows[0]["BuildingDate"].ToString());
                    str.AppendLine("建筑面积(平米): " + ProjectInfoDt.Rows[0]["BuildingSquare"].ToString());
                    str.AppendLine("所属市(区): " + ProjectInfoDt.Rows[0]["CityName"].ToString());
                    str.AppendLine("项目类别: " + ProjectInfoDt.Rows[0]["ProjectSubType"].ToString());
                    str.AppendLine(String.Empty);
                    str.AppendLine("接待员: " + ProjectInfoDt.Rows[0]["JieDaiRenName"].ToString());
                    str.AppendLine("接待日期: " + NDConvert.ToDateTime(ProjectInfoDt.Rows[0]["CreateDate"]).ToShortDateString());
                    str.AppendLine("项目负责人: " + ProjectInfoDt.Rows[0]["ProjectManagerName"].ToString());
                    str.AppendLine("校对员: " + ProjectInfoDt.Rows[0]["JiaoDuiYuanName"].ToString());
                    str.AppendLine("校审员: " + ProjectInfoDt.Rows[0]["JiaoShengYuanName"].ToString());
                    str.Append("审批员: " + ProjectInfoDt.Rows[0]["ShenPiYuanName"].ToString());
                    e.Row.ToolTip = str.ToString();
                }

        }

}

效果图:

posted on 2009-06-05 10:02  小龙龙  阅读(162)  评论(0编辑  收藏  举报

导航