Beispiel #1
0
 private void UsedKBAction_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e)
 {
     if (e.ParameterCurrentValue != null)
     {
         usedKB = (int)e.ParameterCurrentValue;
     }
 }
Beispiel #2
0
        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();
        }
Beispiel #4
0
 void maxMemoryAction_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e)
 {
     maxUsedMemory = 0;
     if (e.ParameterCurrentValue != null)
     {
         maxUsedMemory = (int)e.ParameterCurrentValue;
     }
 }
Beispiel #5
0
 private void ParametrizedAction1_Execute(object sender, DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventArgs e)
 {
     SearchText = (String)e.ParameterCurrentValue;
     View.ObjectSpace.Refresh();
 }