aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Sites/App.xaml
blob: 01a064b05cca7ba7dd9e5fd0cb10d9cbfc63a280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<Application x:Class="Tango.MachineStudio.Sites.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Tango.MachineStudio.Common;component/Resources/MaterialDesign.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Tango.MachineStudio.Common;component/Themes/LightThemeColors.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Tango Observables Generator
// 
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. Do not modify!
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;
using Newtonsoft.Json;
using System.Linq;
using Tango.DAL.Remote.DB;
using Tango.Core;
using System.ComponentModel;
using Tango.Core.CustomAttributes;

namespace Tango.BL.Entities
{
    [Table("RMLS_SPOOLS")]
    public abstract class RmlsSpoolBase : ObservableEntity<RmlsSpool>
    {

        public event EventHandler<Nullable<Double>> RotationsPerPassageChanged;

        public event EventHandler<Nullable<Double>> LengthChanged;

        public event EventHandler<Nullable<Int32>> BackingRateChanged;

        public event EventHandler<Nullable<Int32>> BottomBackingRateChanged;

        public event EventHandler<Nullable<Int32>> BtsrSpoolTensionChanged;

        public event EventHandler<Rml> RmlChanged;

        public event EventHandler<SpoolType> SpoolTypeChanged;

        protected String _spooltypeguid;

        /// <summary>
        /// Gets or sets the rmlsspoolbase spool type guid.
        /// </summary>

        [Column("SPOOL_TYPE_GUID")]
        [ForeignKey("SpoolType")]

        public  String SpoolTypeGuid
        {
            get 
            {
                return _spooltypeguid; 
            }

            set 
            {
                if (_spooltypeguid != value)
                {
                    _spooltypeguid = value;

                }
            }
        }

        protected String _rmlguid;

        /// <summary>
        /// Gets or sets the rmlsspoolbase rml guid.
        /// </summary>

        [Column("RML_GUID")]
        [ForeignKey("Rml")]

        public  String RmlGuid
        {
            get 
            {
                return _rmlguid; 
            }

            set 
            {
                if (_rmlguid != value)
                {
                    _rmlguid = value;

                }
            }
        }

        protected Nullable<Double> _rotationsperpassage;

        /// <summary>
        /// Gets or sets the rmlsspoolbase rotations per passage.
        /// </summary>

        [Column("ROTATIONS_PER_PASSAGE")]

        public  Nullable<Double> RotationsPerPassage
        {
            get 
            {
                return _rotationsperpassage; 
            }

            set 
            {
                if (_rotationsperpassage != value)
                {
                    _rotationsperpassage = value;

                    OnRotationsPerPassageChanged(value);

                }
            }
        }

        protected Nullable<Double> _length;

        /// <summary>
        /// Gets or sets the rmlsspoolbase length.
        /// </summary>

        [Column("LENGTH")]

        public  Nullable<Double> Length
        {
            get 
            {
                return _length; 
            }

            set 
            {
                if (_length != value)
                {
                    _length = value;

                    OnLengthChanged(value);

                }
            }
        }

        protected Nullable<Int32> _backingrate;

        /// <summary>
        /// Gets or sets the rmlsspoolbase backing rate.
        /// </summary>

        [Column("BACKING_RATE")]

        public  Nullable<Int32> BackingRate
        {
            get 
            {
                return _backingrate; 
            }

            set 
            {
                if (_backingrate != value)
                {
                    _backingrate = value;

                    OnBackingRateChanged(value);

                }
            }
        }

        protected Nullable<Int32> _bottombackingrate;

        /// <summary>
        /// Gets or sets the rmlsspoolbase bottom backing rate.
        /// </summary>

        [Column("BOTTOM_BACKING_RATE")]

        public  Nullable<Int32> BottomBackingRate
        {
            get 
            {
                return _bottombackingrate; 
            }

            set 
            {
                if (_bottombackingrate != value)
                {
                    _bottombackingrate = value;

                    OnBottomBackingRateChanged(value);

                }
            }
        }

        protected Nullable<Int32> _btsrspooltension;

        /// <summary>
        /// Gets or sets the rmlsspoolbase btsr spool tension.
        /// </summary>

        [Column("BTSR_SPOOL_TENSION")]

        public  Nullable<Int32> BtsrSpoolTension
        {
            get 
            {
                return _btsrspooltension; 
            }

            set 
            {
                if (_btsrspooltension != value)
                {
                    _btsrspooltension = value;

                    OnBtsrSpoolTensionChanged(value);

                }
            }
        }

        protected Rml _rml;

        /// <summary>
        /// Gets or sets the rmlsspoolbase rml.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual Rml Rml
        {
            get 
            {
                return _rml; 
            }

            set 
            {
                if (_rml != value)
                {
                    _rml = value;

                    if (Rml != null)
                    {
                        RmlGuid = Rml.Guid;
                    }

                    OnRmlChanged(value);

                }
            }
        }

        protected SpoolType _spooltype;

        /// <summary>
        /// Gets or sets the rmlsspoolbase spool types.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual SpoolType SpoolType
        {
            get 
            {
                return _spooltype; 
            }

            set 
            {
                if (_spooltype != value)
                {
                    _spooltype = value;

                    if (SpoolType != null)
                    {
                        SpoolTypeGuid = SpoolType.Guid;
                    }

                    OnSpoolTypeChanged(value);

                }
            }
        }

        /// <summary>
        /// Called when the RotationsPerPassage has changed.
        /// </summary>
        protected virtual void OnRotationsPerPassageChanged(Nullable<Double> rotationsperpassage)
        {
            RotationsPerPassageChanged?.Invoke(this, rotationsperpassage);
            RaisePropertyChanged(nameof(RotationsPerPassage));
        }

        /// <summary>
        /// Called when the Length has changed.
        /// </summary>
        protected virtual void OnLengthChanged(Nullable<Double> length)
        {
            LengthChanged?.Invoke(this, length);
            RaisePropertyChanged(nameof(Length));
        }

        /// <summary>
        /// Called when the BackingRate has changed.
        /// </summary>
        protected virtual void OnBackingRateChanged(Nullable<Int32> backingrate)
        {
            BackingRateChanged?.Invoke(this, backingrate);
            RaisePropertyChanged(nameof(BackingRate));
        }

        /// <summary>
        /// Called when the BottomBackingRate has changed.
        /// </summary>
        protected virtual void OnBottomBackingRateChanged(Nullable<Int32> bottombackingrate)
        {
            BottomBackingRateChanged?.Invoke(this, bottombackingrate);
            RaisePropertyChanged(nameof(BottomBackingRate));
        }

        /// <summary>
        /// Called when the BtsrSpoolTension has changed.
        /// </summary>
        protected virtual void OnBtsrSpoolTensionChanged(Nullable<Int32> btsrspooltension)
        {
            BtsrSpoolTensionChanged?.Invoke(this, btsrspooltension);
            RaisePropertyChanged(nameof(BtsrSpoolTension));
        }

        /// <summary>
        /// Called when the Rml has changed.
        /// </summary>
        protected virtual void OnRmlChanged(Rml rml)
        {
            RmlChanged?.Invoke(this, rml);
            RaisePropertyChanged(nameof(Rml));
        }

        /// <summary>
        /// Called when the SpoolType has changed.
        /// </summary>
        protected virtual void OnSpoolTypeChanged(SpoolType spooltype)
        {
            SpoolTypeChanged?.Invoke(this, spooltype);
            RaisePropertyChanged(nameof(SpoolType));
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="RmlsSpoolBase" /> class.
        /// </summary>
        public RmlsSpoolBase() : base()
        {
        }
    }
}