Example #1
0
        /// <summary>
        /// GetListReadyForClient
        /// Calls [usp_selectAll_BOM]
        /// </summary>
        public static List <BOM> GetBomList(System.Int32?clientId, System.Boolean?isPoHUB, System.Int32?topToSelect, System.Int32?bomStatus, System.Int32?updatedBy)
        {
            List <BOMDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.BOM.GetBomList(clientId, isPoHUB, topToSelect, bomStatus, updatedBy);

            if (lstDetails == null)
            {
                return(new List <BOM>());
            }
            else
            {
                List <BOM> lst = new List <BOM>();
                foreach (BOMDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.BOM obj = new Rebound.GlobalTrader.BLL.BOM();
                    obj.BOMId            = objDetails.BOMId;
                    obj.CompanyName      = objDetails.CompanyName;
                    obj.ClientName       = objDetails.ClientName;
                    obj.BOMCode          = objDetails.BOMCode;
                    obj.BOMName          = objDetails.BOMName;
                    obj.DLUP             = objDetails.DLUP;
                    obj.StatusValue      = objDetails.StatusValue;
                    obj.UpdatedBy        = objDetails.UpdatedBy;
                    obj.QuoteRequired    = objDetails.QuoteRequired;
                    obj.RequestToPOHubBy = objDetails.RequestToPOHubBy;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Example #2
0
        /// <summary>
        /// DropDownForClient
        /// Calls [usp_GetUpdatedByListFromBOMIdList]
        /// </summary>
        public static BOM GetUpdatedByListFromBOMIdList(System.String BOMIdList)
        {
            BOMDetails lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.BOM.GetUpdatedByListFromBOMIdList(BOMIdList);

            // BOM lst = new BOM();
            Rebound.GlobalTrader.BLL.BOM obj = new Rebound.GlobalTrader.BLL.BOM();
            obj.BOMName       = lstDetails.BOMName;
            obj.UpdatedByList = lstDetails.UpdatedByList;
            lstDetails        = null;
            return(obj);
        }
Example #3
0
        }               /// <summary>

        /// DataListNugget
        /// Calls [usp_datalistnugget_BOM]
        /// </summary>
        //public static List<BOM> DataListNugget(System.Int32? clientId, System.Int32? orderBy, System.Int32? sortDir, System.Int32? pageIndex, System.Int32? pageSize, System.Int32? BOMIdLo, System.Int32? BOMIdHi, System.String bomName, System.Boolean? isPOHub, System.Int32? selectedClientNo)
        public static List <BOM> DataListNugget(System.Int32?clientId, System.Int32?teamId, System.Int32?divisionId, System.Int32?loginId, System.Int32?orderBy, System.Int32?sortDir, System.Int32?pageIndex, System.Int32?pageSize, System.String BOMCode, System.String bomName, System.Boolean?isPOHub, System.Int32?selectedClientNo, int?bomStatus, int?isAssignToMe, int?assignedUser, System.Int32?intDivisionNo, System.Int32?salesPerson)

        {
            List <BOMDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.BOM.DataListNugget(clientId, teamId, divisionId, loginId, orderBy, sortDir, pageIndex, pageSize, BOMCode, bomName, isPOHub, selectedClientNo, bomStatus, isAssignToMe, assignedUser, intDivisionNo, salesPerson);

            if (lstDetails == null)
            {
                return(new List <BOM>());
            }
            else
            {
                List <BOM> lst = new List <BOM>();
                foreach (BOMDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.BOM obj = new Rebound.GlobalTrader.BLL.BOM();
                    obj.BOMId              = objDetails.BOMId;
                    obj.BOMCode            = objDetails.BOMCode.TrimEnd();
                    obj.BOMName            = objDetails.BOMName;
                    obj.RowNum             = objDetails.RowNum;
                    obj.RowCnt             = objDetails.RowCnt;
                    obj.CompanyName        = objDetails.CompanyName;
                    obj.Inactive           = objDetails.Inactive;
                    obj.BOMStatus          = objDetails.BOMStatus;
                    obj.DLUP               = objDetails.DLUP;
                    obj.QuoteRequired      = objDetails.QuoteRequired;
                    obj.UpdatedBy          = objDetails.UpdatedBy;
                    obj.CurrencyNo         = objDetails.CurrencyNo;
                    obj.TotalBomLinePrice  = objDetails.TotalBomLinePrice;
                    obj.DateRequestToPOHub = objDetails.DateRequestToPOHub;
                    obj.POCurrencyNo       = objDetails.POCurrencyNo;
                    obj.AssignedUser       = objDetails.AssignedUser;
                    obj.DivisionName       = objDetails.DivisionName;
                    obj.ClientCode         = objDetails.ClientCode;  //[002]
                    obj.Requestedby        = objDetails.Requestedby; //[002]
                    obj.SalesmanName       = objDetails.SalesmanName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Example #4
0
        /// <summary>
        /// DropDownForClient
        /// Calls [usp_dropdown_BOM_for_Client]
        /// </summary>
        public static List <BOM> DropDownForClient(System.Int32?clientId, System.Int32?CompanyId)
        {
            List <BOMDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.BOM.DropDownForClient(clientId, CompanyId);

            if (lstDetails == null)
            {
                return(new List <BOM>());
            }
            else
            {
                List <BOM> lst = new List <BOM>();
                foreach (BOMDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.BOM obj = new Rebound.GlobalTrader.BLL.BOM();
                    obj.BOMId   = objDetails.BOMId;
                    obj.BOMName = objDetails.BOMName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Example #5
0
        //[001] code start
        /// <summary>
        /// AutoSearch
        /// Calls [usp_autosearch_BOM]
        /// </summary>
        public static List <BOM> AutoSearch(System.Int32?clientId, System.String nameSearch)
        {
            List <BOMDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.BOM.AutoSearch(clientId, nameSearch);

            if (lstDetails == null)
            {
                return(new List <BOM>());
            }
            else
            {
                List <BOM> lst = new List <BOM>();
                foreach (BOMDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.BOM obj = new Rebound.GlobalTrader.BLL.BOM();
                    obj.BOMId   = objDetails.BOMId;
                    obj.BOMName = objDetails.BOMName;
                    obj.BOMCode = objDetails.BOMCode;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }