Exemple #1
0
        public CReportDispatcher(/*IAlarmable*/ IClientReportDispatcher client, /*IDBCommunicator*/ IDBCommunicatorForReportDispatcher dbcommunicator, bool useRealServer,
                                 int stockExchangeId) : base(client)
        {
            _useRealServer = useRealServer;

            _client = client;
            //CReportDataAccounts reportData = new CReportDataAccounts(_useRealServer);
            //_pdfGeneratorAccounts = new CPDFGeneratorAccounts(reportData,_useRealServer);



            _dbCommunicator = dbcommunicator;

            /*   _mailer = new CMailer( smtpServer: "smtp.bk.ru",
             *                         portSMTP: 587,
             *                         user: "******",
             *                         mailDomain: "bk.ru",
             *                         password: "******",
             *                         alarmer: client,
             *                         bUseEamilAsUserName:false,
             *                         bEnableSSL:true);
             *
             */


            _mailer = new CMailer(smtpServer: "ctc-trade.com",
                                  portSMTP: 587,
                                  user: "******",
                                  mailDomain: "ctc-trade.com",
                                  // password: "******",
                                  password: "******",
                                  alarmer: null,
                                  bUseEamilAsUserName: true,
                                  bEnableSSL: false);



            (new Thread(ThreadDispatch)).Start();
            _stockExchId = stockExchangeId;
        }
Exemple #2
0
        public CReportDataAccounts(bool useRealServer, IClientReportDispatcher client)
        {
            _useRealServer = useRealServer;
            _client        = client;

            HeaderStockExchResultsTable = new List <string> {
                "Площадка",
                "Лимит на след. сессию",
                "Просадка",
                "Маржа",
                "Единая комиссия",
                "Закрытых позиций",
                "Финансовый результат"
            };



            DataStockExchResultsTable = new List <List <string> >();



            HeaderInstrumentResultsTable = new List <string> {
                "Инструмент",
                "",
                "",
                "",
                ""
            };


            HeaderAccountTable = new List <string>()
            {
                "Дата",
                "Транзакция",
                "",
                "Сумма",
            };
        }