Пример #1
0
 public string ReorderInfo(int orderid, int lineid)
 {
     try
     {
         string prod = "";
         prod = OrderDA.ReorderInfo(orderid, lineid);
         return(prod);
     }
     finally { }
 }
Пример #2
0
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        string prod    = OrderDA.ReorderInfo(orderid, lineid);
        int    quant   = OrderDA.GetProdQuantity(orderid, lineid);
        int    product = Convert.ToInt32(prod);

        //int quantity = Convert.ToInt32(quant);


        //OrderDA.DeleteOrder(orderid); //don't delete order b/c might still have items
        OrderDA.DeleteOrderDetails(orderid, lineid);
        //should update on hand
        OrderDA.UpdateProductQuant(product, quant);

        /*should tell manager to recalc total and provide refund if needed
         * give them the order number, so they can look up what's left on the order
         * and what payment info was provided, so they can give refund if already charged*/
        string message = SendEmail();

        //should tell customer it worked and what to expect
        Response.Redirect("~/User/DeletedConfirmation.aspx");
    }