コード例 #1
0
        internal void CopyValues(CobroFactura source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);

            _fecha_cobro     = source.Fecha;
            _importe         = source.Importe;
            _medio_pago      = source.MedioPago;
            _vencimiento     = source.Vencimiento;
            _cobrado         = source.Cobrado;
            _observaciones   = source.Observaciones;
            _oid_cliente     = source.OidCliente;
            _id_cobro        = source.IdCobro;
            _fecha_prevision = source.FechaPrevision;
            _tipo_interes    = source.TipoInteres;
            _gastos_cobro    = source.GastosCobro;
            _importe_factura = source.ImporteFactura;
            _codigo_factura  = source.CodigoFactura;
            _dias_cobro      = source.DiasCobro;
            _cuenta_bancaria = source.CuentaBancaria;
        }
コード例 #2
0
        public static CobroFacturaList GetChildList(OutputInvoiceInfo parent, bool childs)
        {
            CriteriaEx criteria = CobroFactura.GetCriteria(OutputInvoice.OpenSession());

            criteria.Query  = CobroFacturaList.SELECT_BY_FACTURA(parent.Oid);
            criteria.Childs = childs;

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

            list.CloseSession();

            return(list);
        }
コード例 #3
0
        public static CobroFacturaList GetList(QueryConditions conditions, bool childs = false)
        {
            CriteriaEx criteria = CobroFactura.GetCriteria(CobroFactura.OpenSession());

            criteria.Childs = childs;

            criteria.Query = CobroFacturaList.SELECT(conditions);

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

            CloseSession(criteria.SessionCode);
            return(list);
        }
コード例 #4
0
 public static string SELECT_BY_COBRO(long oid)
 {
     return(CobroFactura.SELECT_BY_COBRO(oid, false));
 }
コード例 #5
0
 public static string SELECT_BY_FACTURA(long oid)
 {
     return(CobroFactura.SELECT_BY_FACTURA(oid, false));
 }
コード例 #6
0
 public static string SELECT(QueryConditions conditions)
 {
     return(CobroFactura.SELECT(conditions, false));
 }