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); } } }
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 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); }
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); }
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); }
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); }