示例#1
0
        public bool RemoveSalesTerritory(SalesTerritory salesterritory)
        {
            SalesTerritoryData data = new SalesTerritoryData();
            bool ret = false;

            try
            {
                ret = data.DeleteSalesTerritory(salesterritory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "RemoveSalesTerritory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
示例#2
0
        public SalesTerritory GetSalesTerritorys(int territoryID)
        {
            SalesTerritoryData data = new SalesTerritoryData();
            SalesTerritory     st   = new SalesTerritory();

            try
            {
                st = data.GetSalesTerritory(territoryID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSalesTerritorys");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(st);
        }
示例#3
0
        public int AddSalesTerritory(SalesTerritory salesterritory)
        {
            SalesTerritoryData data = new SalesTerritoryData();
            int ret = 0;

            try
            {
                ret = data.AddSalesTerritory(salesterritory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddSalesTerritory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
示例#4
0
 public bool Contains(SalesTerritory saleTerritory)
 {
     return(this.List.Contains(saleTerritory));
 }
示例#5
0
 public void Remove(SalesTerritory saleTerritory)
 {
     this.List.Remove(saleTerritory);
 }
示例#6
0
 public void Insert(int index, SalesTerritory saleTerritory)
 {
     this.List.Insert(index, saleTerritory);
 }
示例#7
0
 public int IndexOf(SalesTerritory saleTerritory)
 {
     return(this.List.IndexOf(saleTerritory));
 }
示例#8
0
 public int Add(SalesTerritory saleTerritory)
 {
     return(this.List.Add(saleTerritory));
 }