public virtual IEnumerable <IWarehouseState> Get(Dddml.Support.Criterion.ICriterion filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <WarehouseState>(); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <WarehouseState>()); }
public virtual IEnumerable <IPersonState> Get(IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <PersonState>(); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <PersonState>()); }
public virtual IEnumerable <ILocatorState> GetLocatorTreeChildren(string parentId, IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <LocatorState>(); NHibernateUtils.CriteriaAddCriterion(criteria, "ParentLocatorId", parentId); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <LocatorState>()); }
public virtual IEnumerable <ILocatorState> GetLocatorTreeRoots(Dddml.Support.Criterion.ICriterion filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <LocatorState>(); CriteriaAddLocatorTreeRootParentIdCriterion(criteria); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <LocatorState>()); }
public virtual IEnumerable <IOrganizationStructureState> GetOrganizationTreeRoots(IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <OrganizationStructureState>(); CriteriaAddRootParentIdCriterion(criteria); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <OrganizationStructureState>()); }
public virtual IEnumerable <IOrganizationStructureState> GetOrganizationTreeChildren(string parentId, Dddml.Support.Criterion.ICriterion filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <OrganizationStructureState>(); NHibernateUtils.CriteriaAddCriterion(criteria, "Id.ParentId", parentId); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <OrganizationStructureState>()); }
public virtual IEnumerable <Dddml.Wms.Domain.Party.IOrganizationState> GetOrganizationTreeRootOrganizations(IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <Dddml.Wms.Domain.Party.OrganizationState>(); var dc = DetachedCriteria.For <OrganizationStructureState>().SetProjection(Projections.Property("Id.SubsidiaryId")); criteria.Add(Subqueries.PropertyNotIn("PartyId", dc)); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <Dddml.Wms.Domain.Party.OrganizationState>()); }