示例#1
0
        public void initData(Recibo recibo)
        {
            xrSubreportCompany.ReportSource  = new Cabecalho();
            xrSubreportPayments.ReportSource = new PaymentsReciboReport(recibo.Payments.ToList());

            DataSourceRecibo.DataSource = recibo;
            string ve = ConverteParaExtenso.toExtenso(recibo.TotalRecibo);

            xrLabelExtenso.Text = ve.Substring(0, 1).ToUpper() + ve.Substring(1);
        }
示例#2
0
        public void initDate(Invoice iv)
        {
            xrSubreportCompany.ReportSource = new Cabecalho();
            xrSubreportMotivos.ReportSource = new MotivosIsencaoReport(iv.ProductsSales.ToList());
            invoice = iv;
            //nameClient.Value = invoice.Cliente.Cliente;
            InvoiceDataSource.DataSource = invoice.ProductsSales;
            string ve = ConverteParaExtenso.toExtenso(invoice.TotalGeral);

            xrLabelExtenso.Text = ve.Substring(0, 1).ToUpper() + ve.Substring(1);
        }