// Decompiled with JetBrains decompiler
// Type: SE0085.StCl.scSectionRtLaData
// 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 scSectionRtLaData
  {
    private DateTime _ShipDate;
    private string _FactoryOrder;
    private string _LineItem;
    private string _SLNumber;
    private string _SSNumber;
    private int _Section;
    private string _ProductionOrder;
    private string _WorkCenter;
    private string _OperatorName;
    private DateTime _StartDate;
    private DateTime _EndDate;
    private double _RoutingRunTm;
    private int _ActualTime;
    private int _StandardTime;
    private string _OrderLineSER;
    private string _SecondaryWorkCenter;

    public DateTime ShipDate
    {
      get
      {
        return this._ShipDate.Date;
      }
      set
      {
        this._ShipDate = value;
      }
    }

    public string FactoryOrder
    {
      get
      {
        return this._FactoryOrder;
      }
      set
      {
        this._FactoryOrder = value;
      }
    }

    public string LineItem
    {
      get
      {
        return this._LineItem;
      }
      set
      {
        this._LineItem = value;
      }
    }

    public string SLNumber
    {
      get
      {
        return this._SLNumber;
      }
      set
      {
        this._SLNumber = value;
      }
    }

    public string SSNumber
    {
      get
      {
        return this._SSNumber;
      }
      set
      {
        this._SSNumber = value;
      }
    }

    public int Section
    {
      get
      {
        return this._Section;
      }
      set
      {
        this._Section = value;
      }
    }

    public string ProductionOrder
    {
      get
      {
        return this._ProductionOrder;
      }
      set
      {
        this._ProductionOrder = value;
      }
    }

    public string WorkCenter
    {
      get
      {
        return this._WorkCenter;
      }
      set
      {
        this._WorkCenter = value;
      }
    }

    public string OperatorName
    {
      get
      {
        return this._OperatorName;
      }
      set
      {
        this._OperatorName = value;
      }
    }

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

    public DateTime EndDate
    {
      get
      {
        return this._EndDate;
      }
      set
      {
        this._EndDate = value;
      }
    }

    public double RoutingRunTime
    {
      get
      {
        return this._RoutingRunTm;
      }
      set
      {
        this._RoutingRunTm = value;
      }
    }

    public string SecondaryWorkCenter
    {
      get
      {
        return this._SecondaryWorkCenter;
      }
      set
      {
        this._SecondaryWorkCenter = value;
      }
    }

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

    private string FactoryOrderFull
    {
      get
      {
        string str;
        if (this._FactoryOrder.Length == 8 & this._LineItem.Length == 3 & this._SLNumber.Length == 2 & this._SSNumber.Length == 2 & this._Section > 0)
        {
          try
          {
            str = Strings.Trim(this._FactoryOrder) + "-" + Strings.Trim(this._LineItem) + "-" + Strings.Trim(this._SLNumber) + "-" + Strings.Trim(this._SSNumber) + ":" + Conversions.ToString(this._Section);
          }
          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._FactoryOrder = str1;
              this._LineItem = str2;
              this._SLNumber = str3;
              this._SSNumber = str4;
              this._Section = integer;
            }
            catch (Exception ex)
            {
              ProjectData.SetProjectError(ex);
              this._FactoryOrder = "";
              this._LineItem = "";
              this._SLNumber = "";
              this._SSNumber = "";
              this._Section = 0;
              ProjectData.ClearProjectError();
            }
          }
        }
      }
    }

    public scSectionRtLaData()
    {
      this._ShipDate = Conversions.ToDate("01/01/1901");
      this._FactoryOrder = " ";
      this._LineItem = " ";
      this._SLNumber = " ";
      this._SSNumber = " ";
      this._Section = 0;
      this._ProductionOrder = " ";
      this._WorkCenter = " ";
      this._OperatorName = " ";
      this._StartDate = Conversions.ToDate("01/01/1901");
      this._EndDate = Conversions.ToDate("01/01/1901");
      this._RoutingRunTm = 0.0;
      this._ActualTime = 0;
      this._StandardTime = 0;
    }
  }
}
