/// <summary> /// Calls [usp_selectAll_PurchaseRequestLineDetail] /// </summary> public static List <BLL.PurchaseRequestLineDetail> GetListLines(System.Int32?poQuoteId) { List <PurchaseRequestLineDetailDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.PurchaseRequestLineDetail.GetListLines(poQuoteId); if (lstDetails == null) { return(new List <PurchaseRequestLineDetail>()); } else { List <BLL.PurchaseRequestLineDetail> lst = new List <BLL.PurchaseRequestLineDetail>(); foreach (var objDetails in lstDetails) { BLL.PurchaseRequestLineDetail obj = new BLL.PurchaseRequestLineDetail(); obj.PurchaseRequestLineDetailId = objDetails.PurchaseRequestLineDetailId; obj.PurchaseRequestLineNo = objDetails.PurchaseRequestLineNo; obj.CompanyNo = objDetails.CompanyNo; obj.CompanyName = objDetails.CompanyName; obj.Price = objDetails.Price; obj.SPQ = objDetails.SPQ; obj.LeadTime = objDetails.LeadTime; obj.RoHSStatus = objDetails.RoHSStatus; obj.FactorySealed = objDetails.FactorySealed; obj.MSL = objDetails.MSL; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.ManufacturerName = objDetails.ManufacturerName; obj.DateCode = objDetails.DateCode; obj.PackageType = objDetails.PackageType; obj.ProductType = objDetails.ProductType; obj.MOQ = objDetails.MOQ; obj.TotalQSA = objDetails.TotalQSA; obj.LTB = objDetails.LTB; obj.Notes = objDetails.Notes; obj.CurrencyNo = objDetails.CurrencyNo; obj.CurrencyCode = objDetails.CurrencyCode; obj.GlobalCurrencyNo = objDetails.GlobalCurrencyNo; obj.MSLLevelNo = objDetails.MSLLevelNo; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// Calls [usp_delete_PurchaseRequestLineDetail] /// </summary> public static PurchaseRequestLineDetail Get(System.Int32?purchaseRequestLineDetailId) { var objDetails = Rebound.GlobalTrader.DAL.SiteProvider.PurchaseRequestLineDetail.Get(purchaseRequestLineDetailId); BLL.PurchaseRequestLineDetail obj = new BLL.PurchaseRequestLineDetail(); obj.PurchaseRequestLineDetailId = objDetails.PurchaseRequestLineDetailId; obj.PurchaseRequestLineNo = objDetails.PurchaseRequestLineNo; obj.CompanyNo = objDetails.CompanyNo; obj.CompanyName = objDetails.CompanyName; obj.Price = objDetails.Price; obj.SPQ = objDetails.SPQ; obj.LeadTime = objDetails.LeadTime; obj.RoHSStatus = objDetails.RoHSStatus; obj.FactorySealed = objDetails.FactorySealed; obj.MSL = objDetails.MSL; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; return(obj); }