示例#1
0
 public static PO insertPO(APCEntities APCContext, Supplier supplier, Project project)
 {
     PO po = new PO();
     po.Supplier = supplier;
     po.Project = project;
     po.DateCreated = DateTime.Today;
     po.Invoiced = false;
     APCContext.AddToPO(po);
     APCContext.SaveChanges();
     return po;
 }
示例#2
0
        public static PO insertPO(APCEntities APCContext, Supplier supplier, Project project)
        {
            PO po = new PO();

            po.Supplier    = supplier;
            po.Project     = project;
            po.DateCreated = DateTime.Today;
            po.Invoiced    = false;
            APCContext.AddToPO(po);
            APCContext.SaveChanges();
            return(po);
        }