/// <summary> /// Get /// Calls [usp_select_StockLog] /// </summary> public static StockLog Get(System.Int32?stockLogId) { Rebound.GlobalTrader.DAL.StockLogDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockLog.Get(stockLogId); if (objDetails == null) { return(null); } else { StockLog obj = new StockLog(); obj.StockLogId = objDetails.StockLogId; obj.StockLogTypeNo = objDetails.StockLogTypeNo; obj.StockNo = objDetails.StockNo; obj.QuantityInStock = objDetails.QuantityInStock; obj.QuantityOnOrder = objDetails.QuantityOnOrder; obj.InvoiceNo = objDetails.InvoiceNo; obj.PurchaseOrderNo = objDetails.PurchaseOrderNo; obj.RelatedStockNo = objDetails.RelatedStockNo; obj.ActionQuantity = objDetails.ActionQuantity; obj.GoodsInNo = objDetails.GoodsInNo; obj.GoodsInLineNo = objDetails.GoodsInLineNo; obj.CRMALineNo = objDetails.CRMALineNo; obj.SalesOrderNo = objDetails.SalesOrderNo; obj.SalesOrderLineNo = objDetails.SalesOrderLineNo; obj.SRMALineNo = objDetails.SRMALineNo; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.Detail = objDetails.Detail; obj.ChangeNotes = objDetails.ChangeNotes; obj.StockLogReasonNo = objDetails.StockLogReasonNo; obj.DebitNo = objDetails.DebitNo; objDetails = null; return(obj); } }
/// <summary> /// GetListForStock /// Calls [usp_selectAll_StockLog_for_Stock] /// </summary> public static List <StockLog> GetListForStock(System.Int32?stockId) { List <StockLogDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockLog.GetListForStock(stockId); if (lstDetails == null) { return(new List <StockLog>()); } else { List <StockLog> lst = new List <StockLog>(); foreach (StockLogDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.StockLog obj = new Rebound.GlobalTrader.BLL.StockLog(); obj.StockLogId = objDetails.StockLogId; obj.StockLogTypeNo = objDetails.StockLogTypeNo; obj.StockNo = objDetails.StockNo; obj.QuantityInStock = objDetails.QuantityInStock; obj.QuantityOnOrder = objDetails.QuantityOnOrder; obj.InvoiceNo = objDetails.InvoiceNo; obj.PurchaseOrderNo = objDetails.PurchaseOrderNo; obj.RelatedStockNo = objDetails.RelatedStockNo; obj.ActionQuantity = objDetails.ActionQuantity; obj.GoodsInNo = objDetails.GoodsInNo; obj.GoodsInLineNo = objDetails.GoodsInLineNo; obj.CRMALineNo = objDetails.CRMALineNo; obj.SalesOrderNo = objDetails.SalesOrderNo; obj.SalesOrderLineNo = objDetails.SalesOrderLineNo; obj.SRMALineNo = objDetails.SRMALineNo; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.Detail = objDetails.Detail; obj.ChangeNotes = objDetails.ChangeNotes; obj.StockLogReasonNo = objDetails.StockLogReasonNo; obj.DebitNo = objDetails.DebitNo; obj.StockLogReasonName = objDetails.StockLogReasonName; obj.InvoiceNumber = objDetails.InvoiceNumber; obj.PurchaseOrderNumber = objDetails.PurchaseOrderNumber; obj.RelatedStockPart = objDetails.RelatedStockPart; obj.UpdatedByName = objDetails.UpdatedByName; obj.GoodsInNumber = objDetails.GoodsInNumber; obj.SalesOrderNumber = objDetails.SalesOrderNumber; obj.CustomerRMANo = objDetails.CustomerRMANo; obj.CustomerRMANumber = objDetails.CustomerRMANumber; obj.SupplierRMANo = objDetails.SupplierRMANo; obj.SupplierRMANumber = objDetails.SupplierRMANumber; obj.DebitNumber = objDetails.DebitNumber; obj.GoodsInCurrencyCode = objDetails.GoodsInCurrencyCode; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
private static StockLog PopulateFromDBDetailsObject(StockLogDetails obj) { StockLog objNew = new StockLog(); objNew.StockLogId = obj.StockLogId; objNew.StockLogTypeNo = obj.StockLogTypeNo; objNew.StockNo = obj.StockNo; objNew.QuantityInStock = obj.QuantityInStock; objNew.QuantityOnOrder = obj.QuantityOnOrder; objNew.InvoiceNo = obj.InvoiceNo; objNew.PurchaseOrderNo = obj.PurchaseOrderNo; objNew.RelatedStockNo = obj.RelatedStockNo; objNew.ActionQuantity = obj.ActionQuantity; objNew.GoodsInNo = obj.GoodsInNo; objNew.GoodsInLineNo = obj.GoodsInLineNo; objNew.CRMALineNo = obj.CRMALineNo; objNew.SalesOrderNo = obj.SalesOrderNo; objNew.SalesOrderLineNo = obj.SalesOrderLineNo; objNew.SRMALineNo = obj.SRMALineNo; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; objNew.Detail = obj.Detail; objNew.ChangeNotes = obj.ChangeNotes; objNew.StockLogReasonNo = obj.StockLogReasonNo; objNew.DebitNo = obj.DebitNo; objNew.StockLogReasonName = obj.StockLogReasonName; objNew.InvoiceNumber = obj.InvoiceNumber; objNew.PurchaseOrderNumber = obj.PurchaseOrderNumber; objNew.RelatedStockPart = obj.RelatedStockPart; objNew.UpdatedByName = obj.UpdatedByName; objNew.GoodsInNumber = obj.GoodsInNumber; objNew.SalesOrderNumber = obj.SalesOrderNumber; objNew.CustomerRMANo = obj.CustomerRMANo; objNew.CustomerRMANumber = obj.CustomerRMANumber; objNew.SupplierRMANo = obj.SupplierRMANo; objNew.SupplierRMANumber = obj.SupplierRMANumber; objNew.DebitNumber = obj.DebitNumber; objNew.GoodsInCurrencyCode = obj.GoodsInCurrencyCode; return(objNew); }