public static SubtipoFacturaList GetList(ESubtipoFactura tipo)
        {
            QueryConditions conditions = new QueryConditions {
                SubtipoFactura = tipo
            };

            return(GetList(SubtipoFactura.SELECT(conditions), false));
        }
Beispiel #2
0
        internal void CopyValues(SubtipoFactura source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source._base.Record);
        }
        internal static string SELECT(QueryConditions conditions)
        {
            OrderList orders = new OrderList();

            orders.NewOrder("Tipo", ListSortDirection.Ascending, typeof(SubtipoFactura));
            orders.NewOrder("Codigo", ListSortDirection.Ascending, typeof(SubtipoFactura));
            conditions.Orders = orders;
            return(SubtipoFactura.SELECT(conditions, false));
        }
        protected void CopyValues(SubtipoFactura source)
        {
            if (source == null)
            {
                return;
            }

            Oid = source.Oid;
            _base.CopyValues(source);
        }
        private static SubtipoFacturaList GetList(string query, bool childs)
        {
            CriteriaEx criteria = SubtipoFactura.GetCriteria(SubtipoFactura.OpenSession());

            criteria.Childs = childs;

            if (nHManager.Instance.UseDirectSQL)
            {
                criteria.Query = query;
            }

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

            CloseSession(criteria.SessionCode);
            return(list);
        }
 public void CopyFrom(SubtipoFactura source)
 {
     CopyValues(source);
 }