public TList <Attachment> GetAttachmentByFormID(string FormID) { AttachmentService rs = new AttachmentService(); AttachmentQuery query = new AttachmentQuery(); query.Clear(); query.AppendEquals(string.Empty, AttachmentColumn.FormId, FormID); SqlSortBuilder <AttachmentColumn> sort = new SqlSortBuilder <AttachmentColumn>(); sort.AppendASC(AttachmentColumn.CreateAtTime); return(rs.Find(query.GetParameters(), sort.GetSortColumns())); }
public TList <Attachment> GetAttachmentByFormID(string FormID, Pkurg.PWorld.Entities.Employee currentEmployee) { AttachmentService rs = new AttachmentService(); AttachmentQuery query = new AttachmentQuery(); query.Clear(); query.AppendEquals(string.Empty, AttachmentColumn.FormId, FormID); query.AppendEquals("and", AttachmentColumn.CreateByUserCode, currentEmployee.EmployeeCode); SqlSortBuilder <AttachmentColumn> sort = new SqlSortBuilder <AttachmentColumn>(); sort.AppendASC(AttachmentColumn.CreateAtTime); return(rs.Find(query.GetParameters(), sort.GetSortColumns())); }
/// <summary> /// 得到附件信息列表 /// </summary> /// <returns></returns> public TList <Attachment> GetAttachmentList() { AttachmentService service = new AttachmentService(); AttachmentQuery query = new AttachmentQuery(); query.Clear(); SqlSortBuilder <AttachmentColumn> sort = new SqlSortBuilder <AttachmentColumn>(); sort.AppendASC(AttachmentColumn.CreateAtTime); return(service.Find(query.GetParameters(), sort.GetSortColumns())); }