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

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

            return(instance);
        }