Exemplo n.º 1
0
        public IBOOrderSubtotals BOOrderSubtotals(IOrderSubtotalsRepository repo)
        {
            BOOrderSubtotals boOrderSubtotals = (BOOrderSubtotals)BOOrderSubtotals();

            boOrderSubtotals.Repository = repo;
            return(boOrderSubtotals);
        }
Exemplo n.º 2
0
 ///<Summary>
 ///OrderSubtotalsCollectionCount
 ///This method returns the collection count of BOOrderSubtotals objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 OrderSubtotalsCollectionCount(IOrderSubtotalsRepository iOrderSubtotalsRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iOrderSubtotalsRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
Exemplo n.º 3
0
        ///<Summary>
        ///OrderSubtotalsCollection
        ///This method returns the collection of BOOrderSubtotals objects
        ///</Summary>
        ///<returns>
        ///IList[IBOOrderSubtotals]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOOrderSubtotals> OrderSubtotalsCollection(IOrderSubtotalsRepository iOrderSubtotalsRepository)
        {
            Doing(null);
            try
            {
                IList <IBOOrderSubtotals>  boOrderSubtotalsCollection  = new List <IBOOrderSubtotals>();
                IList <IDAOOrderSubtotals> daoOrderSubtotalsCollection = iOrderSubtotalsRepository.SelectAll();
                Done(null);

                foreach (IDAOOrderSubtotals daoOrderSubtotals in daoOrderSubtotalsCollection)
                {
                    boOrderSubtotalsCollection.Add(new BOOrderSubtotals(daoOrderSubtotals));
                }

                return(boOrderSubtotalsCollection);
            }
            catch (Exception ex)
            {
                Failed(null, ex);
                Handle(null, ex);
                return(null);
            }
        }