// Decompiled with JetBrains decompiler
// Type: SE0085.StCl.scParetoChartDef
// 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

using Microsoft.VisualBasic.CompilerServices;
using System;

namespace SE0085.StCl
{
  public class scParetoChartDef
  {
    private scLevels _Plant;
    private scLevels _AssemblyLine;
    private long _Reasons;
    private long _Responsible;
    private long _Affected;
    private long _Defect;
    private long _Device;
    private long _AreaProgram;
    private int _Disposition;
    private short _Severity;
    private int _TaskAssoc;
    private DateTime _StartDate;
    private DateTime _EndDate;
    private bool _GraphByFlow;
    private string _FlowAreaName;
    private bool _ActiveOnly;
    private bool _DisplayNames;
    private bool _DisplayAbbrv;
    private bool _NonConformOnly;
    private emExcelReportDef _ExcelExportDef;

    public scLevels Plant
    {
      get
      {
        return this._Plant;
      }
      set
      {
        this._Plant = value;
      }
    }

    public scLevels AssemblyLine
    {
      get
      {
        return this._AssemblyLine;
      }
      set
      {
        this._AssemblyLine = value;
      }
    }

    public long Reasons
    {
      get
      {
        return this._Reasons;
      }
      set
      {
        this._Reasons = value;
      }
    }

    public long Responsible
    {
      get
      {
        return this._Responsible;
      }
      set
      {
        this._Responsible = value;
      }
    }

    public long Affected
    {
      get
      {
        return this._Affected;
      }
      set
      {
        this._Affected = value;
      }
    }

    public long Defect
    {
      get
      {
        return this._Defect;
      }
      set
      {
        this._Defect = value;
      }
    }

    public long Device
    {
      get
      {
        return this._Device;
      }
      set
      {
        this._Device = value;
      }
    }

    public int Disposition
    {
      get
      {
        return this._Disposition;
      }
      set
      {
        this._Disposition = value;
      }
    }

    public long AreaProgram
    {
      get
      {
        return this._AreaProgram;
      }
      set
      {
        this._AreaProgram = value;
      }
    }

    public short Severity
    {
      get
      {
        return this._Severity;
      }
      set
      {
        this._Severity = value;
      }
    }

    public int TaskAssociate
    {
      get
      {
        return this._TaskAssoc;
      }
      set
      {
        this._TaskAssoc = value;
      }
    }

    public DateTime ReportStartDate
    {
      get
      {
        return this._StartDate;
      }
      set
      {
        this._StartDate = value;
      }
    }

    public object ReportEndDate
    {
      get
      {
        return (object) this._EndDate;
      }
      set
      {
        this._EndDate = Conversions.ToDate(value);
      }
    }

    public bool GraphByFlow
    {
      get
      {
        return this._GraphByFlow;
      }
      set
      {
        this._GraphByFlow = value;
      }
    }

    public string FlowAreaName
    {
      get
      {
        return this._FlowAreaName;
      }
      set
      {
        this._FlowAreaName = value;
      }
    }

    public bool ActiveOnly
    {
      get
      {
        return this._ActiveOnly;
      }
      set
      {
        this._ActiveOnly = value;
      }
    }

    public bool DisplayNames
    {
      get
      {
        return this._DisplayNames;
      }
      set
      {
        this._DisplayNames = value;
      }
    }

    public bool DisplayAbbrv
    {
      get
      {
        return this._DisplayAbbrv;
      }
      set
      {
        this._DisplayAbbrv = value;
      }
    }

    public bool NonConformingRecordsOnly
    {
      get
      {
        return this._NonConformOnly;
      }
      set
      {
        this._NonConformOnly = value;
      }
    }

    public emExcelReportDef ExcelExportDef
    {
      get
      {
        return this._ExcelExportDef;
      }
      set
      {
        this._ExcelExportDef = value;
      }
    }

    public scParetoChartDef()
    {
      this.InitParetoDef();
    }

    public void InitParetoDef()
    {
      this._Plant = new scLevels();
      this._AssemblyLine = new scLevels();
      this._Reasons = 0L;
      this._Responsible = 0L;
      this._Affected = 0L;
      this._Defect = 0L;
      this._Device = 0L;
      this._AreaProgram = 0L;
      this._Disposition = 0;
      this._Severity = (short) 0;
      this._TaskAssoc = 0;
      this._StartDate = Conversions.ToDate("01/01/2000");
      this._EndDate = Conversions.ToDate("01/01/2000");
      this._GraphByFlow = false;
      this._FlowAreaName = " ";
      this._ActiveOnly = false;
      this._DisplayNames = true;
      this._DisplayAbbrv = false;
      this._NonConformOnly = true;
      this._ExcelExportDef = emExcelReportDef.Long_Report;
    }

    public string DrillDownMenu(emParetoDrillDownType MenuItem)
    {
      switch (MenuItem)
      {
        case emParetoDrillDownType.Responsible:
          return "Responsible Area";
        case emParetoDrillDownType.Affected:
          return "Affected Area";
        case emParetoDrillDownType.Defects:
          return "Defects";
        case emParetoDrillDownType.Devices:
          return "Devices";
        case emParetoDrillDownType.AreaPrograms:
          return "Area Program";
        case emParetoDrillDownType.Dispositions:
          return "Dispositions";
        case emParetoDrillDownType.Associates:
          return "Associates";
        case emParetoDrillDownType.Reasons:
          return "Reasons";
        default:
          return "Not Defined";
      }
    }
  }
}
