Beispiel #1
0
        public Analytic()
        {
            Identity        = new AnalyticIdentity();
            FilterGroups    = new ReactiveList <FilterGroup>();
            PriceListGroups = new ReactiveList <AnalyticPriceListGroup>();
            ValueDrivers    = new ReactiveList <AnalyticValueDriver>();

            InitializeChangeListeners();
        }
Beispiel #2
0
        public static DTO.AnalyticIdentity ToDto(this Display.AnalyticIdentity displayEntity)
        {
            var dto = new DTO.AnalyticIdentity(
                displayEntity.Name,
                displayEntity.Description,
                displayEntity.Notes,
                displayEntity.RefreshedText,
                displayEntity.CreatedText,
                displayEntity.EditedText,
                displayEntity.Refreshed,
                displayEntity.Created,
                displayEntity.Edited,
                displayEntity.Author,
                displayEntity.Editor,
                displayEntity.Owner,
                displayEntity.Shared,
                displayEntity.IsActive);

            return(dto);
        }
Beispiel #3
0
        public static Display.AnalyticIdentity ToDisplayEntity(this DTO.AnalyticIdentity dto)
        {
            var displayEntity = new Display.AnalyticIdentity();

            displayEntity.Name          = dto.Name;
            displayEntity.Description   = dto.Description;
            displayEntity.Notes         = dto.Notes;
            displayEntity.RefreshedText = dto.RefreshedText;
            displayEntity.CreatedText   = dto.CreatedText;
            displayEntity.EditedText    = dto.EditedText;
            displayEntity.Refreshed     = dto.Refreshed;
            displayEntity.Created       = dto.Created;
            displayEntity.Edited        = dto.Edited;
            displayEntity.Author        = dto.Author;
            displayEntity.Editor        = dto.Editor;
            displayEntity.Owner         = dto.Owner;
            displayEntity.IsActive      = dto.Active;
            displayEntity.Shared        = dto.Shared;

            displayEntity.IsDirty = false;

            return(displayEntity);
        }