/// <summary> /// GetListForClient /// Calls [usp_selectAll_Tax_for_Client] /// </summary> public static List <GlobalTax> GetListForClient() { List <GlobalTaxDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.GlobalTax.GetListForClient(); if (lstDetails == null) { return(new List <GlobalTax>()); } else { List <GlobalTax> lst = new List <GlobalTax>(); foreach (GlobalTaxDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.GlobalTax obj = new Rebound.GlobalTrader.BLL.GlobalTax(); obj.TaxId = objDetails.TaxId; obj.TaxName = objDetails.TaxName; 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); } }
//[001] code end private static GlobalTax PopulateFromDBDetailsObject(GlobalTaxDetails obj) { GlobalTax objNew = new GlobalTax(); objNew.TaxId = obj.TaxId; objNew.TaxName = obj.TaxName; objNew.ClientNo = obj.ClientNo; objNew.Notes = obj.Notes; objNew.Inactive = obj.Inactive; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; objNew.TaxCode = obj.TaxCode; objNew.PrintNotes = obj.PrintNotes; return(objNew); }
/// <summary> /// Get /// Calls [usp_select_Tax] /// </summary> public static GlobalTax Get(System.Int32?taxId) { Rebound.GlobalTrader.DAL.GlobalTaxDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.GlobalTax.Get(taxId); if (objDetails == null) { return(null); } else { GlobalTax obj = new GlobalTax(); 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; objDetails = null; return(obj); } }
//[001] code start /// <summary> /// Get Tax Code according to client /// Call Proc [usp_dropdown_PurchaseTaxCode_for_Client] /// </summary> /// <param name="clientId"></param> /// <returns></returns> public static List <GlobalTax> DropDownPurchaseTaxCodeForClient() { List <GlobalTaxDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.GlobalTax.DropDownPurchaseTaxCodeForClient(); if (lstDetails == null) { return(new List <GlobalTax>()); } else { List <GlobalTax> lst = new List <GlobalTax>(); foreach (GlobalTaxDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.GlobalTax obj = new Rebound.GlobalTrader.BLL.GlobalTax(); obj.TaxId = objDetails.TaxId; obj.TaxName = objDetails.TaxName; obj.TaxCode = objDetails.TaxCode; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }