protected string GetAtt(object obj) { string Guid = obj as string; StringBuilder sb = new StringBuilder(""); List< ZJGEport.FrameBase.FrameDB.FrameAttachment.DetailUploadFile> FAList = new ZJGEport.FrameBase.FrameDB.FrameAttachment().SelectFilesByGroupGuid2(Guid); for (int i = 0; i < FAList.Count; i++) { sb.Append("<a href='").Append(FAList[i].FilePath + FAList[i].FileName).Append("'>").Append(FAList[i].FileName).Append("</a>"); sb.Append("<br />"); } return sb.ToString(); }
protected string GetAtt(object obj) { string Guid = obj as string; StringBuilder sb = new StringBuilder(""); List<ZJGEport.FrameBase.FrameDB.FrameAttachment.DetailUploadFile> FAList = new ZJGEport.FrameBase.FrameDB.FrameAttachment().SelectFilesByGroupGuid2(Guid); for (int i = 0; i < FAList.Count; i++) { sb.Append("<a href='#' style='text-decoration:underline' onclick=\"ShowExcel('").Append(FAList[i].FilePath + FAList[i].FileName).Append("')\">").Append(FAList[i].FileName).Append("</a>"); sb.Append("<br />"); } return sb.ToString(); }