
using Microsoft.Office.Interop.Excel;
using Microsoft.VisualBasic.CompilerServices;
using SE0085.dBc;
using SE0085.Q2CdB;
using SE0085.StCl;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Odbc;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;

namespace SE0085.CTdB
{
  public class clsFASorders
  {
    //private static List<WeakReference> __ENCList = new List<WeakReference>();
    private string _CTConnection;
    private clsLogWriter lcLogWriter;
    private clsLogWriter lcLogWriter2;
    private OdbcConnection ldBkrConn;
    private OdbcConnection ldCrdConn;
    private scPlants lmPlants;
    private scLevels lmPlantLevel;
    private scLevels lmAssemLineLevel;

    public event clsFASorders.ueUpdateProgressEventHandler ueUpdateProgress;

    //[DebuggerNonUserCode]
    //static clsFASorders()
    //{
    //}

    public clsFASorders()
    {
      //clsFASorders.__ENCAddToList((object) this);
      this.lmPlants = new scPlants();
      this.lmPlantLevel = new scLevels();
      this.lmAssemLineLevel = new scLevels();
      this.GetdBConnString();
      this.ldBkrConn = new OdbcConnection();
      this.ldBkrConn.ConnectionString = "Driver={Sybase ASE ODBC Driver};NA=mcldb01.m087.us.schneider-electric.com,5000;Database=dbb2a;Uid=misuser;Pwd=misuser;";
      this.ldCrdConn = new OdbcConnection();
      this.ldCrdConn.ConnectionString = "Driver={Sybase ASE ODBC Driver};NA=mcldb01.m087.us.schneider-electric.com,5000;Database=dbb2c;Uid=misuser;Pwd=misuser;";
      this.lcLogWriter = new clsLogWriter("C:\\LogFiles\\FASFABDemands.log");
      this.lcLogWriter2 = new clsLogWriter("C:\\LogFiles\\FASFABComp.log");
    }

    //~clsFASorders()
    //{
    //  // ISSUE: explicit finalizer call
    //  base.Finalize();
    //}

    //[DebuggerNonUserCode]
    //private static void __ENCAddToList(object value)
    //{
    //  List<WeakReference> encList = clsFASorders.__ENCList;
    //  bool flag = false;
    //  try
    //  {
    //    Monitor.Enter((object) encList, ref flag);
    //    if (clsFASorders.__ENCList.Count == clsFASorders.__ENCList.Capacity)
    //    {
    //      int index1 = 0;
    //      int num1 = 0;
    //      int num2 = checked (clsFASorders.__ENCList.Count - 1);
    //      int index2 = num1;
    //      while (index2 <= num2)
    //      {
    //        if (clsFASorders.__ENCList[index2].IsAlive)
    //        {
    //          if (index2 != index1)
    //            clsFASorders.__ENCList[index1] = clsFASorders.__ENCList[index2];
    //          checked { ++index1; }
    //        }
    //        checked { ++index2; }
    //      }
    //      clsFASorders.__ENCList.RemoveRange(index1, checked (clsFASorders.__ENCList.Count - index1));
    //      clsFASorders.__ENCList.Capacity = clsFASorders.__ENCList.Count;
    //    }
    //    clsFASorders.__ENCList.Add(new WeakReference(RuntimeHelpers.GetObjectValue(value)));
    //  }
    //  finally
    //  {
    //    if (flag)
    //      Monitor.Exit((object) encList);
    //  }
    //}

    private void GetdBConnString()
    {
      clsDBC clsDbc = new clsDBC();
      clsDbc.GetServer((object) "SE0085CTEntities1");
      this._CTConnection = Conversions.ToString(clsDbc.ConnectionString);
    }

    public bool ImportFAS(string ImportFile)
    {
      StreamReader streamReader;
      bool flag1;
      try
      {
        streamReader = File.OpenText(ImportFile);
      }
      catch (Exception ex)
      {
        ProjectData.SetProjectError(ex);
        clsFASorders.scUpdProgress scUpdProgress = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "Error opening FAS Export file: " + ImportFile + "\r\n");
        clsFASorders.ueUpdateProgressEventHandler updateProgressEvent = this.ueUpdateProgressEvent;
        if (updateProgressEvent != null)
          updateProgressEvent((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress));
        flag1 = false;
        ProjectData.ClearProjectError();
        goto label_115;
      }
      clsEngineCTdB clsEngineCtdB = new clsEngineCTdB();
      Hashtable hashmdsq2ccd = new clsT2Q2CdB().getHashmdsq2ccd();
      clsPlant clsPlant = new clsPlant();
      this.lmPlants = clsPlant.rtnPlantByDesin("0085");
      this.lmPlants = clsPlant.rtnPlantById(1);
      this.lmPlantLevel = this.lmPlants.PlantLevel;
      clsAssemblyLine clsAssemblyLine = new clsAssemblyLine(this.lmPlants);
      List<scAssemblyLine> scAssemblyLineList1 = new List<scAssemblyLine>();
      List<scAssemblyLine> scAssemblyLineList2 = clsAssemblyLine.rtnAssemblyLines(true);
      streamReader.ReadLine().Split('\t');
      List<clsFASorders.scOrderFas> scOrderFasList = new List<clsFASorders.scOrderFas>();
      List<string> stringList1 = new List<string>();
      List<string> stringList2 = new List<string>();
      while (!streamReader.EndOfStream)
      {
        string[] strArray = streamReader.ReadLine().Split('\t');
        clsFASorders.scOrderFas scOrderFas = new clsFASorders.scOrderFas();
        if (strArray[14].Contains("MO"))
        {
          if (strArray[15].Contains("Parent:"))
            scOrderFas.OrderData.FOLineSLSS = strArray[15].Replace("Parent: ", "").Trim();
        }
        else
          scOrderFas.OrderData.FactoryOrderOE = strArray[14].Trim();
        scOrderFas.OrderData.OrderJobName = strArray[11].Trim();
        if (scOrderFas.OrderData.FOFormatValid)
        {
          if (strArray[0].Trim().StartsWith("NW") | strArray[0].Trim().StartsWith("GM") | strArray[0].Trim().StartsWith("394") | strArray[0].Trim().StartsWith("244") | strArray[0].Trim().StartsWith("252") | strArray[0].Trim().StartsWith("311"))
          {
            scItemMaster scItemMaster1 = new scItemMaster();
            scItemMaster scItemMaster2 = clsEngineCtdB.rtnByAssyPartNum(strArray[0].Trim());
            if (scItemMaster2 != null)
            {
              scOrderFas.OrdFASExt.OrdCatlgNbr = scItemMaster2.Description1;
              scOrderFas.OrdFASExt.OrdMfgPartNbr = strArray[0].Trim();
            }
            else
            {
              scOrderFas.OrdFASExt.OrdCatlgNbr = strArray[0].Trim();
              scOrderFas.OrdFASExt.OrdMfgPartNbr = strArray[1].Trim();
            }
          }
          else
          {
            scOrderFas.OrdFASExt.OrdCatlgNbr = strArray[0].Trim();
            scOrderFas.OrdFASExt.OrdMfgPartNbr = strArray[1].Trim();
          }
          scOrderFas.OrdFASExt.FASOrdQty = Conversions.ToInteger(strArray[2].Trim());
          scOrderFas.OrdFASExt.FASUnfilledQty = Conversions.ToInteger(strArray[3].Trim());
          scOrderFas.OrdFASExt.FASPrgrsPnt = Conversions.ToInteger(strArray[7].Trim());
          short integer = checked ((short) Conversions.ToInteger(strArray[7].Trim()));
          scOrderFas.OrdFASExt.OrdCdDesc = hashmdsq2ccd[(object) integer].ToString().Trim();
          scOrderFas.OrdFASExt.FASDueDt = Conversions.ToDate(strArray[12].Trim());
          scOrderFas.OrdFASExt.FASOrdNbr = strArray[14].Trim();
          scOrderFas.OrdFASExt.OrdProdLn = strArray[16].Trim();
          scOrderFas.OrdFASExt.FASCmplQty = Conversions.ToInteger(strArray[17].Trim());
          scOrderFas.OrdFASExt.FASAsmblLn = strArray[18].Trim();
          scOrderFas.OrdFASExt.FASWorkCtr = strArray[19].Trim();
          scOrderFasList.Add(scOrderFas);
          if (Conversions.ToInteger(strArray[7].Trim()) >= 240 & DateTime.Compare(Conversions.ToDate(strArray[4].Trim()), Conversions.ToDate("12/31/2039")) < 0 & !scOrderFas.OrdFASExt.FASOrdNbr.StartsWith("MO") && clsEngineCtdB.rtnOrderLineId(scOrderFas.OrderData.FOLineSLSS) == 0)
          {
            scOrderImportInfo BackOrders = new scOrderImportInfo();
            BackOrders.SEPlant = this.lmPlants;
            string str = "";
            string fasAsmblLn = scOrderFas.OrdFASExt.FASAsmblLn;
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(fasAsmblLn, "221", false) == 0)
              str = "NW221C";
            else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(fasAsmblLn, "221B", false) == 0)
              str = "NW221B";
            else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(fasAsmblLn, "CUKIT", false) == 0)
              str = "221KITS";
            else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(fasAsmblLn, "FAB", false) == 0)
            {
              if (scOrderFas.OrdFASExt.FASWorkCtr.Contains("221PKKIT"))
                str = "221KITS";
              if (scOrderFas.OrdFASExt.FASWorkCtr.Contains("221ASSEM") | scOrderFas.OrdFASExt.FASWorkCtr.Contains("221PACK"))
                str = "221CT";
            }
            bool flag2 = false;
            List<scAssemblyLine>.Enumerator enumerator;
            if (str.Length > 0)
            {
              try
              {
                enumerator = scAssemblyLineList2.GetEnumerator();
                while (enumerator.MoveNext())
                {
                  scLevels current = (scLevels) enumerator.Current;
                  if (current.LevelAbbrv.Contains(str))
                  {
                    BackOrders.AssemblyLine = current;
                    flag2 = true;
                    break;
                  }
                }
              }
              finally
              {
                enumerator.Dispose();
              }
            }
            if (flag2)
            {
              BackOrders.OrderFO = scOrderFas.OrderData.OrderFO;
              BackOrders.OrderLineNum = scOrderFas.OrderData.OrderLineNum;
              BackOrders.OrderLineSL = scOrderFas.OrderData.OrderLineSL;
              BackOrders.OrderLineSS = scOrderFas.OrderData.OrderLineSS;
              BackOrders.OrderLineShipDt = Conversions.ToDate(strArray[4].Trim());
              BackOrders.OrderLineTargetDt = Conversions.ToDate(strArray[4].Trim());
              BackOrders.OrderPurchaser = scOrderFas.OrderData.OrderJobName;
              BackOrders.OrderLineNB4Dt = Conversions.ToDate(strArray[6].Trim());
              BackOrders.OrderLineOrgShipDt = Conversions.ToDate(strArray[5].Trim());
              BackOrders.OrderLineQty = Conversions.ToInteger(strArray[2].Trim());
              new clsBackorders(this.lmPlantLevel, BackOrders.AssemblyLine).InsertBackOrderLines(BackOrders);
              clsFASorders.scUpdProgress scUpdProgress = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, scOrderFas.OrderData.FactoryOrderOE + " was created in VMS\r\n");
              clsFASorders.ueUpdateProgressEventHandler updateProgressEvent = this.ueUpdateProgressEvent;
              if (updateProgressEvent != null)
                updateProgressEvent((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress));
            }
          }
        }
      }
      // ISSUE: method pointer
      IEnumerable<clsFASorders.scOrderFas> source1 = (IEnumerable<clsFASorders.scOrderFas>) Enumerable.Select<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.OrderBy<clsFASorders.scOrderFas, string>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) scOrderFasList, (Func<M0, bool>) new Func<clsFASorders.scOrderFas, bool>((object) null, __methodptr(_Lambda\u0024__3))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__4))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__5)));
      Dictionary<string, clsFASorders.scOrderFas> dictionary = new Dictionary<string, clsFASorders.scOrderFas>();
      using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
      {
        se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
        List<clsFASorders.scOrderFas>.Enumerator enumerator1;
        try
        {
          enumerator1 = source1.ToList<clsFASorders.scOrderFas>().GetEnumerator();
          while (enumerator1.MoveNext())
          {
            clsFASorders.scOrderFas current = enumerator1.Current;
            if (!dictionary.ContainsKey(current.OrdFASExt.FASOrdNbr))
              dictionary.Add(current.OrdFASExt.FASOrdNbr, current);
            if (DateTime.Compare(current.OrdFASExt.FASDueDt, Conversions.ToDate("12/31/2039")) < 0)
            {
              switch (this.UpdateFASLinesDueDate(current.OrderData, current.OrdFASExt))
              {
                case 0:
                  clsFASorders.scUpdProgress scUpdProgress1 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, current.OrderData.FactoryOrder + " was not updated in VMS, reference FAS order " + current.OrdFASExt.FASOrdNbr + "\r\n");
                  clsFASorders.ueUpdateProgressEventHandler updateProgressEvent1 = this.ueUpdateProgressEvent;
                  if (updateProgressEvent1 != null)
                  {
                    updateProgressEvent1((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress1));
                    break;
                  }
                  break;
                case 32763:
                  if (current.OrdFASExt.FASOrdNbr.StartsWith("MO") & (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current.OrdFASExt.FASAsmblLn, "221", false) == 0 | Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current.OrdFASExt.FASAsmblLn, "221B", false) == 0))
                    stringList1.Add(current.OrdFASExt.FASOrdNbr);
                  clsFASorders.scUpdProgress scUpdProgress2 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.OrderInfo, " Add:" + current.OrderData.FactoryOrderOE + "\r\n");
                  clsFASorders.ueUpdateProgressEventHandler updateProgressEvent2 = this.ueUpdateProgressEvent;
                  if (updateProgressEvent2 != null)
                  {
                    updateProgressEvent2((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress2));
                    break;
                  }
                  break;
                case 32764:
                  if (current.OrdFASExt.FASOrdNbr.StartsWith("MO") & (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current.OrdFASExt.FASAsmblLn, "221", false) == 0 | Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current.OrdFASExt.FASAsmblLn, "221B", false) == 0))
                    stringList2.Add(current.OrdFASExt.FASOrdNbr);
                  clsFASorders.scUpdProgress scUpdProgress3 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.OrderInfo, " Upd:" + current.OrderData.FactoryOrderOE + "\r\n");
                  clsFASorders.ueUpdateProgressEventHandler updateProgressEvent3 = this.ueUpdateProgressEvent;
                  if (updateProgressEvent3 != null)
                  {
                    updateProgressEvent3((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress3));
                    break;
                  }
                  break;
                case 32765:
                  if (current.OrdFASExt.FASOrdNbr.StartsWith("MO") & (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current.OrdFASExt.FASAsmblLn, "221", false) == 0 | Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current.OrdFASExt.FASAsmblLn, "221B", false) == 0))
                  {
                    stringList2.Add(current.OrdFASExt.FASOrdNbr);
                    break;
                  }
                  break;
                case 32766:
                  if (DateTime.Compare(current.OrderData.OrderLineShipDt, Conversions.ToDate("12/31/2039")) != 0)
                  {
                    clsFASorders.scUpdProgress scUpdProgress4 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, current.OrderData.FactoryOrder + " was not found in VMS\r\n");
                    clsFASorders.ueUpdateProgressEventHandler updateProgressEvent4 = this.ueUpdateProgressEvent;
                    if (updateProgressEvent4 != null)
                    {
                      updateProgressEvent4((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress4));
                      break;
                    }
                    break;
                  }
                  break;
                case (int) short.MaxValue:
                  clsFASorders.scUpdProgress scUpdProgress5 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, current.OrderData.FactoryOrder + " has duplicate FAS orders attached in VMS, reference FAS order " + current.OrdFASExt.FASOrdNbr + "\r\n");
                  clsFASorders.ueUpdateProgressEventHandler updateProgressEvent5 = this.ueUpdateProgressEvent;
                  if (updateProgressEvent5 != null)
                  {
                    updateProgressEvent5((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress5));
                    break;
                  }
                  break;
                default:
                  clsFASorders.scUpdProgress scUpdProgress6 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.OrderInfo, current.OrderData.FactoryOrderOE + "\r\n");
                  clsFASorders.ueUpdateProgressEventHandler updateProgressEvent6 = this.ueUpdateProgressEvent;
                  if (updateProgressEvent6 != null)
                  {
                    updateProgressEvent6((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress6));
                    break;
                  }
                  break;
              }
            }
          }
        }
        finally
        {
          enumerator1.Dispose();
        }
        ParameterExpression parameterExpression;
        IQueryable<OrdFASExt> source2 = (IQueryable<OrdFASExt>) Queryable.Select<OrdFASExt, OrdFASExt>(Queryable.Where<OrdFASExt>((IQueryable<M0>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, bool>>) Expression.Lambda<Func<OrdFASExt, bool>>((Expression) Expression.Coalesce((Expression) Expression.GreaterThan(f.FASOrdQty, f.FASCmplQty, true, (MethodInfo) null), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression })), (Expression<Func<M0, M1>>) (f => f));
        if (source2 != null)
        {
          if (source2.Count<OrdFASExt>() > 0)
          {
            IEnumerator<OrdFASExt> enumerator2;
            try
            {
              enumerator2 = source2.GetEnumerator();
              while (enumerator2.MoveNext())
              {
                OrdFASExt current = enumerator2.Current;
                string fasOrdNbr = current.FASOrdNbr;
                if (!dictionary.ContainsKey(fasOrdNbr))
                  current.FASCmplQty = current.FASOrdQty;
              }
            }
            finally
            {
              if (enumerator2 != null)
                enumerator2.Dispose();
            }
            clsFASorders.scUpdProgress scUpdProgress1 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "FAS Orders Closed: Update CompQty");
            if (se0085CtEntities1.SaveChanges() > 0)
            {
              clsFASorders.scUpdProgress scUpdProgress2 = scUpdProgress1;
              scUpdProgress2.UpdateStatus = scUpdProgress2.UpdateStatus + " was successful \r\n";
              clsFASorders.ueUpdateProgressEventHandler updateProgressEvent = this.ueUpdateProgressEvent;
              if (updateProgressEvent != null)
                updateProgressEvent((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress1));
            }
            else
            {
              clsFASorders.scUpdProgress scUpdProgress2 = scUpdProgress1;
              scUpdProgress2.UpdateStatus = scUpdProgress2.UpdateStatus + " FAILED! \r\n";
              clsFASorders.ueUpdateProgressEventHandler updateProgressEvent = this.ueUpdateProgressEvent;
              if (updateProgressEvent != null)
                updateProgressEvent((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress1));
            }
          }
        }
        clsFASorders.scUpdProgress scUpdProgress7 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "FAS data import complete:" + Conversions.ToString(DateTime.Now) + "\r\n");
        clsFASorders.ueUpdateProgressEventHandler updateProgressEvent7 = this.ueUpdateProgressEvent;
        if (updateProgressEvent7 != null)
          updateProgressEvent7((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress7));
        List<string>.Enumerator enumerator3;
        try
        {
          enumerator3 = stringList1.GetEnumerator();
          while (enumerator3.MoveNext())
          {
            string current = enumerator3.Current;
            if (clsEngineCtdB.AddUpdFASDtlByMO(current))
            {
              clsFASorders.scUpdProgress scUpdProgress1 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "FAS Order: " + current + " attached to a section(s)\r\n");
              clsFASorders.ueUpdateProgressEventHandler updateProgressEvent1 = this.ueUpdateProgressEvent;
              if (updateProgressEvent1 != null)
                updateProgressEvent1((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress1));
            }
            else
            {
              clsFASorders.scUpdProgress scUpdProgress1 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "FAS Order: " + current + " failed to attach to a section(s)\r\n");
              clsFASorders.ueUpdateProgressEventHandler updateProgressEvent1 = this.ueUpdateProgressEvent;
              if (updateProgressEvent1 != null)
                updateProgressEvent1((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress1));
            }
          }
        }
        finally
        {
          enumerator3.Dispose();
        }
        List<string>.Enumerator enumerator4;
        try
        {
          enumerator4 = stringList2.GetEnumerator();
          while (enumerator4.MoveNext())
          {
            string current = enumerator4.Current;
            if (clsEngineCtdB.AddUpdFASDtlByMO(current))
            {
              clsFASorders.scUpdProgress scUpdProgress1 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "FAS Order: " + current + " updated section(s)\r\n");
              clsFASorders.ueUpdateProgressEventHandler updateProgressEvent1 = this.ueUpdateProgressEvent;
              if (updateProgressEvent1 != null)
                updateProgressEvent1((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress1));
            }
            else
            {
              clsFASorders.scUpdProgress scUpdProgress1 = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "FAS Order: " + current + " failed to update section(s)\r\n");
              clsFASorders.ueUpdateProgressEventHandler updateProgressEvent1 = this.ueUpdateProgressEvent;
              if (updateProgressEvent1 != null)
                updateProgressEvent1((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress1));
            }
          }
        }
        finally
        {
          enumerator4.Dispose();
        }
        se0085CtEntities1.Database.Connection.Close();
      }
      streamReader.Close();
      flag1 = true;
