public void RunReportTest() { Current.Company_id = "1"; Current.Acy_id = "4"; Current.Comp_code = CCompany_exten.GetCode_id(Current.Company_id); new SetCustomised(); Customised.TaxType = Core.SGST; List <PrintCopies> printdata = new List <PrintCopies>(); PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.FirstCopy; D_Creditnote.Build(); D_CreditnoteItem.Build(); FReportPreview frpt = new FReportPreview(); frpt.reportViewer1.ShowPrintButton = true; P_Creditnote.Print(frpt.reportViewer1, ("7"), printdata); //P_CreditnoteItem.Print(frpt.reportViewer1, ("6")); frpt.Show(); frpt.BringToFront(); }
public RunReportTest() { Current.Comp_code = CCompany_exten.GetCode_id(Current.Company_id); new SetCustomised(); Customised.TaxType = "Test invoice"; List <PrintCopies> printdata = new List <PrintCopies>(); PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.FirstCopy; D_Invoice.Build(); D_InvoiceItem.Build(); FReportPreview frpt = new FReportPreview(); frpt.reportViewer1.ShowPrintButton = true; P_Invoice.Print(frpt.reportViewer1, ("6"), printdata); //P_InvoiceItem.Print(frpt.reportViewer1, ("6")); frpt.Show(); }
private void Print_copies() { /// List <PrintCopies> printdata = new List <PrintCopies>(); /// if (check_original.Checked) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.FirstCopy; } /// if ((check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.SecondCopy; } else if ((check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.SecondCopy; } /// if ((check_triplicate.Checked) && (check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[2].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (!check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (!check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.ThirdCopy; } //if (Customise.IsDivision == true) //{ // Customise.SetDivision(Current.Company_id); //} //if (Core.TaxType == "1") //{ // D_PurchaseItem.Build(); // D_Purchase.Build(); //} //else //{ // D_IgstPurchaseItem.build(); // D_IgstPurchase.build(); //} FReportPreview frpt = new FReportPreview(); frpt.reportViewer1.ShowPrintButton = true; // P_Purchase.Print(frpt.reportViewer1, (vId), printdata); frpt.Show(); print_panel.Hide(); this.Hide(); //if (Current.Company_id == "1") //{ //D_PurchaseItem.build(); //D_Purchase.build(); //FReportPreview frpt = new FReportPreview(); //frpt.reportViewer1.ShowPrintButton = true; //P_Purchase.Print(frpt.reportViewer1, (vId), printdata); //frpt.Show(); //print_panel.Hide(); //this.Hide(); //} //else //{ // D2_PurchaseItem.build(); // D2_Purchase.build(); // FReportPreview frpt = new FReportPreview(); // frpt.reportViewer1.ShowPrintButton = true; // P2_Purchase.Print(frpt.reportViewer1, (vPurchase_id), printdata); // frpt.Show(); // print_panel.Hide(); // this.Hide(); }
private void Print_copies() { /// List <PrintCopies> printdata = new List <PrintCopies>(); /// if (check_original.Checked) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.FirstCopy; } /// if ((check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.SecondCopy; } else if ((check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.SecondCopy; } /// if ((check_triplicate.Checked) && (check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[2].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (!check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (!check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.ThirdCopy; } Current.Comp_code = CCompany_exten.GetCode_id(Current.Company_id); new SetCustomised(); Customised.TaxType = txt_taxtype_id.Text; D_Creditnote.Build(); D_CreditnoteItem.Build(); FReportPreview frpt = new FReportPreview(); frpt.reportViewer1.ShowPrintButton = true; P_Creditnote.Print(frpt.reportViewer1, (vId), printdata); //P_CreditnoteItem.Print(frpt.reportViewer1, (vId)); frpt.Show(); print_panel.Hide(); this.Hide(); }
private void Print_copies() { /// List <PrintCopies> printdata = new List <PrintCopies>(); /// if (check_original.Checked) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.FirstCopy; } /// if ((check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.SecondCopy; } else if ((check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.SecondCopy; } /// if ((check_triplicate.Checked) && (check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[2].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (!check_duplicate.Checked) && (check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (!check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[0].Copies = _printdata.ThirdCopy; } else if ((check_triplicate.Checked) && (check_duplicate.Checked) && (!check_original.Checked)) { PrintCopies _printdata = new PrintCopies(); printdata.Add(_printdata); printdata[1].Copies = _printdata.ThirdCopy; } //if (Current.Company_id == "1") //{ CXBILL.Upvc.print.D_InvoiceItem.build(); CXBILL.Upvc.print.D_Invoice.build(); FReportPreview frpt = new FReportPreview(); frpt.reportViewer1.ShowPrintButton = true; CXBILL.Upvc.print.P_Invoice.Print(frpt.reportViewer1, (vId), printdata); frpt.Show(); print_panel.Hide(); this.Hide(); //} //else //{ // D2_InvoiceItem.build(); // D2_Invoice.build(); // FReportPreview frpt = new FReportPreview(); // frpt.reportViewer1.ShowPrintButton = true; // P2_Invoice.Print(frpt.reportViewer1, (vInvoice_id), printdata); // frpt.Show(); // print_panel.Hide(); // this.Hide(); //new RunPrint().ShowReport(); }