Beispiel #1
0
        public static void addPurchase(string Username, string Supplier, string GoodPurchased, decimal totalPrice, DateTime purchaseMade, int WorkTypeID)
        {
            PurchaseTableAdapter purchaseAdapter = new PurchaseTableAdapter();

            NuRacingDataSet.PurchaseDataTable purchaseTable = purchaseAdapter.GetData();

            NuRacingDataSet.PurchaseRow newPurchaseRow = purchaseTable.NewPurchaseRow();

            newPurchaseRow.Purchase_Good          = GoodPurchased;
            newPurchaseRow.Purchase_Supplier      = Supplier;
            newPurchaseRow.Purchase_TotalPrice    = totalPrice;
            newPurchaseRow.User_Username          = Username;
            newPurchaseRow.Purchase_DatePurchased = purchaseMade;
            newPurchaseRow.WorkType_UID           = WorkTypeID;

            purchaseTable.AddPurchaseRow(newPurchaseRow);
            purchaseAdapter.Update(purchaseTable);
        }
Beispiel #2
0
 public PurchaseInfo(NuRacingDataSet.PurchaseRow purchaseRow)
 {
 }