label_115:
      return flag1;
    }

    public clsFASorders.scFASFAB ImportFASFABOrders(string ImportFile1, string ImportFile2)
    {
      // ISSUE: object of a compiler-generated type is created
      // ISSUE: variable of a compiler-generated type
      clsFASorders._Closure\u0024__106 closure106 = new clsFASorders._Closure\u0024__106();
      string Filename = "C:\\Snafas\\Perfmsr\\FabData\\FABCompSummary.xlsx";
      // ISSUE: variable of a compiler-generated type
      Application instance = (Application) Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("00024500-0000-0000-C000-000000000046")));
      // ISSUE: reference to a compiler-generated method
      // ISSUE: variable of a compiler-generated type
      Workbook workbook = instance.Workbooks.Open(Filename, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value, (object) Missing.Value);
      // ISSUE: variable of a compiler-generated type
      Worksheet worksheet = (Worksheet) workbook.Worksheets[(object) 1];
      clsEngineCTdB clsEngineCtdB = new clsEngineCTdB();
      Hashtable hashmdsq2ccd = new clsT2Q2CdB().getHashmdsq2ccd();
      clsPlant clsPlant = new clsPlant();
      this.lmPlants = clsPlant.rtnPlantByDesin("0085");
      this.lmPlants = clsPlant.rtnPlantById(1);
      this.lmPlantLevel = this.lmPlants.PlantLevel;
      clsAssemblyLine clsAssemblyLine = new clsAssemblyLine(this.lmPlants);
      List<scAssemblyLine> scAssemblyLineList = new List<scAssemblyLine>();
      scAssemblyLineList = clsAssemblyLine.rtnAssemblyLines(true);
      clsFASorders.scFASFAB scFasfab1 = new clsFASorders.scFASFAB();
      List<string> stringList1 = new List<string>();
      List<string> stringList2 = new List<string>();
      int num1 = 1;
      clsFASorders.scFASFAB scFasfab2;
      do
      {
        string path = "";
        switch (num1)
        {
          case 1:
            path = ImportFile1;
            break;
          case 2:
            path = ImportFile2;
            break;
        }
        StreamReader streamReader;
        try
        {
          streamReader = File.OpenText(path);
        }
        catch (Exception ex)
        {
          ProjectData.SetProjectError(ex);
          clsFASorders.scUpdProgress scUpdProgress = new clsFASorders.scUpdProgress(clsFASorders.emUpdateProgType.ResultStatus, "Error opening FAS Export file: " + path + "\r\n");
          clsFASorders.ueUpdateProgressEventHandler updateProgressEvent = this.ueUpdateProgressEvent;
          if (updateProgressEvent != null)
            updateProgressEvent((object) this, new ProgressChangedEventArgs(10, (object) scUpdProgress));
          scFasfab2 = (clsFASorders.scFASFAB) null;
          ProjectData.ClearProjectError();
          goto label_101;
        }
        streamReader.ReadLine().Split('\t');
        while (!streamReader.EndOfStream)
        {
          string[] strArray = streamReader.ReadLine().Split('\t');
          clsFASorders.scOrderFas scOrderFas = new clsFASorders.scOrderFas();
          if (strArray[14].Contains("MO"))
          {
            if (strArray[15].Contains("Parent:"))
              scOrderFas.OrderData.FOLineSLSS = strArray[15].Replace("Parent: ", "").Trim();
          }
          else
            scOrderFas.OrderData.FactoryOrderOE = strArray[14].Trim();
          scOrderFas.OrderData.OrderJobName = strArray[11].Trim();
          if (scOrderFas.OrderData.FOFormatValid)
          {
            if (strArray[0].Trim().StartsWith("NW") | strArray[0].Trim().StartsWith("GM") | strArray[0].Trim().StartsWith("394") | strArray[0].Trim().StartsWith("244") | strArray[0].Trim().StartsWith("252") | strArray[0].Trim().StartsWith("311"))
            {
              scItemMaster scItemMaster1 = new scItemMaster();
              scItemMaster scItemMaster2 = clsEngineCtdB.rtnByAssyPartNum(strArray[0].Trim());
              if (scItemMaster2 != null)
              {
                scOrderFas.OrdFASExt.OrdCatlgNbr = scItemMaster2.Description1;
                scOrderFas.OrdFASExt.OrdMfgPartNbr = strArray[0].Trim();
              }
              else
              {
                scOrderFas.OrdFASExt.OrdCatlgNbr = strArray[0].Trim();
                scOrderFas.OrdFASExt.OrdMfgPartNbr = strArray[1].Trim();
              }
            }
            else
            {
              scOrderFas.OrdFASExt.OrdCatlgNbr = strArray[0].Trim();
              scOrderFas.OrdFASExt.OrdMfgPartNbr = strArray[1].Trim();
            }
            scOrderFas.OrdFASExt.FASOrdQty = Conversions.ToInteger(strArray[2].Trim());
            scOrderFas.OrdFASExt.FASUnfilledQty = Conversions.ToInteger(strArray[3].Trim());
            scOrderFas.OrdFASExt.FASPrgrsPnt = Conversions.ToInteger(strArray[7].Trim());
            short integer = checked ((short) Conversions.ToInteger(strArray[7].Trim()));
            scOrderFas.OrdFASExt.OrdCdDesc = hashmdsq2ccd[(object) integer].ToString().Trim();
            scOrderFas.OrdFASExt.FASDueDt = Conversions.ToDate(strArray[12].Trim());
            scOrderFas.OrdFASExt.FASOrdNbr = strArray[14].Trim();
            scOrderFas.OrdFASExt.OrdProdLn = strArray[16].Trim();
            scOrderFas.OrdFASExt.FASCmplQty = Conversions.ToInteger(strArray[17].Trim());
            scOrderFas.OrdFASExt.FASAsmblLn = strArray[18].Trim();
            scOrderFas.OrdFASExt.FASWorkCtr = strArray[19].Trim();
            if (Conversions.ToInteger(strArray[7].Trim()) >= 240 & DateTime.Compare(Conversions.ToDate(strArray[4].Trim()), Conversions.ToDate("12/31/2039")) < 0 & scOrderFas.OrdFASExt.FASOrdNbr.StartsWith("MO"))
            {
              scOrderData scOrderData1 = new scOrderData();
              scOrderData scOrderData2 = clsEngineCtdB.rtnOrderDataByFOLineSLSS(scOrderFas.OrderData.FOLineSLSS);
              if (scOrderData2 != null)
              {
                scOrderFas.OrderData.OrderLineId = scOrderData2.OrderLineId;
                scOrderFas.OrderData.OrderLineAssyStartDt = scOrderData2.OrderLineAssyStartDt;
                scOrderFas.OrderData.OrderLineShipped = scOrderData2.OrderLineShipped;
                scOrderFas.OrderData.OrderLineShipDt = scOrderData2.OrderLineShipDt;
              }
            }
            string str = scOrderFas.OrdFASExt.FASOrdNbr + Conversions.ToString(scOrderFas.OrderData.OrderLineId) + scOrderFas.OrdFASExt.OrdMfgPartNbr;
            switch (num1)
            {
              case 1:
                if (!scFasfab1.CompOrdersHash.ContainsKey((object) str))
                  scFasfab1.CompOrdersHash.Add((object) str, (object) scOrderFas);
                scFasfab1.CompOrderFas.Add(scOrderFas);
                break;
              case 2:
                if (!scFasfab1.OpenOrdersHash.ContainsKey((object) str))
                  scFasfab1.OpenOrdersHash.Add((object) str, (object) scOrderFas);
                if (scFasfab1.CompOrdersHash.ContainsKey((object) str))
                  scFasfab1.CompOrdersHash.Remove((object) str);
                scFasfab1.OpenOrderFas.Add(scOrderFas);
                break;
            }
          }
        }
        streamReader.Close();
        switch (num1)
        {
          default:
            checked { ++num1; }
            continue;
        }
      }
      while (num1 <= 2);
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      IEnumerable<clsFASorders.scOrderFas> source1 = (IEnumerable<clsFASorders.scOrderFas>) Enumerable.Select<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.ThenBy<clsFASorders.scOrderFas, DateTime>(Enumerable.ThenBy<clsFASorders.scOrderFas, string>(Enumerable.OrderBy<clsFASorders.scOrderFas, string>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.Select<object, clsFASorders.scOrderFas>((IEnumerable<M0>) scFasfab1.CompOrdersHash.Values.Cast<object>(), (Func<M0, M1>) new Func<object, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__6))), (Func<M0, bool>) new Func<clsFASorders.scOrderFas, bool>((object) null, __methodptr(_Lambda\u0024__7))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__8))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__9))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, DateTime>((object) null, __methodptr(_Lambda\u0024__10))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__11)));
      this.lcLogWriter2.logData("\tMaterial\tQ2C\tFAS WORKCTR\tAssembly Line\t FAS Order\t MFG Part#\t FAS Qty\t FAS Comp Qty\t FAS Due Date\t Assembly Start\t FAS Progress Point\t Shipped Flag");
      List<clsFASorders.scOrderFas>.Enumerator enumerator1;
      try
      {
        enumerator1 = source1.ToList<clsFASorders.scOrderFas>().GetEnumerator();
        while (enumerator1.MoveNext())
        {
          clsFASorders.scOrderFas current = enumerator1.Current;
          if (DateTime.Compare(current.OrdFASExt.FASDueDt, Conversions.ToDate("12/31/2039")) < 0)
            this.lcLogWriter2.logData("\tBUS\t" + current.OrderData.FOLineSLSS + "\t" + current.OrdFASExt.FASWorkCtr + "\t" + current.OrdFASExt.OrdProdLn + "\t" + current.OrdFASExt.FASOrdNbr + "\t" + current.OrdFASExt.OrdMfgPartNbr + "\t" + Conversions.ToString(current.OrdFASExt.FASOrdQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASCmplQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASDueDt) + "\t" + Conversions.ToString(current.OrderData.OrderLineAssyStartDt) + "\t" + current.OrdFASExt.OrdCdDesc.Trim() + "\t" + Conversions.ToString(current.OrderData.OrderLineShippedbln));
        }
      }
      finally
      {
        enumerator1.Dispose();
      }
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      IEnumerable<clsFASorders.scOrderFas> source2 = (IEnumerable<clsFASorders.scOrderFas>) Enumerable.Select<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.ThenBy<clsFASorders.scOrderFas, DateTime>(Enumerable.ThenBy<clsFASorders.scOrderFas, string>(Enumerable.OrderBy<clsFASorders.scOrderFas, string>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.Select<object, clsFASorders.scOrderFas>((IEnumerable<M0>) scFasfab1.CompOrdersHash.Values.Cast<object>(), (Func<M0, M1>) new Func<object, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__12))), (Func<M0, bool>) new Func<clsFASorders.scOrderFas, bool>((object) null, __methodptr(_Lambda\u0024__13))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__14))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__15))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, DateTime>((object) null, __methodptr(_Lambda\u0024__16))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__17)));
      List<clsFASorders.scOrderFas>.Enumerator enumerator2;
      try
      {
        enumerator2 = source2.ToList<clsFASorders.scOrderFas>().GetEnumerator();
        while (enumerator2.MoveNext())
        {
          clsFASorders.scOrderFas current = enumerator2.Current;
          if (DateTime.Compare(current.OrdFASExt.FASDueDt, Conversions.ToDate("12/31/2039")) < 0)
            this.lcLogWriter2.logData("\tSM\t" + current.OrderData.FOLineSLSS + "\t" + current.OrdFASExt.FASWorkCtr + "\t" + current.OrdFASExt.OrdProdLn + "\t" + current.OrdFASExt.FASOrdNbr + "\t" + current.OrdFASExt.OrdMfgPartNbr + "\t" + Conversions.ToString(current.OrdFASExt.FASOrdQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASCmplQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASDueDt) + "\t" + Conversions.ToString(current.OrderData.OrderLineAssyStartDt) + "\t" + current.OrdFASExt.OrdCdDesc.Trim() + "\t" + Conversions.ToString(current.OrderData.OrderLineShippedbln));
        }
      }
      finally
      {
        enumerator2.Dispose();
      }
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      IEnumerable<clsFASorders.scOrderFas> source3 = (IEnumerable<clsFASorders.scOrderFas>) Enumerable.Select<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.ThenBy<clsFASorders.scOrderFas, DateTime>(Enumerable.ThenBy<clsFASorders.scOrderFas, string>(Enumerable.OrderBy<clsFASorders.scOrderFas, string>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) scFasfab1.OpenOrderFas, (Func<M0, bool>) new Func<clsFASorders.scOrderFas, bool>((object) null, __methodptr(_Lambda\u0024__18))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__19))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__20))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, DateTime>((object) null, __methodptr(_Lambda\u0024__21))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__22)));
      this.lcLogWriter.logData("\tMaterial\tQ2C\tFAS WORKCTR\tAssembly Line\t FAS Order\t MFG Part#\t FAS Qty\t FAS Comp Qty\t FAS Due Date\t Assembly Start\t FAS Progress Point\t Shipped Flag");
      List<clsFASorders.scOrderFas>.Enumerator enumerator3;
      try
      {
        enumerator3 = source3.ToList<clsFASorders.scOrderFas>().GetEnumerator();
        while (enumerator3.MoveNext())
        {
          clsFASorders.scOrderFas current = enumerator3.Current;
          if (DateTime.Compare(current.OrdFASExt.FASDueDt, Conversions.ToDate("12/31/2039")) < 0)
            this.lcLogWriter.logData("\tBUS\t" + current.OrderData.FOLineSLSS + "\t" + current.OrdFASExt.FASWorkCtr + "\t" + current.OrdFASExt.OrdProdLn + "\t" + current.OrdFASExt.FASOrdNbr + "\t" + current.OrdFASExt.OrdMfgPartNbr + "\t" + Conversions.ToString(current.OrdFASExt.FASOrdQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASCmplQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASDueDt) + "\t" + Conversions.ToString(current.OrderData.OrderLineAssyStartDt) + "\t" + current.OrdFASExt.OrdCdDesc.Trim() + "\t" + Conversions.ToString(current.OrderData.OrderLineShippedbln));
        }
      }
      finally
      {
        enumerator3.Dispose();
      }
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      IEnumerable<clsFASorders.scOrderFas> source4 = (IEnumerable<clsFASorders.scOrderFas>) Enumerable.Select<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.ThenBy<clsFASorders.scOrderFas, DateTime>(Enumerable.ThenBy<clsFASorders.scOrderFas, string>(Enumerable.OrderBy<clsFASorders.scOrderFas, string>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) scFasfab1.OpenOrderFas, (Func<M0, bool>) new Func<clsFASorders.scOrderFas, bool>((object) null, __methodptr(_Lambda\u0024__23))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__24))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, string>((object) null, __methodptr(_Lambda\u0024__25))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, DateTime>((object) null, __methodptr(_Lambda\u0024__26))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__27)));
      List<clsFASorders.scOrderFas>.Enumerator enumerator4;
      try
      {
        enumerator4 = source4.ToList<clsFASorders.scOrderFas>().GetEnumerator();
        while (enumerator4.MoveNext())
        {
          clsFASorders.scOrderFas current = enumerator4.Current;
          if (DateTime.Compare(current.OrdFASExt.FASDueDt, Conversions.ToDate("12/31/2039")) < 0)
            this.lcLogWriter.logData("\tSM\t" + current.OrderData.FOLineSLSS + "\t" + current.OrdFASExt.FASWorkCtr + "\t" + current.OrdFASExt.OrdProdLn + "\t" + current.OrdFASExt.FASOrdNbr + "\t" + current.OrdFASExt.OrdMfgPartNbr + "\t" + Conversions.ToString(current.OrdFASExt.FASOrdQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASCmplQty) + "\t" + Conversions.ToString(current.OrdFASExt.FASDueDt) + "\t" + Conversions.ToString(current.OrderData.OrderLineAssyStartDt) + "\t" + current.OrdFASExt.OrdCdDesc.Trim() + "\t" + Conversions.ToString(current.OrderData.OrderLineShippedbln));
        }
      }
      finally
      {
        enumerator4.Dispose();
      }
      // ISSUE: reference to a compiler-generated field
      closure106.\u0024VB\u0024Local_ldStartDate = DateTime.Today;
      DateTime t2 = DateTime.Today.AddDays(-1.0);
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      IEnumerable<int> source5 = (IEnumerable<int>) Enumerable.Select<clsFASorders.scOrderFas, int>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.Select<object, clsFASorders.scOrderFas>((IEnumerable<M0>) scFasfab1.CompOrdersHash.Values.Cast<object>(), (Func<M0, M1>) new Func<object, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__28))), (Func<M0, bool>) new Func<clsFASorders.scOrderFas, bool>((object) null, __methodptr(_Lambda\u0024__29))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, int>((object) null, __methodptr(_Lambda\u0024__30)));
      int num2;
      if (source5 != null)
        num2 = source5.Count<int>() <= 0 ? 0 : source5.Sum();
      // ISSUE: method pointer
      // ISSUE: method pointer
      // ISSUE: method pointer
      IEnumerable<int> source6 = (IEnumerable<int>) Enumerable.Select<clsFASorders.scOrderFas, int>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) Enumerable.Select<object, clsFASorders.scOrderFas>((IEnumerable<M0>) scFasfab1.CompOrdersHash.Values.Cast<object>(), (Func<M0, M1>) new Func<object, clsFASorders.scOrderFas>((object) null, __methodptr(_Lambda\u0024__31))), (Func<M0, bool>) new Func<clsFASorders.scOrderFas, bool>((object) null, __methodptr(_Lambda\u0024__32))), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, int>((object) null, __methodptr(_Lambda\u0024__33)));
      int num3;
      if (source6 != null)
        num3 = source6.Count<int>() <= 0 ? 0 : source6.Sum();
      int num4 = 0;
      do
      {
        string str = Conversions.ToString(checked (num4 + 7));
        // ISSUE: reference to a compiler-generated method
        // ISSUE: variable of a compiler-generated type
        Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) ("B" + str), (object) ("B" + str));
        // ISSUE: reference to a compiler-generated method
        if (DateTime.Compare(Conversions.ToDate(range1.get_Value((object) Missing.Value)), t2) == 0)
        {
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range2 = worksheet.get_Range((object) ("C" + str), (object) ("C" + str));
          // ISSUE: reference to a compiler-generated method
          range2.set_Value((object) Missing.Value, (object) num2);
          range2.NumberFormat = (object) "0.0";
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range3 = worksheet.get_Range((object) ("D" + str), (object) ("D" + str));
          // ISSUE: reference to a compiler-generated method
          range3.set_Value((object) Missing.Value, (object) num3);
          range3.NumberFormat = (object) "0.0";
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range4 = worksheet.get_Range((object) ("E" + str), (object) ("E" + str));
          // ISSUE: reference to a compiler-generated method
          range4.set_Value((object) Missing.Value, (object) "1");
          range4.NumberFormat = (object) "0";
          break;
        }
        checked { ++num4; }
      }
      while (num4 <= 42);
      // ISSUE: reference to a compiler-generated method
      // ISSUE: variable of a compiler-generated type
      Microsoft.Office.Interop.Excel.Range range5 = worksheet.get_Range((object) "L7", (object) "L7");
      // ISSUE: reference to a compiler-generated method
      int integer1 = Conversions.ToInteger(range5.get_Value((object) Missing.Value));
      // ISSUE: reference to a compiler-generated method
      // ISSUE: variable of a compiler-generated type
      Microsoft.Office.Interop.Excel.Range range6 = worksheet.get_Range((object) "S7", (object) "S7");
      // ISSUE: reference to a compiler-generated method
      int integer2 = Conversions.ToInteger(range6.get_Value((object) Missing.Value));
      List<clsFASorders.scOrderFas> openOrderFas1 = scFasfab1.OpenOrderFas;
      // ISSUE: virtual method pointer
      IntPtr num5 = __vmethodptr(closure106, _Lambda\u0024__34);
      Func<clsFASorders.scOrderFas, bool> func1 = new Func<clsFASorders.scOrderFas, bool>((object) closure106, num5);
      // ISSUE: method pointer
      IEnumerable<int> source7 = (IEnumerable<int>) Enumerable.Select<clsFASorders.scOrderFas, int>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) openOrderFas1, (Func<M0, bool>) func1), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, int>((object) null, __methodptr(_Lambda\u0024__35)));
      if (source7 != null)
      {
        if (source7.Count<int>() > 0)
        {
          int num6 = source7.Sum();
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) "K7", (object) "K7");
          // ISSUE: reference to a compiler-generated method
          range1.set_Value((object) Missing.Value, (object) num6);
          range1.NumberFormat = (object) "0";
        }
        else
        {
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) "K7", (object) "K7");
          // ISSUE: reference to a compiler-generated method
          range1.set_Value((object) Missing.Value, (object) 0);
          range1.NumberFormat = (object) "0";
        }
      }
      List<clsFASorders.scOrderFas> openOrderFas2 = scFasfab1.OpenOrderFas;
      // ISSUE: virtual method pointer
      IntPtr num7 = __vmethodptr(closure106, _Lambda\u0024__36);
      Func<clsFASorders.scOrderFas, bool> func2 = new Func<clsFASorders.scOrderFas, bool>((object) closure106, num7);
      // ISSUE: method pointer
      IEnumerable<int> source8 = (IEnumerable<int>) Enumerable.Select<clsFASorders.scOrderFas, int>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) openOrderFas2, (Func<M0, bool>) func2), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, int>((object) null, __methodptr(_Lambda\u0024__37)));
      if (source8 != null)
      {
        if (source8.Count<int>() > 0)
        {
          int num6 = source8.Sum();
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) "R7", (object) "R7");
          // ISSUE: reference to a compiler-generated method
          range1.set_Value((object) Missing.Value, (object) num6);
          range1.NumberFormat = (object) "0";
        }
        else
        {
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) "R7", (object) "R7");
          // ISSUE: reference to a compiler-generated method
          range1.set_Value((object) Missing.Value, (object) 0);
          range1.NumberFormat = (object) "0";
        }
      }
      int num8 = 0;
      while (num8 < 22)
      {
        string str = Conversions.ToString(checked (num8 + 9));
        // ISSUE: reference to a compiler-generated field
        // ISSUE: reference to a compiler-generated field
        closure106.\u0024VB\u0024Local_ldQueryDate = closure106.\u0024VB\u0024Local_ldStartDate.AddDays((double) num8);
        // ISSUE: reference to a compiler-generated field
        // ISSUE: reference to a compiler-generated field
        if (!(closure106.\u0024VB\u0024Local_ldQueryDate.DayOfWeek == DayOfWeek.Saturday | closure106.\u0024VB\u0024Local_ldQueryDate.DayOfWeek == DayOfWeek.Sunday))
        {
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) ("L" + str), (object) ("L" + str));
          // ISSUE: reference to a compiler-generated method
          range1.set_Value((object) Missing.Value, (object) integer1);
          range1.NumberFormat = (object) "0";
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range2 = worksheet.get_Range((object) ("S" + str), (object) ("S" + str));
          // ISSUE: reference to a compiler-generated method
          range2.set_Value((object) Missing.Value, (object) integer2);
          range2.NumberFormat = (object) "0";
        }
        else
        {
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) ("L" + str), (object) ("L" + str));
          // ISSUE: reference to a compiler-generated method
          range1.set_Value((object) Missing.Value, (object) "0");
          range1.NumberFormat = (object) "0";
          // ISSUE: reference to a compiler-generated method
          // ISSUE: variable of a compiler-generated type
          Microsoft.Office.Interop.Excel.Range range2 = worksheet.get_Range((object) ("S" + str), (object) ("S" + str));
          // ISSUE: reference to a compiler-generated method
          range2.set_Value((object) Missing.Value, (object) "0");
          range2.NumberFormat = (object) "0";
        }
        List<clsFASorders.scOrderFas> openOrderFas3 = scFasfab1.OpenOrderFas;
        // ISSUE: virtual method pointer
        IntPtr num6 = __vmethodptr(closure106, _Lambda\u0024__38);
        Func<clsFASorders.scOrderFas, bool> func3 = new Func<clsFASorders.scOrderFas, bool>((object) closure106, num6);
        // ISSUE: method pointer
        IEnumerable<int> source9 = (IEnumerable<int>) Enumerable.Select<clsFASorders.scOrderFas, int>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) openOrderFas3, (Func<M0, bool>) func3), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, int>((object) null, __methodptr(_Lambda\u0024__39)));
        // ISSUE: reference to a compiler-generated method
        // ISSUE: variable of a compiler-generated type
        Microsoft.Office.Interop.Excel.Range range3 = worksheet.get_Range((object) ("J" + str), (object) ("J" + str));
        // ISSUE: reference to a compiler-generated field
        // ISSUE: reference to a compiler-generated method
        range3.set_Value((object) Missing.Value, (object) closure106.\u0024VB\u0024Local_ldQueryDate);
        range3.NumberFormat = (object) "MM/dd/yyyy";
        if (source9 != null)
        {
          if (source9.Count<int>() > 0)
          {
            int num9 = source9.Sum();
            // ISSUE: reference to a compiler-generated method
            // ISSUE: variable of a compiler-generated type
            Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) ("K" + str), (object) ("K" + str));
            // ISSUE: reference to a compiler-generated method
            range1.set_Value((object) Missing.Value, (object) num9);
            range1.NumberFormat = (object) "0";
          }
          else
          {
            // ISSUE: reference to a compiler-generated method
            // ISSUE: variable of a compiler-generated type
            Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) ("K" + str), (object) ("K" + str));
            // ISSUE: reference to a compiler-generated method
            range1.set_Value((object) Missing.Value, (object) 0);
            range1.NumberFormat = (object) "0";
          }
        }
        List<clsFASorders.scOrderFas> openOrderFas4 = scFasfab1.OpenOrderFas;
        // ISSUE: virtual method pointer
        IntPtr num10 = __vmethodptr(closure106, _Lambda\u0024__40);
        Func<clsFASorders.scOrderFas, bool> func4 = new Func<clsFASorders.scOrderFas, bool>((object) closure106, num10);
        // ISSUE: method pointer
        IEnumerable<int> source10 = (IEnumerable<int>) Enumerable.Select<clsFASorders.scOrderFas, int>(Enumerable.Where<clsFASorders.scOrderFas>((IEnumerable<M0>) openOrderFas4, (Func<M0, bool>) func4), (Func<M0, M1>) new Func<clsFASorders.scOrderFas, int>((object) null, __methodptr(_Lambda\u0024__41)));
        // ISSUE: reference to a compiler-generated method
        // ISSUE: variable of a compiler-generated type
        Microsoft.Office.Interop.Excel.Range range4 = worksheet.get_Range((object) ("Q" + str), (object) ("Q" + str));
        // ISSUE: reference to a compiler-generated field
        // ISSUE: reference to a compiler-generated method
        range4.set_Value((object) Missing.Value, (object) closure106.\u0024VB\u0024Local_ldQueryDate);
        range4.NumberFormat = (object) "MM/dd/yyyy";
        if (source10 != null)
        {
          if (source10.Count<int>() > 0)
          {
            int num9 = source10.Sum();
            // ISSUE: reference to a compiler-generated method
            // ISSUE: variable of a compiler-generated type
            Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) ("R" + str), (object) ("R" + str));
            // ISSUE: reference to a compiler-generated method
            range1.set_Value((object) Missing.Value, (object) num9);
            range1.NumberFormat = (object) "0";
          }
          else
          {
            // ISSUE: reference to a compiler-generated method
            // ISSUE: variable of a compiler-generated type
            Microsoft.Office.Interop.Excel.Range range1 = worksheet.get_Range((object) ("R" + str), (object) ("R" + str));
            // ISSUE: reference to a compiler-generated method
            range1.set_Value((object) Missing.Value, (object) 0);
            range1.NumberFormat = (object) "0";
          }
        }
        checked { ++num8; }
      }
      instance.Visible = true;
      NewLateBinding.LateCall(workbook.Worksheets[(object) 2], (Type) null, "Select", new object[0], (string[]) null, (Type[]) null, (bool[]) null, true);
      // ISSUE: reference to a compiler-generated method
      workbook.Save();
      this.lcLogWriter.logClose();
      this.lcLogWriter2.logClose();
      scFasfab2 = scFasfab1;
