示例#1
0
 private void bedVehiculo_Click(object sender, EventArgs e)
 {
     Buscar.frmBuscar frmBuscar = new Buscar.frmBuscar(spConsumoDS1, spConsumoBindingSource, "spCatVehiculo", "Vehiculo", this);
     frmBuscar.ShowDialog();
     if (Misc._ID != null)
     {
         bedVehiculo.Text   = Misc._ID.ToString();
         Consumo.VehiculoID = (Int32)Misc._ID;
     }
 }
示例#2
0
 private void bedEstacion_Click(object sender, EventArgs e)
 {
     Buscar.frmBuscar frmBuscar = new Buscar.frmBuscar(spConsumoDS1, spConsumoBindingSource, "spCatEstacion", "Estacion", this);
     frmBuscar.ShowDialog();
     if (Misc._ID != null)
     {
         Consumo.EstacionID = (Int32)Misc._ID;
         bedEstacion.Text   = Misc._Nombre.ToString();
     }
 }
示例#3
0
 private void bedCliente_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     Buscar.frmBuscar frmBuscar = new Buscar.frmBuscar(spConsumoDS1, spConsumoBindingSource, "spCatCliente", "Cliente", this);
     frmBuscar.ShowDialog();
     // ModuleInfoCollection.MakeCurrentModule(this);
     if (Misc._ID != null)
     {
         bedCliente.Text   = Misc._ID.ToString();
         Consumo.ClienteID = (Int32)Misc._ID;
     }
 }