コード例 #1
0
        protected override void GetFormSourceData(long oid, object[] parameters)
        {
            ETipoPago tipo = (ETipoPago)parameters[0];

            _entity = Payment.Get(oid, tipo);
            _entity.BeginEdit();

            _gastos = ExpenseList.GetByPagoAndPendientesList(moleQule.Store.Structs.EnumConvert.ToECategoriaGasto(tipo), _entity.GetInfo(false), false);
        }
コード例 #2
0
        protected override void GetFormSourceData(long oid, object[] parameters)
        {
            ETipoPago tipo = (ETipoPago)parameters[0];

            if (parameters[1] != null)
            {
                _root   = (PaymentInfo)parameters[1];
                _entity = (Payment)parameters[2];

                PaymentInfo info = _entity.GetInfo(true);
                info.Oid = -1;

                _expenses = ExpenseList.GetByPagoAndPendientesList(moleQule.Store.Structs.EnumConvert.ToECategoriaGasto(tipo), info, false);
            }
            else
            {
                _entity = Payment.Get(oid, tipo);
                _entity.BeginEdit();
                _entity.BeginTransaction();

                _expenses = ExpenseList.GetByPagoAndPendientesList(moleQule.Store.Structs.EnumConvert.ToECategoriaGasto(tipo), _entity.GetInfo(true), false);
            }
        }