private TargetList() { Targets = new List<AbstractDatum>(); String query = "select * from g20"; DataTable table = DBUtil.SelectFromDB_Table(query, Config_DB.kDatabase); DataRowCollection rows = table.Rows; foreach (DataRow row in rows) { string country = Convert.ToString(row["Country"]); string index = Convert.ToString(row["Index"]); string targetRate = Convert.ToString(row["TargetRate"]); string pbr = Convert.ToString(row["Pbr"]); string curncySymbol = Convert.ToString(row["CurncySymbol"]); AbstractDatum datum = new AbstractDatum(); datum.CountryCode = country; datum.IndexCode = index; datum.RateCode = targetRate; datum.PbrCode = pbr; datum.CurncySymbol = curncySymbol; Targets.Add(datum); } }
public IndexIncrementBatchEach(AbstractDatum datum, DateTime dtCur, Dictionary<string, double> prevDict, Dictionary<string, double> curDict) { this._datum = datum; this._dtCur = dtCur; this._prevDict = prevDict; this._curDict = curDict; }
public BatchEach( AbstractDatum datum, DateTime dtStart, DateTime dtEnd, Dictionary<string, GlobalEventDatum> registeredEvents) { _datum = datum; _dtStart = dtStart; _dtEnd = dtEnd; _registeredEvents = registeredEvents; _newEvents = new Dictionary<string, GlobalEventDatum>(); }
public PbrRangeBatchEach(AbstractDatum datum, DateTime dtCur) { _datum = datum; _dtEnd = dtCur; _dtStart = dtCur.AddYears(-5); }
public BankRateBatchEach(AbstractDatum datum, DateTime dtEnd) { this._datum = datum; this._dtEnd = dtEnd; }