Exemple #1
0
        public static XQt1973OutBlock1[] Get(string shcode = default, string cts_time = default)
        {
            using (XQt1973 instance = new XQt1973())
            {
                instance.SetFieldData(XQt1973InBlock.BlockName, XQt1973InBlock.F.shcode, 0, shcode);                 // char 6
                instance.SetFieldData(XQt1973InBlock.BlockName, XQt1973InBlock.F.cts_time, 0, cts_time);             // char 8

                if (instance.Request() < 0)
                {
                    return(null);
                }

                var outBlock = instance.GetBlock1s();
                return(outBlock);
            }
        }
Exemple #2
0
        public static XQAllOutBlocks Get(string shcode = default, string cts_time = default)
        {
            using (XQt1973 instance = new XQt1973())
            {
                instance.SetFieldData(XQt1973InBlock.BlockName, XQt1973InBlock.F.shcode, 0, shcode);                 // char 6
                instance.SetFieldData(XQt1973InBlock.BlockName, XQt1973InBlock.F.cts_time, 0, cts_time);             // char 8

                if (instance.Request() < 0)
                {
                    return(null);
                }

                XQAllOutBlocks results = new XQAllOutBlocks();
                results.OutBlock = instance.GetBlock();
                if (results.OutBlock.IsValidData == false)
                {
                    return(null);
                }

                results.OutBlock1 = instance.GetBlock1s();
                return(results);
            }
        }