Esempio n. 1
0
        /// <summary>
        /// Builds a AlbaranFacturaProveedorList
        /// </summary>
        /// <param name="list"></param>
        /// <returns>AlbaranFacturaProveedorList</returns>
        public static AlbaranFacturaProveedorList GetList(bool childs)
        {
            CriteriaEx criteria = AlbaranFacturaProveedor.GetCriteria(AlbaranFacturaProveedor.OpenSession());

            criteria.Childs = childs;

            criteria.Query = SELECT();

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

            CloseSession(criteria.SessionCode);
            return(list);
        }
Esempio n. 2
0
        internal void CopyValues(AlbaranFacturaProveedor source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source._base.Record);

            //INNER JOIN
            _importe        = source.Importe;
            _codigo_factura = source.CodigoFactura;
            _codigo_albaran = source.CodigoAlbaran;
        }
Esempio n. 3
0
        // called to copy objects data from list
        private void Fetch(IDataReader reader)
        {
            this.RaiseListChangedEvents = false;

            IsReadOnly = false;

            while (reader.Read())
            {
                this.AddItem(AlbaranFacturaProveedor.GetChild(reader).GetInfo());
            }

            IsReadOnly = true;

            this.RaiseListChangedEvents = true;
        }