-
Notifications
You must be signed in to change notification settings - Fork 1
/
frmrptticket.cs
49 lines (45 loc) · 1.6 KB
/
frmrptticket.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using CrystalDecisions.Shared;
using MundoMusical.XBASE;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MundoMusical.TICKET.CRYSTAL_RPT_TICKET
{
public partial class frmrptticket : crystalrptformBase
{
private rptticket reporte;
public frmrptticket()
{
InitializeComponent();
}
public frmrptticket(rptticket reporte):base(new DataTable())
{
InitializeComponent();
this.reporte = reporte;
this.FormClosed += (sender, args) => { this.reporte.Close(); this.reporte.Dispose(); };
}
public frmrptticket(rptticket reporte, ParameterFields listparams):base(new DataTable())
{
InitializeComponent();
this.reporte = reporte;
this.FormClosed += (sender, args) => { this.reporte.Close(); this.reporte.Dispose(); };
this.crv.ParameterFieldInfo = listparams;
this.crv.ReuseParameterValuesOnRefresh = false;
}
private void frmrptticket_Load(object sender, EventArgs e)
{
this.crv.ReportSource = this.reporte;
this.crv.ShowPrintButton = false;
this.crv.ShowCloseButton = false;
this.crv.ShowCopyButton = false;
this.crv.ShowGroupTreeButton = false;
this.crv.ShowRefreshButton = false;
}
}
}