Esempio n. 1
0
 public static bool insertPO_Product(APCEntities APCContext, PO po, Category category, string description, int quantity, decimal price, decimal serviceCharge, decimal totalPrice, bool subcon)
 {
     PO_Product po_product = new PO_Product();
     po_product.PO = po;
     po_product.Category = category;
     po_product.Description = description;
     po_product.Quantity = quantity;
     po_product.Price = price;
     po_product.ServiceCharge = serviceCharge;
     po_product.PriceTotal = totalPrice;
     po_product.SubCon = subcon;
     APCContext.AddToPO_Product(po_product);
     APCContext.SaveChanges();
     return true;
 }
Esempio n. 2
0
        public static bool insertPO_Product(APCEntities APCContext, PO po, Category category, string description, int quantity, decimal price, decimal serviceCharge, decimal totalPrice, bool subcon)
        {
            PO_Product po_product = new PO_Product();

            po_product.PO            = po;
            po_product.Category      = category;
            po_product.Description   = description;
            po_product.Quantity      = quantity;
            po_product.Price         = price;
            po_product.ServiceCharge = serviceCharge;
            po_product.PriceTotal    = totalPrice;
            po_product.SubCon        = subcon;
            APCContext.AddToPO_Product(po_product);
            APCContext.SaveChanges();
            return(true);
        }