public void eventContractionCallback(ContractionInfoWrapper wrapper)
        {
            string orderId  = wrapper.getData("주문번호");
            int    price    = int.Parse(wrapper.getData("단위체결가"));
            int    quantity = int.Parse(wrapper.getData("단위체결량"));

            m_plan.updateAchievement(quantity);
            m_uiWrapper.addNewContracted(orderId, price, quantity);
            if (m_plan != null)
            {
                m_plan.finalize();
            }
        }
Exemple #2
0
        public static void gotContracted(string infoType, string fidList)
        {
            string[] strfids = fidList.Split(';');
            int[]    fids    = Array.ConvertAll(strfids, item => int.Parse(item));
            ContractionInfoWrapper wrapper = new ContractionInfoWrapper(ProgramControl.getGateway(), fids, int.Parse(infoType));
            string orderid = wrapper.getData("주문번호");

            if (s_orderMap.ContainsKey(orderid) && s_callbacks.ContainsKey(s_orderMap[orderid]))
            {
                s_callbacks[orderid].eventContractionCallback(wrapper);
            }
            else
            {
                //Debug Log : callback 등록되지 않음. 정상적(TrData, Message -> Chejan)으로 메시지 송신되지 않음.
                ProgramControl.getLogger().Debug(string.Format("ContractionEventManager : gotContracted : orderID에 대해 적절한 callback 정의되지 않음. 메세지 송신 순서 뒤틀림(OrderID : {0})", orderid));
            }
        }