/// <summary> /// DropDown for Region /// Calls [usp_dropdown_Region] /// </summary> public static List <Country> DropDownForRegion() { List <CountryDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Country.DropDownForRegion(); if (lstDetails == null) { return(new List <Country>()); } else { List <Country> lst = new List <Country>(); foreach (CountryDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Country obj = new Rebound.GlobalTrader.BLL.Country(); obj.RegionId = objDetails.RegionId; obj.RegionName = objDetails.RegionName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// DropDownForClient /// Calls [usp_dropdown_Country_for_Client] /// </summary> public static List <Country> DropDownForClient(System.Int32?clientId) { List <CountryDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Country.DropDownForClient(clientId); if (lstDetails == null) { return(new List <Country>()); } else { List <Country> lst = new List <Country>(); foreach (CountryDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Country obj = new Rebound.GlobalTrader.BLL.Country(); obj.CountryId = objDetails.CountryId; obj.CountryName = objDetails.CountryName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// GetListForClient /// Calls [usp_selectAll_Country_for_Client] /// </summary> public static List <Country> GetListForClient(System.Int32?clientId) { List <CountryDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Country.GetListForClient(clientId); if (lstDetails == null) { return(new List <Country>()); } else { List <Country> lst = new List <Country>(); foreach (CountryDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Country obj = new Rebound.GlobalTrader.BLL.Country(); obj.CountryId = objDetails.CountryId; obj.CountryName = objDetails.CountryName; obj.Notes = objDetails.Notes; obj.TelephonePrefix = objDetails.TelephonePrefix; obj.Duty = objDetails.Duty; obj.TaxNo = objDetails.TaxNo; obj.ShippingCost = objDetails.ShippingCost; obj.ClientNo = objDetails.ClientNo; obj.GlobalCountryNo = objDetails.GlobalCountryNo; obj.DeliveryLeadTimeAir = objDetails.DeliveryLeadTimeAir; obj.DeliveryLeadTimeSurface = objDetails.DeliveryLeadTimeSurface; obj.IsPriorityForLists = objDetails.IsPriorityForLists; obj.Inactive = objDetails.Inactive; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.TaxName = objDetails.TaxName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }