Exemplo n.º 1
0
        /// <summary>
        /// Check if data of this Period was used by another transaction
        /// </summary>
        /// <param name="pintStockTakingPeriodID"></param>
        /// <returns>return false if was used, true if not</returns>
        /// <author>Trada</author>
        /// <date>Wednesday, July 26 2006</date>

        public bool CheckIfDataWasUsed(int pintStockTakingPeriodID)
        {
            IV_StockTakingDS dsIV_StockTaking = new IV_StockTakingDS();
            DataSet          dstStockTaking   = dsIV_StockTaking.GetStockTakingByPeriodID(pintStockTakingPeriodID);

            if (dstStockTaking.Tables[0].Rows.Count > 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get StockTaking by PeriodID
        /// </summary>
        /// <param name="pintStockTakingPeriodID"></param>
        /// <returns></returns>
        /// <author>Trada</author>
        /// <date>Monday, August 14 2006</date>

        public DataSet GetStockTakingByPeriodID(int pintStockTakingPeriodID)
        {
            IV_StockTakingDS dsStockTaking = new IV_StockTakingDS();

            return(dsStockTaking.GetStockTakingByPeriodID(pintStockTakingPeriodID));
        }