Example #1
0
 public void GetFullInfo(ClosureWOCheckList entity)
 {
     if (entity != null)
     {
         ProjectCommentCondition condition = new ProjectCommentCondition();
         condition.RefTableId   = entity.Id;
         condition.RefTableName = ClosureWOCheckList.TableName;
         condition.UserAccount  = ClientCookie.UserCode;
         condition.Status       = ProjectCommentStatus.Save;
         var commentList = ProjectComment.SearchList(condition);
         if (commentList != null && commentList.Count > 0)
         {
             entity.Comments = commentList[0].Content;
         }
         var closureEntity = ClosureInfo.GetByProjectId(entity.ProjectId);
         entity.USCode      = closureEntity.USCode;
         entity.UserAccount = ClientCookie.UserCode;
     }
 }