Exemplo n.º 1
0
        public virtual IEnumerable <IPermissionState> GetPermissionTreeChildren(string parentId, IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue)
        {
            var criteria = CurrentSession.CreateCriteria <PermissionState>();

            NHibernateUtils.CriteriaAddCriterion(criteria, "ParentPermissionId", parentId);
            NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults);
            return(criteria.List <PermissionState>());
        }
Exemplo n.º 2
0
        public IList <Fill> ListAll()
        {
            IList <Fill> list = null;

            list = CurrentSession.CreateCriteria <Fill>()
                   .List <Fill>();
            return(list);
        }
Exemplo n.º 3
0
        public virtual IEnumerable <IPermissionState> GetPermissionTreeRoots(Dddml.Support.Criterion.ICriterion filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue)
        {
            var criteria = CurrentSession.CreateCriteria <PermissionState>();

            CriteriaAddRootParentIdCriterion(criteria);
            NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults);
            return(criteria.List <PermissionState>());
        }
Exemplo n.º 4
0
        public virtual IEnumerable <ISupplierProductState> Get(Dddml.Support.Criterion.ICriterion filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue)
        {
            var criteria = CurrentSession.CreateCriteria <SupplierProductState>();

            NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults);
            AddNotDeletedRestriction(criteria);
            return(criteria.List <SupplierProductState>());
        }
        public virtual IEnumerable <ILocatorState> GetLocatorTreeRoots(IEnumerable <KeyValuePair <string, object> > 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 <IPartyState> Get(IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue)
        {
            var criteria = CurrentSession.CreateCriteria <PartyState>();

            NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults);
            AddNotDeletedRestriction(criteria);
            return(criteria.List <PartyState>());
        }
Exemplo n.º 7
0
 public IList <Foerderkurs> GetBySchüler(int SchülerID)
 {
     return(CurrentSession.CreateCriteria <Foerderkurs>()
            //.CreateCriteria("Auftraege")
            .CreateCriteria("Foerderkurs")
            .Add(Restrictions.Eq("FoerderkursID", FoerderkursID))
            .List <Foerderkurs>());
 }
        public virtual IEnumerable <ILocatorState> GetLocatorTreeChildren(string parentId, Dddml.Support.Criterion.ICriterion 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 IEnumerable <IShipmentItemState> FindByShipmentId(string shipmentId)
        {
            var criteria        = CurrentSession.CreateCriteria <ShipmentItemState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("ShipmentItemId.ShipmentId", shipmentId))
            ;

            return(criteria.Add(partIdCondition).List <ShipmentItemState>());
        }
Exemplo n.º 10
0
        public IEnumerable <IOrderRoleState> FindByOrderId(string orderId)
        {
            var criteria        = CurrentSession.CreateCriteria <OrderRoleState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("OrderRoleId.OrderId", orderId))
            ;

            return(criteria.Add(partIdCondition).List <OrderRoleState>());
        }
Exemplo n.º 11
0
        public IEnumerable <IMovementConfirmationLineState> FindByMovementConfirmationDocumentNumber(string movementConfirmationDocumentNumber)
        {
            var criteria        = CurrentSession.CreateCriteria <MovementConfirmationLineState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("MovementConfirmationLineId.MovementConfirmationDocumentNumber", movementConfirmationDocumentNumber))
            ;

            return(criteria.Add(partIdCondition).List <MovementConfirmationLineState>());
        }
Exemplo n.º 12
0
        public IEnumerable <ISellableInventoryItemEntryMvoState> GetAll(int firstResult, int maxResults)
        {
            var criteria = CurrentSession.CreateCriteria <SellableInventoryItemEntryMvoState>();

            criteria.SetFirstResult(firstResult);
            criteria.SetMaxResults(maxResults);
            AddNotDeletedRestriction(criteria);
            return(criteria.List <SellableInventoryItemEntryMvoState>());
        }
Exemplo n.º 13
0
        public IEnumerable <IUserClaimState> FindByUserId(string userId)
        {
            var criteria        = CurrentSession.CreateCriteria <UserClaimState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("UserClaimId.UserId", userId))
            ;

            return(criteria.Add(partIdCondition).List <UserClaimState>());
        }
Exemplo n.º 14
0
        public IEnumerable <IInOutLineState> FindByInOutDocumentNumber(string inOutDocumentNumber)
        {
            var criteria        = CurrentSession.CreateCriteria <InOutLineState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("InOutLineId.InOutDocumentNumber", inOutDocumentNumber))
            ;

            return(criteria.Add(partIdCondition).List <InOutLineState>());
        }
        public IEnumerable <IMovementLineState> GetMovementLines(string movementDocumentNumber)
        {
            var criteria        = CurrentSession.CreateCriteria <MovementLineState>();
            var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction()
                                  .Add(global::NHibernate.Criterion.Restrictions.Eq("MovementLineId.MovementDocumentNumber", movementDocumentNumber))
            ;

            return(criteria.Add(partIdCondition).List <MovementLineState>());
        }
        public IEnumerable <IPhysicalInventoryLineState> FindByPhysicalInventoryDocumentNumber(string physicalInventoryDocumentNumber)
        {
            var criteria        = CurrentSession.CreateCriteria <PhysicalInventoryLineState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("PhysicalInventoryLineId.PhysicalInventoryDocumentNumber", physicalInventoryDocumentNumber))
            ;

            return(criteria.Add(partIdCondition).List <PhysicalInventoryLineState>());
        }
