Example #1
0
        public void Insert(string NoteSubject,string NoteContent,DateTime? NoteDate,int NoteStatus,int NoteHots,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysNote item = new SysNote();

            item.NoteSubject = NoteSubject;

            item.NoteContent = NoteContent;

            item.NoteDate = NoteDate;

            item.NoteStatus = NoteStatus;

            item.NoteHots = NoteHots;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
Example #2
0
        public void Update(int Id,string NoteSubject,string NoteContent,DateTime? NoteDate,int NoteStatus,int NoteHots,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysNote item = new SysNote();
            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.NoteSubject = NoteSubject;

            item.NoteContent = NoteContent;

            item.NoteDate = NoteDate;

            item.NoteStatus = NoteStatus;

            item.NoteHots = NoteHots;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }