Example #1
0
        protected void GridPlanning_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            e.Cancel = true;
            PurchaseInvoiceTransactionBO purchaseInvoiceTransactionBO = new PurchaseInvoiceTransactionBO();

            purchaseInvoiceTransactionBO.DeletePlanningTransaction(session, Guid.Parse(e.Keys["TransactionId"].ToString()));
            GridPlanning.DataSource = purchaseInvoiceTransactionBO.GetPlanningTransactionsOfBill(session, BillId);
            GridPlanning.DataBind();
        }
Example #2
0
        protected void GridPlanning_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            e.Cancel = true;
            GridPlanning.CancelEdit();
            PurchaseInvoiceTransactionBO purchaseInvoiceTransactionBO = new PurchaseInvoiceTransactionBO();

            purchaseInvoiceTransactionBO.UpdatePlanningTransaction(session, Guid.Parse(e.Keys["TransactionId"].ToString()), (DateTime)e.NewValues["IssueDate"], (string)e.NewValues["Code"], (double)e.NewValues["Amount"], (string)e.NewValues["Description"], CurrencyId);
            GridPlanning.DataSource = purchaseInvoiceTransactionBO.GetPlanningTransactionsOfBill(session, BillId);
            GridPlanning.DataBind();
        }
Example #3
0
 public void DataBind()
 {
     if (BillId != null)
     {
         PurchaseInvoiceTransactionBO purchaseInvoiceTransactionBO = new PurchaseInvoiceTransactionBO();
         GridPlanning.DataSource = purchaseInvoiceTransactionBO.GetPlanningTransactionsOfBill(session, BillId);
         GridPlanning.DataBind();
         PaymentVoucherTransactionBO paymentVoucherTransactionBO = new PaymentVoucherTransactionBO();
         GridActual.DataSource   = paymentVoucherTransactionBO.GetActuallyCollectedOfBill(session, BillId);
         GridActual.KeyFieldName = "GeneralJournalId";
         GridActual.DataBind();
     }
 }