private void button2_Click(object sender, EventArgs e) { DataRowView FacturaActual = (DataRowView)facturasCabListaBindingSource.Current; if (Convert.IsDBNull(FacturaActual["FacturaPresup"])==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); frm.MdiParent = this.MdiParent; frm.Show(); } else { int Factura = Convert.ToInt32(FacturaActual["IdFactCab"]); RptFacturasHorasImpParte frm = new RptFacturasHorasImpParte(); frm.LoadFiltro(Factura); frm.MdiParent = this.MdiParent; frm.Show(); } } }
private void button2_Click(object sender, EventArgs e) { RptFacturasManualImp frm = new RptFacturasManualImp(); frm.LoadFiltro(Convert.ToInt32(idFactCabComboBox.SelectedValue)); frm.MdiParent = this.MdiParent; frm.Show(); }
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(); }