private static CustomerRmaLineAllocation PopulateFromDBDetailsObject(CustomerRmaLineAllocationDetails obj) { CustomerRmaLineAllocation objNew = new CustomerRmaLineAllocation(); objNew.CustomerRMALineAllocationId = obj.CustomerRMALineAllocationId; objNew.CustomerRMALineNo = obj.CustomerRMALineNo; objNew.InvoiceLineAllocationNo = obj.InvoiceLineAllocationNo; objNew.Quantity = obj.Quantity; objNew.GoodsInLineNo = obj.GoodsInLineNo; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; objNew.CustomerRMAId = obj.CustomerRMAId; objNew.CustomerRMANumber = obj.CustomerRMANumber; objNew.CustomerRMADate = obj.CustomerRMADate; objNew.ReturnDate = obj.ReturnDate; objNew.ClientNo = obj.ClientNo; objNew.Reason = obj.Reason; objNew.InvoiceNumber = obj.InvoiceNumber; objNew.InvoiceNo = obj.InvoiceNo; objNew.InvoiceLineNo = obj.InvoiceLineNo; objNew.CompanyNo = obj.CompanyNo; objNew.CompanyName = obj.CompanyName; objNew.PurchaseOrderLineNo = obj.PurchaseOrderLineNo; objNew.AuthorisedBy = obj.AuthorisedBy; objNew.AuthoriserName = obj.AuthoriserName; objNew.StockNo = obj.StockNo; objNew.RowNum = obj.RowNum; return(objNew); }
/// <summary> /// GetListForPurchaseOrderLine /// Calls [usp_selectAll_CustomerRMALineAllocation_for_PurchaseOrderLine] /// </summary> public static List <CustomerRmaLineAllocation> GetListForPurchaseOrderLine(System.Int32?purchaseOrderLineId, System.Int32?pageIndex, System.Int32?pageSize) { List <CustomerRmaLineAllocationDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.CustomerRmaLineAllocation.GetListForPurchaseOrderLine(purchaseOrderLineId, pageIndex, pageSize); if (lstDetails == null) { return(new List <CustomerRmaLineAllocation>()); } else { List <CustomerRmaLineAllocation> lst = new List <CustomerRmaLineAllocation>(); foreach (CustomerRmaLineAllocationDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.CustomerRmaLineAllocation obj = new Rebound.GlobalTrader.BLL.CustomerRmaLineAllocation(); obj.CustomerRMALineAllocationId = objDetails.CustomerRMALineAllocationId; obj.CustomerRMALineNo = objDetails.CustomerRMALineNo; obj.CustomerRMAId = objDetails.CustomerRMAId; obj.CustomerRMANumber = objDetails.CustomerRMANumber; obj.CustomerRMADate = objDetails.CustomerRMADate; obj.ReturnDate = objDetails.ReturnDate; obj.ClientNo = objDetails.ClientNo; obj.Reason = objDetails.Reason; obj.InvoiceNumber = objDetails.InvoiceNumber; obj.InvoiceNo = objDetails.InvoiceNo; obj.InvoiceLineNo = objDetails.InvoiceLineNo; obj.InvoiceLineAllocationNo = objDetails.InvoiceLineAllocationNo; obj.CompanyNo = objDetails.CompanyNo; obj.CompanyName = objDetails.CompanyName; obj.Quantity = objDetails.Quantity; obj.GoodsInLineNo = objDetails.GoodsInLineNo; obj.PurchaseOrderLineNo = objDetails.PurchaseOrderLineNo; obj.AuthorisedBy = objDetails.AuthorisedBy; obj.AuthoriserName = objDetails.AuthoriserName; obj.StockNo = objDetails.StockNo; obj.RowNum = objDetails.RowNum; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// Get /// Calls [usp_select_CustomerRMALineAllocation] /// </summary> public static CustomerRmaLineAllocation Get(System.Int32?customerRmaLineAllocationId) { Rebound.GlobalTrader.DAL.CustomerRmaLineAllocationDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.CustomerRmaLineAllocation.Get(customerRmaLineAllocationId); if (objDetails == null) { return(null); } else { CustomerRmaLineAllocation obj = new CustomerRmaLineAllocation(); obj.CustomerRMALineAllocationId = objDetails.CustomerRMALineAllocationId; obj.CustomerRMALineNo = objDetails.CustomerRMALineNo; obj.InvoiceLineAllocationNo = objDetails.InvoiceLineAllocationNo; obj.Quantity = objDetails.Quantity; obj.GoodsInLineNo = objDetails.GoodsInLineNo; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; objDetails = null; return(obj); } }