aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/TangoVersionBase.cs
blob: d9207b64afb68d4c8813d21398bbf527c6393f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace Tango.PPC.BootScreen
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
    }
}
'n240' href='#n240'>240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
//------------------------------------------------------------------------------
// <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("TANGO_VERSIONS")]
    public abstract class TangoVersionBase : ObservableEntity<TangoVersion>
    {

        public event EventHandler<String> VersionChanged;

        public event EventHandler<String> FirmwareVersionChanged;

        public event EventHandler<String> TagChanged;

        public event EventHandler<String> BlobNameChanged;

        public event EventHandler<String> InstallerBlobNameChanged;

        public event EventHandler<String> CommentsChanged;

        public event EventHandler<Boolean> DisabledChanged;

        public event EventHandler<MachineVersion> MachineVersionChanged;

        public event EventHandler<User> UserChanged;

        protected String _version;

        /// <summary>
        /// Gets or sets the tangoversionbase version.
        /// </summary>

        [Column("VERSION")]

        public  String Version
        {
            get 
            {
                return _version; 
            }

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

                    OnVersionChanged(value);

                }
            }
        }

        protected String _firmwareversion;

        /// <summary>
        /// Gets or sets the tangoversionbase firmware version.
        /// </summary>

        [Column("FIRMWARE_VERSION")]

        public  String FirmwareVersion
        {
            get 
            {
                return _firmwareversion; 
            }

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

                    OnFirmwareVersionChanged(value);

                }
            }
        }

        protected String _tag;

        /// <summary>
        /// Gets or sets the tangoversionbase tag.
        /// </summary>

        [Column("TAG")]

        public  String Tag
        {
            get 
            {
                return _tag; 
            }

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

                    OnTagChanged(value);

                }
            }
        }

        protected String _blobname;

        /// <summary>
        /// Gets or sets the tangoversionbase blob name.
        /// </summary>

        [Column("BLOB_NAME")]

        public  String BlobName
        {
            get 
            {
                return _blobname; 
            }

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

                    OnBlobNameChanged(value);

                }
            }
        }

        protected String _installerblobname;

        /// <summary>
        /// Gets or sets the tangoversionbase installer blob name.
        /// </summary>

        [Column("INSTALLER_BLOB_NAME")]

        public  String InstallerBlobName
        {
            get 
            {
                return _installerblobname; 
            }

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

                    OnInstallerBlobNameChanged(value);

                }
            }
        }

        protected String _comments;

        /// <summary>
        /// Gets or sets the tangoversionbase comments.
        /// </summary>

        [Column("COMMENTS")]

        public  String Comments
        {
            get 
            {
                return _comments; 
            }

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

                    OnCommentsChanged(value);

                }
            }
        }

        protected String _userguid;

        /// <summary>
        /// Gets or sets the tangoversionbase user guid.
        /// </summary>

        [Column("USER_GUID")]
        [ForeignKey("User")]

        public  String UserGuid
        {
            get 
            {
                return _userguid; 
            }

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

                }
            }
        }

        protected String _machineversionguid;

        /// <summary>
        /// Gets or sets the tangoversionbase machine version guid.
        /// </summary>

        [Column("MACHINE_VERSION_GUID")]
        [ForeignKey("MachineVersion")]

        public  String MachineVersionGuid
        {
            get 
            {
                return _machineversionguid; 
            }

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

                }
            }
        }

        protected Boolean _disabled;

        /// <summary>
        /// Gets or sets the tangoversionbase disabled.
        /// </summary>

        [Column("DISABLED")]

        public  Boolean Disabled
        {
            get 
            {
                return _disabled; 
            }

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

                    OnDisabledChanged(value);

                }
            }
        }

        protected MachineVersion _machineversion;

        /// <summary>
        /// Gets or sets the tangoversionbase machine versions.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual MachineVersion MachineVersion
        {
            get 
            {
                return _machineversion; 
            }

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

                    if (MachineVersion != null)
                    {
                        MachineVersionGuid = MachineVersion.Guid;
                    }

                    OnMachineVersionChanged(value);

                }
            }
        }

        protected User _user;

        /// <summary>
        /// Gets or sets the tangoversionbase user.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual User User
        {
            get 
            {
                return _user; 
            }

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

                    if (User != null)
                    {
                        UserGuid = User.Guid;
                    }

                    OnUserChanged(value);

                }
            }
        }

        /// <summary>
        /// Called when the Version has changed.
        /// </summary>
        protected virtual void OnVersionChanged(String version)
        {
            VersionChanged?.Invoke(this, version);
            RaisePropertyChanged(nameof(Version));
        }

        /// <summary>
        /// Called when the FirmwareVersion has changed.
        /// </summary>
        protected virtual void OnFirmwareVersionChanged(String firmwareversion)
        {
            FirmwareVersionChanged?.Invoke(this, firmwareversion);
            RaisePropertyChanged(nameof(FirmwareVersion));
        }

        /// <summary>
        /// Called when the Tag has changed.
        /// </summary>
        protected virtual void OnTagChanged(String tag)
        {
            TagChanged?.Invoke(this, tag);
            RaisePropertyChanged(nameof(Tag));
        }

        /// <summary>
        /// Called when the BlobName has changed.
        /// </summary>
        protected virtual void OnBlobNameChanged(String blobname)
        {
            BlobNameChanged?.Invoke(this, blobname);
            RaisePropertyChanged(nameof(BlobName));
        }

        /// <summary>
        /// Called when the InstallerBlobName has changed.
        /// </summary>
        protected virtual void OnInstallerBlobNameChanged(String installerblobname)
        {
            InstallerBlobNameChanged?.Invoke(this, installerblobname);
            RaisePropertyChanged(nameof(InstallerBlobName));
        }

        /// <summary>
        /// Called when the Comments has changed.
        /// </summary>
        protected virtual void OnCommentsChanged(String comments)
        {
            CommentsChanged?.Invoke(this, comments);
            RaisePropertyChanged(nameof(Comments));
        }

        /// <summary>
        /// Called when the Disabled has changed.
        /// </summary>
        protected virtual void OnDisabledChanged(Boolean disabled)
        {
            DisabledChanged?.Invoke(this, disabled);
            RaisePropertyChanged(nameof(Disabled));
        }

        /// <summary>
        /// Called when the MachineVersion has changed.
        /// </summary>
        protected virtual void OnMachineVersionChanged(MachineVersion machineversion)
        {
            MachineVersionChanged?.Invoke(this, machineversion);
            RaisePropertyChanged(nameof(MachineVersion));
        }

        /// <summary>
        /// Called when the User has changed.
        /// </summary>
        protected virtual void OnUserChanged(User user)
        {
            UserChanged?.Invoke(this, user);
            RaisePropertyChanged(nameof(User));
        }

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