Beispiel #1
0
        public List <AliasNamesRecord> GetList()
        {
            List <AliasNamesRecord> recs = new List <AliasNamesRecord>();

            string line;

            string[] fields    = null;
            int      CODE_FIRM = 0;

            for (int i = 1; i < m_lines.Length; i++)
            {
                line = m_lines[i];

                // skip blank lines
                if (line.Trim().Length == 0)
                {
                    continue;
                }

                fields = line.Split(',');

                // create new record object
                AliasNamesRecord rec = new AliasNamesRecord();

                rec.ManagerName                         = fields[Proprietary_Manager_Names_Idx];
                rec.DBManagerName                       = fields[DB_Consolidated_Manager_Names_Idx];
                rec.CITIManagerName                     = fields[Alias_for_Citi_Managers_Idx];
                rec.MorganStanleyManagerName            = fields[Alias_for_Morgan_Stanley_Idx];
                rec.JLS_Has_Data_Sent_directly_from_Mgr = fields[JLS_Has_Data_Sent_directly_from_Mgr_Idx];
                rec.FirmCode    = fields[CODE_FIRM_Idx];
                rec.ProgramCode = fields[CODE_PROG_Idx];

                /*
                 * // convert the fields
                 * try
                 * {
                 *  sRate = fields[rateIdx];
                 *  rate = Decimal.Parse(sRate);
                 * }
                 * catch (Exception ex)
                 * {
                 *  throw new Exception("Bad rate in file " + file + " at line " + (i + 1).ToString() + "  :  " + line, ex);
                 * }
                 */

                recs.Add(rec);
            }

            return(recs);
        }
Beispiel #2
0
        public UIManager(AliasNamesRecord aliasNamesRecord, StitchDatabaseFileRecord stitchDatabaseFileRecord, StatsRecord dbStats, StatsRecord citiStats, StatsRecord jlsStats)
        {
            // create a new manager file record
            // in the UI for comparison with
            // disk file data
            m_managerFileRecord = new ManagerFileRecord();

            // alias names
            m_managerFileRecord.ManagerName              = aliasNamesRecord.ManagerName;
            m_managerFileRecord.DBManagerName            = aliasNamesRecord.DBManagerName;
            m_managerFileRecord.CITIManagerName          = aliasNamesRecord.CITIManagerName;
            m_managerFileRecord.MorganStanleyManagerName = aliasNamesRecord.MorganStanleyManagerName;
            m_managerFileRecord.JLSName     = aliasNamesRecord.JLS_Has_Data_Sent_directly_from_Mgr;
            m_managerFileRecord.FirmCode    = aliasNamesRecord.FirmCode;
            m_managerFileRecord.ProgramCode = aliasNamesRecord.ProgramCode;

            // stitch database
            if (stitchDatabaseFileRecord != null)
            {
                m_managerFileRecord.Strategy  = stitchDatabaseFileRecord.Strategy;
                m_managerFileRecord.SubStrat  = stitchDatabaseFileRecord.SubStrat;
                m_managerFileRecord.MktsFocus = stitchDatabaseFileRecord.MktsFocus;
                m_existsInStitch = true;
            }
            else
            {
                m_managerFileRecord.Strategy  = String.Empty;
                m_managerFileRecord.SubStrat  = String.Empty;
                m_managerFileRecord.MktsFocus = String.Empty;
                m_existsInStitch = false;
            }

            // these only exist in manager.csv file
            m_managerFileRecord.Location     = "";
            m_managerFileRecord.ContactName  = "";
            m_managerFileRecord.ContactPhone = "";


            //m_aliasNamesRecord = aliasNamesRecord;
            m_dbStats   = dbStats;
            m_citiStats = citiStats;
            m_jlsStats  = jlsStats;
        }