Beispiel #1
0
        /// <summary>
        /// GetListForSupplier
        /// Calls [usp_selectAll_ManufacturerLink_for_Supplier]
        /// </summary>
        public static List <ManufacturerLink> GetListForSupplier(System.Int32?supplierCompanyNo)
        {
            List <ManufacturerLinkDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.ManufacturerLink.GetListForSupplier(supplierCompanyNo);

            if (lstDetails == null)
            {
                return(new List <ManufacturerLink>());
            }
            else
            {
                List <ManufacturerLink> lst = new List <ManufacturerLink>();
                foreach (ManufacturerLinkDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.ManufacturerLink obj = new Rebound.GlobalTrader.BLL.ManufacturerLink();
                    obj.ManufacturerLinkId = objDetails.ManufacturerLinkId;
                    obj.ManufacturerNo     = objDetails.ManufacturerNo;
                    obj.ManufacturerName   = objDetails.ManufacturerName;
                    obj.SupplierCompanyNo  = objDetails.SupplierCompanyNo;
                    obj.SupplierName       = objDetails.SupplierName;
                    obj.ManufacturerRating = objDetails.ManufacturerRating;
                    obj.SupplierRating     = objDetails.SupplierRating;
                    obj.UpdatedBy          = objDetails.UpdatedBy;
                    obj.DLUP = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Beispiel #2
0
        private static ManufacturerLink PopulateFromDBDetailsObject(ManufacturerLinkDetails obj)
        {
            ManufacturerLink objNew = new ManufacturerLink();

            objNew.ManufacturerLinkId = obj.ManufacturerLinkId;
            objNew.ManufacturerNo     = obj.ManufacturerNo;
            objNew.SupplierCompanyNo  = obj.SupplierCompanyNo;
            objNew.ManufacturerRating = obj.ManufacturerRating;
            objNew.SupplierRating     = obj.SupplierRating;
            objNew.UpdatedBy          = obj.UpdatedBy;
            objNew.DLUP             = obj.DLUP;
            objNew.ManufacturerName = obj.ManufacturerName;
            objNew.SupplierName     = obj.SupplierName;
            return(objNew);
        }
Beispiel #3
0
 /// <summary>
 /// GetForManufacturerAndSupplier
 /// Calls [usp_select_ManufacturerLink_for_Manufacturer_and_Supplier]
 /// </summary>
 public static ManufacturerLink GetForManufacturerAndSupplier(System.Int32?manufacturerNo, System.Int32?supplierCompanyNo)
 {
     Rebound.GlobalTrader.DAL.ManufacturerLinkDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.ManufacturerLink.GetForManufacturerAndSupplier(manufacturerNo, supplierCompanyNo);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         ManufacturerLink obj = new ManufacturerLink();
         obj.ManufacturerLinkId = objDetails.ManufacturerLinkId;
         obj.ManufacturerNo     = objDetails.ManufacturerNo;
         obj.ManufacturerName   = objDetails.ManufacturerName;
         obj.SupplierCompanyNo  = objDetails.SupplierCompanyNo;
         obj.SupplierName       = objDetails.SupplierName;
         obj.ManufacturerRating = objDetails.ManufacturerRating;
         obj.SupplierRating     = objDetails.SupplierRating;
         obj.UpdatedBy          = objDetails.UpdatedBy;
         obj.DLUP   = objDetails.DLUP;
         objDetails = null;
         return(obj);
     }
 }