Example #1
0
        public int AddProductCostHistory(ProductCostHistory productcosthistory)
        {
            int id = 0;

            try
            {
                id = data.AddProductCostHistory(productcosthistory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddProductCostHistory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(id);
        }
Example #2
0
        public bool RemoveProductCostHistory(ProductCostHistory productcosthistory)
        {
            bool ret = false;

            try
            {
                ret = data.DeleteProductCostHistory(productcosthistory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "RemoveProductCostHistory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
Example #3
0
        public ProductCostHistory GetProductCostHistory(int productCodeHistoryID)
        {
            ProductCostHistory productCostHistory = new ProductCostHistory();

            try
            {
                productCostHistory = data.GetProductCostHistory(productCodeHistoryID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductCostHistory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(productCostHistory);
        }
Example #4
0
 public void UpdateProductCostHistory(ProductCostHistory productcosthistory)
 {
 }
Example #5
0
 public bool Contains(ProductCostHistory productCostHistory)
 {
     return(this.List.Contains(productCostHistory));
 }
Example #6
0
 public void Remove(ProductCostHistory productCostHistory)
 {
     this.List.Remove(productCostHistory);
 }
Example #7
0
 public void Insert(int index, ProductCostHistory productCostHistory)
 {
     this.List.Insert(index, productCostHistory);
 }
Example #8
0
 public int IndexOf(ProductCostHistory productCostHistory)
 {
     return(this.List.IndexOf(productCostHistory));
 }
Example #9
0
 public int Add(ProductCostHistory productCostHistory)
 {
     return(this.List.Add(productCostHistory));
 }