label_101:
      return scFasfab2;
    }

    public List<scOrdFASExt> rtnFASLines(scOrderData Q2COrders, scOrdFASExt FASOrders)
    {
      return new List<scOrdFASExt>();
    }

    public int UpdateFASLines(scOrderData Q2COrders, scOrdFASExt FASOrders)
    {
      // ISSUE: object of a compiler-generated type is created
      // ISSUE: variable of a compiler-generated type
      clsFASorders._Closure\u0024__107 closure107 = new clsFASorders._Closure\u0024__107();
      // ISSUE: reference to a compiler-generated field
      closure107.\u0024VB\u0024Local_Q2COrders = Q2COrders;
      // ISSUE: reference to a compiler-generated field
      closure107.\u0024VB\u0024Local_FASOrders = FASOrders;
      int num1 = 0;
      using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
      {
        se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
        // ISSUE: method reference
        // ISSUE: reference to a compiler-generated field
        IQueryable<OrdFASExt> source1 = (IQueryable<OrdFASExt>) Queryable.Select<OrdFASExt, OrdFASExt>(Queryable.Where<OrdFASExt>((IQueryable<M0>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, bool>>) (f => Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), f.FASOrdNbr, closure107.\u0024VB\u0024Local_FASOrders.FASOrdNbr, false) == 0)), (Expression<Func<M0, M1>>) (f => f));
        if (source1.Count<OrdFASExt>() == 0)
        {
          // ISSUE: method reference
          // ISSUE: reference to a compiler-generated field
          // ISSUE: method reference
          // ISSUE: reference to a compiler-generated field
          // ISSUE: method reference
          // ISSUE: reference to a compiler-generated field
          // ISSUE: method reference
          // ISSUE: reference to a compiler-generated field
          IQueryable<OrderLine> source2 = (IQueryable<OrderLine>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (Expression<Func<M0, bool>>) (data => Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.o.OrderFO, closure107.\u0024VB\u0024Local_Q2COrders.OrderFO, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineNum, closure107.\u0024VB\u0024Local_Q2COrders.OrderLineNum, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineSL, closure107.\u0024VB\u0024Local_Q2COrders.OrderLineSL, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineSS, closure107.\u0024VB\u0024Local_Q2COrders.OrderLineSS, false) == 0)), (Expression<Func<M0, M1>>) (data => data.l));
          if (source2.Count<OrderLine>() == 0)
            num1 = 32766;
          else if (source2.Count<OrderLine>() == 1)
          {
            OrderLine orderLine = source2.First<OrderLine>();
            OrdFASExt ordFasExt = new OrdFASExt();
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASOrdNbr = closure107.\u0024VB\u0024Local_FASOrders.FASOrdNbr;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASAsmblLn = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.FASAsmblLn.Trim(), 5);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASCmplQty = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASCmplQty;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdProdLn = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdProdLn.Trim(), 4);
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn, "258", false) == 0)
            {
              if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn, "221", false) == 0)
              {
                TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                DateTime? orderLineAssyStartDt = orderLine.OrderLineAssyStartDt;
                int num2 = orderLineAssyStartDt.HasValue ? 1 : 0;
                TimeSpan? nullable = (TimeSpan?) timeSpan;
                int num3 = nullable.HasValue ? 1 : 0;
                DateTime dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineAssyStartDt.GetValueOrDefault() + nullable.GetValueOrDefault()) : new DateTime?());
                ordFasExt.FASDueDt = (DateTime?) dateTime;
              }
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn, "221B", false) == 0)
              {
                if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr.Substring(6, 1), "R", false) == 0)
                {
                  TimeSpan timeSpan = new TimeSpan(3, 0, 0, 0);
                  DateTime? orderLineTargetDt = orderLine.OrderLineTargetDt;
                  int num2 = orderLineTargetDt.HasValue ? 1 : 0;
                  TimeSpan? nullable = (TimeSpan?) timeSpan;
                  int num3 = nullable.HasValue ? 1 : 0;
                  DateTime dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineTargetDt.GetValueOrDefault() - nullable.GetValueOrDefault()) : new DateTime?());
                  ordFasExt.FASDueDt = (DateTime?) dateTime;
                }
                else
                {
                  TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                  DateTime? orderLineAssyStartDt = orderLine.OrderLineAssyStartDt;
                  int num2 = orderLineAssyStartDt.HasValue ? 1 : 0;
                  TimeSpan? nullable = (TimeSpan?) timeSpan;
                  int num3 = nullable.HasValue ? 1 : 0;
                  DateTime dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineAssyStartDt.GetValueOrDefault() + nullable.GetValueOrDefault()) : new DateTime?());
                  ordFasExt.FASDueDt = (DateTime?) dateTime;
                }
              }
              else
              {
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASDueDt = (DateTime?) closure107.\u0024VB\u0024Local_FASOrders.FASDueDt;
              }
            }
            else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn, "279", false) == 0)
            {
              if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn, "221", false) == 0)
              {
                TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                DateTime? orderLineAssyStartDt = orderLine.OrderLineAssyStartDt;
                int num2 = orderLineAssyStartDt.HasValue ? 1 : 0;
                TimeSpan? nullable = (TimeSpan?) timeSpan;
                int num3 = nullable.HasValue ? 1 : 0;
                DateTime dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineAssyStartDt.GetValueOrDefault() + nullable.GetValueOrDefault()) : new DateTime?());
                ordFasExt.FASDueDt = (DateTime?) dateTime;
              }
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn, "221B", false) == 0)
              {
                if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr.Substring(6, 1), "R", false) == 0)
                {
                  TimeSpan timeSpan = new TimeSpan(3, 0, 0, 0);
                  DateTime? orderLineTargetDt = orderLine.OrderLineTargetDt;
                  int num2 = orderLineTargetDt.HasValue ? 1 : 0;
                  TimeSpan? nullable = (TimeSpan?) timeSpan;
                  int num3 = nullable.HasValue ? 1 : 0;
                  DateTime dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineTargetDt.GetValueOrDefault() - nullable.GetValueOrDefault()) : new DateTime?());
                  ordFasExt.FASDueDt = (DateTime?) dateTime;
                }
                else
                {
                  // ISSUE: reference to a compiler-generated field
                  ordFasExt.FASDueDt = (DateTime?) closure107.\u0024VB\u0024Local_FASOrders.FASDueDt;
                }
              }
              else
              {
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASDueDt = (DateTime?) closure107.\u0024VB\u0024Local_FASOrders.FASDueDt;
              }
            }
            else
            {
              // ISSUE: reference to a compiler-generated field
              ordFasExt.FASDueDt = (DateTime?) closure107.\u0024VB\u0024Local_FASOrders.FASDueDt;
            }
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASOrdQty = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASOrdQty;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASPrgrsPnt = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASUnfilledQty = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASUnfilledQty;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASWorkCtr = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.FASWorkCtr.Trim(), 10);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdCatlgNbr = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr.Trim(), 25);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdCdDesc = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdCdDesc.Trim(), 50);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdMfgPartNbr = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdMfgPartNbr.Trim(), 15);
            orderLine.OrdFASExts.Add(ordFasExt);
            num1 = se0085CtEntities1.SaveChanges();
          }
        }
        else if (source1.Count<OrdFASExt>() == 1)
        {
          OrdFASExt ordFasExt = source1.First<OrdFASExt>();
          // ISSUE: reference to a compiler-generated field
          int fasCmplQty1 = closure107.\u0024VB\u0024Local_FASOrders.FASCmplQty;
          int? fasCmplQty2 = ordFasExt.FASCmplQty;
          bool? nullable1 = fasCmplQty2.HasValue ? new bool?(fasCmplQty2.GetValueOrDefault() == fasCmplQty1) : new bool?();
          // ISSUE: reference to a compiler-generated field
          // ISSUE: reference to a compiler-generated field
          bool? nullable2 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASOrdNbr, closure107.\u0024VB\u0024Local_FASOrders.FASOrdNbr, false) == 0 & Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn, closure107.\u0024VB\u0024Local_FASOrders.FASAsmblLn, false) == 0 ? nullable1 : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          DateTime fasDueDt1 = closure107.\u0024VB\u0024Local_FASOrders.FASDueDt;
          DateTime? fasDueDt2 = ordFasExt.FASDueDt;
          bool? nullable3 = fasDueDt2.HasValue ? new bool?(DateTime.Compare(fasDueDt2.GetValueOrDefault(), fasDueDt1) == 0) : new bool?();
          bool? nullable4 = !nullable2.HasValue || nullable2.GetValueOrDefault() ? (nullable3.HasValue ? (nullable3.GetValueOrDefault() ? nullable2 : new bool?(false)) : new bool?()) : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          int fasOrdQty1 = closure107.\u0024VB\u0024Local_FASOrders.FASOrdQty;
          int? fasOrdQty2 = ordFasExt.FASOrdQty;
          bool? nullable5 = fasOrdQty2.HasValue ? new bool?(fasOrdQty2.GetValueOrDefault() == fasOrdQty1) : new bool?();
          bool? nullable6 = !nullable4.HasValue || nullable4.GetValueOrDefault() ? (nullable5.HasValue ? (nullable5.GetValueOrDefault() ? nullable4 : new bool?(false)) : new bool?()) : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          int fasPrgrsPnt1 = closure107.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
          int? fasPrgrsPnt2 = ordFasExt.FASPrgrsPnt;
          bool? nullable7;
          bool? nullable8;
          if (!fasPrgrsPnt2.HasValue)
          {
            nullable8 = new bool?();
          }
          else
          {
            nullable7 = new bool?(fasPrgrsPnt2.GetValueOrDefault() == fasPrgrsPnt1);
            nullable8 = nullable7;
          }
          bool? nullable9 = nullable8;
          bool? nullable10 = !nullable6.HasValue || nullable6.GetValueOrDefault() ? (nullable9.HasValue ? (nullable9.GetValueOrDefault() ? nullable6 : new bool?(false)) : new bool?()) : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          int fasUnfilledQty = closure107.\u0024VB\u0024Local_FASOrders.FASUnfilledQty;
          int? nullable11 = ordFasExt.FASUnfilledQty;
          bool? nullable12;
          bool? nullable13;
          if (!nullable11.HasValue)
          {
            nullable13 = new bool?();
          }
          else
          {
            nullable12 = new bool?(nullable11.GetValueOrDefault() == fasUnfilledQty);
            nullable13 = nullable12;
          }
          bool? nullable14 = nullable13;
          bool? nullable15 = !nullable10.HasValue || nullable10.GetValueOrDefault() ? (nullable14.HasValue ? (nullable14.GetValueOrDefault() ? nullable10 : new bool?(false)) : new bool?()) : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          bool? nullable16 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASWorkCtr, closure107.\u0024VB\u0024Local_FASOrders.FASWorkCtr, false) == 0 ? nullable15 : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          bool? nullable17 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr, closure107.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr, false) == 0 ? nullable16 : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          bool? nullable18 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCdDesc, closure107.\u0024VB\u0024Local_FASOrders.OrdCdDesc, false) == 0 ? nullable17 : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          bool? nullable19 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdMfgPartNbr, closure107.\u0024VB\u0024Local_FASOrders.OrdMfgPartNbr, false) == 0 ? nullable18 : new bool?(false);
          // ISSUE: reference to a compiler-generated field
          bool? nullable20 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn, closure107.\u0024VB\u0024Local_FASOrders.OrdProdLn, false) == 0 ? nullable19 : new bool?(false);
          if ((nullable20.HasValue ? new bool?(!nullable20.GetValueOrDefault()) : new bool?()).GetValueOrDefault())
          {
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASAsmblLn = closure107.\u0024VB\u0024Local_FASOrders.FASAsmblLn;
            int num2 = 0;
            nullable11 = ordFasExt.FASCmplQty;
            bool? nullable21;
            if (!nullable11.HasValue)
            {
              nullable21 = new bool?();
            }
            else
            {
              nullable7 = new bool?(nullable11.GetValueOrDefault() == num2);
              nullable21 = nullable7;
            }
            nullable12 = nullable21;
            if (nullable12.GetValueOrDefault())
            {
              // ISSUE: reference to a compiler-generated field
              ordFasExt.FASCmplQty = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASCmplQty;
              // ISSUE: reference to a compiler-generated field
              ordFasExt.FASUnfilledQty = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASUnfilledQty;
            }
            DateTime date = Conversions.ToDate("1901-01-01");
            fasDueDt2 = ordFasExt.FASDueDt;
            bool? nullable22;
            if (!fasDueDt2.HasValue)
            {
              nullable22 = new bool?();
            }
            else
            {
              nullable7 = new bool?(DateTime.Compare(fasDueDt2.GetValueOrDefault(), date) == 0);
              nullable22 = nullable7;
            }
            nullable12 = nullable22;
            if (nullable12.GetValueOrDefault())
            {
              // ISSUE: reference to a compiler-generated field
              ordFasExt.FASDueDt = (DateTime?) closure107.\u0024VB\u0024Local_FASOrders.FASDueDt;
            }
            // ISSUE: reference to a compiler-generated field
            int fasPrgrsPnt3 = closure107.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
            nullable11 = ordFasExt.FASPrgrsPnt;
            bool? nullable23;
            if (!nullable11.HasValue)
            {
              nullable23 = new bool?();
            }
            else
            {
              nullable7 = new bool?(nullable11.GetValueOrDefault() < fasPrgrsPnt3);
              nullable23 = nullable7;
            }
            nullable12 = nullable23;
            if (nullable12.GetValueOrDefault())
            {
              // ISSUE: reference to a compiler-generated field
              ordFasExt.FASPrgrsPnt = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
              // ISSUE: reference to a compiler-generated field
              ordFasExt.OrdCdDesc = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdCdDesc.Trim(), 50);
            }
            if (ordFasExt.OrdCatlgNbr.Length == 0)
            {
              // ISSUE: reference to a compiler-generated field
              ordFasExt.OrdCatlgNbr = closure107.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr;
            }
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASOrdQty = (int?) closure107.\u0024VB\u0024Local_FASOrders.FASOrdQty;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASWorkCtr = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.FASWorkCtr.Trim(), 10);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdCatlgNbr = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr.Trim(), 25);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdMfgPartNbr = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdMfgPartNbr.Trim(), 15);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdProdLn = Microsoft.VisualBasic.Strings.Left(closure107.\u0024VB\u0024Local_FASOrders.OrdProdLn, 4);
            num1 = se0085CtEntities1.SaveChanges();
          }
          else
            num1 = 32765;
        }
        else
          num1 = (int) short.MaxValue;
        se0085CtEntities1.Database.Connection.Close();
      }
      return num1;
    }

    public int UpdateFASLinesDueDate(scOrderData Q2COrders, scOrdFASExt FASOrders)
    {
      // ISSUE: object of a compiler-generated type is created
      // ISSUE: variable of a compiler-generated type
      clsFASorders._Closure\u0024__108 closure108 = new clsFASorders._Closure\u0024__108();
      // ISSUE: reference to a compiler-generated field
      closure108.\u0024VB\u0024Local_Q2COrders = Q2COrders;
      // ISSUE: reference to a compiler-generated field
      closure108.\u0024VB\u0024Local_FASOrders = FASOrders;
      int num1 = 0;
      using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
      {
        se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
        // ISSUE: method reference
        // ISSUE: reference to a compiler-generated field
        // ISSUE: method reference
        // ISSUE: reference to a compiler-generated field
        // ISSUE: method reference
        // ISSUE: reference to a compiler-generated field
        // ISSUE: method reference
        // ISSUE: reference to a compiler-generated field
        IQueryable<OrderLine> source1 = (IQueryable<OrderLine>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (Expression<Func<M0, bool>>) (data => Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.o.OrderFO, closure108.\u0024VB\u0024Local_Q2COrders.OrderFO, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineNum, closure108.\u0024VB\u0024Local_Q2COrders.OrderLineNum, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineSL, closure108.\u0024VB\u0024Local_Q2COrders.OrderLineSL, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineSS, closure108.\u0024VB\u0024Local_Q2COrders.OrderLineSS, false) == 0)), (Expression<Func<M0, M1>>) (data => data.l));
        if (source1.Count<OrderLine>() == 0)
          num1 = 32766;
        else if (source1.Count<OrderLine>() == 1)
        {
          OrderLine orderLine = source1.First<OrderLine>();
          // ISSUE: method reference
          // ISSUE: reference to a compiler-generated field
          // ISSUE: method reference
          IQueryable<OrdFASExt> source2 = (IQueryable<OrdFASExt>) Queryable.Select<OrdFASExt, OrdFASExt>(Queryable.Where<OrdFASExt>((IQueryable<M0>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, bool>>) (f => Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), f.FASOrdNbr, (Expression) Expression.Call(closure108.\u0024VB\u0024Local_FASOrders.FASOrdNbr, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.Trim)), (Expression[]) null), false) == 0)), (Expression<Func<M0, M1>>) (f => f));
          if (source2.Count<OrdFASExt>() == 0)
          {
            OrdFASExt ordFasExt = new OrdFASExt();
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASOrdNbr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.FASOrdNbr.Trim(), 25);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASAsmblLn = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.FASAsmblLn.Trim(), 5);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASCmplQty = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASCmplQty;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdProdLn = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdProdLn.Trim(), 4);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASOrdQty = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASOrdQty;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASPrgrsPnt = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASUnfilledQty = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASUnfilledQty;
            // ISSUE: reference to a compiler-generated field
            ordFasExt.FASWorkCtr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.FASWorkCtr.Trim(), 10);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdCatlgNbr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr.Trim(), 34);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdCdDesc = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdCdDesc.Trim(), 50);
            // ISSUE: reference to a compiler-generated field
            ordFasExt.OrdMfgPartNbr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdMfgPartNbr.Trim(), 15);
            DateTime dateTime;
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn.Trim(), "258", false) == 0)
            {
              if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221", false) == 0)
              {
                TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                DateTime? orderLineAssyStartDt = orderLine.OrderLineAssyStartDt;
                int num2 = orderLineAssyStartDt.HasValue ? 1 : 0;
                TimeSpan? nullable = (TimeSpan?) timeSpan;
                int num3 = nullable.HasValue ? 1 : 0;
                dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineAssyStartDt.GetValueOrDefault() + nullable.GetValueOrDefault()) : new DateTime?());
              }
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221B", false) == 0)
              {
                if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr.Substring(5, 1), "R", false) == 0)
                {
                  TimeSpan timeSpan = new TimeSpan(3, 0, 0, 0);
                  DateTime? orderLineTargetDt = orderLine.OrderLineTargetDt;
                  int num2 = orderLineTargetDt.HasValue ? 1 : 0;
                  TimeSpan? nullable = (TimeSpan?) timeSpan;
                  int num3 = nullable.HasValue ? 1 : 0;
                  dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineTargetDt.GetValueOrDefault() - nullable.GetValueOrDefault()) : new DateTime?());
                }
                else
                {
                  TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                  DateTime? orderLineAssyStartDt = orderLine.OrderLineAssyStartDt;
                  int num2 = orderLineAssyStartDt.HasValue ? 1 : 0;
                  TimeSpan? nullable = (TimeSpan?) timeSpan;
                  int num3 = nullable.HasValue ? 1 : 0;
                  dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineAssyStartDt.GetValueOrDefault() + nullable.GetValueOrDefault()) : new DateTime?());
                }
              }
              else
              {
                // ISSUE: reference to a compiler-generated field
                dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
              }
            }
            else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn.Trim(), "279", false) == 0)
            {
              if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221", false) == 0)
              {
                TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                DateTime? orderLineAssyStartDt = orderLine.OrderLineAssyStartDt;
                int num2 = orderLineAssyStartDt.HasValue ? 1 : 0;
                TimeSpan? nullable = (TimeSpan?) timeSpan;
                int num3 = nullable.HasValue ? 1 : 0;
                dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineAssyStartDt.GetValueOrDefault() + nullable.GetValueOrDefault()) : new DateTime?());
              }
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221B", false) == 0)
              {
                if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr.Substring(5, 1), "R", false) == 0)
                {
                  TimeSpan timeSpan = new TimeSpan(3, 0, 0, 0);
                  DateTime? orderLineTargetDt = orderLine.OrderLineTargetDt;
                  int num2 = orderLineTargetDt.HasValue ? 1 : 0;
                  TimeSpan? nullable = (TimeSpan?) timeSpan;
                  int num3 = nullable.HasValue ? 1 : 0;
                  dateTime = (DateTime) ((num2 & num3) != 0 ? new DateTime?(orderLineTargetDt.GetValueOrDefault() - nullable.GetValueOrDefault()) : new DateTime?());
                }
                else
                {
                  // ISSUE: reference to a compiler-generated field
                  dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
                }
              }
              else
              {
                // ISSUE: reference to a compiler-generated field
                dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
              }
            }
            else
            {
              // ISSUE: reference to a compiler-generated field
              dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
            }
            ordFasExt.FASDueDt = dateTime.DayOfWeek != DayOfWeek.Saturday ? (dateTime.DayOfWeek != DayOfWeek.Sunday ? (DateTime?) dateTime : (DateTime?) dateTime.AddDays(-2.0)) : (DateTime?) dateTime.AddDays(-1.0);
            orderLine.OrdFASExts.Add(ordFasExt);
            num1 = se0085CtEntities1.SaveChanges() <= 0 ? 0 : 32763;
          }
          else if (source2.Count<OrdFASExt>() == 1)
          {
            bool flag1 = false;
            OrdFASExt ordFasExt = source2.First<OrdFASExt>();
            bool flag2 = true;
            bool? nullable1 = orderLine.OrderLineShipped;
            bool? nullable2;
            bool? nullable3;
            if (!nullable1.HasValue)
            {
              nullable3 = new bool?();
            }
            else
            {
              nullable2 = new bool?(nullable1.GetValueOrDefault() == flag2);
              nullable3 = nullable2;
            }
            bool? nullable4 = nullable3;
            bool? nullable5;
            bool? nullable6;
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(closure108.\u0024VB\u0024Local_Q2COrders.FactoryOrderOE.Trim(), closure108.\u0024VB\u0024Local_FASOrders.FASOrdNbr.Trim(), false) != 0)
            {
              nullable5 = new bool?(false);
              nullable6 = nullable5;
            }
            else
              nullable6 = nullable4;
            bool? nullable7 = nullable6;
            int? nullable8;
            bool? nullable9;
            bool? nullable10;
            bool? nullable11;
            if (nullable7.GetValueOrDefault())
            {
              // ISSUE: reference to a compiler-generated field
              int fasCmplQty = closure108.\u0024VB\u0024Local_FASOrders.FASCmplQty;
              nullable8 = orderLine.OrderLineQty;
              bool? nullable12;
              if (!nullable8.HasValue)
              {
                nullable12 = new bool?();
              }
              else
              {
                nullable9 = new bool?(fasCmplQty == nullable8.GetValueOrDefault());
                nullable12 = nullable9;
              }
              nullable10 = nullable12;
              bool? nullable13;
              if (!nullable10.HasValue)
              {
                nullable13 = new bool?();
              }
              else
              {
                nullable11 = new bool?(!nullable10.GetValueOrDefault());
                nullable13 = nullable11;
              }
              if (nullable13.GetValueOrDefault())
              {
                orderLine.OrderLineShipped = (bool?) false;
                orderLine.OrderLineShippedDt = (DateTime?) Conversions.ToDate("01/01/1901");
              }
            }
            // ISSUE: reference to a compiler-generated field
            DateTime fasDueDt1 = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
            bool flag3 = false;
            bool? nullable14 = ordFasExt.OrdBuildReq;
            bool? nullable15;
            if (!nullable14.HasValue)
            {
              nullable15 = new bool?();
            }
            else
            {
              nullable2 = new bool?(nullable14.GetValueOrDefault() == flag3);
              nullable15 = nullable2;
            }
            nullable11 = nullable15;
            nullable1 = ordFasExt.OrdBuildReq;
            bool? nullable16;
            if (nullable1.HasValue)
            {
              nullable16 = nullable11;
            }
            else
            {
              nullable10 = new bool?(true);
              nullable16 = nullable10;
            }
            nullable9 = nullable16;
            DateTime? nullable17;
            DateTime? nullable18;
            DateTime t2;
            if (nullable9.GetValueOrDefault())
            {
              DateTime dateTime;
              if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn.Trim(), "258", false) == 0)
              {
                if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221", false) == 0)
                {
                  TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                  nullable17 = orderLine.OrderLineAssyStartDt;
                  int num2 = nullable17.HasValue ? 1 : 0;
                  TimeSpan? nullable12 = (TimeSpan?) timeSpan;
                  int num3 = nullable12.HasValue ? 1 : 0;
                  DateTime? nullable13;
                  if ((num2 & num3) == 0)
                  {
                    nullable13 = new DateTime?();
                  }
                  else
                  {
                    nullable18 = new DateTime?(nullable17.GetValueOrDefault() + nullable12.GetValueOrDefault());
                    nullable13 = nullable18;
                  }
                  dateTime = (DateTime) nullable13;
                }
                else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221B", false) == 0)
                {
                  if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr.Substring(5, 1), "R", false) == 0)
                  {
                    TimeSpan timeSpan = new TimeSpan(3, 0, 0, 0);
                    nullable17 = orderLine.OrderLineTargetDt;
                    int num2 = nullable17.HasValue ? 1 : 0;
                    TimeSpan? nullable12 = (TimeSpan?) timeSpan;
                    int num3 = nullable12.HasValue ? 1 : 0;
                    DateTime? nullable13;
                    if ((num2 & num3) == 0)
                    {
                      nullable13 = new DateTime?();
                    }
                    else
                    {
                      nullable18 = new DateTime?(nullable17.GetValueOrDefault() - nullable12.GetValueOrDefault());
                      nullable13 = nullable18;
                    }
                    dateTime = (DateTime) nullable13;
                  }
                  else
                  {
                    TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                    DateTime? orderLineAssyStartDt = orderLine.OrderLineAssyStartDt;
                    int num2 = orderLineAssyStartDt.HasValue ? 1 : 0;
                    TimeSpan? nullable12 = (TimeSpan?) timeSpan;
                    int num3 = nullable12.HasValue ? 1 : 0;
                    DateTime? nullable13;
                    if ((num2 & num3) == 0)
                    {
                      nullable13 = new DateTime?();
                    }
                    else
                    {
                      nullable18 = new DateTime?(orderLineAssyStartDt.GetValueOrDefault() + nullable12.GetValueOrDefault());
                      nullable13 = nullable18;
                    }
                    dateTime = (DateTime) nullable13;
                  }
                }
                else
                {
                  // ISSUE: reference to a compiler-generated field
                  dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
                }
              }
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn.Trim(), "279", false) == 0)
              {
                if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221", false) == 0)
                {
                  TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0);
                  nullable17 = orderLine.OrderLineAssyStartDt;
                  int num2 = nullable17.HasValue ? 1 : 0;
                  TimeSpan? nullable12 = (TimeSpan?) timeSpan;
                  int num3 = nullable12.HasValue ? 1 : 0;
                  DateTime? nullable13;
                  if ((num2 & num3) == 0)
                  {
                    nullable13 = new DateTime?();
                  }
                  else
                  {
                    nullable18 = new DateTime?(nullable17.GetValueOrDefault() + nullable12.GetValueOrDefault());
                    nullable13 = nullable18;
                  }
                  dateTime = (DateTime) nullable13;
                }
                else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn.Trim(), "221B", false) == 0)
                {
                  if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr.Substring(5, 1), "R", false) == 0)
                  {
                    TimeSpan timeSpan = new TimeSpan(3, 0, 0, 0);
                    nullable17 = orderLine.OrderLineTargetDt;
                    int num2 = nullable17.HasValue ? 1 : 0;
                    TimeSpan? nullable12 = (TimeSpan?) timeSpan;
                    int num3 = nullable12.HasValue ? 1 : 0;
                    DateTime? nullable13;
                    if ((num2 & num3) == 0)
                    {
                      nullable13 = new DateTime?();
                    }
                    else
                    {
                      nullable18 = new DateTime?(nullable17.GetValueOrDefault() - nullable12.GetValueOrDefault());
                      nullable13 = nullable18;
                    }
                    dateTime = (DateTime) nullable13;
                  }
                  else
                  {
                    // ISSUE: reference to a compiler-generated field
                    dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
                  }
                }
                else
                {
                  // ISSUE: reference to a compiler-generated field
                  dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
                }
              }
              else
              {
                // ISSUE: reference to a compiler-generated field
                dateTime = closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
              }
              t2 = dateTime.DayOfWeek != DayOfWeek.Saturday ? (dateTime.DayOfWeek != DayOfWeek.Sunday ? dateTime : dateTime.AddDays(-2.0)) : dateTime.AddDays(-1.0);
            }
            else
            {
              DateTime date = Conversions.ToDate("1901-01-01");
              DateTime? fasDueDt2 = ordFasExt.FASDueDt;
              bool? nullable12;
              if (!fasDueDt2.HasValue)
              {
                nullable12 = new bool?();
              }
              else
              {
                nullable11 = new bool?(DateTime.Compare(fasDueDt2.GetValueOrDefault(), date) <= 0);
                nullable12 = nullable11;
              }
              nullable9 = nullable12;
              // ISSUE: reference to a compiler-generated field
              t2 = !nullable9.GetValueOrDefault() ? (DateTime) ordFasExt.FASDueDt : closure108.\u0024VB\u0024Local_FASOrders.FASDueDt;
            }
            // ISSUE: reference to a compiler-generated field
            int fasCmplQty1 = closure108.\u0024VB\u0024Local_FASOrders.FASCmplQty;
            nullable8 = ordFasExt.FASCmplQty;
            bool? nullable19 = nullable8.HasValue ? new bool?(nullable8.GetValueOrDefault() == fasCmplQty1) : new bool?();
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            bool? nullable20 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASOrdNbr, closure108.\u0024VB\u0024Local_FASOrders.FASOrdNbr, false) == 0 & Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn, closure108.\u0024VB\u0024Local_FASOrders.FASAsmblLn, false) == 0 ? nullable19 : new bool?(false);
            nullable17 = ordFasExt.FASDueDt;
            bool? nullable21 = nullable17.HasValue ? new bool?(DateTime.Compare(nullable17.GetValueOrDefault(), t2) == 0) : new bool?();
            bool? nullable22 = !nullable20.HasValue || nullable20.GetValueOrDefault() ? (nullable21.HasValue ? (nullable21.GetValueOrDefault() ? nullable20 : new bool?(false)) : new bool?()) : new bool?(false);
            // ISSUE: reference to a compiler-generated field
            int fasOrdQty1 = closure108.\u0024VB\u0024Local_FASOrders.FASOrdQty;
            int? fasOrdQty2 = ordFasExt.FASOrdQty;
            bool? nullable23 = fasOrdQty2.HasValue ? new bool?(fasOrdQty2.GetValueOrDefault() == fasOrdQty1) : new bool?();
            bool? nullable24 = !nullable22.HasValue || nullable22.GetValueOrDefault() ? (nullable23.HasValue ? (nullable23.GetValueOrDefault() ? nullable22 : new bool?(false)) : new bool?()) : new bool?(false);
            // ISSUE: reference to a compiler-generated field
            int fasPrgrsPnt1 = closure108.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
            int? fasPrgrsPnt2 = ordFasExt.FASPrgrsPnt;
            bool? nullable25 = fasPrgrsPnt2.HasValue ? new bool?(fasPrgrsPnt2.GetValueOrDefault() == fasPrgrsPnt1) : new bool?();
            bool? nullable26 = !nullable24.HasValue || nullable24.GetValueOrDefault() ? (nullable25.HasValue ? (nullable25.GetValueOrDefault() ? nullable24 : new bool?(false)) : new bool?()) : new bool?(false);
            // ISSUE: reference to a compiler-generated field
            int fasUnfilledQty1 = closure108.\u0024VB\u0024Local_FASOrders.FASUnfilledQty;
            int? fasUnfilledQty2 = ordFasExt.FASUnfilledQty;
            bool? nullable27 = fasUnfilledQty2.HasValue ? new bool?(fasUnfilledQty2.GetValueOrDefault() == fasUnfilledQty1) : new bool?();
            bool? nullable28 = !nullable26.HasValue || nullable26.GetValueOrDefault() ? (nullable27.HasValue ? (nullable27.GetValueOrDefault() ? nullable26 : new bool?(false)) : new bool?()) : new bool?(false);
            // ISSUE: reference to a compiler-generated field
            bool? nullable29 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASWorkCtr, closure108.\u0024VB\u0024Local_FASOrders.FASWorkCtr, false) == 0 ? nullable28 : new bool?(false);
            // ISSUE: reference to a compiler-generated field
            bool? nullable30 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr, closure108.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr, false) == 0 ? nullable29 : new bool?(false);
            bool? nullable31;
            // ISSUE: reference to a compiler-generated field
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCdDesc, closure108.\u0024VB\u0024Local_FASOrders.OrdCdDesc, false) != 0)
            {
              nullable7 = new bool?(false);
              nullable31 = nullable7;
            }
            else
              nullable31 = nullable30;
            nullable1 = nullable31;
            bool? nullable32;
            // ISSUE: reference to a compiler-generated field
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdMfgPartNbr, closure108.\u0024VB\u0024Local_FASOrders.OrdMfgPartNbr, false) != 0)
            {
              nullable5 = new bool?(false);
              nullable32 = nullable5;
            }
            else
              nullable32 = nullable1;
            nullable14 = nullable32;
            bool? nullable33;
            // ISSUE: reference to a compiler-generated field
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn, closure108.\u0024VB\u0024Local_FASOrders.OrdProdLn, false) != 0)
            {
              nullable2 = new bool?(false);
              nullable33 = nullable2;
            }
            else
              nullable33 = nullable14;
            nullable11 = nullable33;
            bool? nullable34;
            if (!nullable11.HasValue)
            {
              nullable34 = new bool?();
            }
            else
            {
              nullable10 = new bool?(!nullable11.GetValueOrDefault());
              nullable34 = nullable10;
            }
            nullable9 = nullable34;
            if (nullable9.GetValueOrDefault())
            {
              nullable18 = ordFasExt.FASDueDt;
              bool? nullable12 = nullable18.HasValue ? new bool?(DateTime.Compare(nullable18.GetValueOrDefault(), t2) == 0) : new bool?();
              // ISSUE: reference to a compiler-generated field
              bool? nullable13 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASAsmblLn, Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.FASAsmblLn.Trim(), 5), false) == 0 ? nullable12 : new bool?(false);
              // ISSUE: reference to a compiler-generated field
              int fasUnfilledQty3 = closure108.\u0024VB\u0024Local_FASOrders.FASUnfilledQty;
              int? fasUnfilledQty4 = ordFasExt.FASUnfilledQty;
              bool? nullable35;
              bool? nullable36;
              if (!fasUnfilledQty4.HasValue)
              {
                nullable36 = new bool?();
              }
              else
              {
                nullable35 = new bool?(fasUnfilledQty4.GetValueOrDefault() == fasUnfilledQty3);
                nullable36 = nullable35;
              }
              bool? nullable37 = nullable36;
              bool? nullable38 = !nullable13.HasValue || nullable13.GetValueOrDefault() ? (nullable37.HasValue ? (nullable37.GetValueOrDefault() ? nullable13 : new bool?(false)) : new bool?()) : new bool?(false);
              // ISSUE: reference to a compiler-generated field
              bool? nullable39 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdProdLn, Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdProdLn.Trim(), 4), false) == 0 ? nullable38 : new bool?(false);
              // ISSUE: reference to a compiler-generated field
              int fasOrdQty3 = closure108.\u0024VB\u0024Local_FASOrders.FASOrdQty;
              int? nullable40 = ordFasExt.FASOrdQty;
              bool? nullable41;
              bool? nullable42;
              if (!nullable40.HasValue)
              {
                nullable42 = new bool?();
              }
              else
              {
                nullable41 = new bool?(nullable40.GetValueOrDefault() == fasOrdQty3);
                nullable42 = nullable41;
              }
              bool? nullable43 = nullable42;
              bool? nullable44 = !nullable39.HasValue || nullable39.GetValueOrDefault() ? (nullable43.HasValue ? (nullable43.GetValueOrDefault() ? nullable39 : new bool?(false)) : new bool?()) : new bool?(false);
              // ISSUE: reference to a compiler-generated field
              bool? nullable45 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.FASWorkCtr, Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.FASWorkCtr.Trim(), 10), false) == 0 ? nullable44 : new bool?(false);
              // ISSUE: reference to a compiler-generated field
              bool? nullable46 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdCatlgNbr, Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr.Trim(), 34), false) == 0 ? nullable45 : new bool?(false);
              // ISSUE: reference to a compiler-generated field
              bool? nullable47 = Microsoft.VisualBasic.CompilerServices.Operators.CompareString(ordFasExt.OrdMfgPartNbr, Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdMfgPartNbr.Trim(), 15), false) == 0 ? nullable46 : new bool?(false);
              if ((nullable47.HasValue ? new bool?(!nullable47.GetValueOrDefault()) : new bool?()).GetValueOrDefault())
              {
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASAsmblLn = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.FASAsmblLn.Trim(), 5);
                ordFasExt.FASDueDt = (DateTime?) t2;
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASUnfilledQty = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASUnfilledQty;
                // ISSUE: reference to a compiler-generated field
                ordFasExt.OrdProdLn = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdProdLn.Trim(), 4);
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASOrdQty = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASOrdQty;
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASWorkCtr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.FASWorkCtr.Trim(), 10);
                // ISSUE: reference to a compiler-generated field
                ordFasExt.OrdCatlgNbr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr.Trim(), 34);
                // ISSUE: reference to a compiler-generated field
                ordFasExt.OrdMfgPartNbr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdMfgPartNbr.Trim(), 15);
                flag1 = true;
              }
              // ISSUE: reference to a compiler-generated field
              int fasCmplQty2 = closure108.\u0024VB\u0024Local_FASOrders.FASCmplQty;
              nullable40 = ordFasExt.FASCmplQty;
              bool? nullable48;
              if (!nullable40.HasValue)
              {
                nullable48 = new bool?();
              }
              else
              {
                nullable35 = new bool?(fasCmplQty2 > nullable40.GetValueOrDefault());
                nullable48 = nullable35;
              }
              nullable41 = nullable48;
              if (nullable41.GetValueOrDefault())
              {
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASCmplQty = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASCmplQty;
                flag1 = true;
              }
              // ISSUE: reference to a compiler-generated field
              int fasPrgrsPnt3 = closure108.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
              nullable40 = ordFasExt.FASPrgrsPnt;
              bool? nullable49;
              if (!nullable40.HasValue)
              {
                nullable49 = new bool?();
              }
              else
              {
                nullable35 = new bool?(nullable40.GetValueOrDefault() < fasPrgrsPnt3);
                nullable49 = nullable35;
              }
              nullable41 = nullable49;
              if (nullable41.GetValueOrDefault())
              {
                // ISSUE: reference to a compiler-generated field
                ordFasExt.FASPrgrsPnt = (int?) closure108.\u0024VB\u0024Local_FASOrders.FASPrgrsPnt;
                // ISSUE: reference to a compiler-generated field
                ordFasExt.OrdCdDesc = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdCdDesc.Trim(), 50);
                flag1 = true;
              }
              if (ordFasExt.OrdCatlgNbr.Length == 0)
              {
                // ISSUE: reference to a compiler-generated field
                ordFasExt.OrdCatlgNbr = Microsoft.VisualBasic.Strings.Left(closure108.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr.Trim(), 34);
                flag1 = true;
              }
              num1 = !flag1 ? 32765 : (se0085CtEntities1.SaveChanges() <= 0 ? 0 : 32764);
            }
            else
              num1 = 32765;
          }
          else
            num1 = (int) short.MaxValue;
        }
        se0085CtEntities1.Database.Connection.Close();
      }
      return num1;
    }

    public int rtnPZ4OrderDates()
    {
      return 1;
    }

    //public int Set221OEMBuildReq(scOrderData Q2COrders, DateTime RequestByDt, em221BldReqtype RequestType)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__109 closure109 = new clsFASorders._Closure\u0024__109();
    //  // ISSUE: reference to a compiler-generated field
    //  closure109.\u0024VB\u0024Local_Q2COrders = Q2COrders;
    //  int num = 0;
    //  // ISSUE: reference to a compiler-generated field
    //  closure109.\u0024VB\u0024Local_ldFASAssemLn = "x";
    //  bool flag = false;
    //  em221BreakerType em221BreakerType;
    //  switch (RequestType)
    //  {
    //    case em221BldReqtype.Cancel221CBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure109.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      flag = false;
    //      break;
    //    case em221BldReqtype.Cradle221CBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure109.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      flag = true;
    //      break;
    //    case em221BldReqtype.Cancel221BDOBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure109.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag = false;
    //      em221BreakerType = em221BreakerType.Drawout;
    //      break;
    //    case em221BldReqtype.Breaker221BDOBuildreq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure109.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag = true;
    //      em221BreakerType = em221BreakerType.Drawout;
    //      break;
    //    case em221BldReqtype.Cancel221BFixBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure109.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag = false;
    //      em221BreakerType = em221BreakerType.Fixed;
    //      break;
    //    case em221BldReqtype.Breaker221BFixBuildreq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure109.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag = true;
    //      em221BreakerType = em221BreakerType.Fixed;
    //      break;
    //  }
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    // ISSUE: method reference
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: reference to a compiler-generated field
    //    IQueryable<OrdFASExt> source = (IQueryable<OrdFASExt>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) (data => Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.o.OrderFO, closure109.\u0024VB\u0024Local_Q2COrders.OrderFO, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineNum, closure109.\u0024VB\u0024Local_Q2COrders.OrderLineNum, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineSL, closure109.\u0024VB\u0024Local_Q2COrders.OrderLineSL, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.l.OrderLineSS, closure109.\u0024VB\u0024Local_Q2COrders.OrderLineSS, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.f.FASAsmblLn, closure109.\u0024VB\u0024Local_ldFASAssemLn, false) == 0)), (Expression<Func<M0, M1>>) (data => data.f));
    //    if (source.Count<OrdFASExt>() == 0)
    //      num = 32766;
    //    else if (source.Count<OrdFASExt>() > 0)
    //    {
    //      IEnumerator<OrdFASExt> enumerator;
    //      try
    //      {
    //        enumerator = source.GetEnumerator();
    //        while (enumerator.MoveNext())
    //        {
    //          OrdFASExt current = enumerator.Current;
    //          current.OrdBuildReq = (bool?) flag;
    //          current.OrdBldReqDt = (DateTime?) DateTime.Now;
    //          current.FASDueDt = (DateTime?) RequestByDt;
    //        }
    //      }
    //      finally
    //      {
    //        if (enumerator != null)
    //          enumerator.Dispose();
    //      }
    //      num = se0085CtEntities1.SaveChanges();
    //    }
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return num;
    //}

    //public List<scFASBldReqInfo> Set221InternalBuildReq(scOrderData Q2COrders, int RequestSection, DateTime RequestByDt, em221BldReqtype RequestType)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__110 closure110 = new clsFASorders._Closure\u0024__110();
    //  // ISSUE: reference to a compiler-generated field
    //  closure110.\u0024VB\u0024Local_Q2COrders = Q2COrders;
    //  List<scFASBldReqInfo> scFasBldReqInfoList = (List<scFASBldReqInfo>) null;
    //  bool flag1 = false;
    //  if (RequestSection == 0)
    //  {
    //    // ISSUE: reference to a compiler-generated field
    //    closure110.\u0024VB\u0024Local_ldSectStart = 1;
    //    // ISSUE: reference to a compiler-generated field
    //    closure110.\u0024VB\u0024Local_ldSectEnd = (int) short.MaxValue;
    //  }
    //  else
    //  {
    //    // ISSUE: reference to a compiler-generated field
    //    closure110.\u0024VB\u0024Local_ldSectStart = RequestSection;
    //    // ISSUE: reference to a compiler-generated field
    //    closure110.\u0024VB\u0024Local_ldSectEnd = RequestSection;
    //  }
    //  // ISSUE: reference to a compiler-generated field
    //  closure110.\u0024VB\u0024Local_ldFASAssemLn = "x";
    //  bool flag2 = false;
    //  em221BreakerType em221BreakerType;
    //  switch (RequestType)
    //  {
    //    case em221BldReqtype.Cancel221CBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure110.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      flag2 = false;
    //      em221BreakerType = em221BreakerType.NotApplicable;
    //      break;
    //    case em221BldReqtype.Cradle221CBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure110.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      flag2 = true;
    //      em221BreakerType = em221BreakerType.NotApplicable;
    //      break;
    //    case em221BldReqtype.Cancel221BDOBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure110.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = false;
    //      em221BreakerType = em221BreakerType.Drawout;
    //      break;
    //    case em221BldReqtype.Breaker221BDOBuildreq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure110.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = true;
    //      em221BreakerType = em221BreakerType.Drawout;
    //      break;
    //    case em221BldReqtype.Cancel221BFixBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure110.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = false;
    //      em221BreakerType = em221BreakerType.Fixed;
    //      break;
    //    case em221BldReqtype.Breaker221BFixBuildreq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure110.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = true;
    //      em221BreakerType = em221BreakerType.Fixed;
    //      break;
    //  }
    //  List<int> intList = new List<int>();
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    switch (em221BreakerType)
    //    {
    //      case em221BreakerType.NotApplicable:
    //        ParameterExpression parameterExpression1;
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        IQueryable<int?> source1 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.And((Expression) Expression.And(Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.o.OrderFO, closure110.\u0024VB\u0024Local_Q2COrders.OrderFO, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineNum, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineNum, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSL, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSL, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSS, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSS, false) == 0, (Expression) Expression.And((Expression) Expression.GreaterThanOrEqual(\u0024VB\u0024It.s.OrdSectsNum, closure110.\u0024VB\u0024Local_ldSectStart, true, (MethodInfo) null), (Expression) Expression.LessThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure110, typeof (clsFASorders._Closure\u0024__110)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110.\u0024VB\u0024Local_ldSectEnd))), true, (MethodInfo) null))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure110, typeof (clsFASorders._Closure\u0024__110)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.d.OrdBldReqShipSpt));
    //        IEnumerator<int?> enumerator1;
    //        if (source1 != null)
    //        {
    //          if (source1.Count<int?>() > 0)
    //          {
    //            try
    //            {
    //              enumerator1 = source1.Distinct<int?>().GetEnumerator();
    //              while (enumerator1.MoveNext())
    //              {
    //                int current = (int) enumerator1.Current;
    //                intList.Add(current);
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator1 != null)
    //                enumerator1.Dispose();
    //            }
    //          }
    //        }
    //        break;
    //      case em221BreakerType.Drawout:
    //        ParameterExpression parameterExpression2;
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        IQueryable<int?> source2 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.o.OrderFO, closure110.\u0024VB\u0024Local_Q2COrders.OrderFO, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineNum, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineNum, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSL, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSL, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSS, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSS, false) == 0, (Expression) Expression.And((Expression) Expression.GreaterThanOrEqual(\u0024VB\u0024It.s.OrdSectsNum, closure110.\u0024VB\u0024Local_ldSectStart, true, (MethodInfo) null), (Expression) Expression.LessThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure110, typeof (clsFASorders._Closure\u0024__110)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110.\u0024VB\u0024Local_ldSectEnd))), true, (MethodInfo) null))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure110, typeof (clsFASorders._Closure\u0024__110)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.Substring)), new Expression[2]{ (Expression) Expression.Constant((object) 5, typeof (int)), (Expression) Expression.Constant((object) 1, typeof (int)) }), (Expression) Expression.Constant((object) "R", typeof (string)), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), new ParameterExpression[1]{ parameterExpression2 })), (Expression<Func<M0, M1>>) (data => data.d.OrdBldReqShipSpt));
    //        IEnumerator<int?> enumerator2;
    //        if (source2 != null)
    //        {
    //          if (source2.Count<int?>() > 0)
    //          {
    //            try
    //            {
    //              enumerator2 = source2.Distinct<int?>().GetEnumerator();
    //              while (enumerator2.MoveNext())
    //              {
    //                int current = (int) enumerator2.Current;
    //                intList.Add(current);
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator2 != null)
    //                enumerator2.Dispose();
    //            }
    //          }
    //        }
    //        break;
    //      case em221BreakerType.Fixed:
    //        ParameterExpression parameterExpression3;
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        IQueryable<int?> source3 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.o.OrderFO, closure110.\u0024VB\u0024Local_Q2COrders.OrderFO, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineNum, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineNum, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSL, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSL, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSS, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSS, false) == 0, (Expression) Expression.And((Expression) Expression.GreaterThanOrEqual(\u0024VB\u0024It.s.OrdSectsNum, closure110.\u0024VB\u0024Local_ldSectStart, true, (MethodInfo) null), (Expression) Expression.LessThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure110, typeof (clsFASorders._Closure\u0024__110)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110.\u0024VB\u0024Local_ldSectEnd))), true, (MethodInfo) null))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure110, typeof (clsFASorders._Closure\u0024__110)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), (Expression) Expression.NotEqual((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.Substring)), new Expression[2]{ (Expression) Expression.Constant((object) 5, typeof (int)), (Expression) Expression.Constant((object) 1, typeof (int)) }), (Expression) Expression.Constant((object) "R", typeof (string)), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), new ParameterExpression[1]{ parameterExpression3 })), (Expression<Func<M0, M1>>) (data => data.d.OrdBldReqShipSpt));
    //        IEnumerator<int?> enumerator3;
    //        if (source3 != null)
    //        {
    //          if (source3.Count<int?>() > 0)
    //          {
    //            try
    //            {
    //              enumerator3 = source3.Distinct<int?>().GetEnumerator();
    //              while (enumerator3.MoveNext())
    //              {
    //                int current = (int) enumerator3.Current;
    //                intList.Add(current);
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator3 != null)
    //                enumerator3.Dispose();
    //            }
    //          }
    //        }
    //        break;
    //    }
    //    if (intList.Count > 0)
    //    {
    //      scFasBldReqInfoList = new List<scFASBldReqInfo>();
    //      List<int>.Enumerator enumerator4;
    //      try
    //      {
    //        enumerator4 = intList.GetEnumerator();
    //        while (enumerator4.MoveNext())
    //        {
    //          // ISSUE: object of a compiler-generated type is created
    //          // ISSUE: variable of a compiler-generated type
    //          clsFASorders._Closure\u0024__110._Closure\u0024__111 other1 = new clsFASorders._Closure\u0024__110._Closure\u0024__111(other1);
    //          // ISSUE: reference to a compiler-generated field
    //          other1.\u0024VB\u0024Local_ldShpSpt = enumerator4.Current;
    //          ParameterExpression parameterExpression4;
    //          // ISSUE: method reference
    //          // ISSUE: reference to a compiler-generated field
    //          // ISSUE: method reference
    //          // ISSUE: reference to a compiler-generated field
    //          // ISSUE: method reference
    //          // ISSUE: reference to a compiler-generated field
    //          // ISSUE: method reference
    //          // ISSUE: reference to a compiler-generated field
    //          // ISSUE: reference to a compiler-generated field
    //          // ISSUE: method reference
    //          // ISSUE: method reference
    //          // ISSUE: type reference
    //          // ISSUE: method reference
    //          // ISSUE: field reference
    //          IQueryable<VB\u0024AnonymousType_52<int, string, string, int, int?, bool?, DateTime?, int, int?>> source4 = Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((bool?) (Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.o.OrderFO, closure110.\u0024VB\u0024Local_Q2COrders.OrderFO, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineNum, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineNum, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSL, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSL, false) == 0 & Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), \u0024VB\u0024It.l.OrderLineSS, closure110.\u0024VB\u0024Local_Q2COrders.OrderLineSS, false) == 0), (Expression) Expression.Equal(\u0024VB\u0024It.d.OrdBldReqShipSpt, checked ((int?) other1.\u0024VB\u0024Local_ldShpSpt), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure110, typeof (clsFASorders._Closure\u0024__110)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression4 })), (Expression<Func<M0, M1>>) (data => new{ OrdFASExtId = data.f.OrdFASExtId, OrdCatlgNbr = data.f.OrdCatlgNbr, OrdMfgPartNbr = data.f.OrdMfgPartNbr, OrdFASExtDtlId = data.d.OrdFASExtDtlId, OrdBldReqShipSpt = data.d.OrdBldReqShipSpt, OrdBldRequest = data.d.OrdBldRequest, OrdBldRequiredDt = data.d.OrdBldRequiredDt, OrdSectsNum = data.s.OrdSectsNum, OrdBldReqSectQty = data.d.OrdBldReqSectQty }));
    //          IEnumerator<VB\u0024AnonymousType_52<int, string, string, int, int?, bool?, DateTime?, int, int?>> enumerator5;
    //          if (source4.Count() > 0)
    //          {
    //            try
    //            {
    //              enumerator5 = source4.GetEnumerator();
    //              while (enumerator5.MoveNext())
    //              {
    //                // ISSUE: object of a compiler-generated type is created
    //                // ISSUE: variable of a compiler-generated type
    //                clsFASorders._Closure\u0024__110._Closure\u0024__111._Closure\u0024__112 other2 = new clsFASorders._Closure\u0024__110._Closure\u0024__111._Closure\u0024__112(other2);
    //                var current1 = enumerator5.Current;
    //                // ISSUE: reference to a compiler-generated field
    //                other2.\u0024VB\u0024Local_ldOrdFASExtId = current1.OrdFASExtId;
    //                // ISSUE: reference to a compiler-generated field
    //                other2.\u0024VB\u0024Local_ldOrdFASExtDtlId = current1.OrdFASExtDtlId;
    //                bool? ordBldRequest = current1.OrdBldRequest;
    //                bool? nullable1 = ordBldRequest.HasValue ? new bool?(ordBldRequest.GetValueOrDefault() == flag2) : new bool?();
    //                DateTime? ordBldRequiredDt = current1.OrdBldRequiredDt;
    //                bool? nullable2 = ordBldRequiredDt.HasValue ? new bool?(DateTime.Compare(ordBldRequiredDt.GetValueOrDefault(), RequestByDt) == 0) : new bool?();
    //                bool? nullable3 = !nullable1.HasValue || nullable1.GetValueOrDefault() ? (nullable2.HasValue ? (nullable2.GetValueOrDefault() ? nullable1 : new bool?(false)) : new bool?()) : new bool?(false);
    //                if ((nullable3.HasValue ? new bool?(!nullable3.GetValueOrDefault()) : new bool?()).GetValueOrDefault())
    //                {
    //                  ParameterExpression parameterExpression5;
    //                  // ISSUE: reference to a compiler-generated field
    //                  // ISSUE: method reference
    //                  // ISSUE: field reference
    //                  IQueryable<OrdFASExtDtl> queryable = (IQueryable<OrdFASExtDtl>) Queryable.Select<OrdFASExtDtl, OrdFASExtDtl>(Queryable.Where<OrdFASExtDtl>((IQueryable<M0>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, bool>>) Expression.Lambda<Func<OrdFASExtDtl, bool>>((Expression) Expression.And((Expression) Expression.Equal(d.OrdFASExt.OrdFASExtId, other2.\u0024VB\u0024Local_ldOrdFASExtId, true, (MethodInfo) null), (Expression) Expression.Equal((Expression) Expression.Property((Expression) parameterExpression5, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExtDtl.get_OrdFASExtDtlId))), (Expression) Expression.Field((Expression) Expression.Constant((object) other2, typeof (clsFASorders._Closure\u0024__110._Closure\u0024__111._Closure\u0024__112)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__110._Closure\u0024__111._Closure\u0024__112.\u0024VB\u0024Local_ldOrdFASExtDtlId))), true, (MethodInfo) null)), new ParameterExpression[1]{ parameterExpression5 })), (Expression<Func<M0, M1>>) (d => d));
    //                  IEnumerator<OrdFASExtDtl> enumerator6;
    //                  try
    //                  {
    //                    enumerator6 = queryable.GetEnumerator();
    //                    while (enumerator6.MoveNext())
    //                    {
    //                      OrdFASExtDtl current2 = enumerator6.Current;
    //                      current2.OrdBldRequest = (bool?) flag2;
    //                      current2.OrdBldRequestedDt = (DateTime?) DateTime.Now;
    //                      current2.OrdBldRequiredDt = (DateTime?) RequestByDt;
    //                      scFasBldReqInfoList.Add(new scFASBldReqInfo()
    //                      {
    //                        OrdCatlgNbr = current1.OrdCatlgNbr,
    //                        OrdMfgPartNbr = current1.OrdMfgPartNbr,
    //                        OrdSectsNum = current1.OrdSectsNum,
    //                        OrdBldReqSectQty = (int) current1.OrdBldReqSectQty,
    //                        OrdBldRequiredDt = RequestByDt
    //                      });
    //                    }
    //                  }
    //                  finally
    //                  {
    //                    if (enumerator6 != null)
    //                      enumerator6.Dispose();
    //                  }
    //                }
    //                else
    //                  flag1 = true;
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator5 != null)
    //                enumerator5.Dispose();
    //            }
    //          }
    //        }
    //      }
    //      finally
    //      {
    //        enumerator4.Dispose();
    //      }
    //      se0085CtEntities1.SaveChanges();
    //    }
    //    if (scFasBldReqInfoList == null & flag1)
    //    {
    //      scFASBldReqInfo scFasBldReqInfo = new scFASBldReqInfo();
    //      scFasBldReqInfoList.Add(scFasBldReqInfo);
    //    }
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scFasBldReqInfoList;
    //}

    //public List<scFASBldReqInfo> Set221AutoInternalBuildReq(int OrderLineId, int RequestSection, DateTime RequestByDt, em221BldReqtype RequestType)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__113 closure113 = new clsFASorders._Closure\u0024__113();
    //  // ISSUE: reference to a compiler-generated field
    //  closure113.\u0024VB\u0024Local_OrderLineId = OrderLineId;
    //  List<scFASBldReqInfo> scFasBldReqInfoList = (List<scFASBldReqInfo>) null;
    //  bool flag1 = false;
    //  if (RequestSection == 0)
    //  {
    //    // ISSUE: reference to a compiler-generated field
    //    closure113.\u0024VB\u0024Local_ldSectStart = 1;
    //    // ISSUE: reference to a compiler-generated field
    //    closure113.\u0024VB\u0024Local_ldSectEnd = (int) short.MaxValue;
    //  }
    //  else
    //  {
    //    // ISSUE: reference to a compiler-generated field
    //    closure113.\u0024VB\u0024Local_ldSectStart = RequestSection;
    //    // ISSUE: reference to a compiler-generated field
    //    closure113.\u0024VB\u0024Local_ldSectEnd = RequestSection;
    //  }
    //  // ISSUE: reference to a compiler-generated field
    //  closure113.\u0024VB\u0024Local_ldFASAssemLn = "x";
    //  bool flag2 = false;
    //  em221BreakerType em221BreakerType;
    //  switch (RequestType)
    //  {
    //    case em221BldReqtype.Cancel221CBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure113.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      flag2 = false;
    //      em221BreakerType = em221BreakerType.NotApplicable;
    //      break;
    //    case em221BldReqtype.Cradle221CBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure113.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      flag2 = true;
    //      em221BreakerType = em221BreakerType.NotApplicable;
    //      break;
    //    case em221BldReqtype.Cancel221BDOBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure113.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = false;
    //      em221BreakerType = em221BreakerType.Drawout;
    //      break;
    //    case em221BldReqtype.Breaker221BDOBuildreq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure113.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = true;
    //      em221BreakerType = em221BreakerType.Drawout;
    //      break;
    //    case em221BldReqtype.Cancel221BFixBuildReq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure113.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = false;
    //      em221BreakerType = em221BreakerType.Fixed;
    //      break;
    //    case em221BldReqtype.Breaker221BFixBuildreq:
    //      // ISSUE: reference to a compiler-generated field
    //      closure113.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      flag2 = true;
    //      em221BreakerType = em221BreakerType.Fixed;
    //      break;
    //  }
    //  List<int> intList = new List<int>();
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    switch (em221BreakerType)
    //    {
    //      case em221BreakerType.NotApplicable:
    //        ParameterExpression parameterExpression1;
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        IQueryable<int?> source1 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineId, closure113.\u0024VB\u0024Local_OrderLineId, true, (MethodInfo) null), (Expression) Expression.And((Expression) Expression.GreaterThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldSectStart))), true, (MethodInfo) null), (Expression) Expression.LessThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldSectEnd))), true, (MethodInfo) null))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.d.OrdBldReqShipSpt));
    //        IEnumerator<int?> enumerator1;
    //        if (source1 != null)
    //        {
    //          if (source1.Count<int?>() > 0)
    //          {
    //            try
    //            {
    //              enumerator1 = source1.Distinct<int?>().GetEnumerator();
    //              while (enumerator1.MoveNext())
    //              {
    //                int current = (int) enumerator1.Current;
    //                intList.Add(current);
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator1 != null)
    //                enumerator1.Dispose();
    //            }
    //          }
    //        }
    //        break;
    //      case em221BreakerType.Drawout:
    //        ParameterExpression parameterExpression2;
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        IQueryable<int?> source2 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineId, closure113.\u0024VB\u0024Local_OrderLineId, true, (MethodInfo) null), (Expression) Expression.And((Expression) Expression.GreaterThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldSectStart))), true, (MethodInfo) null), (Expression) Expression.LessThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldSectEnd))), true, (MethodInfo) null))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.Substring)), new Expression[2]{ (Expression) Expression.Constant((object) 5, typeof (int)), (Expression) Expression.Constant((object) 1, typeof (int)) }), (Expression) Expression.Constant((object) "R", typeof (string)), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), new ParameterExpression[1]{ parameterExpression2 })), (Expression<Func<M0, M1>>) (data => data.d.OrdBldReqShipSpt));
    //        IEnumerator<int?> enumerator2;
    //        if (source2 != null)
    //        {
    //          if (source2.Count<int?>() > 0)
    //          {
    //            try
    //            {
    //              enumerator2 = source2.Distinct<int?>().GetEnumerator();
    //              while (enumerator2.MoveNext())
    //              {
    //                int current = (int) enumerator2.Current;
    //                intList.Add(current);
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator2 != null)
    //                enumerator2.Dispose();
    //            }
    //          }
    //        }
    //        break;
    //      case em221BreakerType.Fixed:
    //        ParameterExpression parameterExpression3;
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: field reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        // ISSUE: type reference
    //        // ISSUE: method reference
    //        // ISSUE: method reference
    //        IQueryable<int?> source3 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineId, closure113.\u0024VB\u0024Local_OrderLineId, true, (MethodInfo) null), (Expression) Expression.And((Expression) Expression.GreaterThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldSectStart))), true, (MethodInfo) null), (Expression) Expression.LessThanOrEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldSectEnd))), true, (MethodInfo) null))), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), (Expression) Expression.NotEqual((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.Substring)), new Expression[2]{ (Expression) Expression.Constant((object) 5, typeof (int)), (Expression) Expression.Constant((object) 1, typeof (int)) }), (Expression) Expression.Constant((object) "R", typeof (string)), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), new ParameterExpression[1]{ parameterExpression3 })), (Expression<Func<M0, M1>>) (data => data.d.OrdBldReqShipSpt));
    //        IEnumerator<int?> enumerator3;
    //        if (source3 != null)
    //        {
    //          if (source3.Count<int?>() > 0)
    //          {
    //            try
    //            {
    //              enumerator3 = source3.Distinct<int?>().GetEnumerator();
    //              while (enumerator3.MoveNext())
    //              {
    //                int current = (int) enumerator3.Current;
    //                intList.Add(current);
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator3 != null)
    //                enumerator3.Dispose();
    //            }
    //          }
    //        }
    //        break;
    //    }
    //    if (intList.Count > 0)
    //    {
    //      scFasBldReqInfoList = new List<scFASBldReqInfo>();
    //      List<int>.Enumerator enumerator4;
    //      try
    //      {
    //        enumerator4 = intList.GetEnumerator();
    //        while (enumerator4.MoveNext())
    //        {
    //          // ISSUE: object of a compiler-generated type is created
    //          // ISSUE: variable of a compiler-generated type
    //          clsFASorders._Closure\u0024__113._Closure\u0024__114 other1 = new clsFASorders._Closure\u0024__113._Closure\u0024__114(other1);
    //          // ISSUE: reference to a compiler-generated field
    //          other1.\u0024VB\u0024Local_ldShpSpt = enumerator4.Current;
    //          ParameterExpression parameterExpression4;
    //          // ISSUE: reference to a compiler-generated field
    //          // ISSUE: method reference
    //          // ISSUE: type reference
    //          // ISSUE: method reference
    //          // ISSUE: field reference
    //          // ISSUE: method reference
    //          // ISSUE: method reference
    //          // ISSUE: type reference
    //          // ISSUE: method reference
    //          // ISSUE: field reference
    //          // ISSUE: method reference
    //          // ISSUE: type reference
    //          // ISSUE: method reference
    //          IQueryable<VB\u0024AnonymousType_52<int, string, string, int, int?, bool?, DateTime?, int, int?>> source4 = Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((data, d) => new{ \u0024VB\u0024It1 = data, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Convert((Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineId, closure113.\u0024VB\u0024Local_OrderLineId, true, (MethodInfo) null), typeof (bool?)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_d), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExtDtl.get_OrdBldReqShipSpt))), (Expression) Expression.ConvertChecked((Expression) Expression.Field((Expression) Expression.Constant((object) other1, typeof (clsFASorders._Closure\u0024__113._Closure\u0024__114)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113._Closure\u0024__114.\u0024VB\u0024Local_ldShpSpt))), typeof (int?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_f), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure113, typeof (clsFASorders._Closure\u0024__113)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>.get_d), __typeref (VB\u0024AnonymousType_51<SEOrder, OrderLine, OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExtDtl.get_OrdBldRequest))), (Expression) Expression.Convert((Expression) Expression.Constant((object) false, typeof (bool)), typeof (bool?)), true, (MethodInfo) null)), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression4 })), (Expression<Func<M0, M1>>) (data => new{ OrdFASExtId = data.f.OrdFASExtId, OrdCatlgNbr = data.f.OrdCatlgNbr, OrdMfgPartNbr = data.f.OrdMfgPartNbr, OrdFASExtDtlId = data.d.OrdFASExtDtlId, OrdBldReqShipSpt = data.d.OrdBldReqShipSpt, OrdBldRequest = data.d.OrdBldRequest, OrdBldRequiredDt = data.d.OrdBldRequiredDt, OrdSectsNum = data.s.OrdSectsNum, OrdBldReqSectQty = data.d.OrdBldReqSectQty }));
    //          IEnumerator<VB\u0024AnonymousType_52<int, string, string, int, int?, bool?, DateTime?, int, int?>> enumerator5;
    //          if (source4.Count() > 0)
    //          {
    //            try
    //            {
    //              enumerator5 = source4.GetEnumerator();
    //              while (enumerator5.MoveNext())
    //              {
    //                // ISSUE: object of a compiler-generated type is created
    //                // ISSUE: variable of a compiler-generated type
    //                clsFASorders._Closure\u0024__113._Closure\u0024__114._Closure\u0024__115 other2 = new clsFASorders._Closure\u0024__113._Closure\u0024__114._Closure\u0024__115(other2);
    //                var current1 = enumerator5.Current;
    //                // ISSUE: reference to a compiler-generated field
    //                other2.\u0024VB\u0024Local_ldOrdFASExtId = current1.OrdFASExtId;
    //                // ISSUE: reference to a compiler-generated field
    //                other2.\u0024VB\u0024Local_ldOrdFASExtDtlId = current1.OrdFASExtDtlId;
    //                bool? ordBldRequest = current1.OrdBldRequest;
    //                bool? nullable1 = ordBldRequest.HasValue ? new bool?(ordBldRequest.GetValueOrDefault() == flag2) : new bool?();
    //                DateTime? ordBldRequiredDt = current1.OrdBldRequiredDt;
    //                bool? nullable2 = ordBldRequiredDt.HasValue ? new bool?(DateTime.Compare(ordBldRequiredDt.GetValueOrDefault(), RequestByDt) == 0) : new bool?();
    //                bool? nullable3 = !nullable1.HasValue || nullable1.GetValueOrDefault() ? (nullable2.HasValue ? (nullable2.GetValueOrDefault() ? nullable1 : new bool?(false)) : new bool?()) : new bool?(false);
    //                if ((nullable3.HasValue ? new bool?(!nullable3.GetValueOrDefault()) : new bool?()).GetValueOrDefault())
    //                {
    //                  ParameterExpression parameterExpression5;
    //                  // ISSUE: reference to a compiler-generated field
    //                  // ISSUE: method reference
    //                  // ISSUE: field reference
    //                  IQueryable<OrdFASExtDtl> queryable = (IQueryable<OrdFASExtDtl>) Queryable.Select<OrdFASExtDtl, OrdFASExtDtl>(Queryable.Where<OrdFASExtDtl>((IQueryable<M0>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, bool>>) Expression.Lambda<Func<OrdFASExtDtl, bool>>((Expression) Expression.And((Expression) Expression.Equal(d.OrdFASExt.OrdFASExtId, other2.\u0024VB\u0024Local_ldOrdFASExtId, true, (MethodInfo) null), (Expression) Expression.Equal((Expression) Expression.Property((Expression) parameterExpression5, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExtDtl.get_OrdFASExtDtlId))), (Expression) Expression.Field((Expression) Expression.Constant((object) other2, typeof (clsFASorders._Closure\u0024__113._Closure\u0024__114._Closure\u0024__115)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__113._Closure\u0024__114._Closure\u0024__115.\u0024VB\u0024Local_ldOrdFASExtDtlId))), true, (MethodInfo) null)), new ParameterExpression[1]{ parameterExpression5 })), (Expression<Func<M0, M1>>) (d => d));
    //                  IEnumerator<OrdFASExtDtl> enumerator6;
    //                  try
    //                  {
    //                    enumerator6 = queryable.GetEnumerator();
    //                    while (enumerator6.MoveNext())
    //                    {
    //                      OrdFASExtDtl current2 = enumerator6.Current;
    //                      current2.OrdBldRequest = (bool?) flag2;
    //                      current2.OrdBldRequestedDt = (DateTime?) DateTime.Now;
    //                      current2.OrdBldRequiredDt = (DateTime?) RequestByDt;
    //                      scFasBldReqInfoList.Add(new scFASBldReqInfo()
    //                      {
    //                        OrdCatlgNbr = current1.OrdCatlgNbr,
    //                        OrdMfgPartNbr = current1.OrdMfgPartNbr,
    //                        OrdSectsNum = current1.OrdSectsNum,
    //                        OrdBldReqSectQty = (int) current1.OrdBldReqSectQty,
    //                        OrdBldRequiredDt = RequestByDt
    //                      });
    //                    }
    //                  }
    //                  finally
    //                  {
    //                    if (enumerator6 != null)
    //                      enumerator6.Dispose();
    //                  }
    //                }
    //                else
    //                  flag1 = true;
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator5 != null)
    //                enumerator5.Dispose();
    //            }
    //          }
    //        }
    //      }
    //      finally
    //      {
    //        enumerator4.Dispose();
    //      }
    //      se0085CtEntities1.SaveChanges();
    //    }
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  if (scFasBldReqInfoList == null & flag1)
    //  {
    //    scFASBldReqInfo scFasBldReqInfo = new scFASBldReqInfo();
    //    scFasBldReqInfoList.Add(scFasBldReqInfo);
    //  }
    //  return scFasBldReqInfoList;
    //}

    //public List<scOrdFASExt> rtnFASBuildReq(clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__116 closure116 = new clsFASorders._Closure\u0024__116();
    //  List<scOrdFASExt> scOrdFasExtList = new List<scOrdFASExt>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure116.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure116.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure116.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scOrdFasExtList;
    //  }
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: field reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExt> source = (IQueryable<scOrdFASExt>) Queryable.Select((IQueryable<M0>) Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Equal(\u0024VB\u0024It.f.OrdBuildReq, (bool?) true, true, (MethodInfo) null), (Expression) Expression.GreaterThan((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASUnfilledQty))), (Expression) Expression.ConvertChecked((Expression) Expression.Constant((object) 0, typeof (int)), typeof (int?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure116, typeof (clsFASorders._Closure\u0024__116)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__116.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.OrdBldReqDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExt>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrderLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASUnfilledQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASUnfilledQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASWorkCtr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASWorkCtr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExt>() > 0)
    //      scOrdFasExtList = source.ToList<scOrdFASExt>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtList;
    //}

    //public List<scOrdFASExtGrid01> rtnFASBuildReqLongOEM(clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__117 closure117 = new clsFASorders._Closure\u0024__117();
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List = new List<scOrdFASExtGrid01>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure117.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure117.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure117.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scOrdFasExtGrid01List;
    //  }
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: field reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source = (IQueryable<scOrdFASExtGrid01>) Queryable.Select((IQueryable<M0>) Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Equal(\u0024VB\u0024It.f.OrdBuildReq, (bool?) true, true, (MethodInfo) null), (Expression) Expression.GreaterThan((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASUnfilledQty))), (Expression) Expression.ConvertChecked((Expression) Expression.Constant((object) 0, typeof (int)), typeof (int?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure117, typeof (clsFASorders._Closure\u0024__117)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__117.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.OrdBldReqDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineAssyStartDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineAssyStartDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineTargetDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineTargetDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineShipDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineShipDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemblyLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExtGrid01>() > 0)
    //      scOrdFasExtGrid01List = source.ToList<scOrdFASExtGrid01>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtGrid01List;
    //}

    //public List<scOrdFASExtGrid01> rtnFASBuildReqLongInternal(clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__118 closure118 = new clsFASorders._Closure\u0024__118();
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List1 = new List<scOrdFASExtGrid01>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure118.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure118.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure118.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scOrdFasExtGrid01List1;
    //  }
    //  // ISSUE: reference to a compiler-generated field
    //  closure118.\u0024VB\u0024Local_ldStartDate = DateTime.Today.AddDays(-14.0);
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: field reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source = (IQueryable<scOrdFASExtGrid01>) Queryable.Select<FASDtlReqSect, scOrdFASExtGrid01>((IQueryable<M0>) Queryable.ThenBy<FASDtlReqSect, DateTime?>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.OrderBy<FASDtlReqSect, string>(Queryable.Where<FASDtlReqSect>((IQueryable<M0>) se0085CtEntities1.FASDtlReqSects, (Expression<Func<M0, bool>>) Expression.Lambda<Func<FASDtlReqSect, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Equal(o.OrdBldRequest, (bool?) true, true, (MethodInfo) null), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure118, typeof (clsFASorders._Closure\u0024__118)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__118.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.GreaterThanOrEqual((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdBldRequiredDt))), (Expression) Expression.Convert((Expression) Expression.Field((Expression) Expression.Constant((object) closure118, typeof (clsFASorders._Closure\u0024__118)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__118.\u0024VB\u0024Local_ldStartDate))), typeof (DateTime?)), true, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime.op_GreaterThanOrEqual)))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (o => o.OrderFO)), (Expression<Func<M0, M1>>) (o => o.OrderLineNum)), (Expression<Func<M0, M1>>) (o => o.OrderLineSL)), (Expression<Func<M0, M1>>) (o => o.OrderLineSS)), (Expression<Func<M0, M1>>) (o => o.FASOrdNbr)), (Expression<Func<M0, M1>>) (o => o.OrdBldRequiredDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<FASDtlReqSect, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemLineAbbrv)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_AssemLineAbbrv)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_TotReqQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_TotReqQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdBldRequiredDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdBldRequiredDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdProdLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdBldReqShipSpt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdBldReqShipSpt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdSectsNum)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdSectsNum))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExtGrid01>() > 0)
    //    {
    //      List<scOrdFASExtGrid01> scOrdFasExtGrid01List2 = new List<scOrdFASExtGrid01>();
    //      List<scOrdFASExtGrid01> list = source.ToList<scOrdFASExtGrid01>();
    //      string Left = "";
    //      List<scOrdFASExtGrid01>.Enumerator enumerator;
    //      try
    //      {
    //        enumerator = list.GetEnumerator();
    //        while (enumerator.MoveNext())
    //        {
    //          scOrdFASExtGrid01 current = enumerator.Current;
    //          int num;
    //          if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left, current.FASOrdNbr, false) != 0)
    //          {
    //            Left = current.FASOrdNbr;
    //            num = current.FASCmplQty;
    //          }
    //          if (num < current.TotReqQty)
    //          {
    //            scOrdFasExtGrid01List1.Add(current);
    //            current.FASCmplQty = num;
    //            num = 0;
    //          }
    //          else if (num >= current.TotReqQty)
    //          {
    //            current.FASCmplQty = current.TotReqQty;
    //            checked { num -= current.TotReqQty; }
    //          }
    //        }
    //      }
    //      finally
    //      {
    //        enumerator.Dispose();
    //      }
    //    }
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtGrid01List1;
    //}

    //public List<scOrdFASExtGrid01> rtnFASBuildCompleteInternal(clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__119 closure119 = new clsFASorders._Closure\u0024__119();
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List1 = new List<scOrdFASExtGrid01>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure119.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure119.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure119.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scOrdFasExtGrid01List1;
    //  }
    //  // ISSUE: reference to a compiler-generated field
    //  closure119.\u0024VB\u0024Local_ldStartDate = DateTime.Today.AddDays(-14.0);
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source1 = (IQueryable<scOrdFASExtGrid01>) Queryable.Select<FASDtlReqSect, scOrdFASExtGrid01>((IQueryable<M0>) Queryable.ThenBy<FASDtlReqSect, DateTime?>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.ThenBy<FASDtlReqSect, string>(Queryable.OrderBy<FASDtlReqSect, string>(Queryable.Where<FASDtlReqSect>((IQueryable<M0>) se0085CtEntities1.FASDtlReqSects, (Expression<Func<M0, bool>>) Expression.Lambda<Func<FASDtlReqSect, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.Equal(o.OrdBldRequest, (bool?) true, true, (MethodInfo) null), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure119, typeof (clsFASorders._Closure\u0024__119)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__119.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.GreaterThanOrEqual((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdBldRequiredDt))), (Expression) Expression.Convert((Expression) Expression.Field((Expression) Expression.Constant((object) closure119, typeof (clsFASorders._Closure\u0024__119)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__119.\u0024VB\u0024Local_ldStartDate))), typeof (DateTime?)), true, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime.op_GreaterThanOrEqual)))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (o => o.OrderFO)), (Expression<Func<M0, M1>>) (o => o.OrderLineNum)), (Expression<Func<M0, M1>>) (o => o.OrderLineSL)), (Expression<Func<M0, M1>>) (o => o.OrderLineSS)), (Expression<Func<M0, M1>>) (o => o.FASOrdNbr)), (Expression<Func<M0, M1>>) (o => o.OrdBldRequiredDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<FASDtlReqSect, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemLineAbbrv)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_AssemLineAbbrv)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_TotReqQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_TotReqQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdBldRequiredDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdBldRequiredDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdProdLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdBldReqShipSpt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdBldReqShipSpt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdSectsNum)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdSectsNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdFASExtId)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlReqSect.get_OrdFASExtId))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source1 != null && source1.Count<scOrdFASExtGrid01>() > 0)
    //    {
    //      List<scOrdFASExtGrid01> scOrdFasExtGrid01List2 = new List<scOrdFASExtGrid01>();
    //      List<scOrdFASExtGrid01> list = source1.ToList<scOrdFASExtGrid01>();
    //      string Left = "";
    //      List<scOrdFASExtGrid01> scOrdFasExtGrid01List3 = new List<scOrdFASExtGrid01>();
    //      List<scOrdFASExtGrid01>.Enumerator enumerator;
    //      try
    //      {
    //        enumerator = list.GetEnumerator();
    //        while (enumerator.MoveNext())
    //        {
    //          scOrdFASExtGrid01 current = enumerator.Current;
    //          int num;
    //          if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left, current.FASOrdNbr, false) != 0)
    //          {
    //            Left = current.FASOrdNbr;
    //            num = current.FASCmplQty;
    //          }
    //          if (num < current.TotReqQty)
    //          {
    //            current.FASCmplQty = num;
    //            num = 0;
    //          }
    //          else if (num >= current.TotReqQty)
    //          {
    //            scOrdFasExtGrid01List3.Add(current);
    //            current.FASCmplQty = current.TotReqQty;
    //            checked { num -= current.TotReqQty; }
    //          }
    //        }
    //      }
    //      finally
    //      {
    //        enumerator.Dispose();
    //      }
    //      // ISSUE: method pointer
    //      // ISSUE: method pointer
    //      // ISSUE: method pointer
    //      // ISSUE: method pointer
    //      // ISSUE: method pointer
    //      // ISSUE: method pointer
    //      IEnumerable<scOrdFASExtGrid01> source2 = ((IEnumerable<scOrdFASExtGrid01>) Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.OrderByDescending<scOrdFASExtGrid01, DateTime>((IEnumerable<M0>) scOrdFasExtGrid01List3, (Func<M0, M1>) new Func<scOrdFASExtGrid01, DateTime>((object) null, __methodptr(_Lambda\u0024__42))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__43))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__44))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__45))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__46))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__47)))).Take<scOrdFASExtGrid01>(100);
    //      if (source2 != null && source2.Count<scOrdFASExtGrid01>() > 0)
    //      {
    //        // ISSUE: method pointer
    //        // ISSUE: method pointer
    //        // ISSUE: method pointer
    //        // ISSUE: method pointer
    //        // ISSUE: method pointer
    //        IOrderedEnumerable<scOrdFASExtGrid01> source3 = (IOrderedEnumerable<scOrdFASExtGrid01>) Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.OrderBy<scOrdFASExtGrid01, string>((IEnumerable<M0>) source2, (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__48))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__49))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__50))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__51))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__52)));
    //        if (source3 != null && source3.Count<scOrdFASExtGrid01>() > 0)
    //          scOrdFasExtGrid01List1 = source3.ToList<scOrdFASExtGrid01>();
    //      }
    //    }
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtGrid01List1;
    //}

    //public List<scOrdFASExt> rtnFASOEMOpen(DateTime StartDate)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__120 closure120 = new clsFASorders._Closure\u0024__120();
    //  // ISSUE: reference to a compiler-generated field
    //  closure120.\u0024VB\u0024Local_StartDate = StartDate;
    //  List<scOrdFASExt> scOrdFasExtList = new List<scOrdFASExt>();
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExt> source = (IQueryable<scOrdFASExt>) Queryable.Select((IQueryable<M0>) Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt <= (DateTime?) closure120.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Not((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) })), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 3, typeof (int)), true, (MethodInfo) null), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 4, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 6, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 7, typeof (int)), true, (MethodInfo) null)), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASOrdNbr)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExt>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrderLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASUnfilledQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASUnfilledQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASWorkCtr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASWorkCtr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExt>() > 0)
    //      scOrdFasExtList = source.ToList<scOrdFASExt>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtList;
    //}

    //public List<scOrdFASExtGrid01> rtnFASOEMOpenLong(DateTime StartDate, DateTime EndDate)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__121 closure121 = new clsFASorders._Closure\u0024__121();
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List = new List<scOrdFASExtGrid01>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure121.\u0024VB\u0024Local_ldStartDate = Conversions.ToDate(Conversions.ToString(StartDate.Date) + " 12:00:00 AM");
    //  // ISSUE: reference to a compiler-generated field
    //  closure121.\u0024VB\u0024Local_ldEndDate = Conversions.ToDate(Conversions.ToString(EndDate.Date) + " 11:59:59 PM");
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source = (IQueryable<scOrdFASExtGrid01>) Queryable.Select((IQueryable<M0>) Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt >= (DateTime?) closure121.\u0024VB\u0024Local_ldStartDate & \u0024VB\u0024It.f.FASDueDt <= (DateTime?) closure121.\u0024VB\u0024Local_ldEndDate, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Not((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) })), typeof (bool?))), (Expression) Expression.LessThan((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineShipDt))), (Expression) Expression.Convert((Expression) Expression.Convert((Expression) Expression.Constant((object) "12/31/2020", typeof (string)), typeof (DateTime), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Conversions.ToDate))), typeof (DateTime?), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime?.op_Implicit), __typeref (DateTime?))), true, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime.op_LessThan)))), (Expression) Expression.LessThan((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineTargetDt))), (Expression) Expression.Convert((Expression) Expression.Convert((Expression) Expression.Constant((object) "12/31/2020", typeof (string)), typeof (DateTime), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Conversions.ToDate))), typeof (DateTime?), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime?.op_Implicit), __typeref (DateTime?))), true, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime.op_LessThan)))), (Expression) Expression.Convert((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 3, typeof (int)), true, (MethodInfo) null), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 4, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 7, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 8, typeof (int)), true, (MethodInfo) null)), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASOrdNbr)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderPurchaser)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineAssyStartDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineAssyStartDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineTargetDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineTargetDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineShipDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineShipDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemblyLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExtGrid01>() > 0)
    //      scOrdFasExtGrid01List = source.ToList<scOrdFASExtGrid01>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtGrid01List;
    //}

    //public List<scOrdFASExt> rtnFASInternalOpen(DateTime StartDate)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__122 closure122 = new clsFASorders._Closure\u0024__122();
    //  // ISSUE: reference to a compiler-generated field
    //  closure122.\u0024VB\u0024Local_StartDate = StartDate;
    //  List<scOrdFASExt> scOrdFasExtList = new List<scOrdFASExt>();
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExt> source = (IQueryable<scOrdFASExt>) Queryable.Select((IQueryable<M0>) Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt <= (DateTime?) closure122.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) }), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 3, typeof (int)), true, (MethodInfo) null), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 4, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 6, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 7, typeof (int)), true, (MethodInfo) null)), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASOrdNbr)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExt>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrderLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASUnfilledQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASUnfilledQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASWorkCtr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASWorkCtr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExt>() > 0)
    //      scOrdFasExtList = source.ToList<scOrdFASExt>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtList;
    //}

    //public List<scOrdFASExtGrid01> rtnFASInternalOpenLong(DateTime StartDate)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__123 closure123 = new clsFASorders._Closure\u0024__123();
    //  // ISSUE: reference to a compiler-generated field
    //  closure123.\u0024VB\u0024Local_StartDate = StartDate;
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List = new List<scOrdFASExtGrid01>();
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source = (IQueryable<scOrdFASExtGrid01>) Queryable.Select((IQueryable<M0>) Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt <= (DateTime?) closure123.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) }), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Or((Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 3, typeof (int)), true, (MethodInfo) null), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 4, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 6, typeof (int)), true, (MethodInfo) null)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 7, typeof (int)), true, (MethodInfo) null)), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASOrdNbr)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineAssyStartDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineAssyStartDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineTargetDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineTargetDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineShipDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineShipDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemblyLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExtGrid01>() > 0)
    //      scOrdFasExtGrid01List = source.ToList<scOrdFASExtGrid01>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtGrid01List;
    //}

    //public List<scOrdFASExt> rtnFASSchedule(DateTime StartDate, clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__124 closure124 = new clsFASorders._Closure\u0024__124();
    //  // ISSUE: reference to a compiler-generated field
    //  closure124.\u0024VB\u0024Local_StartDate = StartDate;
    //  List<scOrdFASExt> scOrdFasExtList = new List<scOrdFASExt>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure124.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure124.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure124.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scOrdFasExtList;
    //  }
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExt> source = (IQueryable<scOrdFASExt>) Queryable.Select((IQueryable<M0>) Queryable.ThenBy(Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt <= (DateTime?) closure124.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Or((Expression) Expression.And((Expression) Expression.Convert((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) }), typeof (bool?)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdBuildReq))), (Expression) Expression.Convert((Expression) Expression.Constant((object) true, typeof (bool)), typeof (bool?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Not((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) })), typeof (bool?)))), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure124, typeof (clsFASorders._Closure\u0024__124)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__124.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.NotEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 5, typeof (int)), true, (MethodInfo) null), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASDueDt)), (Expression<Func<M0, M1>>) (data => data.f.OrdBldReqDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExt>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrderLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASUnfilledQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASUnfilledQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASWorkCtr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASWorkCtr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExt.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExt>() > 0)
    //      scOrdFasExtList = source.ToList<scOrdFASExt>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtList;
    //}

    //public List<scOrdFASExtGrid01> rtnFASScheduleLong(DateTime StartDate, clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__125 closure125 = new clsFASorders._Closure\u0024__125();
    //  // ISSUE: reference to a compiler-generated field
    //  closure125.\u0024VB\u0024Local_StartDate = StartDate;
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List = new List<scOrdFASExtGrid01>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure125.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure125.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure125.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scOrdFasExtGrid01List;
    //  }
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source = (IQueryable<scOrdFASExtGrid01>) Queryable.Select((IQueryable<M0>) Queryable.ThenBy(Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt <= (DateTime?) closure125.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Or((Expression) Expression.And((Expression) Expression.Convert((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) }), typeof (bool?)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdBuildReq))), (Expression) Expression.Convert((Expression) Expression.Constant((object) true, typeof (bool)), typeof (bool?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Not((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) })), typeof (bool?)))), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure125, typeof (clsFASorders._Closure\u0024__125)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__125.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.NotEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 5, typeof (int)), true, (MethodInfo) null), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASDueDt)), (Expression<Func<M0, M1>>) (data => data.f.OrdBldReqDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineAssyStartDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineAssyStartDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineTargetDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineTargetDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineShipDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineShipDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemblyLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    if (source != null && source.Count<scOrdFASExtGrid01>() > 0)
    //      scOrdFasExtGrid01List = source.ToList<scOrdFASExtGrid01>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtGrid01List;
    //}

    //public void updCloseFasOrder(string FASAsmLine, string FASOrder, int OrdSectsNum, int CompleteQty)
    //{
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    se0085CtEntities1.sp_CloseFASOrder(FASAsmLine, FASOrder, (int?) OrdSectsNum, (int?) CompleteQty);
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //}

    //public List<scOrdFASExtGrid01> rtnFASScheduleAll(DateTime StartDate, clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__126 closure126 = new clsFASorders._Closure\u0024__126();
    //  // ISSUE: reference to a compiler-generated field
    //  closure126.\u0024VB\u0024Local_StartDate = StartDate;
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List1 = new List<scOrdFASExtGrid01>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure126.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure126.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure126.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scOrdFasExtGrid01List1;
    //  }
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source1 = (IQueryable<scOrdFASExtGrid01>) Queryable.Select((IQueryable<M0>) Queryable.ThenBy(Queryable.OrderBy(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt <= (DateTime?) closure126.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.LessThan((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineShipDt))), (Expression) Expression.Convert((Expression) Expression.Convert((Expression) Expression.Constant((object) "12/31/2020", typeof (string)), typeof (DateTime), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Conversions.ToDate))), typeof (DateTime?), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime?.op_Implicit), __typeref (DateTime?))), true, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime.op_LessThan)))), (Expression) Expression.LessThan((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineTargetDt))), (Expression) Expression.Convert((Expression) Expression.Convert((Expression) Expression.Constant((object) "12/31/2020", typeof (string)), typeof (DateTime), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Conversions.ToDate))), typeof (DateTime?), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime?.op_Implicit), __typeref (DateTime?))), true, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime.op_LessThan)))), (Expression) Expression.Or((Expression) Expression.And((Expression) Expression.Convert((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) }), typeof (bool?)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdBuildReq))), (Expression) Expression.Convert((Expression) Expression.Constant((object) true, typeof (bool)), typeof (bool?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Not((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) })), typeof (bool?)))), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure126, typeof (clsFASorders._Closure\u0024__126)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__126.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.NotEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 5, typeof (int)), true, (MethodInfo) null), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASDueDt)), (Expression<Func<M0, M1>>) (data => data.f.OrdBldReqDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_o), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (SEOrder.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineAssyStartDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineAssyStartDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineTargetDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineTargetDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineShipDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineShipDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_OrderLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemblyLineId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdFASExtId)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdFASExtId)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_TotReqQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASDueDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression2 }));
    //    List<scOrdFASExtGrid01> scOrdFasExtGrid01List2 = new List<scOrdFASExtGrid01>();
    //    if (source1 != null && source1.Count<scOrdFASExtGrid01>() > 0)
    //      scOrdFasExtGrid01List2 = source1.ToList<scOrdFASExtGrid01>();
    //    ParameterExpression parameterExpression3;
    //    ParameterExpression parameterExpression4;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source2 = (IQueryable<scOrdFASExtGrid01>) Queryable.Select<FASDtlRequestInt, scOrdFASExtGrid01>((IQueryable<M0>) Queryable.ThenBy<FASDtlRequestInt, DateTime?>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.OrderBy<FASDtlRequestInt, string>(Queryable.Where<FASDtlRequestInt>((IQueryable<M0>) se0085CtEntities1.FASDtlRequestInts, (Expression<Func<M0, bool>>) Expression.Lambda<Func<FASDtlRequestInt, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And(o.OrdBldRequiredDt <= (DateTime?) closure126.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(o.OrdBldRequest, (bool?) true, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure126, typeof (clsFASorders._Closure\u0024__126)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__126.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression3 })), (Expression<Func<M0, M1>>) (o => o.OrderFO)), (Expression<Func<M0, M1>>) (o => o.OrderLineNum)), (Expression<Func<M0, M1>>) (o => o.OrderLineSL)), (Expression<Func<M0, M1>>) (o => o.OrderLineSS)), (Expression<Func<M0, M1>>) (o => o.FASOrdNbr)), (Expression<Func<M0, M1>>) (o => o.OrdBldRequiredDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<FASDtlRequestInt, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemLineAbbrv)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_AssemLineAbbrv)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_TotReqQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_TotReqQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdBldRequiredDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdBldRequiredDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdBldRequiredDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) parameterExpression4, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdProdLn))))), new ParameterExpression[1]{ parameterExpression4 }));
    //    List<scOrdFASExtGrid01> scOrdFasExtGrid01List3 = new List<scOrdFASExtGrid01>();
    //    if (source2 != null && source2.Count<scOrdFASExtGrid01>() > 0)
    //    {
    //      List<scOrdFASExtGrid01> scOrdFasExtGrid01List4 = new List<scOrdFASExtGrid01>();
    //      List<scOrdFASExtGrid01> list = source2.ToList<scOrdFASExtGrid01>();
    //      string Left = "";
    //      int index = 0;
    //      List<scOrdFASExtGrid01>.Enumerator enumerator1;
    //      try
    //      {
    //        enumerator1 = list.GetEnumerator();
    //        while (enumerator1.MoveNext())
    //        {
    //          // ISSUE: object of a compiler-generated type is created
    //          // ISSUE: variable of a compiler-generated type
    //          clsFASorders._Closure\u0024__126._Closure\u0024__127 other = new clsFASorders._Closure\u0024__126._Closure\u0024__127(other);
    //          scOrdFASExtGrid01 current1 = enumerator1.Current;
    //          int num;
    //          if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left, current1.FASOrdNbr, false) != 0)
    //          {
    //            Left = current1.FASOrdNbr;
    //            num = current1.FASCmplQty;
    //          }
    //          if (num < current1.TotReqQty)
    //          {
    //            scOrdFasExtGrid01List3.Add(current1);
    //            current1.FASCmplQty = num;
    //            num = 0;
    //          }
    //          else if (num >= current1.TotReqQty)
    //          {
    //            current1.FASCmplQty = current1.TotReqQty;
    //            checked { num -= current1.TotReqQty; }
    //          }
    //          // ISSUE: reference to a compiler-generated field
    //          other.\u0024VB\u0024Local_ldFasOrdNbr = current1.FASOrdNbr;
    //          // ISSUE: reference to a compiler-generated field
    //          other.\u0024VB\u0024Local_ldOrdBldRequiredDt = current1.OrdBldRequiredDt;
    //          // ISSUE: method reference
    //          // ISSUE: reference to a compiler-generated field
    //          // ISSUE: reference to a compiler-generated field
    //          IQueryable<int> source3 = (IQueryable<int>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.ThenBy(Queryable.OrderBy((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.OrdFASExts, (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (fe => fe.OrdFASExtId), (Expression<Func<M1, M2>>) (fd => fd.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((fe, fd) => new{ fe = fe, fd = fd })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.fd.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (sc => sc.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, sc) => new{ fe = data.fe, fd = data.fd, sc = sc })), (Expression<Func<M0, M1>>) (data => data.fd.OrdBldRequiredDt)), (Expression<Func<M0, M1>>) (data => data.sc.OrdSectsNum)), (Expression<Func<M0, bool>>) (data => (bool?) (Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), data.fe.FASOrdNbr, other.\u0024VB\u0024Local_ldFasOrdNbr, false) == 0) & data.fd.OrdBldRequiredDt == (DateTime?) other.\u0024VB\u0024Local_ldOrdBldRequiredDt ?? false)), (Expression<Func<M0, M1>>) (data => data.sc.OrdSectsNum));
    //          if (source3 != null && source3.Count<int>() > 0)
    //          {
    //            string str = "";
    //            IEnumerator<int> enumerator2;
    //            try
    //            {
    //              enumerator2 = source3.GetEnumerator();
    //              while (enumerator2.MoveNext())
    //              {
    //                int current2 = enumerator2.Current;
    //                str = str.Length != 0 ? str + "," + current2.ToString() : str + current2.ToString();
    //              }
    //            }
    //            finally
    //            {
    //              if (enumerator2 != null)
    //                enumerator2.Dispose();
    //            }
    //            list[index].SectionList = str;
    //          }
    //          checked { ++index; }
    //        }
    //      }
    //      finally
    //      {
    //        enumerator1.Dispose();
    //      }
    //    }
    //    List<scOrdFASExtGrid01> scOrdFasExtGrid01List5 = new List<scOrdFASExtGrid01>();
    //    scOrdFasExtGrid01List5.AddRange((IEnumerable<scOrdFASExtGrid01>) scOrdFasExtGrid01List2);
    //    scOrdFasExtGrid01List5.AddRange((IEnumerable<scOrdFASExtGrid01>) scOrdFasExtGrid01List3);
    //    // ISSUE: method pointer
    //    // ISSUE: method pointer
    //    IOrderedEnumerable<scOrdFASExtGrid01> source4 = (IOrderedEnumerable<scOrdFASExtGrid01>) Enumerable.ThenBy<scOrdFASExtGrid01, string>(Enumerable.OrderBy<scOrdFASExtGrid01, DateTime>((IEnumerable<M0>) scOrdFasExtGrid01List5, (Func<M0, M1>) new Func<scOrdFASExtGrid01, DateTime>((object) null, __methodptr(_Lambda\u0024__53))), (Func<M0, M1>) new Func<scOrdFASExtGrid01, string>((object) null, __methodptr(_Lambda\u0024__54)));
    //    if (source4 != null && source4.Count<scOrdFASExtGrid01>() > 0)
    //      scOrdFasExtGrid01List1 = source4.ToList<scOrdFASExtGrid01>();
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scOrdFasExtGrid01List1;
    //}

    //public List<scFASCnts> rtnFASCountsBSLogic(DateTime StartDate, clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__128 closure128 = new clsFASorders._Closure\u0024__128();
    //  List<scFASCnts> scFasCntsList = new List<scFASCnts>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure128.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure128.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure128.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scFasCntsList;
    //  }
    //  DateTime dateTime1 = DateTime.Today.AddDays(-21.0);
    //  int num = 0;
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    while (DateTime.Compare(dateTime1.AddDays((double) num), StartDate) < 0)
    //    {
    //      // ISSUE: object of a compiler-generated type is created
    //      // ISSUE: variable of a compiler-generated type
    //      clsFASorders._Closure\u0024__128._Closure\u0024__129 other = new clsFASorders._Closure\u0024__128._Closure\u0024__129(other);
    //      scFASCnts scFasCnts1 = new scFASCnts();
    //      DateTime dateTime2;
    //      if (num == 0)
    //      {
    //        // ISSUE: reference to a compiler-generated field
    //        other.\u0024VB\u0024Local_ldQueryDate = dateTime1.AddDays((double) num);
    //        // ISSUE: variable of a compiler-generated type
    //        clsFASorders._Closure\u0024__128._Closure\u0024__129 closure129 = other;
    //        dateTime2 = DateTime.Today;
    //        DateTime date = Conversions.ToDate(Conversions.ToString(dateTime2.AddDays(-1.0)) + " 23:59:59");
    //        // ISSUE: reference to a compiler-generated field
    //        closure129.\u0024VB\u0024Local_ldQueryDateEnd = date;
    //        scFASCnts scFasCnts2 = scFasCnts1;
    //        dateTime2 = DateTime.Today;
    //        DateTime dateTime3 = dateTime2.AddDays(-1.0);
    //        scFasCnts2.DueDate = dateTime3;
    //      }
    //      else
    //      {
    //        dateTime2 = DateTime.Today;
    //        dateTime1 = dateTime2.AddDays(-1.0);
    //        // ISSUE: reference to a compiler-generated field
    //        other.\u0024VB\u0024Local_ldQueryDate = dateTime1.AddDays((double) num);
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: reference to a compiler-generated field
    //        other.\u0024VB\u0024Local_ldQueryDateEnd = Conversions.ToDate(Conversions.ToString(other.\u0024VB\u0024Local_ldQueryDate) + " 23:59:59");
    //        // ISSUE: reference to a compiler-generated field
    //        scFasCnts1.DueDate = other.\u0024VB\u0024Local_ldQueryDate;
    //      }
    //      ParameterExpression parameterExpression1;
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: method reference
    //      // ISSUE: type reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      // ISSUE: type reference
    //      // ISSUE: method reference
    //      // ISSUE: field reference
    //      // ISSUE: method reference
    //      // ISSUE: type reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      IQueryable<int?> source1 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt >= (DateTime?) other.\u0024VB\u0024Local_ldQueryDate & \u0024VB\u0024It.f.FASDueDt <= (DateTime?) other.\u0024VB\u0024Local_ldQueryDateEnd, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Not((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) })), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure128, typeof (clsFASorders._Closure\u0024__128)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__128.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.NotEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 5, typeof (int)), true, (MethodInfo) null), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (data => data.f.FASUnfilledQty));
    //      if (source1 != null && source1.Count<int?>() > 0)
    //        scFasCnts1.OEMCnt = (int) Queryable.Sum(source1);
    //      ParameterExpression parameterExpression2;
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: method reference
    //      // ISSUE: type reference
    //      // ISSUE: type reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      IQueryable<int?> source2 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.SelectMany((IQueryable<M0>) Queryable.GroupJoin((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (fd => fd.OrdFASExt.OrdFASExtId), (Expression<Func<M0, IEnumerable<M1>, M3>>) ((data, ordFasExtDtls) => new{ \u0024VB\u0024It1 = data, Group = ordFasExtDtls })), (Expression<Func<M0, IEnumerable<M1>>>) (data => data.Group.DefaultIfEmpty<OrdFASExtDtl>()), (Expression<Func<M0, M1, M2>>) ((data, x) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, Group = data.Group, x = x })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt >= (DateTime?) other.\u0024VB\u0024Local_ldQueryDate & \u0024VB\u0024It.f.FASDueDt <= (DateTime?) other.\u0024VB\u0024Local_ldQueryDateEnd, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.And((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_f), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) }), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_f), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))), (Expression) Expression.Constant((object) "258", typeof (string)), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), typeof (bool?))), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_x), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExtDtl.get_OrdBldRequest))), (Expression) Expression.Convert((Expression) Expression.Constant((object) false, typeof (bool)), typeof (bool?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_f), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure128, typeof (clsFASorders._Closure\u0024__128)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__128.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_l), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 1, typeof (int)), true, (MethodInfo) null), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression2 })), (Expression<Func<M0, M1>>) (data => {checked {data.f.FASOrdQty - data.f.FASCmplQty;}}));
    //      if (source2 != null && source2.Count<int?>() > 0)
    //        scFasCnts1.I258Cnt = (int) Queryable.Sum(source2);
    //      ParameterExpression parameterExpression3;
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: method reference
    //      // ISSUE: type reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      IQueryable<int?> source3 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.SelectMany((IQueryable<M0>) Queryable.GroupJoin((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ \u0024VB\u0024It1 = data, f = f })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (data => data.f.OrdFASExtId), (Expression<Func<M1, M2>>) (fd => fd.OrdFASExt.OrdFASExtId), (Expression<Func<M0, IEnumerable<M1>, M3>>) ((data, ordFasExtDtls) => new{ \u0024VB\u0024It1 = data, Group = ordFasExtDtls })), (Expression<Func<M0, IEnumerable<M1>>>) (data => data.Group.DefaultIfEmpty<OrdFASExtDtl>()), (Expression<Func<M0, M1, M2>>) ((data, x) => new{ o = data.\u0024VB\u0024It1.\u0024VB\u0024It1.o, l = data.\u0024VB\u0024It1.\u0024VB\u0024It1.l, f = data.\u0024VB\u0024It1.f, Group = data.Group, x = x })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt >= (DateTime?) other.\u0024VB\u0024Local_ldQueryDate & \u0024VB\u0024It.f.FASDueDt <= (DateTime?) other.\u0024VB\u0024Local_ldQueryDateEnd, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.And((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_f), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) }), (Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_f), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_OrdProdLn))), (Expression) Expression.Constant((object) "279", typeof (string)), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int)))), typeof (bool?))), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_x), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExtDtl.get_OrdBldRequest))), (Expression) Expression.Convert((Expression) Expression.Constant((object) false, typeof (bool)), typeof (bool?)), true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_f), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure128, typeof (clsFASorders._Closure\u0024__128)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__128.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>.get_l), __typeref (VB\u0024AnonymousType_56<SEOrder, OrderLine, OrdFASExt, IEnumerable<OrdFASExtDtl>, OrdFASExtDtl>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 2, typeof (int)), true, (MethodInfo) null), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression3 })), (Expression<Func<M0, M1>>) (data => {checked {data.f.FASOrdQty - data.f.FASCmplQty;}}));
    //      if (source3 != null && source3.Count<int?>() > 0)
    //        scFasCnts1.I279Cnt = (int) Queryable.Sum(source3);
    //      scFasCntsList.Add(scFasCnts1);
    //      dateTime2 = dateTime1.AddDays((double) checked (num + 1));
    //      if (dateTime2.DayOfWeek == DayOfWeek.Saturday)
    //      {
    //        checked { num += 3; }
    //      }
    //      else
    //      {
    //        dateTime2 = dateTime1.AddDays((double) checked (num + 1));
    //        if (dateTime2.DayOfWeek == DayOfWeek.Sunday)
    //          checked { num += 2; }
    //        else
    //          checked { ++num; }
    //      }
    //    }
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scFasCntsList;
    //}

    //public List<scFASCnts> rtnFASCountsScheduled(DateTime StartDate, clsFASorders.emFASAsmblyLn FasAssemblyLine)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders closure130 = new clsFASorders;
    //  // ISSUE: reference to a compiler-generated field
    //  closure130.\u0024VB\u0024Local_StartDate = StartDate;
    //  List<scFASCnts> scFasCntsList = new List<scFASCnts>();
    //  // ISSUE: reference to a compiler-generated field
    //  closure130.\u0024VB\u0024Local_ldFASAssemLn = " ";
    //  switch (FasAssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      // ISSUE: reference to a compiler-generated field
    //      closure130.\u0024VB\u0024Local_ldFASAssemLn = "221B";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      // ISSUE: reference to a compiler-generated field
    //      closure130.\u0024VB\u0024Local_ldFASAssemLn = "221";
    //      break;
    //    default:
    //      return scFasCntsList;
    //  }
    //  // ISSUE: reference to a compiler-generated field
    //  closure130.\u0024VB\u0024Local_ldDate = DateTime.Today.AddDays(-14.0);
    //  int num1 = 0;
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression1;
    //    ParameterExpression parameterExpression2;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    // ISSUE: method reference
    //    IQueryable<scOrdFASExtGrid01> source1 = (IQueryable<scOrdFASExtGrid01>) Queryable.Select<FASDtlRequestInt, scOrdFASExtGrid01>((IQueryable<M0>) Queryable.ThenBy<FASDtlRequestInt, DateTime?>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.ThenBy<FASDtlRequestInt, string>(Queryable.OrderBy<FASDtlRequestInt, string>(Queryable.Where<FASDtlRequestInt>((IQueryable<M0>) se0085CtEntities1.FASDtlRequestInts, (Expression<Func<M0, bool>>) Expression.Lambda<Func<FASDtlRequestInt, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And(o.OrdBldRequiredDt >= (DateTime?) closure130.\u0024VB\u0024Local_ldDate & o.OrdBldRequiredDt <= (DateTime?) closure130.\u0024VB\u0024Local_StartDate, (Expression) Expression.Equal(o.OrdBldRequest, (bool?) true, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) parameterExpression1, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure130, typeof (clsFASorders._Closure\u0024__130)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__130.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression1 })), (Expression<Func<M0, M1>>) (o => o.OrderFO)), (Expression<Func<M0, M1>>) (o => o.OrderLineNum)), (Expression<Func<M0, M1>>) (o => o.OrderLineSL)), (Expression<Func<M0, M1>>) (o => o.OrderLineSS)), (Expression<Func<M0, M1>>) (o => o.FASOrdNbr)), (Expression<Func<M0, M1>>) (o => o.OrdBldRequiredDt)), (Expression<Func<M0, M1>>) Expression.Lambda<Func<FASDtlRequestInt, scOrdFASExtGrid01>>((Expression) Expression.MemberInit(Expression.New((ConstructorInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.\u002Ector)), (Expression[]) null), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderFO)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderFO)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderJobName)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderJobName)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineNum)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderLineNum)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSL)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderLineSL)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_OrderLineSS)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrderLineSS)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrderData.set_AssemLineAbbrv)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_AssemLineAbbrv)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASAsmblLn)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASAsmblLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASOrdNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASOrdQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASOrdQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASCmplQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASCmplQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_TotReqQty)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_TotReqQty))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASDueDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdBldRequiredDt))), typeof (DateTime))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCatlgNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdCatlgNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdMfgPartNbr)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdMfgPartNbr)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_FASPrgrsPnt)), (Expression) Expression.ConvertChecked((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_FASPrgrsPnt))), typeof (int))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdCdDesc)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdCdDesc)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdProdLn)), (Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdProdLn)))), (MemberBinding) Expression.Bind((MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.set_OrdBldRequiredDt)), (Expression) Expression.Convert((Expression) Expression.Property((Expression) parameterExpression2, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (FASDtlRequestInt.get_OrdBldRequiredDt))), typeof (DateTime)))), new ParameterExpression[1]{ parameterExpression2 }));
    //    List<scOrdFASExtGrid01> scOrdFasExtGrid01List1 = new List<scOrdFASExtGrid01>();
    //    if (source1 != null && source1.Count<scOrdFASExtGrid01>() > 0)
    //    {
    //      List<scOrdFASExtGrid01> scOrdFasExtGrid01List2 = new List<scOrdFASExtGrid01>();
    //      List<scOrdFASExtGrid01> list = source1.ToList<scOrdFASExtGrid01>();
    //      string Left = "";
    //      List<scOrdFASExtGrid01>.Enumerator enumerator;
    //      try
    //      {
    //        enumerator = list.GetEnumerator();
    //        while (enumerator.MoveNext())
    //        {
    //          scOrdFASExtGrid01 current = enumerator.Current;
    //          int num2;
    //          if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left, current.FASOrdNbr, false) != 0)
    //          {
    //            Left = current.FASOrdNbr;
    //            num2 = current.FASCmplQty;
    //          }
    //          if (num2 < current.TotReqQty)
    //          {
    //            scOrdFasExtGrid01List1.Add(current);
    //            current.FASCmplQty = num2;
    //            num2 = 0;
    //          }
    //          else if (num2 >= current.TotReqQty)
    //          {
    //            current.FASCmplQty = current.TotReqQty;
    //            checked { num2 -= current.TotReqQty; }
    //          }
    //        }
    //      }
    //      finally
    //      {
    //        enumerator.Dispose();
    //      }
    //    }
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: reference to a compiler-generated field
    //    while (DateTime.Compare(closure130.\u0024VB\u0024Local_ldDate.AddDays((double) num1), closure130.\u0024VB\u0024Local_StartDate) < 0)
    //    {
    //      // ISSUE: object of a compiler-generated type is created
    //      // ISSUE: variable of a compiler-generated type
    //      clsFASorders._Closure\u0024__130._Closure\u0024__131 other = new clsFASorders._Closure\u0024__130._Closure\u0024__131(other);
    //      // ISSUE: reference to a compiler-generated field
    //      other.\u0024VB\u0024NonLocal_\u0024VB\u0024Closure_ClosureVariable_82 = closure130;
    //      scFASCnts scFasCnts1 = new scFASCnts();
    //      DateTime dateTime1;
    //      if (num1 == 0)
    //      {
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: reference to a compiler-generated field
    //        other.\u0024VB\u0024Local_ldQueryDate = closure130.\u0024VB\u0024Local_ldDate.AddDays((double) num1);
    //        // ISSUE: variable of a compiler-generated type
    //        clsFASorders._Closure\u0024__130._Closure\u0024__131 closure131 = other;
    //        dateTime1 = DateTime.Today;
    //        DateTime date = Conversions.ToDate(Conversions.ToString(dateTime1.AddDays(-1.0)) + " 23:59:59");
    //        // ISSUE: reference to a compiler-generated field
    //        closure131.\u0024VB\u0024Local_ldQueryDateEnd = date;
    //        scFASCnts scFasCnts2 = scFasCnts1;
    //        dateTime1 = DateTime.Today;
    //        DateTime dateTime2 = dateTime1.AddDays(-1.0);
    //        scFasCnts2.DueDate = dateTime2;
    //      }
    //      else
    //      {
    //        dateTime1 = DateTime.Today;
    //        DateTime dateTime2 = dateTime1.AddDays(-1.0);
    //        // ISSUE: reference to a compiler-generated field
    //        closure130.\u0024VB\u0024Local_ldDate = dateTime2;
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: reference to a compiler-generated field
    //        other.\u0024VB\u0024Local_ldQueryDate = closure130.\u0024VB\u0024Local_ldDate.AddDays((double) num1);
    //        // ISSUE: reference to a compiler-generated field
    //        // ISSUE: reference to a compiler-generated field
    //        other.\u0024VB\u0024Local_ldQueryDateEnd = Conversions.ToDate(Conversions.ToString(other.\u0024VB\u0024Local_ldQueryDate) + " 23:59:59");
    //        // ISSUE: reference to a compiler-generated field
    //        scFasCnts1.DueDate = other.\u0024VB\u0024Local_ldQueryDate;
    //      }
    //      ParameterExpression parameterExpression3;
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: reference to a compiler-generated field
    //      // ISSUE: method reference
    //      // ISSUE: type reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      // ISSUE: method reference
    //      IQueryable<int?> source2 = (IQueryable<int?>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.SEOrders, (IEnumerable<M1>) se0085CtEntities1.OrderLines, (Expression<Func<M0, M2>>) (o => o.OrderId), (Expression<Func<M1, M2>>) (l => l.SEOrder.OrderId), (Expression<Func<M0, M1, M3>>) ((o, l) => new{ o = o, l = l })), (IEnumerable<M1>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, M2>>) (data => data.l.OrderLineId), (Expression<Func<M1, M2>>) (f => f.OrderLine.OrderLineId), (Expression<Func<M0, M1, M3>>) ((data, f) => new{ o = data.o, l = data.l, f = f })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And((Expression) Expression.And(\u0024VB\u0024It.f.FASDueDt >= (DateTime?) other.\u0024VB\u0024Local_ldQueryDate & \u0024VB\u0024It.f.FASDueDt <= (DateTime?) other.\u0024VB\u0024Local_ldQueryDateEnd, (Expression) Expression.Equal(\u0024VB\u0024It.l.OrderLineShipped, (bool?) false, true, (MethodInfo) null)), (Expression) Expression.Convert((Expression) Expression.Not((Expression) Expression.Call((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASOrdNbr))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (string.StartsWith)), new Expression[1]{ (Expression) Expression.Constant((object) "MO", typeof (string)) })), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.Equal((Expression) Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), (Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_f), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExt.get_FASAsmblLn))), (Expression) Expression.Field((Expression) Expression.Constant((object) closure130, typeof (clsFASorders._Closure\u0024__130)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__130.\u0024VB\u0024Local_ldFASAssemLn))), (Expression) Expression.Constant((object) false, typeof (bool))), (Expression) Expression.Constant((object) 0, typeof (int))), typeof (bool?))), (Expression) Expression.Convert((Expression) Expression.NotEqual((Expression) Expression.Property((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression3, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>.get_l), __typeref (VB\u0024AnonymousType_48<SEOrder, OrderLine, OrdFASExt>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrderLine.get_AssemblyLine))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (AssemblyLine.get_AssemLineId))), (Expression) Expression.Constant((object) 5, typeof (int)), true, (MethodInfo) null), typeof (bool?))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression3 })), (Expression<Func<M0, M1>>) (data => {checked {data.f.FASOrdQty - data.f.FASCmplQty;}}));
    //      if (source2 != null && source2.Count<int?>() > 0)
    //        scFasCnts1.OEMCnt = (int) Queryable.Sum(source2);
    //      List<scOrdFASExtGrid01> scOrdFasExtGrid01List2 = scOrdFasExtGrid01List1;
    //      // ISSUE: variable of a compiler-generated type
    //      clsFASorders._Closure\u0024__130._Closure\u0024__131 closure131_1 = other;
    //      // ISSUE: virtual method pointer
    //      IntPtr num2 = __vmethodptr(closure131_1, _Lambda\u0024__55);
    //      Func<scOrdFASExtGrid01, bool> func1 = new Func<scOrdFASExtGrid01, bool>((object) closure131_1, num2);
    //      // ISSUE: method pointer
    //      IEnumerable<int> source3 = (IEnumerable<int>) Enumerable.Select<scOrdFASExtGrid01, int>(Enumerable.Where<scOrdFASExtGrid01>((IEnumerable<M0>) scOrdFasExtGrid01List2, (Func<M0, bool>) func1), (Func<M0, M1>) new Func<scOrdFASExtGrid01, int>((object) null, __methodptr(_Lambda\u0024__56)));
    //      if (source3 != null && source3.Count<int>() > 0)
    //        scFasCnts1.I258Cnt = source3.Sum();
    //      List<scOrdFASExtGrid01> scOrdFasExtGrid01List3 = scOrdFasExtGrid01List1;
    //      // ISSUE: variable of a compiler-generated type
    //      clsFASorders._Closure\u0024__130._Closure\u0024__131 closure131_2 = other;
    //      // ISSUE: virtual method pointer
    //      IntPtr num3 = __vmethodptr(closure131_2, _Lambda\u0024__57);
    //      Func<scOrdFASExtGrid01, bool> func2 = new Func<scOrdFASExtGrid01, bool>((object) closure131_2, num3);
    //      // ISSUE: method pointer
    //      IEnumerable<int> source4 = (IEnumerable<int>) Enumerable.Select<scOrdFASExtGrid01, int>(Enumerable.Where<scOrdFASExtGrid01>((IEnumerable<M0>) scOrdFasExtGrid01List3, (Func<M0, bool>) func2), (Func<M0, M1>) new Func<scOrdFASExtGrid01, int>((object) null, __methodptr(_Lambda\u0024__58)));
    //      if (source4 != null && source4.Count<int>() > 0)
    //        scFasCnts1.I279Cnt = source4.Sum();
    //      scFasCntsList.Add(scFasCnts1);
    //      // ISSUE: reference to a compiler-generated field
    //      dateTime1 = closure130.\u0024VB\u0024Local_ldDate.AddDays((double) checked (num1 + 1));
    //      if (dateTime1.DayOfWeek == DayOfWeek.Saturday)
    //      {
    //        checked { num1 += 3; }
    //      }
    //      else
    //      {
    //        // ISSUE: reference to a compiler-generated field
    //        dateTime1 = closure130.\u0024VB\u0024Local_ldDate.AddDays((double) checked (num1 + 1));
    //        if (dateTime1.DayOfWeek == DayOfWeek.Sunday)
    //          checked { num1 += 2; }
    //        else
    //          checked { ++num1; }
    //      }
    //    }
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return scFasCntsList;
    //}

    //public List<scOrdFASExt> LoadFASQH(DateTime UpdateTm, clsFASorders.emFASAsmblyLn AssemblyLine)
    //{
    //  if ((DateTime.Now - UpdateTm).TotalHours <= 72.0)
    //    ;
    //  List<scOrdFASExt> scOrdFasExtList = new List<scOrdFASExt>();
    //  DataSet dataSet = new DataSet();
    //  OdbcCommand selectCommand = new OdbcCommand();
    //  string str1;
    //  switch (AssemblyLine)
    //  {
    //    case clsFASorders.emFASAsmblyLn.Breakers:
    //      selectCommand.Connection = this.ldBkrConn;
    //      if (this.ldBkrConn.State == ConnectionState.Closed)
    //        this.ldBkrConn.Open();
    //      str1 = "from dbb2a.dbo.order_history";
    //      break;
    //    case clsFASorders.emFASAsmblyLn.Cradles:
    //      selectCommand.Connection = this.ldCrdConn;
    //      if (this.ldCrdConn.State == ConnectionState.Closed)
    //        this.ldCrdConn.Open();
    //      str1 = "from dbb2c.dbo.order_history";
    //      break;
    //    default:
    //      return (List<scOrdFASExt>) null;
    //  }
    //  OdbcDataAdapter odbcDataAdapter = new OdbcDataAdapter(selectCommand);
    //  odbcDataAdapter.SelectCommand.CommandTimeout = 10000;
    //  string str2 = "select distinct  catlg_nbr  ,bld_qty  ,asmbly_ln  ,q2c_nbr  ,ln_nbr  ,sub_ln_itm_id  ,orig_shpschd_id  ,status  ,COUNT(order_cnt) as tot_order_cnt  " + str1 + "  group by  catlg_nbr  ,bld_qty  ,asmbly_ln  ,q2c_nbr  ,ln_nbr  ,sub_ln_itm_id  ,orig_shpschd_id  ,status  having end_dt > ? and mfg_loc = '085' and status = 'complete'  order by catlg_nbr ";
    //  selectCommand.CommandText = str2;
    //  selectCommand.Parameters.Clear();
    //  string str3 = Conversions.ToString(UpdateTm);
    //  selectCommand.Parameters.AddWithValue("update_dt", (object) str3);
    //  odbcDataAdapter.SelectCommand = selectCommand;
    //  dataSet.Tables.Clear();
    //  odbcDataAdapter.Fill(dataSet);
    //  List<string> stringList = new List<string>();
    //  try
    //  {
    //    foreach (DataColumn column in (InternalDataCollectionBase) dataSet.Tables[0].Columns)
    //    {
    //      stringList.Add(column.ColumnName);
    //      short num;
    //      checked { ++num; }
    //    }
    //  }
    //  finally
    //  {
    //    IEnumerator enumerator;
    //    if (enumerator is IDisposable)
    //      (enumerator as IDisposable).Dispose();
    //  }
    //  try
    //  {
    //    foreach (DataRow row in dataSet.Tables[0].Rows)
    //    {
    //      short num = 0;
    //      scOrdFASExt scOrdFasExt = new scOrdFASExt();
    //      scOrderData scOrderData = new scOrderData();
    //      List<string>.Enumerator enumerator;
    //      try
    //      {
    //        enumerator = stringList.GetEnumerator();
    //        while (enumerator.MoveNext())
    //        {
    //          string current = enumerator.Current;
    //          if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "catlg_nbr", false) == 0)
    //            scOrdFasExt.OrdCatlgNbr = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "bld_qty", false) == 0)
    //            scOrdFasExt.FASOrdQty = Conversions.ToInteger(Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num])));
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "asmbly_ln", false) == 0)
    //            scOrdFasExt.FASAsmblLn = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "q2c_nbr", false) == 0)
    //            scOrderData.OrderFO = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "ln_nbr", false) == 0)
    //          {
    //            if (Conversions.ToString(row[(int) num]).Length == 1)
    //              scOrderData.OrderLineNum = "00" + Conversions.ToString(row[(int) num]);
    //            else if (Conversions.ToString(row[(int) num]).Length == 2)
    //              scOrderData.OrderLineNum = "0" + Conversions.ToString(row[(int) num]);
    //            else if (Conversions.ToString(row[(int) num]).Length == 3)
    //              scOrderData.OrderLineNum = Conversions.ToString(row[(int) num]);
    //          }
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "sub_ln_itm_id", false) == 0)
    //            scOrderData.OrderLineSL = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "orig_shpschd_id", false) == 0)
    //            scOrderData.OrderLineSS = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "status", false) == 0)
    //            scOrdFasExt.OrdCdDesc = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
    //          else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "tot_order_cnt", false) == 0)
    //            scOrdFasExt.FASCmplQty = Conversions.ToInteger(Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num])));
    //          checked { ++num; }
    //        }
    //      }
    //      finally
    //      {
    //        enumerator.Dispose();
    //      }
    //      scOrdFasExt.FASOrdNbr = !scOrderData.OrderFO.StartsWith("MO") ? scOrderData.FactoryOrderOE : scOrderData.OrderFO;
    //      if (scOrdFasExt.OrdCdDesc.Contains("complete"))
    //        scOrdFasExt.FASPrgrsPnt = 440;
    //      scOrdFasExtList.Add(scOrdFasExt);
    //    }
    //  }
    //  finally
    //  {
    //    IEnumerator enumerator;
    //    if (enumerator is IDisposable)
    //      (enumerator as IDisposable).Dispose();
    //  }
    //  return scOrdFasExtList;
    //}

    public List<string> LoadFASQHBldNbr(DateTime UpdateTm, clsFASorders.emFASAsmblyLn AssemblyLine)
    {
      if ((DateTime.Now - UpdateTm).TotalHours <= 72.0)
        ;
      List<string> stringList1 = new List<string>();
      DataSet dataSet = new DataSet();
      OdbcCommand selectCommand = new OdbcCommand();
      string str1;
      switch (AssemblyLine)
      {
        case clsFASorders.emFASAsmblyLn.Breakers:
          selectCommand.Connection = this.ldBkrConn;
          if (this.ldBkrConn.State == ConnectionState.Closed)
            this.ldBkrConn.Open();
          str1 = "from dbb2a.dbo.order_history";
          break;
        case clsFASorders.emFASAsmblyLn.Cradles:
          selectCommand.Connection = this.ldCrdConn;
          if (this.ldCrdConn.State == ConnectionState.Closed)
            this.ldCrdConn.Open();
          str1 = "from dbb2c.dbo.order_history";
          break;
        default:
          return (List<string>) null;
      }
      OdbcDataAdapter odbcDataAdapter = new OdbcDataAdapter(selectCommand);
      odbcDataAdapter.SelectCommand.CommandTimeout = 10000;
      string str2 = "select distinct  bld_nbr  " + str1 + "  group by  bld_nbr  having end_dt > ? and mfg_loc = '085' and status = 'complete'  order by bld_nbr ";
      selectCommand.CommandText = str2;
      selectCommand.Parameters.Clear();
      string str3 = Conversions.ToString(UpdateTm);
      selectCommand.Parameters.AddWithValue("update_dt", (object) str3);
      odbcDataAdapter.SelectCommand = selectCommand;
      dataSet.Tables.Clear();
      odbcDataAdapter.Fill(dataSet);
      List<string> stringList2 = new List<string>();
      try
      {
        foreach (DataColumn column in (InternalDataCollectionBase) dataSet.Tables[0].Columns)
        {
          stringList2.Add(column.ColumnName);
          short num;
          checked { ++num; }
        }
      }
      finally
      {
        IEnumerator enumerator;
        if (enumerator is IDisposable)
          (enumerator as IDisposable).Dispose();
      }
      try
      {
        foreach (DataRow row in dataSet.Tables[0].Rows)
        {
          short num = 0;
          List<string>.Enumerator enumerator;
          try
          {
            enumerator = stringList2.GetEnumerator();
            while (enumerator.MoveNext())
            {
              if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(enumerator.Current, "bld_nbr", false) == 0)
                stringList1.Add(Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num])));
              checked { ++num; }
            }
          }
          finally
          {
            enumerator.Dispose();
          }
        }
      }
      finally
      {
        IEnumerator enumerator;
        if (enumerator is IDisposable)
          (enumerator as IDisposable).Dispose();
      }
      return stringList1;
    }

    public scOrdFASExt LoadFASByBldNbr(string FASBldNbr, clsFASorders.emFASAsmblyLn AssemblyLine)
    {
      scOrdFASExt scOrdFasExt = new scOrdFASExt();
      DataSet dataSet = new DataSet();
      OdbcCommand selectCommand = new OdbcCommand();
      string str1;
      switch (AssemblyLine)
      {
        case clsFASorders.emFASAsmblyLn.Breakers:
          selectCommand.Connection = this.ldBkrConn;
          if (this.ldBkrConn.State == ConnectionState.Closed)
            this.ldBkrConn.Open();
          str1 = "from dbb2a.dbo.order_history";
          break;
        case clsFASorders.emFASAsmblyLn.Cradles:
          selectCommand.Connection = this.ldCrdConn;
          if (this.ldCrdConn.State == ConnectionState.Closed)
            this.ldCrdConn.Open();
          str1 = "from dbb2c.dbo.order_history";
          break;
        default:
          return (scOrdFASExt) null;
      }
      OdbcDataAdapter odbcDataAdapter = new OdbcDataAdapter(selectCommand);
      odbcDataAdapter.SelectCommand.CommandTimeout = 10000;
      string str2 = "select distinct  catlg_nbr  ,bld_qty  ,asmbly_ln  ,q2c_nbr  ,ln_nbr  ,sub_ln_itm_id  ,orig_shpschd_id  ,status  ,COUNT(order_cnt) as tot_order_cnt  " + str1 + "  group by  catlg_nbr  ,bld_qty  ,asmbly_ln  ,q2c_nbr  ,ln_nbr  ,sub_ln_itm_id  ,orig_shpschd_id  ,status  having bld_nbr = ? and mfg_loc = '085' and status = 'complete'  order by catlg_nbr ";
      selectCommand.CommandText = str2;
      selectCommand.Parameters.Clear();
      string str3 = FASBldNbr;
      selectCommand.Parameters.AddWithValue("bld_nbr", (object) str3);
      odbcDataAdapter.SelectCommand = selectCommand;
      dataSet.Tables.Clear();
      odbcDataAdapter.Fill(dataSet);
      List<string> stringList = new List<string>();
      try
      {
        foreach (DataColumn column in (InternalDataCollectionBase) dataSet.Tables[0].Columns)
        {
          stringList.Add(column.ColumnName);
          short num;
          checked { ++num; }
        }
      }
      finally
      {
        IEnumerator enumerator;
        if (enumerator is IDisposable)
          (enumerator as IDisposable).Dispose();
      }
      try
      {
        foreach (DataRow row in dataSet.Tables[0].Rows)
        {
          short num = 0;
          scOrdFasExt = new scOrdFASExt();
          scOrderData scOrderData = new scOrderData();
          List<string>.Enumerator enumerator;
          try
          {
            enumerator = stringList.GetEnumerator();
            while (enumerator.MoveNext())
            {
              string current = enumerator.Current;
              if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "catlg_nbr", false) == 0)
                scOrdFasExt.OrdCatlgNbr = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "bld_qty", false) == 0)
                scOrdFasExt.FASOrdQty = Conversions.ToInteger(Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num])));
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "asmbly_ln", false) == 0)
                scOrdFasExt.FASAsmblLn = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "q2c_nbr", false) == 0)
                scOrderData.OrderFO = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "ln_nbr", false) == 0)
              {
                if (Conversions.ToString(row[(int) num]).Length == 1)
                  scOrderData.OrderLineNum = "00" + Conversions.ToString(row[(int) num]);
                else if (Conversions.ToString(row[(int) num]).Length == 2)
                  scOrderData.OrderLineNum = "0" + Conversions.ToString(row[(int) num]);
                else if (Conversions.ToString(row[(int) num]).Length == 3)
                  scOrderData.OrderLineNum = Conversions.ToString(row[(int) num]);
              }
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "sub_ln_itm_id", false) == 0)
                scOrderData.OrderLineSL = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "orig_shpschd_id", false) == 0)
                scOrderData.OrderLineSS = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "status", false) == 0)
                scOrdFasExt.OrdCdDesc = Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num]));
              else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(current, "tot_order_cnt", false) == 0)
                scOrdFasExt.FASCmplQty = Conversions.ToInteger(Microsoft.VisualBasic.Strings.Trim(Conversions.ToString(row[(int) num])));
              checked { ++num; }
            }
          }
          finally
          {
            enumerator.Dispose();
          }
          scOrdFasExt.FASOrdNbr = !scOrderData.OrderFO.StartsWith("MO") ? scOrderData.FactoryOrderOE : scOrderData.OrderFO;
          if (scOrdFasExt.OrdCdDesc.Contains("complete"))
            scOrdFasExt.FASPrgrsPnt = 380;
        }
      }
      finally
      {
        IEnumerator enumerator;
        if (enumerator is IDisposable)
          (enumerator as IDisposable).Dispose();
      }
      return scOrdFasExt;
    }

    //public int UpdateFASQH(scOrdFASExt FASOrders)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__132 closure132 = new clsFASorders._Closure\u0024__132();
    //  // ISSUE: reference to a compiler-generated field
    //  closure132.\u0024VB\u0024Local_FASOrders = FASOrders;
    //  int num1 = 0;
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    // ISSUE: method reference
    //    // ISSUE: reference to a compiler-generated field
    //    IQueryable<OrdFASExt> source = (IQueryable<OrdFASExt>) Queryable.Select<OrdFASExt, OrdFASExt>(Queryable.Where<OrdFASExt>((IQueryable<M0>) se0085CtEntities1.OrdFASExts, (Expression<Func<M0, bool>>) (f => Expression.Call((Expression) null, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Microsoft.VisualBasic.CompilerServices.Operators.CompareString)), f.FASOrdNbr, closure132.\u0024VB\u0024Local_FASOrders.FASOrdNbr, false) == 0)), (Expression<Func<M0, M1>>) (f => f));
    //    if (source.Count<OrdFASExt>() == 0)
    //      num1 = 32766;
    //    else if (source.Count<OrdFASExt>() == 1)
    //    {
    //      OrdFASExt ordFasExt = source.First<OrdFASExt>();
    //      // ISSUE: reference to a compiler-generated field
    //      ordFasExt.FASCmplQty = (int?) closure132.\u0024VB\u0024Local_FASOrders.FASCmplQty;
    //      // ISSUE: reference to a compiler-generated field
    //      if (closure132.\u0024VB\u0024Local_FASOrders.OrdCdDesc.Contains("complete"))
    //      {
    //        int? fasOrdQty = ordFasExt.FASOrdQty;
    //        int num2 = fasOrdQty.HasValue ? 1 : 0;
    //        int? fasCmplQty = ordFasExt.FASCmplQty;
    //        int num3 = fasCmplQty.HasValue ? 1 : 0;
    //        bool? nullable1;
    //        bool? nullable2;
    //        if ((num2 & num3) == 0)
    //        {
    //          nullable2 = new bool?();
    //        }
    //        else
    //        {
    //          nullable1 = new bool?(fasOrdQty.GetValueOrDefault() == fasCmplQty.GetValueOrDefault());
    //          nullable2 = nullable1;
    //        }
    //        bool? nullable3 = nullable2;
    //        int num4 = 440;
    //        int? fasPrgrsPnt1 = ordFasExt.FASPrgrsPnt;
    //        bool? nullable4;
    //        bool? nullable5;
    //        if (!fasPrgrsPnt1.HasValue)
    //        {
    //          nullable5 = new bool?();
    //        }
    //        else
    //        {
    //          nullable4 = new bool?(fasPrgrsPnt1.GetValueOrDefault() < num4);
    //          nullable5 = nullable4;
    //        }
    //        bool? nullable6 = nullable5;
    //        if ((!nullable3.HasValue || nullable3.GetValueOrDefault() ? (nullable6.HasValue ? (nullable6.GetValueOrDefault() ? nullable3 : new bool?(false)) : new bool?()) : new bool?(false)).GetValueOrDefault())
    //        {
    //          ordFasExt.FASPrgrsPnt = (int?) 440;
    //          ordFasExt.OrdCdDesc = "Packed Order";
    //        }
    //        else
    //        {
    //          int num5 = 380;
    //          int? fasPrgrsPnt2 = ordFasExt.FASPrgrsPnt;
    //          bool? nullable7;
    //          if (!fasPrgrsPnt2.HasValue)
    //          {
    //            nullable7 = new bool?();
    //          }
    //          else
    //          {
    //            nullable1 = new bool?(fasPrgrsPnt2.GetValueOrDefault() < num5);
    //            nullable7 = nullable1;
    //          }
    //          nullable4 = nullable7;
    //          if (nullable4.GetValueOrDefault())
    //          {
    //            ordFasExt.FASPrgrsPnt = (int?) 380;
    //            ordFasExt.OrdCdDesc = "Printed Document";
    //          }
    //        }
    //      }
    //      // ISSUE: reference to a compiler-generated field
    //      ordFasExt.OrdCatlgNbr = closure132.\u0024VB\u0024Local_FASOrders.OrdCatlgNbr;
    //      num1 = se0085CtEntities1.SaveChanges();
    //    }
    //    else
    //      num1 = (int) short.MaxValue;
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return num1;
    //}

    //public void UpdateFASInternalComplete()
    //{
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List1 = new List<scOrdFASExtGrid01>();
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List2 = this.rtnFASBuildCompleteInternal(clsFASorders.emFASAsmblyLn.Breakers);
    //  List<scOrdFASExtGrid01>.Enumerator enumerator1;
    //  try
    //  {
    //    enumerator1 = scOrdFasExtGrid01List2.GetEnumerator();
    //    while (enumerator1.MoveNext())
    //    {
    //      scOrdFASExtGrid01 current = enumerator1.Current;
    //      if (current.TotReqQty == current.FASCmplQty)
    //        this.UpdateFASIntCmp(current);
    //    }
    //  }
    //  finally
    //  {
    //    enumerator1.Dispose();
    //  }
    //  scOrdFasExtGrid01List1 = (List<scOrdFASExtGrid01>) null;
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List3 = new List<scOrdFASExtGrid01>();
    //  List<scOrdFASExtGrid01> scOrdFasExtGrid01List4 = this.rtnFASBuildCompleteInternal(clsFASorders.emFASAsmblyLn.Cradles);
    //  List<scOrdFASExtGrid01>.Enumerator enumerator2;
    //  try
    //  {
    //    enumerator2 = scOrdFasExtGrid01List4.GetEnumerator();
    //    while (enumerator2.MoveNext())
    //    {
    //      scOrdFASExtGrid01 current = enumerator2.Current;
    //      if (current.TotReqQty == current.FASCmplQty)
    //        this.UpdateFASIntCmp(current);
    //    }
    //  }
    //  finally
    //  {
    //    enumerator2.Dispose();
    //  }
    //}

    //public int UpdateFASIntCmp(scOrdFASExtGrid01 FASOrders)
    //{
    //  // ISSUE: object of a compiler-generated type is created
    //  // ISSUE: variable of a compiler-generated type
    //  clsFASorders._Closure\u0024__133 closure133 = new clsFASorders._Closure\u0024__133();
    //  // ISSUE: reference to a compiler-generated field
    //  closure133.\u0024VB\u0024Local_FASOrders = FASOrders;
    //  int num = 0;
    //  using (SE0085CTEntities1 se0085CtEntities1 = new SE0085CTEntities1())
    //  {
    //    se0085CtEntities1.Database.Connection.ConnectionString = this._CTConnection;
    //    ParameterExpression parameterExpression;
    //    // ISSUE: reference to a compiler-generated field
    //    // ISSUE: method reference
    //    // ISSUE: type reference
    //    // ISSUE: method reference
    //    // ISSUE: field reference
    //    // ISSUE: method reference
    //    IQueryable<OrdFASExtDtl> source = (IQueryable<OrdFASExtDtl>) Queryable.Select(Queryable.Where((IQueryable<M0>) Queryable.Join((IQueryable<M0>) Queryable.Join((IQueryable<M0>) se0085CtEntities1.OrdFASExts, (IEnumerable<M1>) se0085CtEntities1.OrdFASExtDtls, (Expression<Func<M0, M2>>) (f => f.OrdFASExtId), (Expression<Func<M1, M2>>) (d => d.OrdFASExt.OrdFASExtId), (Expression<Func<M0, M1, M3>>) ((f, d) => new{ f = f, d = d })), (IEnumerable<M1>) se0085CtEntities1.OrdSections, (Expression<Func<M0, M2>>) (data => data.d.OrdSection.OrdSectsId), (Expression<Func<M1, M2>>) (s => s.OrdSectsId), (Expression<Func<M0, M1, M3>>) ((data, s) => new{ f = data.f, d = data.d, s = s })), (Expression<Func<M0, bool>>) Expression.Lambda<Func<VB\u0024AnonymousType_58<OrdFASExt, OrdFASExtDtl, OrdSection>, bool>>((Expression) Expression.Coalesce((Expression) Expression.And((Expression) Expression.Convert((Expression) Expression.And((Expression) Expression.Equal(\u0024VB\u0024It.f.OrdFASExtId, closure133.\u0024VB\u0024Local_FASOrders.OrdFASExtId, true, (MethodInfo) null), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_58<OrdFASExt, OrdFASExtDtl, OrdSection>.get_s), __typeref (VB\u0024AnonymousType_58<OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdSection.get_OrdSectsNum))), (Expression) Expression.Property((Expression) Expression.Field((Expression) Expression.Constant((object) closure133, typeof (clsFASorders._Closure\u0024__133)), FieldInfo.GetFieldFromHandle(__fieldref (clsFASorders._Closure\u0024__133.\u0024VB\u0024Local_FASOrders))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (scOrdFASExtGrid01.get_OrdSectsNum))), true, (MethodInfo) null)), typeof (bool?)), (Expression) Expression.Equal((Expression) Expression.Property((Expression) Expression.Property((Expression) parameterExpression, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (VB\u0024AnonymousType_58<OrdFASExt, OrdFASExtDtl, OrdSection>.get_d), __typeref (VB\u0024AnonymousType_58<OrdFASExt, OrdFASExtDtl, OrdSection>))), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (OrdFASExtDtl.get_OrdBldCompleteDt))), (Expression) Expression.Convert((Expression) Expression.Convert((Expression) Expression.Constant((object) "01/01/1901", typeof (string)), typeof (DateTime), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (Conversions.ToDate))), typeof (DateTime?), (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime?.op_Implicit), __typeref (DateTime?))), true, (MethodInfo) MethodBase.GetMethodFromHandle(__methodref (DateTime.op_Equality)))), (Expression) Expression.Constant((object) false, typeof (bool))), new ParameterExpression[1]{ parameterExpression })), (Expression<Func<M0, M1>>) (data => data.d));
    //    if (source != null)
    //    {
    //      if (source.Count<OrdFASExtDtl>() == 0)
    //        num = 32766;
    //      else if (source.Count<OrdFASExtDtl>() == 1)
    //      {
    //        IEnumerator<OrdFASExtDtl> enumerator;
    //        try
    //        {
    //          enumerator = source.GetEnumerator();
    //          while (enumerator.MoveNext())
    //            enumerator.Current.OrdBldCompleteDt = (DateTime?) DateTime.Now;
    //        }
    //        finally
    //        {
    //          if (enumerator != null)
    //            enumerator.Dispose();
    //        }
    //        num = se0085CtEntities1.SaveChanges();
    //      }
    //      else
    //        num = (int) short.MaxValue;
    //    }
    //    else
    //      num = (int) short.MaxValue;
    //    se0085CtEntities1.Database.Connection.Close();
    //  }
    //  return num;
    //}

    public delegate void ueUpdateProgressEventHandler(object sender, ProgressChangedEventArgs e);

    private enum oqPlantId
    {
      Columbia = 1,
      ElPaso = 2,
    }

    private enum oqAssemblyLine
    {
      SwitchBoards = 1,
      SwitchGear = 2,
      NW221B = 3,
      NW221C = 4,
    }

    public enum emFASAsmblyLn
    {
      Breakers,
      Cradles,
      Fabrication,
    }

    public class scOrderFas
    {
      private scOrderData _OrderData;
      private scOrdFASExt _OrdFASExt;
      private scOrdFASExtDtl _OrdFASExtDtl;

      public scOrderData OrderData
      {
        get
        {
          return this._OrderData;
        }
        set
        {
          this._OrderData = value;
        }
      }

      public scOrdFASExt OrdFASExt
      {
        get
        {
          return this._OrdFASExt;
        }
        set
        {
          this._OrdFASExt = value;
        }
      }

      public scOrdFASExtDtl OrdFASExtDtl
      {
        get
        {
          return this._OrdFASExtDtl;
        }
        set
        {
          this._OrdFASExtDtl = value;
        }
      }

      public scOrderFas()
      {
        this._OrderData = new scOrderData();
        this._OrdFASExt = new scOrdFASExt();
        this._OrdFASExtDtl = new scOrdFASExtDtl();
      }
    }

    public class scFASFAB
    {
      private Hashtable _OpenOrdersHash;
      private Hashtable _CompOrdersHash;
      private List<clsFASorders.scOrderFas> _OpenOrderFas;
      private List<clsFASorders.scOrderFas> _CompOrderFas;
      private clsFASorders.scFABSummary _OpenFABSummary;
      private clsFASorders.scFABSummary _CompFABSummary;

      public Hashtable OpenOrdersHash
      {
        get
        {
          return this._OpenOrdersHash;
        }
        set
        {
          this._OpenOrdersHash = value;
        }
      }

      public Hashtable CompOrdersHash
      {
        get
        {
          return this._CompOrdersHash;
        }
        set
        {
          this._CompOrdersHash = value;
        }
      }

      public List<clsFASorders.scOrderFas> OpenOrderFas
      {
        get
        {
          return this._OpenOrderFas;
        }
        set
        {
          this._OpenOrderFas = value;
        }
      }

      public List<clsFASorders.scOrderFas> CompOrderFas
      {
        get
        {
          return this._CompOrderFas;
        }
        set
        {
          this._CompOrderFas = value;
        }
      }

      public clsFASorders.scFABSummary OpenFABSummary
      {
        get
        {
          return this._OpenFABSummary;
        }
        set
        {
          this._OpenFABSummary = value;
        }
      }

      public clsFASorders.scFABSummary CompFABSummary
      {
        get
        {
          return this._CompFABSummary;
        }
        set
        {
          this._CompFABSummary = value;
        }
      }

      public scFASFAB()
      {
        this._OpenOrdersHash = new Hashtable();
        this._CompOrdersHash = new Hashtable();
        this._OpenOrderFas = new List<clsFASorders.scOrderFas>();
        this._CompOrderFas = new List<clsFASorders.scOrderFas>();
        this._OpenFABSummary = new clsFASorders.scFABSummary();
        this._CompFABSummary = new clsFASorders.scFABSummary();
      }
    }

    public class scFABSummary
    {
      private int _158FRAN;
      private int _158CBUS;
      private int _114EMK;
      private int _114SKR;
      private int _114AMA42;
      private int _11550TON;
      private int _115SHR51;
      private int _11548X48;
      private int _11596X48;
      private int _115AMA51;
      private int _115PERM;
      private int _118TECH;
      private int _118BRK81;

      public int WC158Fran
      {
        get
        {
          return this._158FRAN;
        }
        set
        {
          this._158FRAN = value;
        }
      }

      public int WC158CBUS
      {
        get
        {
          return this._158CBUS;
        }
        set
        {
          this._158CBUS = value;
        }
      }

      public int WC114EMK
      {
        get
        {
          return this._114EMK;
        }
        set
        {
          this._114EMK = value;
        }
      }

      public int WC114SKR
      {
        get
        {
          return this._114SKR;
        }
        set
        {
          this._114SKR = value;
        }
      }

      public int WCEMKTotal
      {
        get
        {
          return checked (this._114EMK + this._114SKR);
        }
      }

      public int WC114AMA42
      {
        get
        {
          return this._114AMA42;
        }
        set
        {
          this._114AMA42 = value;
        }
      }

      public int WC11550TON
      {
        get
        {
          return this._11550TON;
        }
        set
        {
          this._11550TON = value;
        }
      }

      public int WC115SHR51
      {
        get
        {
          return this._115SHR51;
        }
        set
        {
          this._115SHR51 = value;
        }
      }

      public int WC11548X48
      {
        get
        {
          return this._11548X48;
        }
        set
        {
          this._11548X48 = value;
        }
      }

      public int WC11596X48
      {
        get
        {
          return this._11596X48;
        }
        set
        {
          this._11596X48 = value;
        }
      }

      public int WC115AMA51
      {
        get
        {
          return this._115AMA51;
        }
        set
        {
          this._115AMA51 = value;
        }
      }

      public int WC115PERM
      {
        get
        {
          return this._115PERM;
        }
        set
        {
          this._115PERM = value;
        }
      }

      public int WC118TECH
      {
        get
        {
          return this._118TECH;
        }
        set
        {
          this._118TECH = value;
        }
      }

      public int WC118BRK81
      {
        get
        {
          return this._118BRK81;
        }
        set
        {
          this._118BRK81 = value;
        }
      }

      public int WCAmadaTotal
      {
        get
        {
          return checked (this._11548X48 + this._11596X48 + this._115AMA51 + this._115PERM + this._118TECH);
        }
      }

      public scFABSummary()
      {
        this._158FRAN = 0;
        this._158CBUS = 0;
        this._114EMK = 0;
        this._114SKR = 0;
        this._114AMA42 = 0;
        this._11550TON = 0;
        this._115SHR51 = 0;
        this._11548X48 = 0;
        this._11596X48 = 0;
        this._115AMA51 = 0;
        this._115PERM = 0;
        this._118TECH = 0;
        this._118BRK81 = 0;
      }
    }

    public class scUpdProgress
    {
      private clsFASorders.emUpdateProgType _UpdateType;
      private string _UpdateStatus;

      public clsFASorders.emUpdateProgType UpdateType
      {
        get
        {
          return this._UpdateType;
        }
        set
        {
          this._UpdateType = value;
        }
      }

      public string UpdateStatus
      {
        get
        {
          return this._UpdateStatus;
        }
        set
        {
          this._UpdateStatus = value;
        }
      }

      public scUpdProgress()
      {
        this._UpdateType = clsFASorders.emUpdateProgType.OrderInfo;
        this._UpdateStatus = "";
      }

      public scUpdProgress(clsFASorders.emUpdateProgType UpdType, string UpdStatus)
      {
        this._UpdateType = UpdType;
        this._UpdateStatus = UpdStatus;
      }
    }

    public enum emUpdateProgType
    {
      OrderInfo,
      ResultStatus,
    }
  }
}
