Exemplo n.º 1
0
        private void reporting()
        {
            if (this.dgv.RowCount == 0)
            {
                genericDefinitions.dangerInfo("No hay registros para imprimir.");
                this.txtidcliente.Focus();
            }
            else
            {
                switch (this.gridmode)
                {
                case ("CONSULTA_CLIENTES"):
                {
                    this.schemacommit = new dgvtoxml_dataset(this.dgv, this.Name + "_" + this.gridmode);
                    this.schemacommit.create();
                    this.reportegeneral = new frmrptclientes_general(this.schemacommit.getdatatable());
                    this.reportegeneral.ShowDialog();
                    break;
                }

                case ("CONSULTA_CLIENTES_VENTA"):
                {
                    this.schemacommit = new dgvtoxml_dataset(this.dgv, this.Name + "_" + this.gridmode);
                    this.schemacommit.create();
                    this.reporteclientesventas = new frmrptclientes_ventas(this.schemacommit.getdatatable());
                    this.reporteclientesventas.ShowDialog();
                    break;
                }
                }
            }
        }
 private void btnprint_Click(object sender, EventArgs e)
 {
     this.schemadgv = new dgvtoxml_dataset(this.dgv, this.Name);
     this.schemadgv.create();
     this.reporte = new rptseeproductsinternal(this.schemadgv.getdatatable());
     this.reporte.ShowDialog();
 }
Exemplo n.º 3
0
        private void imprime()
        {
            this.xmlwriter = new dgvtoxml_dataset(this.dgv, this.Name + "CONSULTAVENTAGENERAL");
            this.xmlwriter.create();
            frmrptventa_general vista = new frmrptventa_general(this.xmlwriter.getdatatable(), this.txtmonto.Text.Trim());

            vista.ShowDialog();
        }
Exemplo n.º 4
0
 public xmlTicket()
 {
     InitializeComponent();
     this.db         = new DB.dbop();
     this.xmlwritter = new dgvtoxml_dataset(this.db.getdetallesticketasTable(this.numeroventa), "TicketVenta");
 }