示例#1
0
 public DMSFolder Update(DMSFolder folder)
 {
     folder.LastModifyTime     = DateTime.Now;
     folder.LastModifyUserName = UserInfo.UserName;
     m_db.Update(m_defaultTableName, m_defaultPrimaryKey, folder.GetTableObject());
     return(folder);
 }
示例#2
0
 public void Remove(DMSFolder folder)
 {
     folder.RecordStatus       = RecordStatus.Deleted;
     folder.LastModifyTime     = System.DateTime.Now;
     folder.LastModifyUserName = UserInfo.UserName;
     m_db.Update(m_defaultTableName, m_defaultPrimaryKey, folder.GetTableObject());
 }
示例#3
0
        public DMSFolder Create(DMSFolder folder)
        {
            folder.Guid         = System.Guid.NewGuid().ToString();
            folder.RecordStatus = Models.RecordStatus.Valid;

            var id = Insert(folder.GetTableObject());

            folder.Id = id;
            return(folder);
        }