// Decompiled with JetBrains decompiler
// Type: SE0085.StCl.scPartAttr1
// 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 scPartAttr1
  {
    private int _PKPartAttr1ID;
    private int _FKPartTypeID;
    private string _PartAttrDesc;
    private long _PartAttrCode;
    private byte _PartTypeActive;

    public int PKPartAttr1ID
    {
      get
      {
        return this._PKPartAttr1ID;
      }
      set
      {
        this._PKPartAttr1ID = value;
      }
    }

    public int FKPartTypeID
    {
      get
      {
        return this._FKPartTypeID;
      }
      set
      {
        this._FKPartTypeID = value;
      }
    }

    public string PartAttrDesc
    {
      get
      {
        return this._PartAttrDesc;
      }
      set
      {
        this._PartAttrDesc = value;
      }
    }

    public long PartAttrCode
    {
      get
      {
        return this._PartAttrCode;
      }
      set
      {
        this._PartAttrCode = 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 scPartAttr1()
    {
      this._PKPartAttr1ID = 0;
      this._FKPartTypeID = 0;
      this._PartAttrDesc = "";
      this._PartAttrCode = 0L;
      this._PartTypeActive = (byte) 0;
    }

    public override string ToString()
    {
      string partAttrDesc = this._PartAttrDesc;
      int startIndex = checked (partAttrDesc.IndexOf(":") + 1);
      return partAttrDesc.Substring(startIndex).Trim();
    }
  }
}
