/// <summary>
 /// Deprecated Method for adding a new object to the ProductionRuns EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductionRuns(ProductionRun productionRun)
 {
     base.AddObject("ProductionRuns", productionRun);
 }
 /// <summary>
 /// Create a new ProductionRun object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="prdnOrderNo">Initial value of the PrdnOrderNo property.</param>
 /// <param name="prdnTypeID">Initial value of the PrdnTypeID property.</param>
 public static ProductionRun CreateProductionRun(global::System.Decimal id, global::System.String prdnOrderNo, global::System.Decimal prdnTypeID)
 {
     ProductionRun productionRun = new ProductionRun();
     productionRun.ID = id;
     productionRun.PrdnOrderNo = prdnOrderNo;
     productionRun.PrdnTypeID = prdnTypeID;
     return productionRun;
 }
 public CreateRunActionParm RetrieveActionParm(HttpSessionStateBase session, ProductionRun newRun)
 {
     CreateRunActionParm parm = session[ActionParmSessionKey] as CreateRunActionParm;
     if (parm != null)
     {
         parm.RunID = newRun.ID;
         parm.RunDescr = newRun.RunDescr;
     }
     return parm;
 }
 public CST.Prdn.Data.ProductionRun MakeProductionRun()
 {
     CST.Prdn.Data.ProductionRun newRun = new CST.Prdn.Data.ProductionRun();
     newRun.PrdnOrderNo = this.NewPrdnOrderNo;
     newRun.PrdnTypeID = this.NewPrdnTypeID;
     newRun.Description = this.NewDescr;
     return newRun;
 }
        protected ProductionRun MakeProductionNewRun(string orderNo, decimal typeID, string note)
        {
            ProductionRun newRun = new ProductionRun();
            newRun.PrdnOrderNo = orderNo;
            newRun.PrdnTypeID = typeID;
            newRun.Description = note;

            PrdnDBContext.ProductionRuns.AddObject(newRun);
            PrdnDBContext.SaveChanges();

            return newRun;
        }
示例#6
0
 //public PrdnRunLookupModel LookupRunModel { get; set; }
 public void loadFromRun(ProductionRun run)
 {
     RunID = run.ID;
     PrdnOrderNo = run.PrdnOrderNo;
     PrdnTypeCode = run.PrdnType.Code;
     RunDescription = run.RunDescr;
     ProdTypeCD = run.PrdnType.ProdTypeCD;
     ProdTypeDescr = run.PrdnType.ProductType.Description;
 }