示例#1
0
        /// <summary>
        /// ItemSearch
        /// Calls [usp_itemsearch_Service]
        /// </summary>
        public static List <Service> ItemSearch(System.Int32?clientId, System.Int32?orderBy, System.Int32?sortDir, System.Int32?pageIndex, System.Int32?pageSize, System.String serviceName, System.String serviceDescription, System.Int32?lotNo)
        {
            List <ServiceDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Service.ItemSearch(clientId, orderBy, sortDir, pageIndex, pageSize, serviceName, serviceDescription, lotNo);

            if (lstDetails == null)
            {
                return(new List <Service>());
            }
            else
            {
                List <Service> lst = new List <Service>();
                foreach (ServiceDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Service obj = new Rebound.GlobalTrader.BLL.Service();
                    obj.ServiceId          = objDetails.ServiceId;
                    obj.ServiceName        = objDetails.ServiceName;
                    obj.ServiceDescription = objDetails.ServiceDescription;
                    obj.Cost   = objDetails.Cost;
                    obj.Price  = objDetails.Price;
                    obj.RowNum = objDetails.RowNum;
                    obj.RowCnt = objDetails.RowCnt;
                    obj.ClientBaseCurrencyCode = objDetails.ClientBaseCurrencyCode;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
示例#2
0
        /// <summary>
        /// GetListForLot
        /// Calls [usp_selectAll_Service_for_Lot]
        /// </summary>
        public static List <Service> GetListForLot(System.Int32?lotId)
        {
            List <ServiceDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Service.GetListForLot(lotId);

            if (lstDetails == null)
            {
                return(new List <Service>());
            }
            else
            {
                List <Service> lst = new List <Service>();
                foreach (ServiceDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Service obj = new Rebound.GlobalTrader.BLL.Service();
                    obj.ServiceId          = objDetails.ServiceId;
                    obj.ClientNo           = objDetails.ClientNo;
                    obj.ServiceName        = objDetails.ServiceName;
                    obj.ServiceDescription = objDetails.ServiceDescription;
                    obj.Price     = objDetails.Price;
                    obj.Cost      = objDetails.Cost;
                    obj.Notes     = objDetails.Notes;
                    obj.LotNo     = objDetails.LotNo;
                    obj.Inactive  = objDetails.Inactive;
                    obj.UpdatedBy = objDetails.UpdatedBy;
                    obj.DLUP      = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
示例#3
0
        /// <summary>
        /// AutoSearch
        /// Calls [usp_autosearch_Service]
        /// </summary>
        public static List <Service> AutoSearch(System.Int32?clientId, System.String nameSearch)
        {
            List <ServiceDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Service.AutoSearch(clientId, nameSearch);

            if (lstDetails == null)
            {
                return(new List <Service>());
            }
            else
            {
                List <Service> lst = new List <Service>();
                foreach (ServiceDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Service obj = new Rebound.GlobalTrader.BLL.Service();
                    obj.ServiceId   = objDetails.ServiceId;
                    obj.ServiceName = objDetails.ServiceName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }