Beispiel #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();
                }
            }
        }
        private void toolStripButton16_Click(object sender, EventArgs e)
        {
            if (facturaCheckBox.Checked == true)
            {
                DataRowView FacturaAct = (DataRowView)facturasCabBindingSource.Current;

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


                RptFacturasHorasImp frm = new RptFacturasHorasImp();
                frm.LoadFiltro(Factura);
                frm.MdiParent = this.MdiParent;
                frm.Show();
            }
            else
            {
                DataRowView FacturaAct = (DataRowView)facturasCabBindingSource.Current;

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


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