예제 #1
0
        public bool RemoveSalesTaxRate(SalesTaxRate salestaxrate)
        {
            SalesTaxRateData data = new SalesTaxRateData();
            bool             ret  = false;

            try
            {
                ret = data.DeleteSalesTaxRate(salestaxrate);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "RemoveSalesTaxRate");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
예제 #2
0
        public SalesTaxRate GetSalesTaxRates(int salesTaxRatesID)
        {
            SalesTaxRateData data = new SalesTaxRateData();
            SalesTaxRate     str  = new SalesTaxRate();

            try
            {
                str = data.GetSalesTaxRate(salesTaxRatesID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSalesTaxRates");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(str);
        }
예제 #3
0
        public int AddSalesTaxRate(SalesTaxRate salestaxrate)
        {
            SalesTaxRateData data = new SalesTaxRateData();
            int ret = 0;

            try
            {
                ret = data.AddSalesTaxRate(salestaxrate);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddSalesTaxRate");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
예제 #4
0
 public bool Contains(SalesTaxRate salesTaxRate)
 {
     return(this.List.Contains(salesTaxRate));
 }
예제 #5
0
 public void Remove(SalesTaxRate salesTaxRate)
 {
     this.List.Remove(salesTaxRate);
 }
예제 #6
0
 public void Insert(int index, SalesTaxRate salesTaxRate)
 {
     this.List.Insert(index, salesTaxRate);
 }
예제 #7
0
 public int IndexOf(SalesTaxRate salesTaxRate)
 {
     return(this.List.IndexOf(salesTaxRate));
 }
예제 #8
0
 public int Add(SalesTaxRate salesTaxRate)
 {
     return(this.List.Add(salesTaxRate));
 }