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())); }
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())); }