Exemple #1
0
        public static XQt1771OutBlock FromQuery(XQt1771 query)
        {
            XQt1771OutBlock block = new XQt1771OutBlock();

            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_idx = query.GetFieldData(block.GetBlockName(), "cts_idx", 0).ParseLong("cts_idx");                 // long 4
            } catch (InvalidDataFormatException e) {
                block.IsValidData   = false;
                block.InvalidReason = $"FieldName == {e.DataFieldName}, FieldData == \"{e.DataValue}\"";
            }
            return(block);
        }
Exemple #2
0
        public XQt1771OutBlock GetBlock()
        {
            XQt1771OutBlock instance = XQt1771OutBlock.FromQuery(this);

            return(instance);
        }