Exemplo n.º 17
0
        public IEnumerable <IItemIssuanceState> GetItemIssuances(string shipmentId)
        {
            var criteria        = CurrentSession.CreateCriteria <ItemIssuanceState>();
            var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction()
                                  .Add(global::NHibernate.Criterion.Restrictions.Eq("ShipmentItemIssuanceId.ShipmentId", shipmentId))
            ;

            return(criteria.Add(partIdCondition).List <ItemIssuanceState>());
        }
Exemplo n.º 18
0
        public IEnumerable <IAttributeValueState> FindByAttributeId(string attributeId)
        {
            var criteria        = CurrentSession.CreateCriteria <AttributeValueState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("AttributeValueId.AttributeId", attributeId))
            ;

            return(criteria.Add(partIdCondition).List <AttributeValueState>());
        }
Exemplo n.º 19
0
        public IList <Order> ListAll()
        {
            IList <Order> list = null;

            list = CurrentSession.CreateCriteria <Order>()
                   .List <Order>();
            EagerlyLoad(list);
            return(list);
        }
Exemplo n.º 20
0
        public IEnumerable <IPicklistItemState> GetPicklistItems(string picklistBinId)
        {
            var criteria        = CurrentSession.CreateCriteria <PicklistItemState>();
            var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction()
                                  .Add(global::NHibernate.Criterion.Restrictions.Eq("PicklistBinPicklistItemId.PicklistBinId", picklistBinId))
            ;

            return(criteria.Add(partIdCondition).List <PicklistItemState>());
        }
        public IEnumerable <IUserLoginState> GetUserLogins(string userId)
        {
            var criteria        = CurrentSession.CreateCriteria <UserLoginState>();
            var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction()
                                  .Add(global::NHibernate.Criterion.Restrictions.Eq("UserLoginId.UserId", userId))
            ;

            return(criteria.Add(partIdCondition).List <UserLoginState>());
        }
Exemplo n.º 22
0
        public IEnumerable <IAttributeAliasState> GetAttributeAlias(string attributeId)
        {
            var criteria        = CurrentSession.CreateCriteria <AttributeAliasState>();
            var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction()
                                  .Add(global::NHibernate.Criterion.Restrictions.Eq("AttributeAliasId.AttributeId", attributeId))
            ;

            return(criteria.Add(partIdCondition).List <AttributeAliasState>());
        }
        public IEnumerable <T> GetAll <T>(int firstResult, int maxResults) where T : class, IPartyState
        {
            var criteria = CurrentSession.CreateCriteria <T>();

            criteria.SetFirstResult(firstResult);
            criteria.SetMaxResults(maxResults);
            AddNotDeletedRestriction(criteria);
            return(criteria.List <T>());
        }
Exemplo n.º 24
0
        public IEnumerable <IOrderShipGroupState> GetOrderShipGroups(string orderId)
        {
            var criteria        = CurrentSession.CreateCriteria <OrderShipGroupState>();
            var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction()
                                  .Add(global::NHibernate.Criterion.Restrictions.Eq("OrderShipGroupId.OrderId", orderId))
            ;

            return(criteria.Add(partIdCondition).List <OrderShipGroupState>());
        }
Exemplo n.º 25
0
        public IEnumerable <IAttributeSetInstanceExtensionFieldState> FindByGroupId(string groupId)
        {
            var criteria        = CurrentSession.CreateCriteria <AttributeSetInstanceExtensionFieldState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("AttributeSetInstanceExtensionFieldId.GroupId", groupId))
            ;

            return(criteria.Add(partIdCondition).List <AttributeSetInstanceExtensionFieldState>());
        }
Exemplo n.º 26
0
        public IEnumerable <IPicklistItemState> FindByPicklistBinId(string picklistBinId)
        {
            var criteria        = CurrentSession.CreateCriteria <PicklistItemState>();
            var partIdCondition = Restrictions.Conjunction()
                                  .Add(Restrictions.Eq("PicklistBinPicklistItemId.PicklistBinId", picklistBinId))
            ;

            return(criteria.Add(partIdCondition).List <PicklistItemState>());
        }
Exemplo n.º 27
0
        public virtual long GetCount(IEnumerable <KeyValuePair <string, object> > filter)
        {
            var criteria = CurrentSession.CreateCriteria <OrderState>();

            criteria.SetProjection(Projections.RowCountInt64());
            NHibernateUtils.CriteriaAddFilter(criteria, filter);
            AddNotDeletedRestriction(criteria);
            return(criteria.UniqueResult <long>());
        }
        public IEnumerable <IAttributeSetInstanceExtensionFieldMvoState> GetAll(int firstResult, int maxResults)
        {
            var criteria = CurrentSession.CreateCriteria <AttributeSetInstanceExtensionFieldMvoState>();

            criteria.SetFirstResult(firstResult);
            criteria.SetMaxResults(maxResults);
            AddNotDeletedRestriction(criteria);
            return(criteria.List <AttributeSetInstanceExtensionFieldMvoState>());
        }
Exemplo n.º 29
0
        public IEnumerable <IOrderState> GetAll(int firstResult, int maxResults)
        {
            var criteria = CurrentSession.CreateCriteria <OrderState>();

            criteria.SetFirstResult(firstResult);
            criteria.SetMaxResults(maxResults);
            AddNotDeletedRestriction(criteria);
            return(criteria.List <OrderState>());
        }
Exemplo n.º 30
0
        public IEnumerable <IGoodIdentificationState> GetGoodIdentifications(string productId)
        {
            var criteria        = CurrentSession.CreateCriteria <GoodIdentificationState>();
            var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction()
                                  .Add(global::NHibernate.Criterion.Restrictions.Eq("ProductGoodIdentificationId.ProductId", productId))
            ;

            return(criteria.Add(partIdCondition).List <GoodIdentificationState>());
        }