コード例 #1
0
ファイル: BPM_Attachment.cs プロジェクト: zhangwxyc/BPM
        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()));
        }
コード例 #2
0
ファイル: BPM_Attachment.cs プロジェクト: zhangwxyc/BPM
        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()));
        }