protected void rpData_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { DataRowView view = e.Item.DataItem as DataRowView; Literal ltCheckStatus = e.Item.FindControl("ltCheckStatus") as Literal; Literal ltRemark = e.Item.FindControl("ltRemark") as Literal; Hashtable ht = new Hashtable(); ht.Add("SingleProjectID", singleProjectID); ht.Add("WorkFlowID", workFlowID); ht.Add("ArchiveID", view["ArchiveID"].ToString()); List <T_WorkFlowDoResult_MDL> list = doResultBLL.GetArchiveLastChecResultList(ht); //获取的是最后一次的审核信息,根据流程ID if (list.Count > 0) { string remark = list[0].DoRemark.ToString(); bool blDoResult = ConvertEx.ToBool(list[0].DoResult); ltCheckStatus.Text = PublicModel.GetImageforStatus(blDoResult); ltRemark.Text = "<a style=\"color: black;cursor:pointer;\" onclick=\"Common.fnLayerTips('" + remark + "',this)\"> "; ltRemark.Text += ((remark.Length > 3) ? remark.Substring(0, 3) + "..." : remark) + "</a>"; HtmlTableRow col = (HtmlTableRow)e.Item.FindControl("r1"); if (blDoResult) { col.BgColor = "green"; } else { col.BgColor = "red"; } } } }