// Decompiled with JetBrains decompiler
// Type: SE0085.dBc.SE0085CTEntities1
// Assembly: SE0085dBc, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null
// MVID: 1D280293-B91C-46EA-A3BF-F18C4E33A97F
// Assembly location: C:\Users\Abishek\Downloads\SchneiderCode_Breaker_09292016\Breaker Schedule-20160930T014118Z\Breaker Schedule\Solution for gathering Breaker Data\DMS\bin\Debug\SE0085dBc.dll

using System;
using System.Data.Entity;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
using System.Diagnostics;

namespace SE0085.dBc
{
  public class SE0085CTEntities1 : DbContext
  {
    public virtual DbSet<AppList> AppLists { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssemblyLine> AssemblyLines { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssocAssigned> AssocAssigneds { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssocAssignType> AssocAssignTypes { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<Associate> Associates { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssocLookup> AssocLookups { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssocUserPriv> AssocUserPrivs { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssyPart> AssyParts { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.DepartmentLevel1> DepartmentLevel1 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.DepartmentLevel2> DepartmentLevel2 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.DepartmentLevel3> DepartmentLevel3 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.DepartmentLevel4> DepartmentLevel4 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.DepartmentLevel5> DepartmentLevel5 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.DepartmentLevel6> DepartmentLevel6 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.DepartmentLevel7> DepartmentLevel7 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<FlowLaneType> FlowLaneTypes { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<GatexRef> GatexRefs { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<HolidayList> HolidayLists { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<LaborVoucher> LaborVouchers { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderFollowUpType> OrderFollowUpTypes { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderLineComment> OrderLineComments { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderLinesExt> OrderLinesExts { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderLineStat> OrderLineStats { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrdFASExt> OrdFASExts { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrdFASExtDtl> OrdFASExtDtls { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrdLineAssocAssigned> OrdLineAssocAssigneds { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrdSection> OrdSections { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.PartAttr1> PartAttr1 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<PartType> PartTypes { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<ProdExecKPI> ProdExecKPIs { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<ProdFlowLane> ProdFlowLanes { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<ProdKPIGate> ProdKPIGates { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<ProductionCount> ProductionCounts { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<RecoData> RecoDatas { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<RoutingSeq> RoutingSeqs { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SchPeltLT> SchPeltLTs { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SectionsRouting> SectionsRoutings { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SectLaborContent> SectLaborContents { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SEOrder> SEOrders { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SEPlant> SEPlants { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.TPickLoc1> TPickLoc1 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.TPickLoc1Save> TPickLoc1Save { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<TPickType> TPickTypes { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.mdsq2ccd> mdsq2ccd { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<VendorXref> VendorXrefs { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssocAssignVw> AssocAssignVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<AssyPartVendorXrefVw> AssyPartVendorXrefVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<DispatchRoutingCell> DispatchRoutingCells { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<FASDtlReqSect> FASDtlReqSects { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<FASDtlRequestInt> FASDtlRequestInts { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<MFGExecVw> MFGExecVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OFORecoVw> OFORecoVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.OrderDataVw01> OrderDataVw01 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.OrderDataVw02> OrderDataVw02 { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderKitStartDtVw> OrderKitStartDtVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderKitStwOrderLineIdVw> OrderKitStwOrderLineIdVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderLinesVw> OrderLinesVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderScheduleRequired> OrderScheduleRequireds { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrdersVw> OrdersVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<ProdExecKPIVw> ProdExecKPIVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<RoutingLaborVw> RoutingLaborVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.Schedule01Vw> Schedule01Vw { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.Schedule02Vw> Schedule02Vw { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.Schedule03Vw> Schedule03Vw { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SE0085.dBc.Schedule04Vw> Schedule04Vw { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SectLaborContentVw> SectLaborContentVws { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<SectLaborGateError> SectLaborGateErrors { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public virtual DbSet<OrderLine> OrderLines { [DebuggerNonUserCode] get; [DebuggerNonUserCode] set; }

    public SE0085CTEntities1()
      : base("name=SE0085CTEntities1")
    {
    }

    protected override void OnModelCreating(DbModelBuilder modelBuilder)
    {
      throw new UnintentionalCodeFirstException();
    }

    public virtual ObjectResult<RtnEngrRelAct_Result> RtnEngrRelAct(DateTime? pEngRelSt, DateTime? pEngRelEn)
    {
      return this.ObjectContext.ExecuteFunction<RtnEngrRelAct_Result>("RtnEngrRelAct", new ObjectParameter[2]{ pEngRelSt.HasValue ? new ObjectParameter("pEngRelSt", (object) pEngRelSt) : new ObjectParameter("pEngRelSt", typeof (DateTime)), pEngRelEn.HasValue ? new ObjectParameter("pEngRelEn", (object) pEngRelEn) : new ObjectParameter("pEngRelEn", typeof (DateTime)) });
    }

    public virtual int RtnMESStatMain(string pAssemblyLineAbbrv, string pOrdSectsProdNum, ObjectParameter rCompleteThru, ObjectParameter rInProcessAt, ObjectParameter rQueuedAt)
    {
      return this.ObjectContext.ExecuteFunction("RtnMESStatMain", pAssemblyLineAbbrv != null ? new ObjectParameter("pAssemblyLineAbbrv", (object) pAssemblyLineAbbrv) : new ObjectParameter("pAssemblyLineAbbrv", typeof (string)), pOrdSectsProdNum != null ? new ObjectParameter("pOrdSectsProdNum", (object) pOrdSectsProdNum) : new ObjectParameter("pOrdSectsProdNum", typeof (string)), rCompleteThru, rInProcessAt, rQueuedAt);
    }

    public virtual int RtnMESStatSubProc(string pAssemblyLineAbbrv, string pOrdSectsProdNum, ObjectParameter rCompleteThru, ObjectParameter rInProcessAt, ObjectParameter rQueuedAt)
    {
      return this.ObjectContext.ExecuteFunction("RtnMESStatSubProc", pAssemblyLineAbbrv != null ? new ObjectParameter("pAssemblyLineAbbrv", (object) pAssemblyLineAbbrv) : new ObjectParameter("pAssemblyLineAbbrv", typeof (string)), pOrdSectsProdNum != null ? new ObjectParameter("pOrdSectsProdNum", (object) pOrdSectsProdNum) : new ObjectParameter("pOrdSectsProdNum", typeof (string)), rCompleteThru, rInProcessAt, rQueuedAt);
    }

    public virtual ObjectResult<RtnMESStatus_Result> RtnMESStatus(string pAssemblyLineAbbrv, string pOrdSectsProdNum, ObjectParameter rCompleteThru, ObjectParameter rInProcessAt, ObjectParameter rQueuedAt)
    {
      return this.ObjectContext.ExecuteFunction<RtnMESStatus_Result>("RtnMESStatus", pAssemblyLineAbbrv != null ? new ObjectParameter("pAssemblyLineAbbrv", (object) pAssemblyLineAbbrv) : new ObjectParameter("pAssemblyLineAbbrv", typeof (string)), pOrdSectsProdNum != null ? new ObjectParameter("pOrdSectsProdNum", (object) pOrdSectsProdNum) : new ObjectParameter("pOrdSectsProdNum", typeof (string)), rCompleteThru, rInProcessAt, rQueuedAt);
    }

    public virtual ObjectResult<string> RtnMESWorkCtrs(string pAssemblyLineAbbrv)
    {
      return this.ObjectContext.ExecuteFunction<string>("RtnMESWorkCtrs", new ObjectParameter[1]{ pAssemblyLineAbbrv != null ? new ObjectParameter("pAssemblyLineAbbrv", (object) pAssemblyLineAbbrv) : new ObjectParameter("pAssemblyLineAbbrv", typeof (string)) });
    }

    public virtual int RtnWorkCtrStats(string pWorkCtr1, string pWorkCtr2, ObjectParameter inQueue, ObjectParameter inProcess, ObjectParameter jobComplete)
    {
      return this.ObjectContext.ExecuteFunction("RtnWorkCtrStats", pWorkCtr1 != null ? new ObjectParameter("pWorkCtr1", (object) pWorkCtr1) : new ObjectParameter("pWorkCtr1", typeof (string)), pWorkCtr2 != null ? new ObjectParameter("pWorkCtr2", (object) pWorkCtr2) : new ObjectParameter("pWorkCtr2", typeof (string)), inQueue, inProcess, jobComplete);
    }

    public virtual int sp_CloseFASOrder(string pFASAsmbLn, string pFASOrdNbr, int? pOrdSectsNum, int? pQtyComplete)
    {
      return this.ObjectContext.ExecuteFunction("sp_CloseFASOrder", pFASAsmbLn != null ? new ObjectParameter("pFASAsmbLn", (object) pFASAsmbLn) : new ObjectParameter("pFASAsmbLn", typeof (string)), pFASOrdNbr != null ? new ObjectParameter("pFASOrdNbr", (object) pFASOrdNbr) : new ObjectParameter("pFASOrdNbr", typeof (string)), pOrdSectsNum.HasValue ? new ObjectParameter("pOrdSectsNum", (object) pOrdSectsNum) : new ObjectParameter("pOrdSectsNum", typeof (int)), pQtyComplete.HasValue ? new ObjectParameter("pQtyComplete", (object) pQtyComplete) : new ObjectParameter("pQtyComplete", typeof (int)));
    }

    public virtual int sp_FabSchBreakdown(string pQ2C)
    {
      return this.ObjectContext.ExecuteFunction("sp_FabSchBreakdown", new ObjectParameter[1]{ pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)) });
    }

    public virtual int sp_InitRel2MfgDate()
    {
      return this.ObjectContext.ExecuteFunction("sp_InitRel2MfgDate");
    }

    public virtual int sp_MESStatMainQR(string pAssemblyLineAbbrv, string pOrdSectsProdNum, ObjectParameter rCompleteThru, ObjectParameter rInProcessAt, ObjectParameter rQueuedAt, ObjectParameter rOTOS, ObjectParameter rWCOTMin)
    {
      return this.ObjectContext.ExecuteFunction("sp_MESStatMainQR", pAssemblyLineAbbrv != null ? new ObjectParameter("pAssemblyLineAbbrv", (object) pAssemblyLineAbbrv) : new ObjectParameter("pAssemblyLineAbbrv", typeof (string)), pOrdSectsProdNum != null ? new ObjectParameter("pOrdSectsProdNum", (object) pOrdSectsProdNum) : new ObjectParameter("pOrdSectsProdNum", typeof (string)), rCompleteThru, rInProcessAt, rQueuedAt, rOTOS, rWCOTMin);
    }

    public virtual int sp_MESStatSubProcQR(string pAssemblyLineAbbrv, string pOrdSectsProdNum, ObjectParameter rCompleteThru, ObjectParameter rInProcessAt, ObjectParameter rQueuedAt, ObjectParameter rOTOS, ObjectParameter rWCOTMin)
    {
      return this.ObjectContext.ExecuteFunction("sp_MESStatSubProcQR", pAssemblyLineAbbrv != null ? new ObjectParameter("pAssemblyLineAbbrv", (object) pAssemblyLineAbbrv) : new ObjectParameter("pAssemblyLineAbbrv", typeof (string)), pOrdSectsProdNum != null ? new ObjectParameter("pOrdSectsProdNum", (object) pOrdSectsProdNum) : new ObjectParameter("pOrdSectsProdNum", typeof (string)), rCompleteThru, rInProcessAt, rQueuedAt, rOTOS, rWCOTMin);
    }

    public virtual int sp_OSEng_dB01_Refresh()
    {
      return this.ObjectContext.ExecuteFunction("sp_OSEng_dB01_Refresh");
    }

    public virtual int sp_OSOrderData_Refresh()
    {
      return this.ObjectContext.ExecuteFunction("sp_OSOrderData_Refresh");
    }

    public virtual ObjectResult<sp_RemainingKits_Result> sp_RemainingKits(string pAssyLine, int? pDaysBefore, int? pDaysAfter)
    {
      return this.ObjectContext.ExecuteFunction<sp_RemainingKits_Result>("sp_RemainingKits", pAssyLine != null ? new ObjectParameter("pAssyLine", (object) pAssyLine) : new ObjectParameter("pAssyLine", typeof (string)), pDaysBefore.HasValue ? new ObjectParameter("pDaysBefore", (object) pDaysBefore) : new ObjectParameter("pDaysBefore", typeof (int)), pDaysAfter.HasValue ? new ObjectParameter("pDaysAfter", (object) pDaysAfter) : new ObjectParameter("pDaysAfter", typeof (int)));
    }

    public virtual int sp_renamediagram(string diagramname, int? owner_id, string new_diagramname)
    {
      return this.ObjectContext.ExecuteFunction("sp_renamediagram", diagramname != null ? new ObjectParameter("diagramname", (object) diagramname) : new ObjectParameter("diagramname", typeof (string)), owner_id.HasValue ? new ObjectParameter("owner_id", (object) owner_id) : new ObjectParameter("owner_id", typeof (int)), new_diagramname != null ? new ObjectParameter("new_diagramname", (object) new_diagramname) : new ObjectParameter("new_diagramname", typeof (string)));
    }

    public virtual ObjectResult<string> sp_rtnOrderScheduleReq(string pAssyLine)
    {
      return this.ObjectContext.ExecuteFunction<string>("sp_rtnOrderScheduleReq", new ObjectParameter[1]{ pAssyLine != null ? new ObjectParameter("pAssyLine", (object) pAssyLine) : new ObjectParameter("pAssyLine", typeof (string)) });
    }

    public virtual ObjectResult<sp_rtnSectionStatus_Result> sp_rtnSectionStatus(string pProductionOrder)
    {
      return this.ObjectContext.ExecuteFunction<sp_rtnSectionStatus_Result>("sp_rtnSectionStatus", new ObjectParameter[1]{ pProductionOrder != null ? new ObjectParameter("pProductionOrder", (object) pProductionOrder) : new ObjectParameter("pProductionOrder", typeof (string)) });
    }

    public virtual int sp_SchBreakdown(string pQ2C)
    {
      return this.ObjectContext.ExecuteFunction("sp_SchBreakdown", new ObjectParameter[1]{ pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)) });
    }

    public virtual ObjectResult<sp_SelectScheduleHeader_Result> sp_SelectScheduleHeader(string pAssyLine, DateTime? pTargetStart, DateTime? pTargetEnd, int? pRetRows)
    {
      return this.ObjectContext.ExecuteFunction<sp_SelectScheduleHeader_Result>("sp_SelectScheduleHeader", pAssyLine != null ? new ObjectParameter("pAssyLine", (object) pAssyLine) : new ObjectParameter("pAssyLine", typeof (string)), pTargetStart.HasValue ? new ObjectParameter("pTargetStart", (object) pTargetStart) : new ObjectParameter("pTargetStart", typeof (DateTime)), pTargetEnd.HasValue ? new ObjectParameter("pTargetEnd", (object) pTargetEnd) : new ObjectParameter("pTargetEnd", typeof (DateTime)), pRetRows.HasValue ? new ObjectParameter("pRetRows", (object) pRetRows) : new ObjectParameter("pRetRows", typeof (int)));
    }

    public virtual int sp_UpdKitCounts()
    {
      return this.ObjectContext.ExecuteFunction("sp_UpdKitCounts");
    }

    public virtual ObjectResult<spBC9STDCONN_Result> spBC9STDCONN(int? p1, int? p2)
    {
      return this.ObjectContext.ExecuteFunction<spBC9STDCONN_Result>("spBC9STDCONN", new ObjectParameter[2]{ p1.HasValue ? new ObjectParameter("p1", (object) p1) : new ObjectParameter("p1", typeof (int)), p2.HasValue ? new ObjectParameter("p2", (object) p2) : new ObjectParameter("p2", typeof (int)) });
    }

    public virtual int spCleanMES()
    {
      return this.ObjectContext.ExecuteFunction("spCleanMES");
    }

    public virtual int spG100BSeSWBDS4(string pQ2C)
    {
      return this.ObjectContext.ExecuteFunction("spG100BSeSWBDS4", new ObjectParameter[1]{ pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)) });
    }

    public virtual int spMESWorkCtrQueue(string pPreWorkCenter, string pAltPreWorkCenter, string pWorkCenter, ObjectParameter rQueueCnt)
    {
      return this.ObjectContext.ExecuteFunction("spMESWorkCtrQueue", pPreWorkCenter != null ? new ObjectParameter("pPreWorkCenter", (object) pPreWorkCenter) : new ObjectParameter("pPreWorkCenter", typeof (string)), pAltPreWorkCenter != null ? new ObjectParameter("pAltPreWorkCenter", (object) pAltPreWorkCenter) : new ObjectParameter("pAltPreWorkCenter", typeof (string)), pWorkCenter != null ? new ObjectParameter("pWorkCenter", (object) pWorkCenter) : new ObjectParameter("pWorkCenter", typeof (string)), rQueueCnt);
    }

    public virtual int spOrdersFAScompNotStarted(string pWorkCenter, ObjectParameter rSectionCnt)
    {
      return this.ObjectContext.ExecuteFunction("spOrdersFAScompNotStarted", new ObjectParameter[2]{ pWorkCenter != null ? new ObjectParameter("pWorkCenter", (object) pWorkCenter) : new ObjectParameter("pWorkCenter", typeof (string)), rSectionCnt });
    }

    public virtual ObjectResult<spRtnLVDOMechLine_Result> spRtnLVDOMechLine()
    {
      return this.ObjectContext.ExecuteFunction<spRtnLVDOMechLine_Result>("spRtnLVDOMechLine");
    }

    public virtual int spRtnMFGStart(string pQ2C, ObjectParameter rMFGStart)
    {
      return this.ObjectContext.ExecuteFunction("spRtnMFGStart", new ObjectParameter[2]{ pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)), rMFGStart });
    }

    public virtual ObjectResult<spRtnRecoData01_Result> spRtnRecoData01(string pQ2C, string pAssyPartNum)
    {
      return this.ObjectContext.ExecuteFunction<spRtnRecoData01_Result>("spRtnRecoData01", new ObjectParameter[2]{ pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)), pAssyPartNum != null ? new ObjectParameter("pAssyPartNum", (object) pAssyPartNum) : new ObjectParameter("pAssyPartNum", typeof (string)) });
    }

    public virtual ObjectResult<spRtnSchSWBDMainsKit_Result> spRtnSchSWBDMainsKit()
    {
      return this.ObjectContext.ExecuteFunction<spRtnSchSWBDMainsKit_Result>("spRtnSchSWBDMainsKit");
    }

    public virtual int spUnReleasedLoad(DateTime? pReleaseDt, int? pSWBDBUS, int? pSWBDSM, int? pLVDOBUS, int? pLVDOSM, ObjectParameter pBUSLoadPct, ObjectParameter pSMLoadPct)
    {
      return this.ObjectContext.ExecuteFunction("spUnReleasedLoad", pReleaseDt.HasValue ? new ObjectParameter("pReleaseDt", (object) pReleaseDt) : new ObjectParameter("pReleaseDt", typeof (DateTime)), pSWBDBUS.HasValue ? new ObjectParameter("pSWBDBUS", (object) pSWBDBUS) : new ObjectParameter("pSWBDBUS", typeof (int)), pSWBDSM.HasValue ? new ObjectParameter("pSWBDSM", (object) pSWBDSM) : new ObjectParameter("pSWBDSM", typeof (int)), pLVDOBUS.HasValue ? new ObjectParameter("pLVDOBUS", (object) pLVDOBUS) : new ObjectParameter("pLVDOBUS", typeof (int)), pLVDOSM.HasValue ? new ObjectParameter("pLVDOSM", (object) pLVDOSM) : new ObjectParameter("pLVDOSM", typeof (int)), pBUSLoadPct, pSMLoadPct);
    }

    public virtual int spUpdActAssyStart(string pQ2C, DateTime? pActAssyStart, ObjectParameter rUpdateCnt)
    {
      return this.ObjectContext.ExecuteFunction("spUpdActAssyStart", pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)), pActAssyStart.HasValue ? new ObjectParameter("pActAssyStart", (object) pActAssyStart) : new ObjectParameter("pActAssyStart", typeof (DateTime)), rUpdateCnt);
    }

    public virtual int spUpdQueuedTime(int? pOrdSectsId, string pWorkCenter, DateTime? pQueuedAt)
    {
      return this.ObjectContext.ExecuteFunction("spUpdQueuedTime", pOrdSectsId.HasValue ? new ObjectParameter("pOrdSectsId", (object) pOrdSectsId) : new ObjectParameter("pOrdSectsId", typeof (int)), pWorkCenter != null ? new ObjectParameter("pWorkCenter", (object) pWorkCenter) : new ObjectParameter("pWorkCenter", typeof (string)), pQueuedAt.HasValue ? new ObjectParameter("pQueuedAt", (object) pQueuedAt) : new ObjectParameter("pQueuedAt", typeof (DateTime)));
    }

    public virtual int spUpdRECOdata(string pQ2C, string pPONumber, int? pRecoQty, string pAssyPartNum, DateTime? pRecoUpdateTm, string pRecoType, ObjectParameter rUpdResult)
    {
      return this.ObjectContext.ExecuteFunction("spUpdRECOdata", pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)), pPONumber != null ? new ObjectParameter("pPONumber", (object) pPONumber) : new ObjectParameter("pPONumber", typeof (string)), pRecoQty.HasValue ? new ObjectParameter("pRecoQty", (object) pRecoQty) : new ObjectParameter("pRecoQty", typeof (int)), pAssyPartNum != null ? new ObjectParameter("pAssyPartNum", (object) pAssyPartNum) : new ObjectParameter("pAssyPartNum", typeof (string)), pRecoUpdateTm.HasValue ? new ObjectParameter("pRecoUpdateTm", (object) pRecoUpdateTm) : new ObjectParameter("pRecoUpdateTm", typeof (DateTime)), pRecoType != null ? new ObjectParameter("pRecoType", (object) pRecoType) : new ObjectParameter("pRecoType", typeof (string)), rUpdResult);
    }

    public virtual int spWfnWorkCtrQed(int? pOrdSectId, string pWorkCenter1, string pWorkCenter2, string pWorkCenter3, string pWorkCenter4, string pWorkCenter5, ObjectParameter rQueuedAt)
    {
      return this.ObjectContext.ExecuteFunction("spWfnWorkCtrQed", pOrdSectId.HasValue ? new ObjectParameter("pOrdSectId", (object) pOrdSectId) : new ObjectParameter("pOrdSectId", typeof (int)), pWorkCenter1 != null ? new ObjectParameter("pWorkCenter1", (object) pWorkCenter1) : new ObjectParameter("pWorkCenter1", typeof (string)), pWorkCenter2 != null ? new ObjectParameter("pWorkCenter2", (object) pWorkCenter2) : new ObjectParameter("pWorkCenter2", typeof (string)), pWorkCenter3 != null ? new ObjectParameter("pWorkCenter3", (object) pWorkCenter3) : new ObjectParameter("pWorkCenter3", typeof (string)), pWorkCenter4 != null ? new ObjectParameter("pWorkCenter4", (object) pWorkCenter4) : new ObjectParameter("pWorkCenter4", typeof (string)), pWorkCenter5 != null ? new ObjectParameter("pWorkCenter5", (object) pWorkCenter5) : new ObjectParameter("pWorkCenter5", typeof (string)), rQueuedAt);
    }

    public virtual int UpdAssemblyLine(string pQ2C, int? pAssemLineId)
    {
      return this.ObjectContext.ExecuteFunction("UpdAssemblyLine", new ObjectParameter[2]{ pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)), pAssemLineId.HasValue ? new ObjectParameter("pAssemLineId", (object) pAssemLineId) : new ObjectParameter("pAssemLineId", typeof (int)) });
    }

    public virtual int UpdSectLaborContent(string pOrdFO, string pOrdLine, string pOrdSL, string pOrdSS, int? pSectNum, string pGate, int? pOps, ObjectParameter rUpdtype)
    {
      return this.ObjectContext.ExecuteFunction("UpdSectLaborContent", pOrdFO != null ? new ObjectParameter("pOrdFO", (object) pOrdFO) : new ObjectParameter("pOrdFO", typeof (string)), pOrdLine != null ? new ObjectParameter("pOrdLine", (object) pOrdLine) : new ObjectParameter("pOrdLine", typeof (string)), pOrdSL != null ? new ObjectParameter("pOrdSL", (object) pOrdSL) : new ObjectParameter("pOrdSL", typeof (string)), pOrdSS != null ? new ObjectParameter("pOrdSS", (object) pOrdSS) : new ObjectParameter("pOrdSS", typeof (string)), pSectNum.HasValue ? new ObjectParameter("pSectNum", (object) pSectNum) : new ObjectParameter("pSectNum", typeof (int)), pGate != null ? new ObjectParameter("pGate", (object) pGate) : new ObjectParameter("pGate", typeof (string)), pOps.HasValue ? new ObjectParameter("pOps", (object) pOps) : new ObjectParameter("pOps", typeof (int)), rUpdtype);
    }

    public virtual int sp_DeleteRoutingDataByQ2C(string pQ2C)
    {
      return this.ObjectContext.ExecuteFunction("sp_DeleteRoutingDataByQ2C", new ObjectParameter[1]{ pQ2C != null ? new ObjectParameter("pQ2C", (object) pQ2C) : new ObjectParameter("pQ2C", typeof (string)) });
    }
  }
}
