// Decompiled with JetBrains decompiler
// Type: SE0085.CTdB.scOrderAuditStats
// Assembly: SE0085CTdB, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null
// MVID: F67560B6-58CB-4471-AAC9-80007CA3AF52
// Assembly location: C:\Users\Abishek\Downloads\SchneiderCode_Breaker_09292016\Breaker Schedule-20160930T014118Z\Breaker Schedule\Solution for gathering Breaker Data\DMS\bin\Debug\SE0085CTdB.dll

using System;

namespace SE0085.CTdB
{
  public class scOrderAuditStats
  {
    private short _SectCnt;
    private short _Audited;
    private short _AuditPreRM;
    private short _AuditNPF;
    private short _AuditDefects;

    public short SectCnt
    {
      get
      {
        return this._SectCnt;
      }
      set
      {
        this._SectCnt = value;
      }
    }

    public short Audited
    {
      get
      {
        return this._Audited;
      }
      set
      {
        this._Audited = value;
      }
    }

    public short AuditPreRM
    {
      get
      {
        return this._AuditPreRM;
      }
      set
      {
        this._AuditPreRM = value;
      }
    }

    public short AuditNPF
    {
      get
      {
        return this._AuditNPF;
      }
      set
      {
        this._AuditNPF = value;
      }
    }

    public short AuditDefects
    {
      get
      {
        return this._AuditDefects;
      }
      set
      {
        this._AuditDefects = value;
      }
    }

    public Decimal PctAudited
    {
      get
      {
        if ((int) this._Audited > 0 & (int) this._SectCnt > 0)
          return new Decimal((double) this._Audited / (double) this._SectCnt * 100.0);
        return Decimal.Zero;
      }
    }

    public Decimal FPY
    {
      get
      {
        if ((int) this._AuditNPF > 0 & (int) this._Audited > 0)
          return new Decimal((double) this._AuditNPF / (double) this._Audited * 100.0);
        return Decimal.Zero;
      }
    }

    public Decimal DPU
    {
      get
      {
        if ((int) this._AuditDefects > 0 & (int) this._Audited > 0)
          return new Decimal((double) this._AuditDefects / (double) this._Audited);
        return Decimal.Zero;
      }
    }

    public scOrderAuditStats()
    {
      this._SectCnt = (short) 0;
      this._Audited = (short) 0;
      this._AuditPreRM = (short) 0;
      this._AuditNPF = (short) 0;
      this._AuditDefects = (short) 0;
    }
  }
}
