Exemple #1
0
        public void SaveInventoryItem()
        {
            string productID = ProductIDTextBox.Text;
            string productDesc = ProductDescTextBox.Text;
            string purchasePrice = PriceTextBox.Text;
            string primeCategory = GetSelectedPrimeCategory();
            string secondaryCategory = GetSelectedSecCategory();
            string productStatus = "Available";
            string serialNumber = SerialNumberTextBox.Text;
            string saleDate = "1/1/1990";

            DataManager dataManager = new DataManager(connectionString);
            dataManager.InsertInventoryItem(productID,productDesc,purchasePrice,primeCategory,
                                            secondaryCategory,productStatus,serialNumber,saleDate);
        }