public SalesPersonQuotaHistoryData(SalesPersonQuotaHistoryData data)
 {
     QuotaDate    = data.QuotaDate;
     SalesQuota   = data.SalesQuota;
     rowguid      = data.rowguid;
     ModifiedDate = data.ModifiedDate;
     Uid          = data.Uid;
 }
 protected override void LazySet()
 {
     base.LazySet();
     if (PersistenceState == PersistenceState.NewAndChanged || PersistenceState == PersistenceState.LoadedAndChanged)
     {
         if ((object)InnerData == (object)OriginalData)
         {
             OriginalData = new SalesPersonQuotaHistoryData(InnerData);
         }
     }
 }
示例#3
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);
        }
示例#4
0
        public SalesPersonQuotaHistoryCollection GetSalesPersonQuotaHistoryCollection(string where, string orderBy)
        {
            SalesPersonQuotaHistoryData       data = new SalesPersonQuotaHistoryData();
            SalesPersonQuotaHistoryCollection col  = new SalesPersonQuotaHistoryCollection();

            try
            {
                col = data.GetAllSalesPersonQuotaHistorysDynamicCollection(where, orderBy);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSalesPersonQuotaHistoryCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
示例#5
0
        public DataSet GetSalesPersonQuotaHistoryDataSet(string where, string orderBy)
        {
            SalesPersonQuotaHistoryData data = new SalesPersonQuotaHistoryData();
            DataSet ds = new DataSet();

            try
            {
                ds = data.GetAllSalesPersonQuotaHistorysDynamicDataSet(where, orderBy);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSalesPersonQuotaHistoryDataSet");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ds);
        }
示例#6
0
        public SalesPersonQuotaHistoryCollection GetAllSalesPersonQuotaHistoryCollection()
        {
            SalesPersonQuotaHistoryData       data = new SalesPersonQuotaHistoryData();
            SalesPersonQuotaHistoryCollection col  = new SalesPersonQuotaHistoryCollection();

            try
            {
                col = data.GetAllSalesPersonQuotaHistorysCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllSalesPersonQuotaHistoryCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
示例#7
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);
        }