private XtraReport rpt() { sc = new wrSuppliers.Server2Client(); sup = new wrSuppliers.wsSuppliers(); sc = sup.getSuppliersFull(); Utils u = new Utils(); rptCustomers rpt = new rptCustomers() { DataSource = sc.dataTable }; XRSummary tbal = new XRSummary(); rpt.lbCNM.DataBindings.Add("Text", null, "SupplierName"); rpt.lbADR.DataBindings.Add("Text", null, "Address"); rpt.lbPHN.DataBindings.Add("Text", null, "Phone"); rpt.lbEML.DataBindings.Add("Text", null, "Email"); rpt.lbBAL.DataBindings.Add("Text", null, "Balance", "{0:C2}"); rpt.lbTBAL.DataBindings.Add("Text", null, "Balance", "{0:C2}"); tbal.FormatString = "{0:C2}"; tbal.Running = SummaryRunning.Report; rpt.lbTBAL.Summary = tbal; return(rpt); }
private void bSuppliersList_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { wrSuppliers.Server2Client sc = new wrSuppliers.Server2Client(); wrSuppliers.wsSuppliers sup = new wrSuppliers.wsSuppliers(); sc = sup.getSuppliersFull(); rptSuppliers rpt = new rptSuppliers() { DataSource = sc.dataTable }; XRSummary tbal = new XRSummary(); rpt.lbCNM.DataBindings.Add("Text", null, "SupplierName"); rpt.lbADR.DataBindings.Add("Text", null, "Address"); rpt.lbPHN.DataBindings.Add("Text", null, "Phone"); rpt.lbEML.DataBindings.Add("Text", null, "Email"); rpt.lbBAL.DataBindings.Add("Text", null, "Balance", "{0:C2}"); rpt.lbTBAL.DataBindings.Add("Text", null, "Balance", "{0:C2}"); tbal.FormatString = "{0:C2}"; tbal.Running = SummaryRunning.Report; rpt.lbTBAL.Summary = tbal; dv.PrintingSystem = rpt.PrintingSystem; rpt.CreateDocument(true); }
public frmDebitPayment() { InitializeComponent(); txtPDT.DateTime = DateTime.Now.Date; sc = new wrSuppliers.Server2Client(); sup = new wrSuppliers.wsSuppliers(); sc = sup.getSuppliersFull(); lueSNM.Properties.DataSource = sc.dataTable; lueSNM.Properties.DisplayMember = "SupplierName"; lueSNM.Properties.ValueMember = "ID"; txtCBAL.Text = "0"; txtAMNT.Text = "0"; txtNBAL.Text = "0"; }