public static void LoadInvestor(databases.tmpDS.investorDataTable tbl, bool force) { if (force) { tbl.Clear(); } if (tbl.Count > 0) { return; } databases.tmpDS.investorDataTable newTbl = Libs.GetInvestorShortList(); if (newTbl != null) { common.system.Concat(newTbl, 0, tbl); } }
public static databases.tmpDS.investorRow FindAndCache(databases.tmpDS.investorDataTable tbl, string code) { databases.tmpDS.investorRow row = tbl.FindBycode(code); if (row != null) { return(row); } if (tbl.Count == 0) { LoadInvestor(tbl, false); row = tbl.FindBycode(code); if (row != null) { return(row); } } return(null); }
public databases.tmpDS.investorDataTable GetInvestorShortList() { try { databases.tmpDS.investorDataTable tbl = new databases.tmpDS.investorDataTable(); databases.DbAccess.LoadData(tbl); return tbl; } catch (Exception ex) { WriteSysLogLocal("WS010", ex); } return null; }