Beispiel #1
0
        public static XRJIFOutBlock FromQuery(XRJIF query)
        {
            XRJIFOutBlock block = new XRJIFOutBlock();

            block.IsValidData   = true;
            block.InvalidReason = "";
            try
            {
                block.jangubun = query.GetFieldData(block.GetBlockName(), "jangubun").FirstOrDefault();           // char 1
                block.jstatus  = query.GetFieldData(block.GetBlockName(), "jstatus").TrimEnd('?');                // char 2
            } catch (InvalidDataFormatException e) {
                block.IsValidData   = false;
                block.InvalidReason = $"FieldName == {e.DataFieldName}, FieldData == \"{e.DataValue}\"";
            }
            return(block);
        }
Beispiel #2
0
        public XRJIFOutBlock GetBlock()
        {
            XRJIFOutBlock instance = XRJIFOutBlock.FromQuery(this);

            return(instance);
        }