//comment files
        public TranformedComment ReadExtendPropertiesOfComment(TranformedComment comment)
        {
            int recordCount = 0;

            comment.Attachments = FileSystemService.GetFilesBy("", "", comment.CommentID, "", "", FileStates.Normal, FileTypes.File, "", false, 0, 0x270f, out recordCount);
            return(comment);
        }
Esempio n. 2
0
        public TranformedComment GenerateTranformedComment(string commentid, string lotId, string commentText, bool internalOnly, User currentUser)
        {
            TranformedComment comment = new TranformedComment {
                CommentID      = commentid,
                CommentText    = commentText,
                Operator       = currentUser.UserID,
                LotID          = lotId,
                RecordState    = 0,
                CreateTime     = DateTime.Now,
                UpdateTime     = DateTime.Now,
                LastOperator   = currentUser.UserID,
                CommentType    = CommentTypes.CommentOnly,
                OperatorName   = currentUser.FullName,
                OperatorRole   = currentUser.Role.ToString(),
                OperatorBUName = currentUser.BUName,
                OperatorEmail  = currentUser.Email,
                Internal       = internalOnly,
            };

            return(comment);
        }
Esempio n. 3
0
 public void AddComment(TranformedComment comment)
 {
     this.way.AddComment(comment);
 }
Esempio n. 4
0
 public void AddComment(TranformedComment comment)
 {
     this.dbGateway.AddNew(comment);
 }