Exemplo n.º 1
0
        public static XQt1486OutBlock FromQuery(XQt1486 query)
        {
            XQt1486OutBlock block = new XQt1486OutBlock();

            block.IsValidData   = true;
            block.InvalidReason = "";
            if (query.QueryResult != null && query.QueryResult.IsSystemError == true)
            {
                block.IsValidData   = false;
                block.InvalidReason = query.ReceiveMessage;
                return(block);
            }
            try
            {
                block.cts_time = query.GetFieldData(block.GetBlockName(), "cts_time", 0).TrimEnd('?');                 // char 10
            } catch (InvalidDataFormatException e) {
                block.IsValidData   = false;
                block.InvalidReason = $"FieldName == {e.DataFieldName}, FieldData == \"{e.DataValue}\"";
            }
            return(block);
        }
Exemplo n.º 2
0
        public XQt1486OutBlock GetBlock()
        {
            XQt1486OutBlock instance = XQt1486OutBlock.FromQuery(this);

            return(instance);
        }