Exemplo n.º 1
0
        public SalesPersonQuotaHistory GetSalesPersonQuotaHistory(int salesPersonID)
        {
            SalesPersonQuotaHistoryData data = new SalesPersonQuotaHistoryData();
            SalesPersonQuotaHistory     spqh = new SalesPersonQuotaHistory();

            try
            {
                spqh = data.GetSalesPersonQuotaHistory(salesPersonID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSalesPersonQuotaHistory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(spqh);
        }
Exemplo n.º 2
0
        public bool UpdateSalesPersonQuotaHistory(SalesPersonQuotaHistory salespersonquotahistory)
        {
            SalesPersonQuotaHistoryData data = new SalesPersonQuotaHistoryData();
            bool ret = false;

            try
            {
                ret = data.UpdateSalesPersonQuotaHistory(salespersonquotahistory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "UpdateSalesPersonQuotaHistory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
 public bool Contains(SalesPersonQuotaHistory salesPersonQuotaHistory)
 {
     return(this.List.Contains(salesPersonQuotaHistory));
 }
 public void Remove(SalesPersonQuotaHistory salesPersonQuotaHistory)
 {
     this.List.Remove(salesPersonQuotaHistory);
 }
 public void Insert(int index, SalesPersonQuotaHistory salesPersonQuotaHistory)
 {
     this.List.Insert(index, salesPersonQuotaHistory);
 }
 public int IndexOf(SalesPersonQuotaHistory salesPersonQuotaHistory)
 {
     return(this.List.IndexOf(salesPersonQuotaHistory));
 }
 public int Add(SalesPersonQuotaHistory salesPersonQuotaHistory)
 {
     return(this.List.Add(salesPersonQuotaHistory));
 }