// Decompiled with JetBrains decompiler
// Type: SE0085.StCl.scWOHeader
// 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 System;
using System.Collections.Generic;

namespace SE0085.StCl
{
  public class scWOHeader : scOrderData
  {
    private int _PKWOHId;
    private DateTime _WOSubmitDate;
    private int _FKReqById;
    private int _FKPriorityId;
    private string _Comments;
    private long _CCL7DWOCode;
    private int _ASPNum;
    private int _ECNNum;
    private byte _WOSkipNest;
    private List<scWOParts> _WOPartsList;
    private scAssociateData _WORequestedBy;
    private List<scAssociateData> _WODeliverTo;

    public int PKWOHId
    {
      get
      {
        return this._PKWOHId;
      }
      set
      {
        this._PKWOHId = value;
      }
    }

    public DateTime WOSubmitDate
    {
      get
      {
        return this._WOSubmitDate;
      }
      set
      {
        this._WOSubmitDate = value;
      }
    }

    public int FKReqByID
    {
      get
      {
        return this._FKReqById;
      }
      set
      {
        this._FKReqById = value;
      }
    }

    public int FKPriorityID
    {
      get
      {
        return this._FKPriorityId;
      }
      set
      {
        this._FKPriorityId = value;
      }
    }

    public string Comments
    {
      get
      {
        return this._Comments;
      }
      set
      {
        this._Comments = value;
      }
    }

    public long CCL7DWOCode
    {
      get
      {
        return this._CCL7DWOCode;
      }
      set
      {
        this._CCL7DWOCode = value;
      }
    }

    public int ASPNum
    {
      get
      {
        return this._ASPNum;
      }
      set
      {
        this._ASPNum = value;
      }
    }

    public int ECNNum
    {
      get
      {
        return this._ECNNum;
      }
      set
      {
        this._ECNNum = value;
      }
    }

    public List<scWOParts> WOPartsList
    {
      get
      {
        return this._WOPartsList;
      }
      set
      {
        this._WOPartsList = value;
      }
    }

    public scAssociateData WORequestedBy
    {
      get
      {
        return this._WORequestedBy;
      }
      set
      {
        this._WORequestedBy = value;
      }
    }

    public List<scAssociateData> WODeliverTo
    {
      get
      {
        return this._WODeliverTo;
      }
      set
      {
        this._WODeliverTo = value;
      }
    }

    public byte WOSkipNest
    {
      get
      {
        return this._WOSkipNest;
      }
      set
      {
        this._WOSkipNest = value;
      }
    }

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

    public scWOHeader()
    {
      this._PKWOHId = 0;
      this._WOSubmitDate = DateTime.Now;
      this._FKReqById = 0;
      this._FKPriorityId = 0;
      this._Comments = "";
      this._CCL7DWOCode = 0L;
      this._ASPNum = 0;
      this._ECNNum = 0;
      this._WOSkipNest = (byte) 0;
      this._WOPartsList = new List<scWOParts>();
      this._WORequestedBy = new scAssociateData();
      this._WODeliverTo = new List<scAssociateData>();
    }
  }
}
