Exemplo n.º 1
0
 // Display orders awaiting shipping
 protected void awaitingShippingGo_Click(object sender, EventArgs e)
 {
     try
     {
         List <OrderInfo> orders = CommerceLibAccess.GetOrdersByStatus(6);
         grid.DataSource = orders;
         if (orders.Count == 0)
         {
             errorLabel.Text = "No orders awaiting shipment.";
         }
         grid.DataBind();
     }
     catch
     {
         errorLabel.Text = "Couldn't get the requested orders!";
     }
 }
Exemplo n.º 2
0
 // Display orders awaiting stock
 protected void awaitingStockGo_Click(object sender, EventArgs eventArgs)
 {
     try
     {
         List <OrderInfo> orders = CommerceLibAccess.GetOrdersByStatus(3);
         grid.DataSource = orders;
         if (orders.Count == 0)
         {
             errorLabel.Text = "No orders awaiting stock check.";
         }
         grid.DataBind();
     }
     catch (Exception e)
     {
         Utilities.LogError(e);
         errorLabel.Text = "Couldn't get the requested orders!";
     }
 }
Exemplo n.º 3
0
 // Display orders awaiting stock
 protected void awaitingStockGo_Click(object sender, EventArgs e)
 {
     try
     {
         List <CommerceLibOrderInfo> orders =
             CommerceLibAccess.GetOrdersByStatus(3);
         grid.DataSource = orders;
         if (orders.Count == 0)
         {
             errorLabel.Text = "Няма чакащи поръчки наличността проверена.";
         }
         grid.DataBind();
     }
     catch
     {
         errorLabel.Text = "Поисканите поръчки не бяха намерени!";
     }
 }
Exemplo n.º 4
0
    // Display orders awaiting shipping
    protected void awaitingShippingGo_Click(object sender, EventArgs e)
    {
        try
        {
            List <CommerceLibOrderInfo> orders =
                CommerceLibAccess.GetOrdersByStatus(6);
            grid.DataSource = orders;
            if (orders.Count == 0)
            {
                errorLabel.Text = "Няма продукти очакващи изпращане.";
            }
            grid.DataBind();
        }

        catch
        {
            errorLabel.Text = "Поисканите поръчки не бяха намерени!";
        }
    }
 // Display orders awaiting stock
 protected void awaitingStockGo_Click(object sender, EventArgs e)
 {
     try
     {
         List <CommerceLibOrderInfo> orders =
             CommerceLibAccess.GetOrdersByStatus(3);
         grid.DataSource = orders;
         if (orders.Count == 0)
         {
             errorLabel.Text = "<br />No orders awaiting stock check.";
         }
     }
     catch
     {
         errorLabel.Text = "<br />Couldn't get the requested orders!";
     }
     finally
     {
         grid.DataBind();
     }
 }