Ejemplo n.º 1
0
        /// <summary>
        /// Trouver les furniseurs pour un site
        /// </summary>
        /// <param name="sit_id">UInt32</param>
        /// <returns>List<Supplier></returns>
        public static List <Supplier> LoadAllBySite(UInt32 sit_id)
        {
            List <Supplier> listSup = new List <Supplier>();

            foreach (SiteSupplier ss in SiteSupplierDal.LoadAll(sit_id))
            {
                listSup.Add(SupplierDal.Load(ss.sit_id));
            }

            return(listSup);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///  Trouver les furniseurs pour un site
        /// </summary>
        /// <param name="site">Site</param>
        /// <returns>List<Supplier></returns>
        public static List <Supplier> LoadAllSupplier(Site site)
        {
            List <Supplier>     listSup    = new List <Supplier>();
            List <SiteSupplier> listSupSit = SiteSupplierDal.LoadAll(site.sit_id);

            foreach (SiteSupplier ss in listSupSit)
            {
                Console.Write(ss.sup_id);
                listSup.Add(SupplierDal.Load(ss.sup_id));
            }

            return(listSup);
        }