Ejemplo n.º 1
0
        public static XQt0434OutBlock FromQuery(XQt0434 query)
        {
            XQt0434OutBlock block = new XQt0434OutBlock();

            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_ordno = query.GetFieldData(block.GetBlockName(), "cts_ordno", 0).TrimEnd('?');                 // char 7
            } catch (InvalidDataFormatException e) {
                block.IsValidData   = false;
                block.InvalidReason = $"FieldName == {e.DataFieldName}, FieldData == \"{e.DataValue}\"";
            }
            return(block);
        }
Ejemplo n.º 2
0
        public XQt0434OutBlock GetBlock()
        {
            XQt0434OutBlock instance = XQt0434OutBlock.FromQuery(this);

            return(instance);
        }