private void UsedKBAction_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e) { if (e.ParameterCurrentValue != null) { usedKB = (int)e.ParameterCurrentValue; } }
private void DepositoValor_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e) { var valoresSeleccionados = View.SelectedObjects; if (valoresSeleccionados.Count < 1) { return; } var os = (XPObjectSpace)ObjectSpace; var BoletaDepositoNumero = (int)e.ParameterCurrentValue; foreach (fondos_Valor i in valoresSeleccionados) { try { //Actualizar var sd = os.Session.ExecuteSproc("fondos.spValorADepositar", i.Oid, BoletaDepositoNumero); } catch (Exception exc) { throw new Exception(exc.Message); } } os.Refresh(); }
private void AcreditacionValor_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e) { var valoresSeleccionados = View.SelectedObjects; if (valoresSeleccionados.Count < 1) { return; } var os = (XPObjectSpace)ObjectSpace; foreach (Valor i in valoresSeleccionados) { try { //Actualizar var sd = os.Session.ExecuteScalar(string.Format("UPDATE fondos.Valor SET FechaAcreditado = '{0}' WHERE Oid = {1}", e.ParameterCurrentValue, i.Oid)); } catch (Exception exc) { throw new Exception(exc.Message); } } os.Refresh(); }
void maxMemoryAction_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e) { maxUsedMemory = 0; if (e.ParameterCurrentValue != null) { maxUsedMemory = (int)e.ParameterCurrentValue; } }
private void ParametrizedAction1_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e) { SearchText = (String)e.ParameterCurrentValue; View.ObjectSpace.Refresh(); }