Ejemplo n.º 1
0
        private void ExecuteSqlByRicType(string rictype, OpenMarketOperation operation)
        {
            QueueMessageFromRFA message = new QueueMessageFromRFA
            {
                Ric     = operation._ric,
                RicType = rictype
            };

            switch (rictype)
            {
            case "CFXS/NEWISSUE":
                NewListBond nb = new NewListBond();
                nb.Init(operation, message);
                break;

            case "CNREPO/PBOC":
                OpenMarketCNREPO cn = new OpenMarketCNREPO();
                cn.Init(operation, message);
                break;

            case "MLF/PBOC":
                OpenMarketMLF mlf = new OpenMarketMLF();
                mlf.Init(operation, message);
                break;

            case "SLF/PBOC":
                OpenMarketSLF slf = new OpenMarketSLF();
                slf.Init(operation, message);
                break;

            case "SLO/PBOC":
                OpenMarketSLO slo = new OpenMarketSLO();
                slo.Init(operation, message);
                break;
            }
            _queueMessageFromRfas.Add(message);

            _rfaLog.Append("\n <span style=\"background:" + (_responseRic == _requestRic ? "auto" : "yellow") + ";\">Response ric is <b>" + _responseRic + "</b></span> and " + message.OperationType + message.ReturnMessage + " \n");

            if (message.OperationType != "Ignore")
            {
                _rfaLog.Append("Execute sql:" + message.ExecSql + " ; \n");
            }
        }
Ejemplo n.º 2
0
        private void ExecuteSqlByRicType(string rictype, OpenMarketOperation operation)
        {
            QueueMessageFromRFA message = new QueueMessageFromRFA
            {
                Ric     = operation._ric,
                RicType = rictype
            };
            NewListBond nb = new NewListBond();

            nb.Init(operation, message);

            _queueMessageFromRfas.Add(message);

            _rfaLog.Append("\n <span style=\"background:" + (_responseRic == _requestRic ? "auto" : "yellow") + ";\">Response ric is <b>" + _responseRic + "</b></span> and " + message.OperationType + message.ReturnMessage + " \n");

            if (message.OperationType != "Ignore")
            {
                _rfaLog.Append("Execute sql:" + message.ExecSql + " ; \n");
            }
        }