// Decompiled with JetBrains decompiler
// Type: SE0085.StCl.scPartType
// Assembly: SE0085StCl, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null
// MVID: 2F536775-F65D-4A2A-A94A-55B55F096E84
// Assembly location: C:\Users\Abishek\Downloads\SchneiderCode_Breaker_09292016\Breaker Schedule-20160930T014118Z\Breaker Schedule\Solution for gathering Breaker Data\DMS\bin\Debug\SE0085StCl.dll

namespace SE0085.StCl
{
  public class scPartType
  {
    private int _PKPartTypeID;
    private string _PartTypeDesc;
    private long _PartTypeCode;
    private byte _PartTypeActive;

    public int PKPartTypeID
    {
      get
      {
        return this._PKPartTypeID;
      }
      set
      {
        this._PKPartTypeID = value;
      }
    }

    public string PartTypeDesc
    {
      get
      {
        return this._PartTypeDesc;
      }
      set
      {
        this._PartTypeDesc = value;
      }
    }

    public long PartTypeCode
    {
      get
      {
        return this._PartTypeCode;
      }
      set
      {
        this._PartTypeCode = value;
      }
    }

    public byte PartTypeActive
    {
      get
      {
        return this._PartTypeActive;
      }
      set
      {
        this._PartTypeActive = value;
      }
    }

    public bool PartTypeActiveBool
    {
      get
      {
        return (int) this._PartTypeActive != 0;
      }
      set
      {
        if (value)
          this._PartTypeActive = (byte) 1;
        else
          this._PartTypeActive = (byte) 0;
      }
    }

    public scPartType()
    {
      this._PKPartTypeID = 0;
      this._PartTypeDesc = "";
      this._PartTypeCode = 0L;
      this._PartTypeActive = (byte) 0;
    }

    public override string ToString()
    {
      return this._PartTypeDesc;
    }
  }
}
