/// <summary> /// GetList /// Calls [usp_selectAll_Incoterm] /// </summary> public static List <Incoterm> GetList() { List <IncotermDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Incoterm.GetList(); if (lstDetails == null) { return(new List <Incoterm>()); } else { List <Incoterm> lst = new List <Incoterm>(); foreach (IncotermDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Incoterm obj = new Rebound.GlobalTrader.BLL.Incoterm(); obj.IncotermId = objDetails.IncotermId; obj.Code = objDetails.Code; obj.Name = objDetails.Name; //[001] code start obj.Active = objDetails.Active; //[001] code end lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
//[001] code end private static Incoterm PopulateFromDBDetailsObject(IncotermDetails obj) { Incoterm objNew = new Incoterm(); objNew.IncotermId = obj.IncotermId; objNew.Code = obj.Code; objNew.Name = obj.Name; return(objNew); }
/// <summary> /// Get /// Calls [usp_select_Incoterm] /// </summary> public static Incoterm Get(System.Int32?incotermId) { Rebound.GlobalTrader.DAL.IncotermDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.Incoterm.Get(incotermId); if (objDetails == null) { return(null); } else { Incoterm obj = new Incoterm(); obj.IncotermId = objDetails.IncotermId; obj.Code = objDetails.Code; obj.Name = objDetails.Name; //[001] code start obj.Active = objDetails.Active; //[001] code end objDetails = null; return(obj); } }
/// <summary> /// DropDown /// Calls [usp_dropdown_Incoterm] /// </summary> public static List <Incoterm> DropDown() { List <IncotermDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Incoterm.DropDown(); if (lstDetails == null) { return(new List <Incoterm>()); } else { List <Incoterm> lst = new List <Incoterm>(); foreach (IncotermDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Incoterm obj = new Rebound.GlobalTrader.BLL.Incoterm(); obj.IncotermId = objDetails.IncotermId; obj.Name = objDetails.Name; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }