protected void GridDeliveryPlanning_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e) { e.Cancel = true; GridDeliveryPlanning.CancelEdit(); InventoryTransactionBO purchaseInvoiceTransactionBO = new InventoryTransactionBO(); purchaseInvoiceTransactionBO.UpdateInventoryTransaction(session, Guid.Parse(e.Keys["InventoryTransactionId"].ToString()), (DateTime)e.NewValues["IssueDate"], (string)e.NewValues["Code"], (string)e.NewValues["Description"]); GridDeliveryPlanning.DataSource = purchaseInvoiceTransactionBO.GetDeliveryPlanningForBill <PurchaseInvoice>(session, BillId); GridDeliveryPlanning.DataBind(); }
protected void GridDeliveryPlanning_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e) { e.Cancel = true; GridDeliveryPlanning.CancelEdit(); InventoryTransactionBO saleInvoiceTransactionBO = new InventoryTransactionBO(); saleInvoiceTransactionBO.CreateInventoryTransaction(session, BillId, (DateTime)e.NewValues["IssueDate"], (string)e.NewValues["Code"], (string)e.NewValues["Description"]); GridDeliveryPlanning.DataSource = saleInvoiceTransactionBO.GetDeliveryPlanningForBill <NAS.DAL.Invoice.SalesInvoice>(session, BillId); GridDeliveryPlanning.DataBind(); }