Ejemplo n.º 1
0
        public static BankAccount NewChild(BankAccount parent, ETipoCuenta tipo)
        {
            BankAccount obj = NewChild(parent);

            obj.ETipoCuenta = tipo;

            return(obj);
        }
Ejemplo n.º 2
0
        public static string SELECT(BankAccount cuenta, ETipoCuenta tipo = ETipoCuenta.Todas)
        {
            BankAccount cuenta_asociada = BankAccount.New();

            cuenta_asociada.Oid = 0;
            cuenta_asociada.OidCuentaAsociada = cuenta.Oid;

            return(BankAccount.SELECT(new QueryConditions {
                BankAccount = cuenta_asociada.GetInfo(false), TipoCuenta = tipo
            }, true));
        }
        protected virtual void SelectCuentaAction()
        {
            ETipoCuenta           tipo = _entity.ETipoMovimientoBanco == EBankLineType.Manual ? ETipoCuenta.CuentaCorriente : ETipoCuenta.FondoInversion;
            BankAccountSelectForm form = new BankAccountSelectForm(this, BankAccountList.GetList(tipo, EEstado.Active, false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;
                SetCuentaBancaria(cuenta);
            }
        }
Ejemplo n.º 4
0
        public static BankAccountList GetList(ETipoCuenta tipo, EEstado estado, bool childs)
        {
            CriteriaEx criteria = BankAccount.GetCriteria(BankAccount.OpenSession());

            criteria.Childs = childs;

            QueryConditions conditions = new QueryConditions
            {
                TipoCuenta = tipo,
                Estado     = estado
            };

            criteria.Query = SELECT(conditions);

            BankAccountList list = DataPortal.Fetch <BankAccountList>(criteria);

            CloseSession(criteria.SessionCode);
            return(list);
        }
Ejemplo n.º 5
0
 public BankAccount NewChildItem(BankAccount parent, ETipoCuenta tipo)
 {
     this.NewItem(BankAccount.NewChild(parent, tipo));
     return(this[Count - 1]);
 }