} /// <summary> /// DataListNugget /// Calls [usp_datalistnugget_Lot] /// </summary> public static List <Lot> DataListNugget(System.Int32?clientId, System.Int32?orderBy, System.Int32?sortDir, System.Int32?pageIndex, System.Int32?pageSize, System.String lotCode, System.String lotName) { List <LotDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Lot.DataListNugget(clientId, orderBy, sortDir, pageIndex, pageSize, lotCode, lotName); if (lstDetails == null) { return(new List <Lot>()); } else { List <Lot> lst = new List <Lot>(); foreach (LotDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Lot obj = new Rebound.GlobalTrader.BLL.Lot(); obj.LotId = objDetails.LotId; obj.LotCode = objDetails.LotCode; obj.LotName = objDetails.LotName; obj.CurrencyCode = objDetails.CurrencyCode; obj.OnHold = objDetails.OnHold; obj.Consignment = objDetails.Consignment; obj.StockCount = objDetails.StockCount; obj.RowNum = objDetails.RowNum; obj.RowCnt = objDetails.RowCnt; obj.Inactive = objDetails.Inactive; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
private static Lot PopulateFromDBDetailsObject(LotDetails obj) { Lot objNew = new Lot(); objNew.LotId = obj.LotId; objNew.ClientNo = obj.ClientNo; objNew.LotName = obj.LotName; objNew.Cost = obj.Cost; objNew.CurrencyNo = obj.CurrencyNo; objNew.OnHold = obj.OnHold; objNew.Consignment = obj.Consignment; objNew.Notes = obj.Notes; objNew.LotCode = obj.LotCode; objNew.Inactive = obj.Inactive; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; objNew.CurrencyCode = obj.CurrencyCode; objNew.StockCount = obj.StockCount; objNew.RowNum = obj.RowNum; objNew.RowCnt = obj.RowCnt; objNew.CurrencyDescription = obj.CurrencyDescription; return(objNew); }
/// <summary> /// DropDownForClient /// Calls [usp_dropdown_Lot_for_Client] /// </summary> public static List <Lot> DropDownForClient(System.Int32?clientId) { List <LotDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Lot.DropDownForClient(clientId); if (lstDetails == null) { return(new List <Lot>()); } else { List <Lot> lst = new List <Lot>(); foreach (LotDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Lot obj = new Rebound.GlobalTrader.BLL.Lot(); obj.LotId = objDetails.LotId; obj.LotName = objDetails.LotName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
//[001] code start /// <summary> /// AutoSearch /// Calls [usp_autosearch_Lot] /// </summary> public static List <Lot> AutoSearch(System.Int32?clientId, System.String nameSearch) { List <LotDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Lot.AutoSearch(clientId, nameSearch); if (lstDetails == null) { return(new List <Lot>()); } else { List <Lot> lst = new List <Lot>(); foreach (LotDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Lot obj = new Rebound.GlobalTrader.BLL.Lot(); obj.LotId = objDetails.LotId; obj.LotName = objDetails.LotName; obj.LotCode = objDetails.LotCode; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }