Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            DataRowView FacturaActual = (DataRowView)facturasCabListaBindingSource.Current;

            if (Convert.IsDBNull(FacturaActual["esPrevision"]) == false)
            {
                RptFacturasManualImp frm = new RptFacturasManualImp();
                frm.LoadFiltro(Convert.ToInt32(idFactCabComboBox.SelectedValue));
                frm.MdiParent = this.MdiParent;
                frm.Show();
            }
            else
            {
                if ((Boolean)FacturaActual["EsFactura"] == true)
                {
                    int Factura = Convert.ToInt32(FacturaActual["IdFactCab"]);


                    RptFacturasHorasImp frm = new RptFacturasHorasImp();
                    frm.LoadFiltro(Factura, false);
                    frm.MdiParent = this.MdiParent;
                    frm.Show();
                }
                else
                {
                    int Factura = Convert.ToInt32(FacturaActual["IdFactCab"]);


                    RptFacturasHorasImpParte frm = new RptFacturasHorasImpParte();
                    frm.LoadFiltro(Factura, false);
                    frm.MdiParent = this.MdiParent;
                    frm.Show();
                }
            }
        }
Exemple #2
0
        private void printToolStripButton_Click(object sender, EventArgs e)
        {
            DataRowView FacturaAct = (DataRowView)facturasCabBindingSource.Current;

            int Factura = Convert.ToInt32(FacturaAct["IdFactCab"]);


            RptFacturasManualImp frm = new RptFacturasManualImp();

            frm.LoadFiltro(Factura);
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }