/// <summary> /// GetListForClient /// Calls [usp_selectAll_Tax_for_Client] /// </summary> public static List <Tax> GetListForClient(System.Int32?clientId) { List <TaxDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Tax.GetListForClient(clientId); if (lstDetails == null) { return(new List <Tax>()); } else { List <Tax> lst = new List <Tax>(); foreach (TaxDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Tax obj = new Rebound.GlobalTrader.BLL.Tax(); obj.TaxId = objDetails.TaxId; obj.TaxName = objDetails.TaxName; obj.ClientNo = objDetails.ClientNo; obj.Notes = objDetails.Notes; obj.Inactive = objDetails.Inactive; obj.TaxCode = objDetails.TaxCode; obj.PrintNotes = objDetails.PrintNotes; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; //[002] code start obj.PurchaseTaxCode = objDetails.PurchaseTaxCode; //[002] code start lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// DropDownForClient /// Calls [usp_dropdown_Tax_for_Client] /// </summary> public static List <Tax> DropDownForClient(System.Int32?clientId) { List <TaxDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Tax.DropDownForClient(clientId); if (lstDetails == null) { return(new List <Tax>()); } else { List <Tax> lst = new List <Tax>(); foreach (TaxDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Tax obj = new Rebound.GlobalTrader.BLL.Tax(); obj.TaxId = objDetails.TaxId; obj.TaxName = objDetails.TaxName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }