Example #1
0
 private void facturarViajes(object sender, EventArgs e, frmGrilla formularioResultadoBusqueda)
 {
     GD1C2017DataSetTableAdapters.QueriesTableAdapter adaptador =
         new GD1C2017DataSetTableAdapters.QueriesTableAdapter();
     adaptador.insertarFactura(
         (int)this.comboCliente.SelectedValue,
         this.selectorFechaFacturacionHasta.Value);
     formularioResultadoBusqueda.Close();
 }
Example #2
0
        private void rendirViajes(object sender, EventArgs e, frmGrilla formulario)
        {
            GD1C2017DataSetTableAdapters.QueriesTableAdapter adaptador =
                new GD1C2017DataSetTableAdapters.QueriesTableAdapter();
            object resultado = adaptador.insertarRendicion(
                (int)this.comboChofer.SelectedValue, this.selectorDiaRendicionAChofer.Value,
                (int)this.comboTurno.SelectedValue
                );

            formulario.Close();
        }