Example #1
0
        public static InputDeliveryLineList GetByAlbaranList(long oid, bool childs)
        {
            QueryConditions conditions = new QueryConditions
            {
                InputDelivery = InputDeliveryInfo.New(oid)
            };

            return(GetList(InputDeliveryLineSQL.SELECT(conditions, false), childs));
        }
Example #2
0
        public static Batchs GetChildListByAlbaranRecibido(Almacen parent, long oidDelivery, bool childs)
        {
            CriteriaEx criteria = Stock.GetCriteria(parent.SessionCode);

            criteria.Childs = childs;

            QueryConditions conditions = new QueryConditions
            {
                Almacen       = parent.GetInfo(false),
                InputDelivery = InputDeliveryInfo.New(oidDelivery)
            };

            criteria.Query = Batchs.SELECT(conditions);

            return(DataPortal.Fetch <Batchs>(criteria));
        }