Ejemplo n.º 1
0
 private void BindHistory()
 {
     Order order = (Order)Session["ViewCurrentOrder"];
     OrderStatusHistory his = new OrderStatusHistory();
     his.GetOrderStatusHistory(order.OrderID);
     uiGridViewHistory.DataSource = his.DefaultView;
     uiGridViewHistory.DataBind();
 }
Ejemplo n.º 2
0
        protected void uiLinkButtonUpdateStatus_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(uiDropDownListStatus.SelectedValue))
            {
                CurrentOrder.OrderStatusID = Convert.ToInt32(uiDropDownListStatus.SelectedValue);
                CurrentOrder.Save();

                OrderStatusHistory history = new OrderStatusHistory();
                history.AddNew();
                history.ChangeDate = DateTime.Now;
                history.OrderID = CurrentOrder.OrderID;
                history.OrderStatusID = CurrentOrder.OrderStatusID;
                history.Save();
            }
        }