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"; }
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; }
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(); } }