Exemplo n.º 1
0
        public ReportForm(Company company, Party party, SalesHeader header, List <SalesLineItem> lineItems)
        {
            InitializeComponent();
            this.company   = company;
            this.party     = party;
            this.header    = header;
            this.lineItems = lineItems;

            Text = "Invoice";
        }
Exemplo n.º 2
0
        public CrystalReportsForm(string reportName, SalesHeader header,
                                  Party party, List <SalesLineItem> items, bool isDuplicate = false)
        {
            InitializeComponent();

            Text = "Invoice Printing";

            ReportName     = reportName;
            SalesHeader    = header;
            Party          = party;
            SalesLineItems = items;
            IsDuplicate    = isDuplicate;
        }
Exemplo n.º 3
0
        public ReportForm(string invoiceRDLC, Company company, Party party,
                          SalesHeader header, List <SalesLineItem> lineItems,
                          string formText = "Invoice",
                          string tranName = "") : this()
        {
            this.company   = company;
            this.party     = party;
            this.header    = header;
            this.lineItems = lineItems;
            this.tranName  = tranName;

            Text = formText;
            reportViewer1.LocalReport.ReportEmbeddedResource = $"Prints.{invoiceRDLC}.rdlc";

            if (formText == "Debit Note")
            {
                lblInvoiceType.Visible = false;
                cboInvoiceType.Visible = false;
                btnShow.Visible        = false;
                ShowInvoice();
            }
        }