Пример #1
0
        public static StockTaking GetPending(long pId, long lId)
        {
            StockTaking stockTaking = BusinessDomain.DataAccessProvider.GetPendingOperationWithPartner <StockTaking> (OperationType.StockTaking, pId, lId);

            if (stockTaking != null)
            {
                stockTaking.LoadDetails();
                stockTaking.IsDirty = false;
            }

            return(stockTaking);
        }
Пример #2
0
        public static StockTaking GetById(long stockTakingId)
        {
            StockTaking stockTaking = BusinessDomain.DataAccessProvider.GetOperationWithPartnerById <StockTaking> (OperationType.StockTaking, stockTakingId);

            if (stockTaking != null)
            {
                stockTaking.LoadDetails();
                stockTaking.IsDirty = false;
            }

            return(stockTaking);
        }