protected void ButtonDelete_Click(object sender, EventArgs e)
 {
     using (PurchaseOrderManager pom = new PurchaseOrderManager())
     {
         PurchaseOrderItem item = pom.FindPurchaseOrderItemByID(Convert.ToInt32(TextBox2.Text.ToString()));
         pom.DeletePurchaseOrderItem(item);
     }
 }
 // test findPOItemByPOItemID
 protected void Button2_Click(object sender, EventArgs e)
 {
     using (PurchaseOrderManager pom = new PurchaseOrderManager())
     {
         PurchaseOrderItem item = pom.FindPurchaseOrderItemByID(Convert.ToInt32(TextBox2.Text.ToString()));
         item.QuantityToOrder = 80;
         PurchaseOrderItem itemUpdate = pom.UpdatePurchaseOrderItem(item);
     }
 }
 //test CreatPOItem
 protected void ButtonAddNew_Click(object sender, EventArgs e)
 {
     using (PurchaseOrderManager pom = new PurchaseOrderManager())
     {
         PurchaseOrderItem item = pom.FindPurchaseOrderItemByID(509);
         PurchaseOrderItem newItem = new PurchaseOrderItem();
         newItem.QuantityToOrder = item.QuantityToOrder;
         newItem.StationeryID = item.StationeryID;
         newItem.PurchaseOrderID = item.PurchaseOrderID;
         newItem.Price = item.Price;
         newItem.DeliveryRemarks = item.DeliveryRemarks;
         PurchaseOrderItem newItem1 = pom.CreatePurchaseOrderItem(newItem);
     }
 }