Пример #1
0
        public static XQFOCCQ33600OutBlock3[] ListFromQuery(XQFOCCQ33600 query)
        {
            int count = query.GetBlockCount(XQFOCCQ33600OutBlock3.BlockName);
            List <XQFOCCQ33600OutBlock3> list = new List <XQFOCCQ33600OutBlock3>();

            if (query.QueryResult != null && query.QueryResult.IsSystemError == true)
            {
                return(list.ToArray());
            }
            for (int i = 0; i < count; i++)
            {
                XQFOCCQ33600OutBlock3 block = new XQFOCCQ33600OutBlock3();
                block.IsValidData   = true;
                block.InvalidReason = "";
                try
                {
                    block.BaseDt           = query.GetFieldData(block.GetBlockName(), "BaseDt", i).TrimEnd('?');                            // char 8
                    block.FdEvalAmt        = query.GetFieldData(block.GetBlockName(), "FdEvalAmt", i).ParseLong("FdEvalAmt");               // long 19
                    block.EotEvalAmt       = query.GetFieldData(block.GetBlockName(), "EotEvalAmt", i).ParseLong("EotEvalAmt");             // long 19
                    block.InvstAvrbalPramt = query.GetFieldData(block.GetBlockName(), "InvstAvrbalPramt", i).ParseLong("InvstAvrbalPramt"); // long 16
                    block.BnsctrAmt        = query.GetFieldData(block.GetBlockName(), "BnsctrAmt", i).ParseLong("BnsctrAmt");               // long 16
                    block.MnyinSecinAmt    = query.GetFieldData(block.GetBlockName(), "MnyinSecinAmt", i).ParseLong("MnyinSecinAmt");       // long 16
                    block.MnyoutSecoutAmt  = query.GetFieldData(block.GetBlockName(), "MnyoutSecoutAmt", i).ParseLong("MnyoutSecoutAmt");   // long 16
                    block.EvalPnlAmt       = query.GetFieldData(block.GetBlockName(), "EvalPnlAmt", i).ParseLong("EvalPnlAmt");             // long 16
                    block.TermErnrat       = query.GetFieldData(block.GetBlockName(), "TermErnrat", i).ParseDouble("TermErnrat");           // double 11.3
                    block.Idx = query.GetFieldData(block.GetBlockName(), "Idx", i).ParseDouble("Idx");                                      // double 13.2
                } catch (InvalidDataFormatException e) {
                    block.IsValidData   = false;
                    block.InvalidReason = $"FieldName == {e.DataFieldName}, FieldData == \"{e.DataValue}\"";
                }
                list.Add(block);
            }
            return(list.ToArray());
        }
Пример #2
0
 public XQFOCCQ33600OutBlock3[] GetBlock3s()
 {
     XQFOCCQ33600OutBlock3[] instance = XQFOCCQ33600OutBlock3.ListFromQuery(this);
     return(instance);
 }