/// <summary> /// GetLandedCostCalculation /// Calls [usp_select_Product_LandedCostCalculation] /// </summary> public static Product GetLandedCostCalculation(System.Int32?quantity, System.DateTime?datePoint, System.Int32?currencyNo, System.Double?cost, System.Double?shippingCost, System.Boolean?applyDuty, System.Int32?productNo) { Rebound.GlobalTrader.DAL.ProductDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.Product.GetLandedCostCalculation(quantity, datePoint, currencyNo, cost, shippingCost, applyDuty, productNo); if (objDetails == null) { return(null); } else { Product obj = new Product(); obj.LandedCost = objDetails.LandedCost; objDetails = null; return(obj); } }
/// <summary> /// Get /// Calls [usp_select_Product] /// </summary> public static Product Get(System.Int32?productId) { Rebound.GlobalTrader.DAL.ProductDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.Product.Get(productId); if (objDetails == null) { return(null); } else { Product obj = new Product(); obj.ProductId = objDetails.ProductId; obj.ProductName = objDetails.ProductName; obj.ProductDescription = objDetails.ProductDescription; obj.ClientNo = objDetails.ClientNo; obj.Inactive = objDetails.Inactive; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.DutyCode = objDetails.DutyCode; objDetails = null; return(obj); } }