internal WorkFlowObject(string Title, Content.Folder ParentFolder, ContentStatuses ContentStatus, WorkFlowObjectTypes ObjectType, [Optional, DefaultParameterValue(0)]int CurrentWorkFlowId) { _title = Title; _folder = ParentFolder; _contentStatus = ContentStatus; _objectType = ObjectType; _workFlowInstanceId = CurrentWorkFlowId; }
public static List<ObjectHistory> LoadHistory(int? ObjectId, User.User ModifiedBy, WorkFlowObjectTypes ObjectType, ContentStatuses? Status, DateTime? StartDate, DateTime? EndDate) { System.Data.Common.DbDataReader reader = SiteSettings.DataAccess.ObjectHistoryLoadHistory(ObjectId, ModifiedBy, ObjectType, Status, StartDate, EndDate); List<ObjectHistory> History = new List<ObjectHistory>(); while (reader.Read()) { History.Add( new ObjectHistory( reader.GetInt32(0), reader.GetInt32(1), reader.GetFloat(2), reader.GetDateTime(3), reader.GetDateTime(4), reader.GetString(5))); } return History; }