示例#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);
        }