protected void UnloadData(AmendmentInvoice aInv) { aInv.Serial = txtInvoiceSerial.Text; aInv.Year = Int32.Parse(txtYear.Text); if (aInv.InvoiceNumber == 0) { aInv.InvoiceNumber = CntAriCli.GetNextInvoiceNumber(aInv.Serial, aInv.Year, ctx); } aInv.InvoiceDate = (DateTime)rddpInvoiceDate.SelectedDate; customerId = Int32.Parse(txtCustomerId.Text); aInv.Customer = CntAriCli.GetCustomer(customerId, ctx); aInv.Reason = txtReason.Text; aInv.Total = CntAriCli.GetAmendmentInvoiceTotal(aInv); txtInvoiceTotal.Text = String.Format("{0:####,#0.00}", aInv.Total); aInv.InvoiceKey = String.Format("{0}-{1:000000}-{2}", aInv.Year, aInv.InvoiceNumber, aInv.Serial); }
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) { UscAmendmentInvoiceLineGrid1.RefreshGrid(true); txtInvoiceTotal.Text = String.Format("{0:####,#0.00}", CntAriCli.GetAmendmentInvoiceTotal(aInv)); }