Пример #1
0
 public OP_REQUEST(string type, SOURCE source, DATABASE database, string table, RQ_INFO[] rq_infos, bool update)
 {
     this.type     = type;
     this.source   = source;
     this.database = database;
     this.table    = table;
     this.rq_infos = rq_infos;
 }
Пример #2
0
 public OP_REQUEST(string type, SOURCE source, DATABASE database, string table, RQ_INFO[] rq_infos, bool update)
 {
     this.type     = type;
     this.source   = source;
     this.database = database;
     this.table    = table;
     this.rq_infos = rq_infos;
     this.update   = update;
     foreach (RQ_INFO rq_info in rq_infos)
     {
         foreach (FIELD field in rq_info.fields)
         {
             if (field.name == "security")
             {
                 column_security = field.column;
             }
         }
     }
 }
Пример #3
0
        public Dictionary <string, SOURCE> Get_sources()
        {
            Dictionary <string, SOURCE> result = new Dictionary <string, SOURCE>();
            XmlElement e_sources = Get_child(e_configuration, "sources", "sources");

            XmlElement[] source_list = Get_children(e_sources, "source", "sources/source");
            foreach (XmlElement e_source in source_list)
            {
                string id     = Get_child(e_source, "id", "source/id").InnerText;
                string type   = Get_child(e_source, "type", "source/type").InnerText;
                SOURCE source = null;
                switch (type)
                {
                case "bloomberg":
                    source = new SRC_BLOOMBERG();
                    break;
                }
                result.Add(id, source);
            }
            return(result);
        }
Пример #4
0
 public OP_HISTO1(string type, SOURCE source, DATABASE database, string table, RQ_INFO[] rq_infos, bool update) : base(type, source, database, table, rq_infos, update)
 {
 }