Ejemplo n.º 1
0
        /// <summary>
        /// Customer Requirements Fill data by Part Search
        /// Calls [usp_autosearch_CustReqPart]
        /// </summary>
        public static List <Part> CustReqPart(System.Int32?clientId, System.String partSearch, System.String ids, System.String DateCode)
        {
            List <PartDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Part.CustReqPart(clientId, partSearch, ids, DateCode);

            if (lstDetails == null)
            {
                return(new List <Part>());
            }
            else
            {
                List <Part> lst = new List <Part>();
                foreach (PartDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Part obj = new Rebound.GlobalTrader.BLL.Part();
                    obj.PartName                = objDetails.PartName;
                    obj.ManufacturerNo          = objDetails.ManufacturerNo;
                    obj.PartNameWithManufacture = objDetails.PartNameWithManufacture;

                    obj.Productname      = objDetails.Productname;
                    obj.Packagename      = objDetails.Packagename;
                    obj.DateCode         = objDetails.DateCode;
                    obj.ProductNo        = objDetails.ProductNo;
                    obj.PackageNo        = objDetails.PackageNo;
                    obj.ManufacturerName = objDetails.ManufacturerName;
                    obj.ROHSNo           = objDetails.ROHSNo;


                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// AutoSearch
        /// Calls [usp_autosearch_Part]
        /// </summary>
        public static List <Part> AutoSearch(System.Int32?clientId, System.String partSearch)
        {
            List <PartDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Part.AutoSearch(clientId, partSearch);

            if (lstDetails == null)
            {
                return(new List <Part>());
            }
            else
            {
                List <Part> lst = new List <Part>();
                foreach (PartDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Part obj = new Rebound.GlobalTrader.BLL.Part();
                    obj.PartName = objDetails.PartName;

                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }