예제 #1
0
        public bool CancelOneOrder(string orderID, string msg)
        {
            var data = new DataBlock();
            var row  = new Row();

            row.Add(new Field("TYPE", FieldType.StringScalar, "UserSubmitCancel"));
            row.Add(new Field("REFERS_TO_ID", FieldType.StringScalar, orderID));
            if (msg != null && msg.Length > 0)
            {
                row.Add(new Field("REASON", FieldType.StringScalar, msg));
            }

            data.Add(row);

            _query.Poke("ORDERS;*;", data.ConvertToBinary());

            return(true);
        }