public DMSFolder Update(DMSFolder folder) { folder.LastModifyTime = DateTime.Now; folder.LastModifyUserName = UserInfo.UserName; m_db.Update(m_defaultTableName, m_defaultPrimaryKey, folder.GetTableObject()); return(folder); }
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()); }
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); }