Exemplo n.º 1
0
        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();
               }
            }
        }
Exemplo n.º 2
0
        private void printToolStripButton_Click(object sender, EventArgs e)
        {
            DataRowView FacturaAct = (DataRowView)facturasCabBindingSource.Current;

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

               RptFacturasHorasImpParte frm = new RptFacturasHorasImpParte();
               frm.LoadFiltro(Factura);
               frm.MdiParent = this.MdiParent;
               frm.Show();
        }
Exemplo n.º 3
0
        private void toolStripButton1_Click_1(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();
               }
        }