Example #1
0
        public override List <ProjectComment> GetEntityProjectComment()
        {
            var souceCode = WorkflowCode.Split('_')[0];

            return(ProjectComment.Search(e => e.RefTableName == TableName &&
                                         e.SourceCode == souceCode && e.RefTableId == Id && e.Status == ProjectCommentStatus.Submit)
                   .OrderBy(e => e.CreateTime).ToList());
        }
Example #2
0
        public static bool EnableRecall(string tableName, Guid id)
        {
            bool enableRecall = false;
            var  list         = ProjectComment.Search(e => e.RefTableName == tableName.Trim() && e.RefTableId == id)
                                .OrderByDescending(e => e.CreateTime).AsNoTracking().ToList();

            if (list.Count > 0 && list[0].Action != ProjectAction.Recall)
            {
                enableRecall = true;
            }
            return(enableRecall);
        }