// Decompiled with JetBrains decompiler
// Type: SE0085.StCl.scOrderPV
// 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;
using Microsoft.VisualBasic.CompilerServices;
using System;

namespace SE0085.StCl
{
  public class scOrderPV
  {
    private int _OrderId;
    private string _OrderFO;
    private int _OrderLineId;
    private string _OrderLineNum;
    private int _OrderLineQty;
    private string _OrderLineSS;
    private string _OrderLineSL;
    private DateTime _OrderLineShipDt;
    private string _OrderLineSER;
    private int _OrdSectsId;
    private int _OrdSectsNum;
    private string _OrdSectsProdNum;
    private string _OrderJobName;
    private bool _AreaVerification;
    private short _AreaVerNonConfCount;

    public int OrderId
    {
      get
      {
        return this._OrderId;
      }
      set
      {
        this._OrderId = value;
      }
    }

    public int OrderLineId
    {
      get
      {
        return this._OrderLineId;
      }
      set
      {
        this._OrderLineId = value;
      }
    }

    public int OrdSectsId
    {
      get
      {
        return this._OrdSectsId;
      }
      set
      {
        this._OrdSectsId = value;
      }
    }

    public bool AreaVerification
    {
      get
      {
        return this._AreaVerification;
      }
      set
      {
        this._AreaVerification = value;
      }
    }

    public short AreaVerNonConfCount
    {
      get
      {
        return this._AreaVerNonConfCount;
      }
      set
      {
        this._AreaVerNonConfCount = value;
      }
    }

    public string OrdSectsProdNum
    {
      get
      {
        return this._OrdSectsProdNum;
      }
      set
      {
        this._OrdSectsProdNum = value;
      }
    }

    public string OrderFO
    {
      get
      {
        return this._OrderFO;
      }
      set
      {
        this._OrderFO = value;
      }
    }

    public string OrderLineNum
    {
      get
      {
        return this._OrderLineNum;
      }
      set
      {
        this._OrderLineNum = value;
      }
    }

    public string OrderLineSL
    {
      get
      {
        return this._OrderLineSL;
      }
      set
      {
        this._OrderLineSL = value;
      }
    }

    public string OrderLineSS
    {
      get
      {
        return this._OrderLineSS;
      }
      set
      {
        this._OrderLineSS = value;
      }
    }

    public int OrdSectsNum
    {
      get
      {
        return this._OrdSectsNum;
      }
      set
      {
        this._OrdSectsNum = value;
      }
    }

    public int OrderLineQty
    {
      get
      {
        return this._OrderLineQty;
      }
      set
      {
        this._OrderLineQty = value;
      }
    }

    public DateTime OrderLineShipDt
    {
      get
      {
        return this._OrderLineShipDt;
      }
      set
      {
        this._OrderLineShipDt = value;
      }
    }

    public string OrderLineSER
    {
      get
      {
        return this._OrderLineSER;
      }
      set
      {
        this._OrderLineSER = value;
      }
    }

    public string OrderJobName
    {
      get
      {
        return this._OrderJobName;
      }
      set
      {
        this._OrderJobName = value;
      }
    }

    public string FactoryOrder
    {
      get
      {
        string str;
        if (this._OrderFO.Length == 8 & this._OrderLineNum.Length == 3 & this._OrderLineSL.Length == 2 & this._OrderLineSS.Length == 2 & this._OrdSectsNum > 0)
        {
          try
          {
            str = Strings.Trim(this._OrderFO) + "-" + Strings.Trim(this._OrderLineNum) + "-" + Strings.Trim(this._OrderLineSL) + "-" + Strings.Trim(this._OrderLineSS) + ":" + Conversions.ToString(this._OrdSectsNum);
          }
          catch (Exception ex)
          {
            ProjectData.SetProjectError(ex);
            str = "";
            ProjectData.ClearProjectError();
          }
        }
        else
          str = "";
        return str;
      }
      set
      {
        char[] charArray = value.ToCharArray();
        if (charArray.Length >= 20)
        {
          if (Operators.CompareString(Conversions.ToString(charArray[8]), "-", false) == 0 & Operators.CompareString(Conversions.ToString(charArray[12]), "-", false) == 0 & Operators.CompareString(Conversions.ToString(charArray[15]), "-", false) == 0 & Operators.CompareString(Conversions.ToString(charArray[18]), ":", false) == 0)
          {
            try
            {
              string str1 = value.Substring(0, 8);
              string str2 = value.Substring(9, 3);
              string str3 = value.Substring(13, 2);
              string str4 = value.Substring(16, 2);
              int integer = Conversions.ToInteger(value.Substring(19));
              this._OrderFO = str1;
              this._OrderLineNum = str2;
              this._OrderLineSL = str3;
              this._OrderLineSS = str4;
              this._OrdSectsNum = integer;
            }
            catch (Exception ex)
            {
              ProjectData.SetProjectError(ex);
              this._OrderFO = "";
              this._OrderLineNum = "";
              this._OrderLineSL = "";
              this._OrderLineSS = "";
              this._OrdSectsNum = 0;
              ProjectData.ClearProjectError();
            }
          }
        }
      }
    }

    public scOrderPV()
    {
      this.initOrderData();
    }

    public void initOrderData()
    {
      this._OrderId = 0;
      this._OrderLineId = 0;
      this._OrdSectsId = 0;
      this._OrdSectsProdNum = "";
      this._OrderFO = "";
      this._OrderLineNum = "";
      this._OrderLineSL = "";
      this._OrderLineSS = "";
      this._OrdSectsNum = 0;
      this._OrderLineQty = 0;
      this._OrderLineShipDt = Conversions.ToDate("01/01/1901");
      this._OrderLineSER = "";
      this._OrderJobName = "";
      this._AreaVerification = false;
      this._AreaVerNonConfCount = (short) 0;
    }
  }
}
